Home
last modified time | relevance | path

Searched refs:starget (Results 1 – 25 of 52) sorted by relevance

123

/linux-6.3-rc2/drivers/message/fusion/
A Dmptspi.c416 vtarget->starget = starget; in mptspi_target_alloc()
427 starget->id); in mptspi_target_alloc()
435 starget->id)); in mptspi_target_alloc()
449 spi_offset(starget) = 0; in mptspi_target_alloc()
974 spi_iu(starget) = 1; in mptspi_write_period()
975 spi_dt(starget) = 1; in mptspi_write_period()
977 spi_dt(starget) = 1; in mptspi_write_period()
1002 spi_dt(starget) = dt; in mptspi_write_dt()
1025 spi_iu(starget) = iu; in mptspi_write_iu()
1069 spi_qas(starget) = 0; in MPTSPI_SIMPLE_TRANSPORT_PARM()
[all …]
A Dmptfc.c471 if (ri->starget) { in mptfc_register_dev()
518 ri->starget = NULL; in mptfc_target_destroy()
520 kfree(starget->hostdata); in mptfc_target_destroy()
521 starget->hostdata = NULL; in mptfc_target_destroy()
540 starget->hostdata = vtarget; in mptfc_target_alloc()
549 ri->starget = starget; in mptfc_target_alloc()
555 starget->hostdata = NULL; in mptfc_target_alloc()
1094 starget = ri->starget; in mptfc_setup_reset()
1095 if (starget) { in mptfc_setup_reset()
1149 starget = ri->starget; in mptfc_rescan_devices()
[all …]
A Dmptsas.c565 starget) in mptsas_set_starget()
568 phy_info->port_details->starget = starget; in mptsas_set_starget()
753 starget->id) { in mptsas_add_device_component_starget_ir()
1120 if (starget) in mptsas_block_io_starget()
1758 vtarget->starget = starget; in mptsas_target_alloc()
1761 id = starget->id; in mptsas_target_alloc()
1831 if (!starget->hostdata) in mptsas_target_destroy()
1837 starget->id); in mptsas_target_destroy()
1863 vtarget->starget = NULL; in mptsas_target_destroy()
4462 if (!starget) { in mptsas_hotplug_work()
[all …]
A Dmptsas.h155 struct scsi_target *starget; member
/linux-6.3-rc2/drivers/scsi/
A Dscsi_transport_spi.c251 spi_max_iu(starget) = 1; in spi_setup_transport_attrs()
253 spi_qas(starget) = 0; in spi_setup_transport_attrs()
254 spi_max_qas(starget) = 1; in spi_setup_transport_attrs()
255 spi_wr_flow(starget) = 0; in spi_setup_transport_attrs()
256 spi_rd_strm(starget) = 0; in spi_setup_transport_attrs()
257 spi_rti(starget) = 0; in spi_setup_transport_attrs()
768 i->f->get_iu(starget); in spi_dv_retrain()
899 if (!spi_support_sync(starget) && !spi_support_dt(starget)) in spi_dv_device_internal()
915 if (spi_support_qas(starget) && spi_max_qas(starget)) { in spi_dv_device_internal()
921 if (spi_support_ius(starget) && spi_max_iu(starget) && in spi_dv_device_internal()
[all …]
A Dscsi_scan.c297 sdev->id = starget->id; in scsi_alloc_sdev()
411 kfree(starget); in scsi_target_dev_release()
435 if (starget->id == id && in __scsi_find_target()
437 found_starget = starget; in __scsi_find_target()
504 if (!starget) { in scsi_alloc_target()
508 dev = &starget->dev; in scsi_alloc_target()
516 starget->id = id; in scsi_alloc_target()
518 starget->can_queue = 0; in scsi_alloc_target()
549 return starget; in scsi_alloc_target()
1578 if (!starget) in __scsi_add_device()
[all …]
A Dscsi.c161 struct scsi_target *starget = scsi_target(sdev); in scsi_finish_command() local
174 if (atomic_read(&starget->target_blocked)) in scsi_finish_command()
175 atomic_set(&starget->target_blocked, 0); in scsi_finish_command()
636 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); in starget_for_each_device()
640 if ((sdev->channel == starget->channel) && in starget_for_each_device()
641 (sdev->id == starget->id)) in starget_for_each_device()
664 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); in __starget_for_each_device()
668 if ((sdev->channel == starget->channel) && in __starget_for_each_device()
669 (sdev->id == starget->id)) in __starget_for_each_device()
719 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); in scsi_device_lookup_by_target()
[all …]
A Dscsi_sysfs.c1348 starget->state = STARGET_RUNNING; in scsi_target_add()
1351 pm_runtime_enable(&starget->dev); in scsi_target_add()
1376 scsi_autopm_get_target(starget); in scsi_sysfs_add_sdev()
1381 scsi_autopm_put_target(starget); in scsi_sysfs_add_sdev()
1520 sdev->id != starget->id) in __scsi_remove_target()
1546 struct scsi_target *starget; in scsi_remove_target() local
1556 if (starget->dev.parent == dev || &starget->dev == dev) { in scsi_remove_target()
1557 kref_get(&starget->reap_ref); in scsi_remove_target()
1563 __scsi_remove_target(starget); in scsi_remove_target()
1564 scsi_target_reap(starget); in scsi_remove_target()
[all …]
A Dscsi_lib.c108 atomic_set(&starget->target_blocked, in scsi_set_blocked()
109 starget->max_target_blocked); in scsi_set_blocked()
297 if (starget->can_queue > 0) in scsi_device_unbusy()
335 starget->starget_sdev_user = NULL; in scsi_single_lun_run()
347 if (!starget->starget_sdev_user) in scsi_single_lun_run()
364 if (starget->can_queue > 0) { in scsi_target_is_busy()
365 if (atomic_read(&starget->target_busy) >= starget->can_queue) in scsi_target_is_busy()
1289 if (starget->single_lun) { in scsi_target_queue_ready()
1300 if (starget->can_queue <= 0) in scsi_target_queue_ready()
1318 if (busy >= starget->can_queue) in scsi_target_queue_ready()
[all …]
A Dscsi_pm.c235 void scsi_autopm_get_target(struct scsi_target *starget) in scsi_autopm_get_target() argument
237 pm_runtime_get_sync(&starget->dev); in scsi_autopm_get_target()
240 void scsi_autopm_put_target(struct scsi_target *starget) in scsi_autopm_put_target() argument
242 pm_runtime_put_sync(&starget->dev); in scsi_autopm_put_target()
A Desp_scsi.c554 struct scsi_target *target = tp->starget; in esp_need_to_nego_wide()
1414 spi_period(tp->starget) = scsi_period; in esp_setsync()
1415 spi_offset(tp->starget) = scsi_offset; in esp_setsync()
1568 spi_period(tp->starget) = 0; in esp_msgin_wdtr()
1569 spi_offset(tp->starget) = 0; in esp_msgin_wdtr()
2086 if (tp->starget) in esp_reset_cleanup()
2431 tp->starget = starget; in esp_target_alloc()
2441 tp->starget = NULL; in esp_target_destroy()
2456 spi_max_offset(tp->starget) = 15; in esp_slave_alloc()
2459 spi_max_width(tp->starget) = 1; in esp_slave_alloc()
[all …]
A Dncr53c8xx.c1236 struct scsi_target *starget; member
4028 struct scsi_target *starget = tp->starget; in ncr_prepare_nego() local
6526 struct scsi_target *starget = tp->starget; in ncr_int_sir() local
6685 spi_period(starget) = 0; in ncr_int_sir()
6686 spi_offset(starget) = 0; in ncr_int_sir()
6691 spi_width(starget) = 0; in ncr_int_sir()
6716 if (ofs && starget) in ncr_int_sir()
6776 spi_width(starget) = 0; in ncr_int_sir()
6787 spi_period(starget) = per; in ncr_int_sir()
6788 spi_offset(starget) = ofs; in ncr_int_sir()
[all …]
/linux-6.3-rc2/drivers/scsi/aic7xxx/
A Daic79xx_osm.c598 target_offset = starget->id; in DEF_SCSI_QCMD()
599 if (starget->channel != 0) in DEF_SCSI_QCMD()
622 *ahd_targp = starget; in ahd_linux_target_alloc()
632 spi_max_iu(starget) = 0; in ahd_linux_target_alloc()
635 spi_rti(starget) = 0; in ahd_linux_target_alloc()
639 spi_max_qas(starget) = 0; in ahd_linux_target_alloc()
1319 struct scsi_target *starget; in ahd_platform_free() local
1325 starget = ahd->platform_data->starget[i]; in ahd_platform_free()
1326 if (starget != NULL) { in ahd_platform_free()
1697 starget = ahd->platform_data->starget[target]; in ahd_send_async()
[all …]
A Daic7xxx_osm.c549 target_offset = starget->id; in DEF_SCSI_QCMD()
550 if (starget->channel != 0) in DEF_SCSI_QCMD()
571 if (starget->channel != 0) in ahc_linux_target_alloc()
574 if (starget->channel) in ahc_linux_target_alloc()
581 *ahc_targp = starget; in ahc_linux_target_alloc()
610 spi_min_period(starget) = in ahc_linux_target_alloc()
660 spi_period(starget) = 0; in ahc_linux_slave_alloc()
1218 starget = ahc->platform_data->starget[i]; in ahc_platform_free()
1219 if (starget != NULL) { in ahc_platform_free()
1624 starget = ahc->platform_data->starget[target_offset]; in ahc_send_async()
[all …]
A Daic79xx_proc.c160 struct scsi_target *starget; in ahd_dump_target_state() local
170 starget = ahd->platform_data->starget[target_id]; in ahd_dump_target_state()
171 if (starget == NULL) in ahd_dump_target_state()
182 dev = scsi_device_lookup_by_target(starget, lun); in ahd_dump_target_state()
A Daic7xxx_proc.c138 struct scsi_target *starget; in ahc_dump_target_state() local
150 starget = ahc->platform_data->starget[target_offset]; in ahc_dump_target_state()
151 if (!starget) in ahc_dump_target_state()
162 sdev = scsi_device_lookup_by_target(starget, lun); in ahc_dump_target_state()
/linux-6.3-rc2/drivers/scsi/mpi3mr/
A Dmpi3mr_os.c421 if (tgtdev->starget && tgtdev->starget->hostdata) { in mpi3mr_invalidate_devhandles()
818 if (tgtdev->starget && tgtdev->starget->hostdata) { in mpi3mr_set_io_divert_for_all_vd_in_tg()
863 if (tgtdev->starget && tgtdev->starget->hostdata) { in mpi3mr_remove_tgtdev_from_host()
1100 if (tgtdev->starget && tgtdev->starget->hostdata) { in mpi3mr_update_tgtdev()
1284 if (tgtdev->starget && tgtdev->starget->hostdata) { in mpi3mr_devstatuschg_evt_bh()
1831 if (tgtdev->starget && tgtdev->starget->hostdata) { in mpi3mr_set_qd_for_all_vd_in_tg()
2615 if (tgtdev->starget && tgtdev->starget->hostdata) { in mpi3mr_devstatuschg_evt_th()
4248 if (tgt_dev && (tgt_dev->starget == starget) && in mpi3mr_target_destroy()
4365 tgt_dev->starget = starget; in mpi3mr_slave_alloc()
4433 scsi_tgt_priv_data->starget = starget; in mpi3mr_target_alloc()
[all …]
/linux-6.3-rc2/drivers/scsi/mpt3sas/
A Dmpt3sas_scsih.c1900 raid_device->starget = starget; in scsih_target_alloc()
1916 pcie_device->starget = starget; in scsih_target_alloc()
1939 sas_device->starget = starget; in scsih_target_alloc()
2083 pcie_device->starget = starget; in scsih_slave_alloc()
2099 sas_device->starget = starget; in scsih_slave_alloc()
5645 starget = sas_device->starget; in _scsih_smart_predicted_fault()
7232 starget = sas_device->starget; in _scsih_check_device()
8036 starget = pcie_device->starget; in _scsih_pcie_check_device()
9121 starget = sas_device->starget; in _scsih_sas_pd_expose()
9166 starget = sas_device->starget; in _scsih_sas_pd_hide()
[all …]
/linux-6.3-rc2/include/scsi/
A Dscsi_transport.h71 scsi_transport_target_data(struct scsi_target *starget) in scsi_transport_target_data() argument
73 struct Scsi_Host *shost = dev_to_shost(&starget->dev); in scsi_transport_target_data()
74 return (u8 *)starget->starget_data in scsi_transport_target_data()
/linux-6.3-rc2/drivers/scsi/sym53c8xx_2/
A Dsym_glue.c709 dev_info(&tp->starget->dev, in sym_tune_dev_queuing()
760 tp->starget = sdev->sdev_target; in sym53c8xx_slave_alloc()
762 spi_min_period(tp->starget) = tp->usr_period; in sym53c8xx_slave_alloc()
763 spi_max_width(tp->starget) = tp->usr_width; in sym53c8xx_slave_alloc()
829 starget_printk(KERN_WARNING, tp->starget, in sym53c8xx_slave_destroy()
842 tp->starget = NULL; in sym53c8xx_slave_destroy()
1884 struct sym_tcb *tp = &np->target[starget->id]; in sym2_set_offset()
1894 struct sym_tcb *tp = &np->target[starget->id]; in sym2_set_period()
1909 struct sym_tcb *tp = &np->target[starget->id]; in sym2_set_width()
1924 struct sym_tcb *tp = &np->target[starget->id]; in sym2_set_dt()
[all …]
A Dsym_hipd.c1409 struct scsi_target *starget = tp->starget; local
2037 struct scsi_target *starget = tp->starget; local
2065 struct scsi_target *starget = tp->starget; local
2078 spi_iu(starget) = 0;
2079 spi_dt(starget) = 0;
2080 spi_qas(starget) = 0;
2095 struct scsi_target *starget = tp->starget; local
2108 spi_iu(starget) = spi_dt(starget) = spi_qas(starget) = 0;
2128 struct scsi_target *starget = tp->starget; local
3523 starget = tp->starget;
[all …]
/linux-6.3-rc2/drivers/scsi/bfa/
A Dbfad_attr.c22 bfad_im_get_starget_port_id(struct scsi_target *starget) in bfad_im_get_starget_port_id() argument
31 shost = dev_to_shost(starget->dev.parent); in bfad_im_get_starget_port_id()
36 itnim = bfad_get_itnim(im_port, starget->id); in bfad_im_get_starget_port_id()
40 fc_starget_port_id(starget) = fc_id; in bfad_im_get_starget_port_id()
48 bfad_im_get_starget_node_name(struct scsi_target *starget) in bfad_im_get_starget_node_name() argument
57 shost = dev_to_shost(starget->dev.parent); in bfad_im_get_starget_node_name()
62 itnim = bfad_get_itnim(im_port, starget->id); in bfad_im_get_starget_node_name()
66 fc_starget_node_name(starget) = cpu_to_be64(node_name); in bfad_im_get_starget_node_name()
83 shost = dev_to_shost(starget->dev.parent); in bfad_im_get_starget_port_name()
88 itnim = bfad_get_itnim(im_port, starget->id); in bfad_im_get_starget_port_name()
[all …]
/linux-6.3-rc2/drivers/usb/storage/
A Dscsiglue.c337 static int target_alloc(struct scsi_target *starget) in target_alloc() argument
339 struct us_data *us = host_to_us(dev_to_shost(starget->dev.parent)); in target_alloc()
347 starget->no_report_luns = 1; in target_alloc()
359 starget->pdt_1f_for_no_lun = 1; in target_alloc()
/linux-6.3-rc2/drivers/scsi/libsas/
A Dsas_scsi_host.c827 int sas_target_alloc(struct scsi_target *starget) in sas_target_alloc() argument
829 struct sas_rphy *rphy = dev_to_rphy(starget->dev.parent); in sas_target_alloc()
836 starget->hostdata = found_dev; in sas_target_alloc()
1242 void sas_target_destroy(struct scsi_target *starget) in sas_target_destroy() argument
1244 struct domain_device *found_dev = starget->hostdata; in sas_target_destroy()
1249 starget->hostdata = NULL; in sas_target_destroy()
/linux-6.3-rc2/drivers/scsi/ibmvscsi/
A Dibmvfc.c1218 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); in __ibmvfc_get_target()
1223 if (tgt->target_id == starget->id) { in __ibmvfc_get_target()
1244 tgt = __ibmvfc_get_target(starget); in ibmvfc_get_target()
1368 struct ibmvfc_target *tgt = ibmvfc_get_target(starget); in ibmvfc_get_starget_node_name()
1383 struct ibmvfc_target *tgt = ibmvfc_get_target(starget); in ibmvfc_get_starget_port_name()
1398 struct ibmvfc_target *tgt = ibmvfc_get_target(starget); in ibmvfc_get_starget_port_id()
1399 fc_starget_port_id(starget) = tgt ? tgt->scsi_id : -1; in ibmvfc_get_starget_port_id()
2502 struct scsi_target *starget = scsi_target(sdev); in ibmvfc_init_tmf() local
2503 struct fc_rport *rport = starget_to_rport(starget); in ibmvfc_init_tmf()
2956 struct scsi_target *starget = scsi_target(sdev); in ibmvfc_eh_target_reset_handler() local
[all …]

Completed in 164 milliseconds

123