Home
last modified time | relevance | path

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

12

/linux/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()
4460 if (!starget) { in mptsas_hotplug_work()
[all …]
/linux/drivers/scsi/
A Dscsi_transport_spi.c252 spi_max_iu(starget) = 1; in spi_setup_transport_attrs()
254 spi_qas(starget) = 0; in spi_setup_transport_attrs()
255 spi_max_qas(starget) = 1; in spi_setup_transport_attrs()
256 spi_wr_flow(starget) = 0; in spi_setup_transport_attrs()
257 spi_rd_strm(starget) = 0; in spi_setup_transport_attrs()
258 spi_rti(starget) = 0; in spi_setup_transport_attrs()
769 i->f->get_iu(starget); in spi_dv_retrain()
900 if (!spi_support_sync(starget) && !spi_support_dt(starget)) in spi_dv_device_internal()
916 if (spi_support_qas(starget) && spi_max_qas(starget)) { in spi_dv_device_internal()
922 if (spi_support_ius(starget) && spi_max_iu(starget) && in spi_dv_device_internal()
[all …]
A Dscsi_scan.c250 sdev->id = starget->id; in scsi_alloc_sdev()
368 kfree(starget); in scsi_target_dev_release()
392 if (starget->id == id && in __scsi_find_target()
394 found_starget = starget; in __scsi_find_target()
461 if (!starget) { in scsi_alloc_target()
465 dev = &starget->dev; in scsi_alloc_target()
473 starget->id = id; in scsi_alloc_target()
475 starget->can_queue = 0; in scsi_alloc_target()
506 return starget; in scsi_alloc_target()
1513 if (!starget) in __scsi_add_device()
[all …]
A Dscsi.c162 struct scsi_target *starget = scsi_target(sdev); in scsi_finish_command() local
175 if (atomic_read(&starget->target_blocked)) in scsi_finish_command()
176 atomic_set(&starget->target_blocked, 0); in scsi_finish_command()
593 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); in starget_for_each_device()
597 if ((sdev->channel == starget->channel) && in starget_for_each_device()
598 (sdev->id == starget->id)) in starget_for_each_device()
621 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); in __starget_for_each_device()
625 if ((sdev->channel == starget->channel) && in __starget_for_each_device()
626 (sdev->id == starget->id)) in __starget_for_each_device()
676 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); in scsi_device_lookup_by_target()
[all …]
A Dscsi_sysfs.c1330 starget->state = STARGET_RUNNING; in scsi_target_add()
1333 pm_runtime_enable(&starget->dev); in scsi_target_add()
1358 scsi_autopm_get_target(starget); in scsi_sysfs_add_sdev()
1363 scsi_autopm_put_target(starget); in scsi_sysfs_add_sdev()
1505 sdev->id != starget->id) in __scsi_remove_target()
1531 struct scsi_target *starget; in scsi_remove_target() local
1541 if (starget->dev.parent == dev || &starget->dev == dev) { in scsi_remove_target()
1542 kref_get(&starget->reap_ref); in scsi_remove_target()
1548 __scsi_remove_target(starget); in scsi_remove_target()
1549 scsi_target_reap(starget); in scsi_remove_target()
[all …]
A Dscsi_lib.c116 starget->max_target_blocked); in scsi_set_blocked()
300 if (starget->can_queue > 0) in scsi_device_unbusy()
301 atomic_dec(&starget->target_busy); in scsi_device_unbusy()
327 starget->starget_sdev_user = NULL; in scsi_single_lun_run()
339 if (starget->starget_sdev_user) in scsi_single_lun_run()
369 if (starget->can_queue > 0) { in scsi_target_is_busy()
370 if (atomic_read(&starget->target_busy) >= starget->can_queue) in scsi_target_is_busy()
1287 if (starget->single_lun) { in scsi_target_queue_ready()
1298 if (starget->can_queue <= 0) in scsi_target_queue_ready()
1316 if (busy >= starget->can_queue) in scsi_target_queue_ready()
[all …]
A Dscsi_pm.c236 void scsi_autopm_get_target(struct scsi_target *starget) in scsi_autopm_get_target() argument
238 pm_runtime_get_sync(&starget->dev); in scsi_autopm_get_target()
241 void scsi_autopm_put_target(struct scsi_target *starget) in scsi_autopm_put_target() argument
243 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.c1237 struct scsi_target *starget; member
4029 struct scsi_target *starget = tp->starget; in ncr_prepare_nego() local
6527 struct scsi_target *starget = tp->starget; in ncr_int_sir() local
6686 spi_period(starget) = 0; in ncr_int_sir()
6687 spi_offset(starget) = 0; in ncr_int_sir()
6692 spi_width(starget) = 0; in ncr_int_sir()
6717 if (ofs && starget) in ncr_int_sir()
6777 spi_width(starget) = 0; in ncr_int_sir()
6788 spi_period(starget) = per; in ncr_int_sir()
6789 spi_offset(starget) = ofs; in ncr_int_sir()
[all …]
A Dscsi_transport_fc.c358 struct scsi_target *starget = to_scsi_target(dev); in fc_target_setup() local
359 struct fc_rport *rport = starget_to_rport(starget); in fc_target_setup()
367 fc_starget_node_name(starget) = rport->node_name; in fc_target_setup()
368 fc_starget_port_name(starget) = rport->port_name; in fc_target_setup()
369 fc_starget_port_id(starget) = rport->port_id; in fc_target_setup()
371 fc_starget_node_name(starget) = -1; in fc_target_setup()
372 fc_starget_port_name(starget) = -1; in fc_target_setup()
373 fc_starget_port_id(starget) = -1; in fc_target_setup()
1426 fc_starget_##field(starget) = rport->field; \
1428 i->f->get_starget_##field(starget); \
[all …]
/linux/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()
1323 struct scsi_target *starget; in ahd_platform_free() local
1329 starget = ahd->platform_data->starget[i]; in ahd_platform_free()
1330 if (starget != NULL) { in ahd_platform_free()
1701 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/drivers/scsi/mpi3mr/
A Dmpi3mr_os.c343 if (tgtdev->starget && tgtdev->starget->hostdata) { in mpi3mr_invalidate_devhandles()
640 if (tgtdev->starget && tgtdev->starget->hostdata) { in mpi3mr_remove_tgtdev_from_host()
819 if (tgtdev->starget && tgtdev->starget->hostdata) { in mpi3mr_update_tgtdev()
946 if (tgtdev->starget && tgtdev->starget->hostdata) { in mpi3mr_devstatuschg_evt_bh()
1643 if (tgtdev && tgtdev->starget && tgtdev->starget->hostdata) in mpi3mr_pcietopochg_evt_th()
1710 if (tgtdev && tgtdev->starget && tgtdev->starget->hostdata) in mpi3mr_sastopochg_evt_th()
1799 if (tgtdev->starget && tgtdev->starget->hostdata) { in mpi3mr_devstatuschg_evt_th()
3145 if (tgt_dev && (tgt_dev->starget == starget) && in mpi3mr_target_destroy()
3235 tgt_dev->starget = starget; in mpi3mr_slave_alloc()
3284 scsi_tgt_priv_data->starget = starget; in mpi3mr_target_alloc()
[all …]
/linux/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()
5632 starget = sas_device->starget; in _scsih_smart_predicted_fault()
7219 starget = sas_device->starget; in _scsih_check_device()
8023 starget = pcie_device->starget; in _scsih_pcie_check_device()
9108 starget = sas_device->starget; in _scsih_sas_pd_expose()
9153 starget = sas_device->starget; in _scsih_sas_pd_hide()
[all …]
/linux/drivers/scsi/sym53c8xx_2/
A Dsym_glue.c710 dev_info(&tp->starget->dev, in sym_tune_dev_queuing()
761 tp->starget = sdev->sdev_target; in sym53c8xx_slave_alloc()
763 spi_min_period(tp->starget) = tp->usr_period; in sym53c8xx_slave_alloc()
764 spi_max_width(tp->starget) = tp->usr_width; in sym53c8xx_slave_alloc()
830 starget_printk(KERN_WARNING, tp->starget, in sym53c8xx_slave_destroy()
843 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/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/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/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/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()
932 void sas_target_destroy(struct scsi_target *starget) in sas_target_destroy() argument
934 struct domain_device *found_dev = starget->hostdata; in sas_target_destroy()
939 starget->hostdata = NULL; in sas_target_destroy()
/linux/drivers/scsi/ibmvscsi/
A Dibmvfc.c1213 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); in __ibmvfc_get_target()
1218 if (tgt->target_id == starget->id) { in __ibmvfc_get_target()
1239 tgt = __ibmvfc_get_target(starget); in ibmvfc_get_target()
1363 struct ibmvfc_target *tgt = ibmvfc_get_target(starget); in ibmvfc_get_starget_node_name()
1378 struct ibmvfc_target *tgt = ibmvfc_get_target(starget); in ibmvfc_get_starget_port_name()
1393 struct ibmvfc_target *tgt = ibmvfc_get_target(starget); in ibmvfc_get_starget_port_id()
1394 fc_starget_port_id(starget) = tgt ? tgt->scsi_id : -1; in ibmvfc_get_starget_port_id()
2497 struct scsi_target *starget = scsi_target(sdev); in ibmvfc_init_tmf() local
2498 struct fc_rport *rport = starget_to_rport(starget); in ibmvfc_init_tmf()
2951 struct scsi_target *starget = scsi_target(sdev); in ibmvfc_eh_target_reset_handler() local
[all …]

Completed in 135 milliseconds

12