/drivers/message/fusion/ |
H A D | mptspi.c | 402 static int mptspi_target_alloc(struct scsi_target *starget) argument 404 struct Scsi_Host *shost = dev_to_shost(&starget->dev); 419 vtarget->id = (u8)starget->id; 420 vtarget->channel = (u8)starget->channel; 421 vtarget->starget = starget; 422 starget->hostdata = vtarget; 424 if (starget->channel == 1) { 425 if (mptscsih_is_phys_disk(ioc, 0, starget->id) == 0) 432 starget 462 mptspi_target_destroy(struct scsi_target *starget) argument 476 mptspi_print_write_nego(struct _MPT_SCSI_HOST *hd, struct scsi_target *starget, u32 ii) argument 501 mptspi_print_read_nego(struct _MPT_SCSI_HOST *hd, struct scsi_target *starget, u32 ii) argument 518 mptspi_read_spi_device_pg0(struct scsi_target *starget, struct _CONFIG_PAGE_SCSI_DEVICE_0 *pass_pg0) argument 580 mptspi_getRP(struct scsi_target *starget) argument 600 mptspi_read_parameters(struct scsi_target *starget) argument 726 struct scsi_target *starget; local 809 struct scsi_target *starget = scsi_target(sdev); local 855 mptspi_write_spi_device_pg1(struct scsi_target *starget, struct _CONFIG_PAGE_SCSI_DEVICE_1 *pass_pg1) argument 940 mptspi_write_offset(struct scsi_target *starget, int offset) argument 965 mptspi_write_period(struct scsi_target *starget, int period) argument 997 mptspi_write_dt(struct scsi_target *starget, int dt) argument 1020 mptspi_write_iu(struct scsi_target *starget, int iu) argument 1065 mptspi_write_qas(struct scsi_target *starget, int qas) argument 1088 mptspi_write_width(struct scsi_target *starget, int width) argument 1135 struct scsi_target *starget = scsi_target(sdev); local 1197 mptspi_deny_binding(struct scsi_target *starget) argument 1268 struct scsi_target *starget; local [all...] |
H A D | mptfc.c | 98 static int mptfc_target_alloc(struct scsi_target *starget); 101 static void mptfc_target_destroy(struct scsi_target *starget); 479 if (ri->starget) { 480 vtarget = ri->starget->hostdata; 517 mptfc_target_destroy(struct scsi_target *starget) argument 522 rport = starget_to_rport(starget); 526 ri->starget = NULL; 528 kfree(starget->hostdata); 529 starget->hostdata = NULL; 538 mptfc_target_alloc(struct scsi_target *starget) argument 610 struct scsi_target *starget; local 1094 struct scsi_target *starget; local 1129 struct scsi_target *starget; local [all...] |
H A D | mptsas.c | 531 return phy_info->port_details->starget; 538 starget) 541 phy_info->port_details->starget = starget; 559 struct scsi_target *starget; local 598 starget = scsi_target(sdev); 599 rphy = dev_to_rphy(starget->dev.parent); 601 sas_info->os.id = starget->id; 602 sas_info->os.channel = starget->channel; 652 struct scsi_target *starget) 537 mptsas_set_starget(struct mptsas_phyinfo *phy_info, struct scsi_target * starget) argument 651 mptsas_add_device_component_starget_ir(MPT_ADAPTER *ioc, struct scsi_target *starget) argument 755 mptsas_add_device_component_starget(MPT_ADAPTER *ioc, struct scsi_target *starget) argument 1092 mptsas_block_io_starget(struct scsi_target *starget) argument 1716 mptsas_target_alloc(struct scsi_target *starget) argument 1794 mptsas_target_destroy(struct scsi_target *starget) argument 1850 struct scsi_target *starget; local 4220 mptsas_reprobe_target(struct scsi_target *starget, int uld_attach) argument 4310 struct scsi_target * starget; local [all...] |
H A D | mptsas.h | 154 struct scsi_target *starget; member in struct:mptsas_portinfo_details
|
/drivers/scsi/ |
H A D | scsi_transport_spi.c | 226 struct scsi_target *starget = sdev->sdev_target; local 234 spi_support_sync(starget) = scsi_device_sync(sdev); 235 spi_support_wide(starget) = scsi_device_wide(sdev); 236 spi_support_dt(starget) = scsi_device_dt(sdev); 237 spi_support_dt_only(starget) = scsi_device_dt_only(sdev); 238 spi_support_ius(starget) = scsi_device_ius(sdev); 241 spi_support_ius(starget) = 0; 243 spi_support_qas(starget) = scsi_device_qas(sdev); 252 struct scsi_target *starget = to_scsi_target(dev); local 254 spi_period(starget) 413 struct scsi_target *starget = transport_class_to_starget(dev); local 493 struct scsi_target *starget = transport_class_to_starget(dev); local 509 struct scsi_target *starget = transport_class_to_starget(cdev); local 537 struct scsi_target *starget = transport_class_to_starget(cdev); local 554 struct scsi_target *starget = transport_class_to_starget(cdev); local 763 struct scsi_target *starget = sdev->sdev_target; local 866 struct scsi_target *starget = sdev->sdev_target; local 1009 struct scsi_target *starget = sdev->sdev_target; local 1120 spi_display_xfer_agreement(struct scsi_target *starget) argument 1373 struct scsi_target *starget; local 1441 struct scsi_target *starget = transport_class_to_starget(cdev); local [all...] |
H A D | scsi_scan.c | 210 * @starget: which target to allocate a &scsi_device for 222 static struct scsi_device *scsi_alloc_sdev(struct scsi_target *starget, argument 227 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); 241 sdev->id = starget->id; 243 sdev->channel = starget->channel; 254 sdev->sdev_gendev.parent = get_device(&starget->dev); 255 sdev->sdev_target = starget; 283 put_device(&starget->dev); 316 static void scsi_target_destroy(struct scsi_target *starget) argument 318 struct device *dev = &starget 335 struct scsi_target *starget = to_scsi_target(dev); local 355 struct scsi_target *starget, *found_starget = NULL; local 384 struct scsi_target *starget local 399 scsi_target_reap_ref_put(struct scsi_target *starget) argument 424 struct scsi_target *starget; local 513 scsi_target_reap(struct scsi_target *starget) argument 1043 scsi_probe_and_add_lun(struct scsi_target *starget, u64 lun, int *bflagsp, struct scsi_device **sdevp, int rescan, void *hostdata) argument 1194 scsi_sequential_lun_scan(struct scsi_target *starget, int bflags, int scsi_level, int rescan) argument 1351 scsi_report_lun_scan(struct scsi_target *starget, int bflags, int rescan) argument 1542 struct scsi_target *starget; local 1608 struct scsi_target *starget; local 1960 struct scsi_target *starget; local [all...] |
H A D | scsi_sysfs.c | 995 static int scsi_target_add(struct scsi_target *starget) argument 999 if (starget->state != STARGET_CREATED) 1002 error = device_add(&starget->dev); 1004 dev_err(&starget->dev, "target device_add failed, error %d\n", error); 1007 transport_add_device(&starget->dev); 1008 starget->state = STARGET_RUNNING; 1010 pm_runtime_set_active(&starget->dev); 1011 pm_runtime_enable(&starget->dev); 1012 device_enable_async_suspend(&starget->dev); 1028 struct scsi_target *starget local 1140 __scsi_remove_target(struct scsi_target *starget) argument 1173 struct scsi_target *starget, *last = NULL; local 1250 struct scsi_target *starget = sdev->sdev_target; local [all...] |
H A D | scsi.c | 728 struct scsi_target *starget = scsi_target(sdev); local 741 if (atomic_read(&starget->target_blocked)) 742 atomic_set(&starget->target_blocked, 0); 1199 * @starget: target whose devices we want to iterate over. 1203 * This traverses over each device of @starget. The devices have 1207 void starget_for_each_device(struct scsi_target *starget, void *data, argument 1210 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); 1214 if ((sdev->channel == starget->channel) && 1215 (sdev->id == starget->id)) 1223 * @starget 1235 __starget_for_each_device(struct scsi_target *starget, void *data, void (*fn)(struct scsi_device *, void *)) argument 1264 __scsi_device_lookup_by_target(struct scsi_target *starget, u64 lun) argument 1289 scsi_device_lookup_by_target(struct scsi_target *starget, u64 lun) argument [all...] |
H A D | scsi_pm.c | 308 void scsi_autopm_get_target(struct scsi_target *starget) argument 310 pm_runtime_get_sync(&starget->dev); 313 void scsi_autopm_put_target(struct scsi_target *starget) argument 315 pm_runtime_put_sync(&starget->dev);
|
H A D | scsi_lib.c | 87 struct scsi_target *starget = scsi_target(device); local 112 atomic_set(&starget->target_blocked, 113 starget->max_target_blocked); 310 struct scsi_target *starget = scsi_target(sdev); local 314 if (starget->can_queue > 0) 315 atomic_dec(&starget->target_busy); 346 struct scsi_target *starget = scsi_target(current_sdev); local 350 starget->starget_sdev_user = NULL; 362 if (starget->starget_sdev_user) 364 list_for_each_entry_safe(sdev, tmp, &starget 390 scsi_target_is_busy(struct scsi_target *starget) argument 1431 struct scsi_target *starget = scsi_target(sdev); local 1574 struct scsi_target *starget; local 2799 scsi_target_quiesce(struct scsi_target *starget) argument 2812 scsi_target_resume(struct scsi_target *starget) argument [all...] |
H A D | esp_scsi.c | 510 struct scsi_target *target = tp->starget; 517 struct scsi_target *target = tp->starget; 738 if (spi_width(tp->starget) == tp->nego_goal_width && 739 spi_period(tp->starget) == tp->nego_goal_period && 740 spi_offset(tp->starget) == tp->nego_goal_offset) { 1164 dev = __scsi_device_lookup_by_target(tp->starget, lun); 1366 spi_period(tp->starget) = scsi_period; 1367 spi_offset(tp->starget) = scsi_offset; 1368 spi_width(tp->starget) = (tp->flags & ESP_TGT_WIDE) ? 1 : 0; 1398 spi_display_xfer_agreement(tp->starget); 2361 esp_target_alloc(struct scsi_target *starget) argument 2371 esp_target_destroy(struct scsi_target *starget) argument [all...] |
H A D | ncr53c8xx.c | 1246 struct scsi_target *starget; member in struct:tcb 4065 struct scsi_target *starget = tp->starget; local 4069 if (spi_support_wide(starget)) { 4077 if (spi_support_sync(starget)) { 4081 dev_info(&starget->dev, "target did not report SYNC.\n"); 5568 spi_display_xfer_agreement(tp->starget); 6701 struct scsi_target *starget = tp->starget; local 6859 spi_period(starget) 8541 ncr53c8xx_set_period(struct scsi_target *starget, int period) argument 8557 ncr53c8xx_set_offset(struct scsi_target *starget, int offset) argument 8573 ncr53c8xx_set_width(struct scsi_target *starget, int width) argument [all...] |
H A D | virtio_scsi.c | 721 static int virtscsi_target_alloc(struct scsi_target *starget) argument 723 struct Scsi_Host *sh = dev_to_shost(starget->dev.parent); 735 starget->hostdata = tgt; 739 static void virtscsi_target_destroy(struct scsi_target *starget) argument 741 struct virtio_scsi_target_state *tgt = starget->hostdata;
|
/drivers/scsi/aic7xxx/ |
H A D | aic79xx_osm.c | 594 ahd_linux_target_in_softc(struct scsi_target *starget) argument 597 *((struct ahd_softc **)dev_to_shost(&starget->dev)->hostdata); 600 target_offset = starget->id; 601 if (starget->channel != 0) 604 return &ahd->platform_data->starget[target_offset]; 608 ahd_linux_target_alloc(struct scsi_target *starget) argument 611 *((struct ahd_softc **)dev_to_shost(&starget->dev)->hostdata); 614 struct scsi_target **ahd_targp = ahd_linux_target_in_softc(starget); 618 char channel = starget->channel + 'A'; 624 *ahd_targp = starget; 664 ahd_linux_target_destroy(struct scsi_target *starget) argument 1341 struct scsi_target *starget; local 1706 struct scsi_target *starget; local 2400 ahd_linux_set_width(struct scsi_target *starget, int width) argument 2414 ahd_linux_set_period(struct scsi_target *starget, int period) argument 2467 ahd_linux_set_offset(struct scsi_target *starget, int offset) argument 2502 ahd_linux_set_dt(struct scsi_target *starget, int dt) argument 2544 ahd_linux_set_qas(struct scsi_target *starget, int qas) argument 2583 ahd_linux_set_iu(struct scsi_target *starget, int iu) argument 2623 ahd_linux_set_rd_strm(struct scsi_target *starget, int rdstrm) argument 2659 ahd_linux_set_wr_flow(struct scsi_target *starget, int wrflow) argument 2695 ahd_linux_set_rti(struct scsi_target *starget, int rti) argument 2739 ahd_linux_set_pcomp_en(struct scsi_target *starget, int pcomp) argument 2789 ahd_linux_set_hold_mcs(struct scsi_target *starget, int hold) argument [all...] |
H A D | aic7xxx_osm.c | 544 ahc_linux_target_in_softc(struct scsi_target *starget) argument 547 *((struct ahc_softc **)dev_to_shost(&starget->dev)->hostdata); 550 target_offset = starget->id; 551 if (starget->channel != 0) 554 return &ahc->platform_data->starget[target_offset]; 558 ahc_linux_target_alloc(struct scsi_target *starget) argument 561 *((struct ahc_softc **)dev_to_shost(&starget->dev)->hostdata); 564 struct scsi_target **ahc_targp = ahc_linux_target_in_softc(starget); 569 char channel = starget->channel + 'A'; 573 target_offset = starget 632 ahc_linux_target_destroy(struct scsi_target *starget) argument 644 struct scsi_target *starget = sdev->sdev_target; local 1233 struct scsi_target *starget; local 1625 struct scsi_target *starget; local 2349 ahc_linux_set_width(struct scsi_target *starget, int width) argument 2363 ahc_linux_set_period(struct scsi_target *starget, int period) argument 2407 ahc_linux_set_offset(struct scsi_target *starget, int offset) argument 2435 ahc_linux_set_dt(struct scsi_target *starget, int dt) argument [all...] |
H A D | aic79xx_proc.c | 162 struct scsi_target *starget; local 172 starget = ahd->platform_data->starget[target_id]; 173 if (starget == NULL) 184 dev = scsi_device_lookup_by_target(starget, lun);
|
H A D | aic7xxx_proc.c | 138 struct scsi_target *starget; local 150 starget = ahc->platform_data->starget[target_offset]; 151 if (!starget) 162 sdev = scsi_device_lookup_by_target(starget, lun);
|
/drivers/scsi/mpt2sas/ |
H A D | mpt2sas_scsih.c | 628 } else if (!sas_device->starget) { 1281 * @starget: scsi target struct 1287 _scsih_target_alloc(struct scsi_target *starget) argument 1289 struct Scsi_Host *shost = dev_to_shost(&starget->dev); 1302 starget->hostdata = sas_target_priv_data; 1303 sas_target_priv_data->starget = starget; 1307 if (starget->channel == RAID_CHANNEL) { 1309 raid_device = _scsih_raid_device_find_by_id(ioc, starget->id, 1310 starget 1351 _scsih_target_destroy(struct scsi_target *starget) argument 1407 struct scsi_target *starget; local 1465 struct scsi_target *starget; local 2544 struct scsi_target *starget = scmd->device->sdev_target; local 2664 struct scsi_target *starget = scmd->device->sdev_target; local 2724 struct scsi_target *starget = scmd->device->sdev_target; local 4098 struct scsi_target *starget = scmd->device->sdev_target; local 4389 struct scsi_target *starget; local 5153 struct scsi_target *starget; local 6108 struct scsi_target *starget = NULL; local 6142 struct scsi_target *starget = NULL; local 6182 struct scsi_target *starget = NULL; local 6727 struct scsi_target *starget; local 6829 struct scsi_target *starget; local [all...] |
/drivers/scsi/mpt3sas/ |
H A D | mpt3sas_scsih.c | 672 } else if (!sas_device->starget) { 1150 * @starget: scsi target struct 1156 _scsih_target_alloc(struct scsi_target *starget) argument 1158 struct Scsi_Host *shost = dev_to_shost(&starget->dev); 1171 starget->hostdata = sas_target_priv_data; 1172 sas_target_priv_data->starget = starget; 1176 if (starget->channel == RAID_CHANNEL) { 1178 raid_device = _scsih_raid_device_find_by_id(ioc, starget->id, 1179 starget 1220 _scsih_target_destroy(struct scsi_target *starget) argument 1276 struct scsi_target *starget; local 1334 struct scsi_target *starget; local 2203 struct scsi_target *starget = scmd->device->sdev_target; local 2379 struct scsi_target *starget = scmd->device->sdev_target; local 3710 struct scsi_target *starget = scmd->device->sdev_target; local 4000 struct scsi_target *starget; local 4770 struct scsi_target *starget; local 5777 struct scsi_target *starget = NULL; local 5811 struct scsi_target *starget = NULL; local 5851 struct scsi_target *starget = NULL; local 6395 struct scsi_target *starget; local 6495 struct scsi_target *starget; local [all...] |
/drivers/scsi/sym53c8xx_2/ |
H A D | sym_hipd.c | 84 dev_info(&tp->starget->dev, "%s: ", label); 1364 static void sym_check_goals(struct sym_hcb *np, struct scsi_target *starget, argument 1367 if (!spi_support_wide(starget)) 1370 if (!spi_support_sync(starget)) { 1378 if (spi_support_dt(starget)) { 1379 if (spi_support_dt_only(starget)) 1422 struct scsi_target *starget = tp->starget; local 1427 sym_check_goals(np, starget, goal); 2050 struct scsi_target *starget local 2078 struct scsi_target *starget = tp->starget; local 2108 struct scsi_target *starget = tp->starget; local 2141 struct scsi_target *starget = tp->starget; local 3286 struct scsi_target *starget; local [all...] |
H A D | sym_glue.c | 731 dev_info(&tp->starget->dev, 782 tp->starget = sdev->sdev_target; 784 spi_min_period(tp->starget) = tp->usr_period; 785 spi_max_width(tp->starget) = tp->usr_width; 853 starget_printk(KERN_WARNING, tp->starget, 866 tp->starget = NULL; 1905 static void sym2_set_offset(struct scsi_target *starget, int offset) argument 1907 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); 1909 struct sym_tcb *tp = &np->target[starget->id]; 1915 static void sym2_set_period(struct scsi_target *starget, in argument 1930 sym2_set_width(struct scsi_target *starget, int width) argument 1945 sym2_set_dt(struct scsi_target *starget, int dt) argument [all...] |
/drivers/usb/storage/ |
H A D | scsiglue.c | 295 static int target_alloc(struct scsi_target *starget) argument 297 struct us_data *us = host_to_us(dev_to_shost(starget->dev.parent)); 305 starget->no_report_luns = 1; 317 starget->pdt_1f_for_no_lun = 1;
|
/drivers/scsi/bfa/ |
H A D | bfad_attr.c | 29 bfad_im_get_starget_port_id(struct scsi_target *starget) argument 38 shost = dev_to_shost(starget->dev.parent); 43 itnim = bfad_get_itnim(im_port, starget->id); 47 fc_starget_port_id(starget) = fc_id; 55 bfad_im_get_starget_node_name(struct scsi_target *starget) argument 64 shost = dev_to_shost(starget->dev.parent); 69 itnim = bfad_get_itnim(im_port, starget->id); 73 fc_starget_node_name(starget) = cpu_to_be64(node_name); 81 bfad_im_get_starget_port_name(struct scsi_target *starget) argument 90 shost = dev_to_shost(starget [all...] |
/drivers/scsi/ibmvscsi/ |
H A D | ibmvfc.c | 906 * @starget: scsi target struct 911 static struct ibmvfc_target *__ibmvfc_get_target(struct scsi_target *starget) argument 913 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); 918 if (tgt->target_id == starget->id) { 927 * @starget: scsi target struct 932 static struct ibmvfc_target *ibmvfc_get_target(struct scsi_target *starget) argument 934 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); 939 tgt = __ibmvfc_get_target(starget); 1056 * @starget: scsi target struct 1061 static void ibmvfc_get_starget_node_name(struct scsi_target *starget) argument 1076 ibmvfc_get_starget_port_name(struct scsi_target *starget) argument 1091 ibmvfc_get_starget_port_id(struct scsi_target *starget) argument 2158 struct scsi_target *starget = scsi_target(sdev); local 2500 struct scsi_target *starget = scsi_target(sdev); local 2870 ibmvfc_target_alloc(struct scsi_target *starget) argument [all...] |
/drivers/scsi/qla2xxx/ |
H A D | qla_attr.c | 1697 qla2x00_get_starget_node_name(struct scsi_target *starget) argument 1699 struct Scsi_Host *host = dev_to_shost(starget->dev.parent); 1706 starget->id == fcport->rport->scsi_target_id) { 1712 fc_starget_node_name(starget) = node_name; 1716 qla2x00_get_starget_port_name(struct scsi_target *starget) argument 1718 struct Scsi_Host *host = dev_to_shost(starget->dev.parent); 1725 starget->id == fcport->rport->scsi_target_id) { 1731 fc_starget_port_name(starget) = port_name; 1735 qla2x00_get_starget_port_id(struct scsi_target *starget) argument 1737 struct Scsi_Host *host = dev_to_shost(starget [all...] |