/linux-6.6.21/drivers/message/fusion/ |
D | mptspi.c | 397 static int mptspi_target_alloc(struct scsi_target *starget) in mptspi_target_alloc() argument 399 struct Scsi_Host *shost = dev_to_shost(&starget->dev); in mptspi_target_alloc() 414 vtarget->id = (u8)starget->id; in mptspi_target_alloc() 415 vtarget->channel = (u8)starget->channel; in mptspi_target_alloc() 416 vtarget->starget = starget; in mptspi_target_alloc() 417 starget->hostdata = vtarget; in mptspi_target_alloc() 419 if (starget->channel == 1) { in mptspi_target_alloc() 420 if (mptscsih_is_phys_disk(ioc, 0, starget->id) == 0) in mptspi_target_alloc() 427 starget->id); in mptspi_target_alloc() 430 if (starget->channel == 0 && in mptspi_target_alloc() [all …]
|
D | mptfc.c | 98 static int mptfc_target_alloc(struct scsi_target *starget); 101 static void mptfc_target_destroy(struct scsi_target *starget); 471 if (ri->starget) { in mptfc_register_dev() 472 vtarget = ri->starget->hostdata; in mptfc_register_dev() 509 mptfc_target_destroy(struct scsi_target *starget) in mptfc_target_destroy() argument 514 rport = starget_to_rport(starget); in mptfc_target_destroy() 518 ri->starget = NULL; in mptfc_target_destroy() 520 kfree(starget->hostdata); in mptfc_target_destroy() 521 starget->hostdata = NULL; in mptfc_target_destroy() 530 mptfc_target_alloc(struct scsi_target *starget) in mptfc_target_alloc() argument [all …]
|
D | mptsas.c | 558 return phy_info->port_details->starget; in mptsas_get_starget() 565 starget) in mptsas_set_starget() 568 phy_info->port_details->starget = starget; in mptsas_set_starget() 588 struct scsi_target *starget; in mptsas_add_device_component() local 627 starget = scsi_target(sdev); in mptsas_add_device_component() 628 rphy = dev_to_rphy(starget->dev.parent); in mptsas_add_device_component() 630 sas_info->os.id = starget->id; in mptsas_add_device_component() 631 sas_info->os.channel = starget->channel; in mptsas_add_device_component() 680 struct scsi_target *starget) in mptsas_add_device_component_starget_ir() argument 694 cfg.pageAddr = starget->id; in mptsas_add_device_component_starget_ir() [all …]
|
D | mptsas.h | 155 struct scsi_target *starget; member
|
/linux-6.6.21/drivers/scsi/ |
D | scsi_transport_spi.c | 214 struct scsi_target *starget = sdev->sdev_target; in spi_device_configure() local 224 spi_support_sync(starget) = scsi_device_sync(sdev); in spi_device_configure() 225 spi_support_wide(starget) = scsi_device_wide(sdev); in spi_device_configure() 226 spi_support_dt(starget) = scsi_device_dt(sdev); in spi_device_configure() 227 spi_support_dt_only(starget) = scsi_device_dt_only(sdev); in spi_device_configure() 228 spi_support_ius(starget) = scsi_device_ius(sdev); in spi_device_configure() 231 spi_support_ius(starget) = 0; in spi_device_configure() 233 spi_support_qas(starget) = scsi_device_qas(sdev); in spi_device_configure() 242 struct scsi_target *starget = to_scsi_target(dev); in spi_setup_transport_attrs() local 244 spi_period(starget) = -1; /* illegal value */ in spi_setup_transport_attrs() [all …]
|
D | scsi_scan.c | 278 static struct scsi_device *scsi_alloc_sdev(struct scsi_target *starget, in scsi_alloc_sdev() argument 285 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); in scsi_alloc_sdev() 297 sdev->id = starget->id; in scsi_alloc_sdev() 299 sdev->channel = starget->channel; in scsi_alloc_sdev() 311 sdev->sdev_gendev.parent = get_device(&starget->dev); in scsi_alloc_sdev() 312 sdev->sdev_target = starget; in scsi_alloc_sdev() 339 put_device(&starget->dev); in scsi_alloc_sdev() 357 put_device(&starget->dev); in scsi_alloc_sdev() 389 static void scsi_target_destroy(struct scsi_target *starget) in scsi_target_destroy() argument 391 struct device *dev = &starget->dev; in scsi_target_destroy() [all …]
|
D | scsi.c | 161 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() 816 void starget_for_each_device(struct scsi_target *starget, void *data, in starget_for_each_device() argument 819 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); in starget_for_each_device() 823 if ((sdev->channel == starget->channel) && in starget_for_each_device() 824 (sdev->id == starget->id)) in starget_for_each_device() 844 void __starget_for_each_device(struct scsi_target *starget, void *data, in __starget_for_each_device() argument 847 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); in __starget_for_each_device() 851 if ((sdev->channel == starget->channel) && in __starget_for_each_device() [all …]
|
D | scsi_sysfs.c | 1365 static int scsi_target_add(struct scsi_target *starget) in scsi_target_add() argument 1369 if (starget->state != STARGET_CREATED) in scsi_target_add() 1372 error = device_add(&starget->dev); in scsi_target_add() 1374 dev_err(&starget->dev, "target device_add failed, error %d\n", error); in scsi_target_add() 1377 transport_add_device(&starget->dev); in scsi_target_add() 1378 starget->state = STARGET_RUNNING; in scsi_target_add() 1380 pm_runtime_set_active(&starget->dev); in scsi_target_add() 1381 pm_runtime_enable(&starget->dev); in scsi_target_add() 1382 device_enable_async_suspend(&starget->dev); in scsi_target_add() 1397 struct scsi_target *starget = sdev->sdev_target; in scsi_sysfs_add_sdev() local [all …]
|
D | scsi_lib.c | 83 struct scsi_target *starget = scsi_target(device); in scsi_set_blocked() local 108 atomic_set(&starget->target_blocked, in scsi_set_blocked() 109 starget->max_target_blocked); in scsi_set_blocked() 294 struct scsi_target *starget = scsi_target(sdev); in scsi_device_unbusy() local 298 if (starget->can_queue > 0) in scsi_device_unbusy() 299 atomic_dec(&starget->target_busy); in scsi_device_unbusy() 327 struct scsi_target *starget = scsi_target(current_sdev); in scsi_single_lun_run() local 331 starget->starget_sdev_user = NULL; in scsi_single_lun_run() 344 if (!starget->starget_sdev_user) in scsi_single_lun_run() 345 __starget_for_each_device(starget, current_sdev, in scsi_single_lun_run() [all …]
|
D | scsi_pm.c | 235 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()
|
D | esp_scsi.c | 554 struct scsi_target *target = tp->starget; in esp_need_to_nego_wide() 561 struct scsi_target *target = tp->starget; in esp_need_to_nego_sync() 791 if (spi_width(tp->starget) == tp->nego_goal_width && in esp_maybe_execute_command() 792 spi_period(tp->starget) == tp->nego_goal_period && in esp_maybe_execute_command() 793 spi_offset(tp->starget) == tp->nego_goal_offset) { in esp_maybe_execute_command() 1194 dev = __scsi_device_lookup_by_target(tp->starget, lun); in esp_reconnect() 1414 spi_period(tp->starget) = scsi_period; in esp_setsync() 1415 spi_offset(tp->starget) = scsi_offset; in esp_setsync() 1416 spi_width(tp->starget) = (tp->flags & ESP_TGT_WIDE) ? 1 : 0; in esp_setsync() 1446 spi_display_xfer_agreement(tp->starget); in esp_setsync() [all …]
|
D | ncr53c8xx.c | 1236 struct scsi_target *starget; member 4028 struct scsi_target *starget = tp->starget; in ncr_prepare_nego() local 4032 if (spi_support_wide(starget)) { in ncr_prepare_nego() 4040 if (spi_support_sync(starget)) { in ncr_prepare_nego() 4044 dev_info(&starget->dev, "target did not report SYNC.\n"); in ncr_prepare_nego() 5393 spi_display_xfer_agreement(tp->starget); in ncr_setsync() 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() [all …]
|
/linux-6.6.21/drivers/scsi/aic7xxx/ |
D | aic79xx_osm.c | 592 ahd_linux_target_in_softc(struct scsi_target *starget) in DEF_SCSI_QCMD() 595 *((struct ahd_softc **)dev_to_shost(&starget->dev)->hostdata); in DEF_SCSI_QCMD() 598 target_offset = starget->id; in DEF_SCSI_QCMD() 599 if (starget->channel != 0) in DEF_SCSI_QCMD() 602 return &ahd->platform_data->starget[target_offset]; in DEF_SCSI_QCMD() 606 ahd_linux_target_alloc(struct scsi_target *starget) in ahd_linux_target_alloc() argument 609 *((struct ahd_softc **)dev_to_shost(&starget->dev)->hostdata); in ahd_linux_target_alloc() 612 struct scsi_target **ahd_targp = ahd_linux_target_in_softc(starget); in ahd_linux_target_alloc() 616 char channel = starget->channel + 'A'; in ahd_linux_target_alloc() 622 *ahd_targp = starget; in ahd_linux_target_alloc() [all …]
|
D | aic7xxx_osm.c | 543 ahc_linux_target_in_softc(struct scsi_target *starget) in DEF_SCSI_QCMD() 546 *((struct ahc_softc **)dev_to_shost(&starget->dev)->hostdata); in DEF_SCSI_QCMD() 549 target_offset = starget->id; in DEF_SCSI_QCMD() 550 if (starget->channel != 0) in DEF_SCSI_QCMD() 553 return &ahc->platform_data->starget[target_offset]; in DEF_SCSI_QCMD() 557 ahc_linux_target_alloc(struct scsi_target *starget) in ahc_linux_target_alloc() argument 560 *((struct ahc_softc **)dev_to_shost(&starget->dev)->hostdata); in ahc_linux_target_alloc() 563 struct scsi_target **ahc_targp = ahc_linux_target_in_softc(starget); in ahc_linux_target_alloc() 566 char channel = starget->channel + 'A'; in ahc_linux_target_alloc() 570 target_offset = starget->id; in ahc_linux_target_alloc() [all …]
|
D | aic79xx_proc.c | 160 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()
|
D | aic7xxx_proc.c | 138 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.6.21/drivers/scsi/mpi3mr/ |
D | mpi3mr_os.c | 427 if (tgtdev->starget && tgtdev->starget->hostdata) { in mpi3mr_invalidate_devhandles() 428 tgt_priv = tgtdev->starget->hostdata; in mpi3mr_invalidate_devhandles() 553 struct scsi_target *starget = (struct scsi_target *)data; in mpi3mr_count_tgt_pending() local 554 struct mpi3mr_stgt_priv_data *stgt_priv_data = starget->hostdata; in mpi3mr_count_tgt_pending() 562 if (scmd->device && (scsi_target(scmd->device) == starget)) in mpi3mr_count_tgt_pending() 831 if (tgtdev->starget && tgtdev->starget->hostdata) { in mpi3mr_set_io_divert_for_all_vd_in_tg() 832 tgt_priv = tgtdev->starget->hostdata; in mpi3mr_set_io_divert_for_all_vd_in_tg() 876 if (tgtdev->starget && tgtdev->starget->hostdata) { in mpi3mr_remove_tgtdev_from_host() 877 tgt_priv = tgtdev->starget->hostdata; in mpi3mr_remove_tgtdev_from_host() 884 if (tgtdev->starget) { in mpi3mr_remove_tgtdev_from_host() [all …]
|
/linux-6.6.21/drivers/scsi/mpt3sas/ |
D | mpt3sas_scsih.c | 872 struct scsi_target *starget) in _scsih_display_enclosure_chassis_info() argument 889 } else if (starget) { in _scsih_display_enclosure_chassis_info() 891 starget_printk(KERN_INFO, starget, in _scsih_display_enclosure_chassis_info() 897 starget_printk(KERN_INFO, starget, in _scsih_display_enclosure_chassis_info() 902 starget_printk(KERN_INFO, starget, in _scsih_display_enclosure_chassis_info() 1047 } else if (!sas_device->starget) { in _scsih_sas_device_add() 1374 } else if (!pcie_device->starget) { in _scsih_pcie_device_add() 1868 scsih_target_alloc(struct scsi_target *starget) in scsih_target_alloc() argument 1870 struct Scsi_Host *shost = dev_to_shost(&starget->dev); in scsih_target_alloc() 1884 starget->hostdata = sas_target_priv_data; in scsih_target_alloc() [all …]
|
/linux-6.6.21/include/scsi/ |
D | scsi_transport.h | 71 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.6.21/drivers/scsi/sym53c8xx_2/ |
D | sym_glue.c | 709 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() 1880 static void sym2_set_offset(struct scsi_target *starget, int offset) in sym2_set_offset() argument 1882 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); in sym2_set_offset() 1884 struct sym_tcb *tp = &np->target[starget->id]; in sym2_set_offset() 1890 static void sym2_set_period(struct scsi_target *starget, int period) in sym2_set_period() argument [all …]
|
D | sym_hipd.c | 71 dev_info(&tp->starget->dev, "%s: ", label); in sym_print_nego_msg() 1351 static void sym_check_goals(struct sym_hcb *np, struct scsi_target *starget, argument 1354 if (!spi_support_wide(starget)) 1357 if (!spi_support_sync(starget)) { 1365 if (spi_support_dt(starget)) { 1366 if (spi_support_dt_only(starget)) 1409 struct scsi_target *starget = tp->starget; local 1414 sym_check_goals(np, starget, goal); 2037 struct scsi_target *starget = tp->starget; local 2039 if (tp->tprint.period != spi_period(starget) || [all …]
|
/linux-6.6.21/drivers/scsi/bfa/ |
D | bfad_attr.c | 22 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() 74 bfad_im_get_starget_port_name(struct scsi_target *starget) in bfad_im_get_starget_port_name() argument 83 shost = dev_to_shost(starget->dev.parent); in bfad_im_get_starget_port_name() [all …]
|
/linux-6.6.21/drivers/usb/storage/ |
D | scsiglue.c | 344 static int target_alloc(struct scsi_target *starget) in target_alloc() argument 346 struct us_data *us = host_to_us(dev_to_shost(starget->dev.parent)); in target_alloc() 354 starget->no_report_luns = 1; in target_alloc() 366 starget->pdt_1f_for_no_lun = 1; in target_alloc()
|
/linux-6.6.21/drivers/scsi/libsas/ |
D | sas_scsi_host.c | 791 int sas_target_alloc(struct scsi_target *starget) in sas_target_alloc() argument 793 struct sas_rphy *rphy = dev_to_rphy(starget->dev.parent); in sas_target_alloc() 800 starget->hostdata = found_dev; in sas_target_alloc() 1205 void sas_target_destroy(struct scsi_target *starget) in sas_target_destroy() argument 1207 struct domain_device *found_dev = starget->hostdata; in sas_target_destroy() 1212 starget->hostdata = NULL; in sas_target_destroy()
|
/linux-6.6.21/drivers/scsi/ibmvscsi/ |
D | ibmvfc.c | 1215 static struct ibmvfc_target *__ibmvfc_get_target(struct scsi_target *starget) in __ibmvfc_get_target() argument 1217 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); in __ibmvfc_get_target() 1222 if (tgt->target_id == starget->id) { in __ibmvfc_get_target() 1236 static struct ibmvfc_target *ibmvfc_get_target(struct scsi_target *starget) in ibmvfc_get_target() argument 1238 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); in ibmvfc_get_target() 1243 tgt = __ibmvfc_get_target(starget); in ibmvfc_get_target() 1365 static void ibmvfc_get_starget_node_name(struct scsi_target *starget) in ibmvfc_get_starget_node_name() argument 1367 struct ibmvfc_target *tgt = ibmvfc_get_target(starget); in ibmvfc_get_starget_node_name() 1368 fc_starget_port_name(starget) = tgt ? tgt->ids.node_name : 0; in ibmvfc_get_starget_node_name() 1380 static void ibmvfc_get_starget_port_name(struct scsi_target *starget) in ibmvfc_get_starget_port_name() argument [all …]
|