Home
last modified time | relevance | path

Searched refs:hostdata (Results 1 – 147 of 147) sorted by relevance

/linux-4.4.14/drivers/scsi/
Din2000.c190 static inline uchar read_3393(struct IN2000_hostdata *hostdata, uchar reg_num) in read_3393() argument
200 static inline void write_3393(struct IN2000_hostdata *hostdata, uchar reg_num, uchar value) in write_3393() argument
207 static inline void write_3393_cmd(struct IN2000_hostdata *hostdata, uchar cmd) in write_3393_cmd() argument
216 static uchar read_1_byte(struct IN2000_hostdata *hostdata) in read_1_byte() argument
220 write_3393(hostdata, WD_CONTROL, CTRL_IDI | CTRL_EDI | CTRL_POLLED); in read_1_byte()
221 write_3393_cmd(hostdata, WD_CMD_TRANS_INFO | 0x80); in read_1_byte()
225 x = read_3393(hostdata, WD_DATA); in read_1_byte()
231 static void write_3393_count(struct IN2000_hostdata *hostdata, unsigned long value) in write_3393_count() argument
240 static unsigned long read_3393_count(struct IN2000_hostdata *hostdata) in read_3393_count() argument
339 struct IN2000_hostdata *hostdata; in in2000_queuecommand_lck() local
[all …]
D53c700.c245 NCR_700_offset_period_to_sxfer(struct NCR_700_Host_Parameters *hostdata, in NCR_700_offset_period_to_sxfer() argument
250 __u8 min_xferp = (hostdata->chip710 in NCR_700_offset_period_to_sxfer()
252 __u8 max_offset = (hostdata->chip710 in NCR_700_offset_period_to_sxfer()
258 if(period < hostdata->min_period) { in NCR_700_offset_period_to_sxfer()
260 period = hostdata->min_period; in NCR_700_offset_period_to_sxfer()
262 XFERP = (period*4 * hostdata->sync_clock)/1000 - 4; in NCR_700_offset_period_to_sxfer()
277 struct NCR_700_Host_Parameters *hostdata = in NCR_700_get_SXFER() local
278 (struct NCR_700_Host_Parameters *)SDp->host->hostdata[0]; in NCR_700_get_SXFER()
280 return NCR_700_offset_period_to_sxfer(hostdata, in NCR_700_get_SXFER()
287 struct NCR_700_Host_Parameters *hostdata, struct device *dev) in NCR_700_detect() argument
[all …]
Dwd33c93.c96 #define optimum_sx_per(hostdata) (hostdata)->sx_table[1].period_ns argument
378 struct WD33C93_hostdata *hostdata; in wd33c93_queuecommand_lck() local
381 hostdata = (struct WD33C93_hostdata *) cmd->device->host->hostdata; in wd33c93_queuecommand_lck()
447 spin_lock_irq(&hostdata->lock); in wd33c93_queuecommand_lck()
449 if (!(hostdata->input_Q) || (cmd->cmnd[0] == REQUEST_SENSE)) { in wd33c93_queuecommand_lck()
450 cmd->host_scribble = (uchar *) hostdata->input_Q; in wd33c93_queuecommand_lck()
451 hostdata->input_Q = cmd; in wd33c93_queuecommand_lck()
453 for (tmp = (struct scsi_cmnd *) hostdata->input_Q; in wd33c93_queuecommand_lck()
467 spin_unlock_irq(&hostdata->lock); in wd33c93_queuecommand_lck()
486 struct WD33C93_hostdata *hostdata = in DEF_SCSI_QCMD() local
[all …]
DNCR5380.c530 static void NCR5380_set_timer(struct NCR5380_hostdata *hostdata, unsigned long timeout) in NCR5380_set_timer() argument
532 hostdata->time_expires = jiffies + timeout; in NCR5380_set_timer()
533 schedule_delayed_work(&hostdata->coroutine, timeout); in NCR5380_set_timer()
570 struct NCR5380_hostdata *hostdata = (struct NCR5380_hostdata *) instance->hostdata; in NCR5380_probe_irq() local
593 NCR5380_write(SELECT_ENABLE_REG, hostdata->id_mask); in NCR5380_probe_irq()
594 NCR5380_write(OUTPUT_DATA_REG, hostdata->id_mask); in NCR5380_probe_irq()
621 struct NCR5380_hostdata *hostdata = shost_priv(instance); in NCR5380_info() local
623 return hostdata->info; in NCR5380_info()
628 struct NCR5380_hostdata *hostdata = shost_priv(instance); in prepare_info() local
630 snprintf(hostdata->info, sizeof(hostdata->info), in prepare_info()
[all …]
Datari_NCR5380.c226 struct NCR5380_hostdata *hostdata = \
227 (struct NCR5380_hostdata *)(in)->hostdata
228 #define HOSTDATA(in) ((struct NCR5380_hostdata *)(in)->hostdata)
274 static void __init init_tags(struct NCR5380_hostdata *hostdata) in init_tags() argument
279 if (!(hostdata->flags & FLAG_TAGGED_QUEUING)) in init_tags()
284 ta = &hostdata->TagAlloc[target][lun]; in init_tags()
309 if (hostdata->busy[cmd->device->id] & (1 << lun)) in is_lun_busy()
312 !(hostdata->flags & FLAG_TAGGED_QUEUING) || in is_lun_busy()
315 if (hostdata->TagAlloc[scmd_id(cmd)][lun].nr_allocated >= in is_lun_busy()
316 hostdata->TagAlloc[scmd_id(cmd)][lun].queue_size) { in is_lun_busy()
[all …]
Dlasi700.c102 struct NCR_700_Host_Parameters *hostdata; in lasi700_probe() local
105 hostdata = kzalloc(sizeof(*hostdata), GFP_KERNEL); in lasi700_probe()
106 if (!hostdata) { in lasi700_probe()
111 hostdata->dev = &dev->dev; in lasi700_probe()
113 hostdata->base = ioremap_nocache(base, 0x100); in lasi700_probe()
114 hostdata->differential = 0; in lasi700_probe()
117 hostdata->clock = LASI700_CLOCK; in lasi700_probe()
118 hostdata->force_le_on_be = 1; in lasi700_probe()
120 hostdata->clock = LASI710_CLOCK; in lasi700_probe()
121 hostdata->force_le_on_be = 0; in lasi700_probe()
[all …]
Dsni_53c710.c71 struct NCR_700_Host_Parameters *hostdata; in snirm710_probe() local
80 hostdata = kzalloc(sizeof(*hostdata), GFP_KERNEL); in snirm710_probe()
81 if (!hostdata) { in snirm710_probe()
86 hostdata->dev = &dev->dev; in snirm710_probe()
88 hostdata->base = ioremap_nocache(base, 0x100); in snirm710_probe()
89 hostdata->differential = 0; in snirm710_probe()
91 hostdata->clock = SNIRM710_CLOCK; in snirm710_probe()
92 hostdata->force_le_on_be = 1; in snirm710_probe()
93 hostdata->chip710 = 1; in snirm710_probe()
94 hostdata->burst_length = 4; in snirm710_probe()
[all …]
Dbvme6000_scsi.c41 struct NCR_700_Host_Parameters *hostdata; in bvme6000_probe() local
46 hostdata = kzalloc(sizeof(struct NCR_700_Host_Parameters), GFP_KERNEL); in bvme6000_probe()
47 if (!hostdata) { in bvme6000_probe()
54 hostdata->base = (void __iomem *)BVME_NCR53C710_BASE; in bvme6000_probe()
55 hostdata->clock = 40; /* XXX - depends on the CPU clock! */ in bvme6000_probe()
56 hostdata->chip710 = 1; in bvme6000_probe()
57 hostdata->dmode_extra = DMODE_FC2; in bvme6000_probe()
58 hostdata->dcntl_extra = EA_710; in bvme6000_probe()
59 hostdata->ctest7_extra = CTEST7_TT1; in bvme6000_probe()
62 host = NCR_700_detect(&bvme6000_scsi_driver_template, hostdata, in bvme6000_probe()
[all …]
Dmvme16x_scsi.c40 struct NCR_700_Host_Parameters *hostdata; in mvme16x_probe() local
51 hostdata = kzalloc(sizeof(struct NCR_700_Host_Parameters), GFP_KERNEL); in mvme16x_probe()
52 if (hostdata == NULL) { in mvme16x_probe()
59 hostdata->base = (void __iomem *)0xfff47000UL; in mvme16x_probe()
60 hostdata->clock = 50; /* XXX - depends on the CPU clock! */ in mvme16x_probe()
61 hostdata->chip710 = 1; in mvme16x_probe()
62 hostdata->dmode_extra = DMODE_FC2; in mvme16x_probe()
63 hostdata->dcntl_extra = EA_710; in mvme16x_probe()
64 hostdata->ctest7_extra = CTEST7_TT1; in mvme16x_probe()
67 host = NCR_700_detect(&mvme16x_scsi_driver_template, hostdata, in mvme16x_probe()
[all …]
Da4000t.c38 struct NCR_700_Host_Parameters *hostdata; in amiga_a4000t_scsi_probe() local
49 hostdata = kzalloc(sizeof(struct NCR_700_Host_Parameters), in amiga_a4000t_scsi_probe()
51 if (!hostdata) { in amiga_a4000t_scsi_probe()
59 hostdata->base = ZTWO_VADDR(scsi_addr); in amiga_a4000t_scsi_probe()
60 hostdata->clock = 50; in amiga_a4000t_scsi_probe()
61 hostdata->chip710 = 1; in amiga_a4000t_scsi_probe()
62 hostdata->dmode_extra = DMODE_FC2; in amiga_a4000t_scsi_probe()
63 hostdata->dcntl_extra = EA_710; in amiga_a4000t_scsi_probe()
66 host = NCR_700_detect(&a4000t_scsi_driver_template, hostdata, in amiga_a4000t_scsi_probe()
91 kfree(hostdata); in amiga_a4000t_scsi_probe()
[all …]
Dzorro7xx.c78 struct NCR_700_Host_Parameters *hostdata; in zorro7xx_init_one() local
97 hostdata = kzalloc(sizeof(struct NCR_700_Host_Parameters), GFP_KERNEL); in zorro7xx_init_one()
98 if (!hostdata) { in zorro7xx_init_one()
105 hostdata->base = ioremap(ioaddr, zorro_resource_len(z)); in zorro7xx_init_one()
107 hostdata->base = ZTWO_VADDR(ioaddr); in zorro7xx_init_one()
109 hostdata->clock = 50; in zorro7xx_init_one()
110 hostdata->chip710 = 1; in zorro7xx_init_one()
113 hostdata->ctest7_extra = CTEST7_TT1; in zorro7xx_init_one()
118 host = NCR_700_detect(&zorro7xx_scsi_driver_template, hostdata, in zorro7xx_init_one()
145 iounmap(hostdata->base); in zorro7xx_init_one()
[all …]
D53c700.h108 struct NCR_700_Device_Parameters *hostdata = SDp->hostdata; in NCR_700_get_sense_cmnd() local
110 return hostdata->cmnd; in NCR_700_get_sense_cmnd()
116 struct NCR_700_Device_Parameters *hostdata = SDp->hostdata; in NCR_700_set_depth() local
118 hostdata->depth = depth; in NCR_700_set_depth()
123 struct NCR_700_Device_Parameters *hostdata = SDp->hostdata; in NCR_700_get_depth() local
125 return hostdata->depth; in NCR_700_get_depth()
256 #define bE (hostdata->force_le_on_be ? 0 : 3)
257 #define bSWAP (hostdata->force_le_on_be)
258 #define bEBus (!hostdata->force_le_on_be)
479 const struct NCR_700_Host_Parameters *hostdata in NCR_700_readb() local
[all …]
Dsim710.c102 struct NCR_700_Host_Parameters *hostdata = in sim710_probe_common() local
109 if(hostdata == NULL) { in sim710_probe_common()
121 hostdata->base = ioport_map(base_addr, 64); in sim710_probe_common()
122 hostdata->differential = differential; in sim710_probe_common()
123 hostdata->clock = clock; in sim710_probe_common()
124 hostdata->chip710 = 1; in sim710_probe_common()
125 hostdata->burst_length = 8; in sim710_probe_common()
128 if((host = NCR_700_detect(&sim710_driver_template, hostdata, dev)) in sim710_probe_common()
151 kfree(hostdata); in sim710_probe_common()
159 struct NCR_700_Host_Parameters *hostdata = in sim710_device_remove() local
[all …]
DNCR_D700.c180 struct NCR_700_Host_Parameters *hostdata; in NCR_D700_probe_one() local
184 hostdata = kzalloc(sizeof(*hostdata), GFP_KERNEL); in NCR_D700_probe_one()
185 if (!hostdata) { in NCR_D700_probe_one()
199 hostdata->base = ioport_map(region, 64); in NCR_D700_probe_one()
200 hostdata->differential = (((1<<siop) & differential) != 0); in NCR_D700_probe_one()
201 hostdata->clock = NCR_D700_CLOCK_MHZ; in NCR_D700_probe_one()
202 hostdata->burst_length = 8; in NCR_D700_probe_one()
205 host = NCR_700_detect(&NCR_D700_driver_template, hostdata, p->dev); in NCR_D700_probe_one()
223 kfree(hostdata); in NCR_D700_probe_one()
357 kfree((struct NCR_700_Host_Parameters *)host->hostdata[0]); in NCR_D700_remove_one()
Ddtc.c241 ((struct NCR5380_hostdata *)(instance)->hostdata)->base = base; in dtc_detect()
333 struct NCR5380_hostdata *hostdata = shost_priv(instance); in NCR5380_pread() local
364 if (i > hostdata->spin_max_r) in NCR5380_pread()
365 hostdata->spin_max_r = i; in NCR5380_pread()
385 struct NCR5380_hostdata *hostdata = shost_priv(instance); in NCR5380_pwrite() local
418 if (i > hostdata->spin_max_w) in NCR5380_pwrite()
419 hostdata->spin_max_w = i; in NCR5380_pwrite()
Dmac_scsi.c234 struct NCR5380_hostdata *hostdata = shost_priv(instance); in macscsi_pread() local
241 s = hostdata->pdma_base + (INPUT_DATA_REG << 4); in macscsi_pread()
328 struct NCR5380_hostdata *hostdata = shost_priv(instance); in macscsi_pwrite() local
336 d = hostdata->pdma_base + (OUTPUT_DATA_REG << 4); in macscsi_pwrite()
429 struct NCR5380_hostdata *hostdata = shost_priv(instance); in mac_scsi_probe() local
431 hostdata->pdma_base = (unsigned char *)pdma_mem->start; in mac_scsi_probe()
Din2000.h43 #define DB(f,a) if (hostdata->args & (f)) a;
52 #define read1_io(a) (inb(hostdata->io_base+(a)))
53 #define read2_io(a) (inw(hostdata->io_base+(a)))
54 #define write1_io(b,a) (outb((b),hostdata->io_base+(a)))
55 #define write2_io(w,a) (outw((w),hostdata->io_base+(a)))
Deata_generic.h86 #define HD(cmd) ((hostdata *)&(cmd->device->host->hostdata))
88 #define SD(host) ((hostdata *)&(host->hostdata))
363 }hostdata; typedef
Dpas16.c502 struct NCR5380_hostdata *hostdata = shost_priv(instance); in NCR5380_pread() local
515 if (ii > hostdata->spin_max_r) in NCR5380_pread()
516 hostdata->spin_max_r = ii; in NCR5380_pread()
539 struct NCR5380_hostdata *hostdata = shost_priv(instance); in NCR5380_pwrite() local
552 if (ii > hostdata->spin_max_w) in NCR5380_pwrite()
553 hostdata->spin_max_w = ii; in NCR5380_pwrite()
Deata.c816 struct hostdata { struct
878 static void flush_dev(struct scsi_device *, unsigned long, struct hostdata *,
1084 struct hostdata *ha; in port_detect()
1262 sh[j] = shost = scsi_register(tpnt, sizeof(struct hostdata)); in port_detect()
1278 ha = (struct hostdata *)shost->hostdata; in port_detect()
1280 memset(ha, 0, sizeof(struct hostdata)); in port_detect()
1598 static void map_dma(unsigned int i, struct hostdata *ha) in map_dma()
1639 static void unmap_dma(unsigned int i, struct hostdata *ha) in unmap_dma()
1665 static void sync_dma(unsigned int i, struct hostdata *ha) in sync_dma()
1693 static void scsi_to_dev_dir(unsigned int i, struct hostdata *ha) in scsi_to_dev_dir()
[all …]
Dqlogicfas408.h102 #define get_priv_by_cmd(x) (struct qlogicfas408_priv *)&((x)->device->host->hostdata[0])
103 #define get_priv_by_host(x) (struct qlogicfas408_priv *)&((x)->hostdata[0])
Dnsp32.c369 nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; in nsp32_build_identify()
390 nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; in nsp32_build_sdtr()
407 nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; in nsp32_build_nop()
425 nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; in nsp32_build_reject()
456 nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; in nsp32_selection_autopara()
587 nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; in nsp32_selection_autoscsi()
811 nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; in nsp32_reselection()
865 nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; in nsp32_setup_sg_table()
911 nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; in nsp32_queuecommand_lck()
1455 data = (nsp32_hw_data *)host->hostdata; in nsp32_show_info()
[all …]
Da100u2w.c919 host = (struct orc_host *) cmd->device->host->hostdata; in inia100_queue_lck()
947 host = (struct orc_host *) cmd->device->host->hostdata; in DEF_SCSI_QCMD()
962 host = (struct orc_host *) cmd->device->host->hostdata; in inia100_bus_reset()
976 host = (struct orc_host *) cmd->device->host->hostdata; in inia100_device_reset()
1060 struct orc_host *host = (struct orc_host *)shost->hostdata; in inia100_intr()
1119 host = (struct orc_host *)shost->hostdata; in inia100_probe_one()
1198 struct orc_host *host = (struct orc_host *)shost->hostdata; in inia100_remove_one()
Dipr.c3355 struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; in ipr_read_trace()
3389 struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; in ipr_show_fw_version()
3423 struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; in ipr_show_log_level()
3446 struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; in ipr_store_log_level()
3481 struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; in ipr_store_diagnostics()
3537 struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; in ipr_show_adapter_state()
3566 struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; in ipr_store_adapter_state()
3617 struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; in ipr_store_reset_adapter()
3654 struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; in ipr_show_iopoll_weight()
3678 struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; in ipr_store_iopoll_weight()
[all …]
Du14-34f.c590 struct hostdata { struct
630 #define HD(board) ((struct hostdata *) &sh[board]->hostdata)
691 j = ((struct hostdata *) host->hostdata)->board_number; in u14_34f_slave_configure()
891 sh[j] = scsi_register(tpnt, sizeof(struct hostdata)); in port_detect()
925 memset(HD(j), 0, sizeof(struct hostdata)); in port_detect()
1255 j = ((struct hostdata *) SCpnt->device->host->hostdata)->board_number; in u14_34f_queuecommand_lck()
1336 j = ((struct hostdata *) SCarg->device->host->hostdata)->board_number; in DEF_SCSI_QCMD()
1401 j = ((struct hostdata *) SCarg->device->host->hostdata)->board_number; in u14_34f_eh_host_reset()
Dt128.h91 base = ((struct NCR5380_hostdata *)(instance->hostdata))->base
Ddtc.h32 base = ((struct NCR5380_hostdata *)(instance)->hostdata)->base
D3w-sas.c107 TW_Device_Extension *tw_dev = (TW_Device_Extension *)shost->hostdata; in twl_sysfs_aen_read()
138 TW_Device_Extension *tw_dev = (TW_Device_Extension *)shost->hostdata; in twl_sysfs_compat_info()
167 TW_Device_Extension *tw_dev = (TW_Device_Extension *)host->hostdata; in twl_show_stats()
1416 tw_dev = (TW_Device_Extension *)sdev->host->hostdata; in twl_scsi_biosparam()
1439 tw_dev = (TW_Device_Extension *)SCpnt->device->host->hostdata; in twl_scsi_eh_reset()
1466 TW_Device_Extension *tw_dev = (TW_Device_Extension *)SCpnt->device->host->hostdata; in twl_scsi_queue_lck()
1528 tw_dev = (TW_Device_Extension *)host->hostdata; in twl_shutdown()
1722 tw_dev = (TW_Device_Extension *)host->hostdata; in twl_remove()
1765 TW_Device_Extension *tw_dev = (TW_Device_Extension *)host->hostdata; in twl_suspend()
1795 TW_Device_Extension *tw_dev = (TW_Device_Extension *)host->hostdata; in twl_resume()
Dg_NCR5380.h88 iomem = (((struct NCR5380_hostdata *)(instance)->hostdata)->iomem)
Dscsi_scan.c211 u64 lun, void *hostdata) in scsi_alloc_sdev() argument
246 sdev->hostdata = hostdata; in scsi_alloc_sdev()
1053 void *hostdata) in scsi_probe_and_add_lun() argument
1083 sdev = scsi_alloc_sdev(starget, lun, hostdata); in scsi_probe_and_add_lun()
1472 uint id, u64 lun, void *hostdata) in __scsi_add_device() argument
1491 scsi_probe_and_add_lun(starget, lun, NULL, &sdev, 1, hostdata); in __scsi_add_device()
Dsgiwd93.c41 #define host_to_hostdata(host) ((struct ip22_hostdata *)((host)->hostdata))
303 struct ip22_hostdata *hdata = (struct ip22_hostdata *) host->hostdata; in sgiwd93_remove()
Datari_scsi.c165 (atari_scsi_host->hostdata))->dma_len)
960 struct NCR5380_hostdata *hostdata = in atari_scsi_probe() local
963 hostdata->read_overruns = 4; in atari_scsi_probe()
Deata_pio.c115 hostdata *hd = SD(sh); in eata_pio_release()
162 hostdata *hd; in eata_pio_int_handler()
308 hostdata *hd; in eata_pio_queue_lck()
663 hostdata *hd; in register_pio_HBA()
683 size = sizeof(hostdata) + (sizeof(struct eata_ccb) * be16_to_cpu(gc->queuesiz)); in register_pio_HBA()
Dpmcraid.c202 scsi_dev->hostdata = res; in pmcraid_slave_alloc()
227 struct pmcraid_resource_entry *res = scsi_dev->hostdata; in pmcraid_slave_configure()
277 res = (struct pmcraid_resource_entry *)scsi_dev->hostdata; in pmcraid_slave_destroy()
282 scsi_dev->hostdata = NULL; in pmcraid_slave_destroy()
2522 struct pmcraid_resource_entry *res = scsi_cmd->device->hostdata; in pmcraid_cancel_all()
2558 struct pmcraid_resource_entry *res = cmd->scsi_cmd->device->hostdata; in pmcraid_frame_auto_sense()
2630 struct pmcraid_resource_entry *res = scsi_cmd->device->hostdata; in pmcraid_error_handler()
2757 (struct pmcraid_instance *)scsi_cmd->device->host->hostdata; in pmcraid_reset_device()
2758 res = scsi_cmd->device->hostdata; in pmcraid_reset_device()
2910 res = cmd->scsi_cmd->device->hostdata; in pmcraid_abort_cmd()
[all …]
Ddpt_i2o.c307 adpt_hba* pHba = (adpt_hba*) host->hostdata[0]; in adpt_release()
415 pHba = (adpt_hba *) host->hostdata[0]; in adpt_slave_configure()
443 pHba = (adpt_hba*)cmd->device->host->hostdata[0]; in adpt_queue_lck()
454 if((pDev = (struct adpt_device*) (cmd->device->hostdata)) == NULL) { in adpt_queue_lck()
467 cmd->device->hostdata = pDev; in adpt_queue_lck()
539 pHba = (adpt_hba *) host->hostdata[0]; in adpt_info()
691 pHba = (adpt_hba*) cmd->device->host->hostdata[0]; in adpt_abort()
693 if ((dptdevice = (void*) (cmd->device->hostdata)) == NULL) { in adpt_abort()
732 struct adpt_device* d = cmd->device->hostdata; in adpt_device_reset()
734 pHba = (void*) cmd->device->host->hostdata[0]; in adpt_device_reset()
[all …]
Desp_scsi.c695 struct esp_lun_data *lp = dev->hostdata; in find_and_prep_issuable_command()
748 lp = dev->hostdata; in esp_maybe_execute_command()
898 esp_free_lun_tag(ent, dev->hostdata); in esp_cmd_is_done()
949 struct esp_lun_data *lp = dev->hostdata; in esp_event_queue_full()
1202 lp = dev->hostdata; in esp_reconnect()
1264 esp_free_lun_tag(ent, cmd->device->hostdata); in esp_finish_select()
2046 esp_free_lun_tag(ent, cmd->device->hostdata); in esp_reset_cleanup_one()
2062 struct esp_lun_data *lp = dev->hostdata; in esp_clear_hold()
2468 dev->hostdata = lp; in esp_slave_alloc()
2499 struct esp_lun_data *lp = dev->hostdata; in esp_slave_destroy()
[all …]
Dmac53c94.c88 state = (struct fsc_state *) cmd->device->host->hostdata; in mac53c94_queue_lck()
106 struct fsc_state *state = (struct fsc_state *) cmd->device->host->hostdata; in DEF_SCSI_QCMD()
438 state = (struct fsc_state *) host->hostdata; in mac53c94_probe()
Dwd7000.c1093 Adapter *host = (Adapter *) SCpnt->device->host->hostdata; in wd7000_queuecommand_lck()
1312 Adapter *adapter = (Adapter *)host->hostdata; in wd7000_show_info()
1480 host = (Adapter *) sh->hostdata; in wd7000_detect()
1553 Adapter *host = (Adapter *) SCpnt->device->host->hostdata;
1570 Adapter *host = (Adapter *) SCpnt->device->host->hostdata; in wd7000_host_reset()
Dvirtio_scsi.c154 scsi_target(sc->device)->hostdata; in virtscsi_complete_cmd()
574 scsi_target(sc->device)->hostdata; in virtscsi_queuecommand_single()
631 scsi_target(sc->device)->hostdata; in virtscsi_queuecommand_multi()
749 starget->hostdata = tgt; in virtscsi_target_alloc()
755 struct virtio_scsi_target_state *tgt = starget->hostdata; in virtscsi_target_destroy()
D3w-9xxx.c160 TW_Device_Extension *tw_dev = (TW_Device_Extension *)host->hostdata; in twa_show_stats()
1701 tw_dev = (TW_Device_Extension *)sdev->host->hostdata; in twa_scsi_biosparam()
1726 tw_dev = (TW_Device_Extension *)SCpnt->device->host->hostdata; in twa_scsi_eh_reset()
1753 TW_Device_Extension *tw_dev = (TW_Device_Extension *)SCpnt->device->host->hostdata; in twa_scsi_queue_lck()
1959 TW_Device_Extension *tw_dev = (TW_Device_Extension *)host->hostdata; in twa_shutdown()
2035 tw_dev = (TW_Device_Extension *)host->hostdata; in twa_probe()
2156 TW_Device_Extension *tw_dev = (TW_Device_Extension *)host->hostdata; in twa_remove()
2192 TW_Device_Extension *tw_dev = (TW_Device_Extension *)host->hostdata; in twa_suspend()
2222 TW_Device_Extension *tw_dev = (TW_Device_Extension *)host->hostdata; in twa_resume()
Dhptiop.c858 struct hptiop_hba *hba = (struct hptiop_hba *)host->hostdata; in hptiop_buildsgl()
1009 struct hptiop_hba *hba = (struct hptiop_hba *)host->hostdata; in hptiop_queuecommand_lck()
1110 struct hptiop_hba * hba = (struct hptiop_hba *)host->hostdata; in hptiop_reset()
1122 struct hptiop_hba *hba = (struct hptiop_hba *)sdev->host->hostdata; in hptiop_adjust_disk_queue_depth()
1139 struct hptiop_hba *hba = (struct hptiop_hba *)host->hostdata; in hptiop_show_fw_version()
1333 hba = (struct hptiop_hba *)host->hostdata; in hptiop_probe()
1518 struct hptiop_hba *hba = (struct hptiop_hba *)host->hostdata; in hptiop_shutdown()
1561 struct hptiop_hba *hba = (struct hptiop_hba *)host->hostdata; in hptiop_remove()
Dg_NCR5380.c420 ((struct NCR5380_hostdata *)instance->hostdata)->iomem = iomem; in generic_NCR5380_detect()
473 iounmap(((struct NCR5380_hostdata *)instance->hostdata)->iomem); in generic_NCR5380_release_resources()
Dwd33c93.h37 #define DB(f,a) if (hostdata->args & (f)) a;
Dqlogicpti.c317 struct qlogicpti *qpti = (struct qlogicpti *) host->hostdata; in qlogicpti_reset_hardware()
838 struct qlogicpti *qpti = (struct qlogicpti *) host->hostdata; in qlogicpti_info()
1008 struct qlogicpti *qpti = (struct qlogicpti *) host->hostdata; in qlogicpti_queuecommand_lck()
1219 struct qlogicpti *qpti = (struct qlogicpti *) host->hostdata; in qlogicpti_abort()
1257 struct qlogicpti *qpti = (struct qlogicpti *) host->hostdata; in qlogicpti_reset()
D3w-xxxx.c495 TW_Device_Extension *tw_dev = (TW_Device_Extension *)host->hostdata; in tw_show_stats()
1337 tw_dev = (TW_Device_Extension *)sdev->host->hostdata; in tw_scsi_biosparam()
1363 tw_dev = (TW_Device_Extension *)SCpnt->device->host->hostdata; in tw_scsi_eh_reset()
1917 TW_Device_Extension *tw_dev = (TW_Device_Extension *)SCpnt->device->host->hostdata; in tw_scsi_queue_lck()
2210 TW_Device_Extension *tw_dev = (TW_Device_Extension *)host->hostdata; in tw_shutdown()
2270 tw_dev = (TW_Device_Extension *)host->hostdata; in tw_probe()
2360 TW_Device_Extension *tw_dev = (TW_Device_Extension *)host->hostdata; in tw_remove()
DBusLogic.c156 (struct blogic_adapter *) host->hostdata; in blogic_drvr_info()
2321 (struct blogic_adapter *) dev->host->hostdata; in blogic_slaveconfig()
2464 myadapter = (struct blogic_adapter *) host->hostdata; in blogic_init()
3004 (struct blogic_adapter *) SCpnt->device->host->hostdata; in blogic_hostreset()
3028 (struct blogic_adapter *) command->device->host->hostdata; in blogic_qcmd_lck()
3251 (struct blogic_adapter *) command->device->host->hostdata; in DEF_SCSI_QCMD()
3392 (struct blogic_adapter *) sdev->host->hostdata; in blogic_diskparam()
3467 (struct blogic_adapter *) shost->hostdata; in blogic_write_info()
3479 struct blogic_adapter *adapter = (struct blogic_adapter *) shost->hostdata; in blogic_show_info()
Dt128.c219 ((struct NCR5380_hostdata *)instance->hostdata)->base = p; in t128_detect()
Datp870u.c61 struct atp_unit *dev = (struct atp_unit *)&host->hostdata; in atp870u_intr_handle()
628 dev = (struct atp_unit *)&host->hostdata; in atp870u_queuecommand_lck()
1046 struct atp_unit *dev = (struct atp_unit *)&host->hostdata; in tscam()
2513 struct atp_unit *atp_dev = (struct atp_unit *)&host->hostdata; in atp870u_free_tables()
2527 struct atp_unit *atp_dev = (struct atp_unit *)&host->hostdata; in atp870u_init_tables()
2689 p = (struct atp_unit *)&shpnt->hostdata; in atp870u_probe()
2759 p = (struct atp_unit *)&shpnt->hostdata; in atp870u_probe()
2944 p = (struct atp_unit *)&shpnt->hostdata; in atp870u_probe()
3063 dev = (struct atp_unit *)&host->hostdata; in atp870u_abort()
Dhpsa.c657 hdev = sdev->hostdata; in raid_level_show()
690 hdev = sdev->hostdata; in lunid_show()
714 hdev = sdev->hostdata; in unique_id_show()
742 hdev = sdev->hostdata; in host_show_hp_ssd_smart_path_enabled()
772 hdev = sdev->hostdata; in path_info_show()
1954 sdev->hostdata = sd; in hpsa_slave_alloc()
1956 sdev->hostdata = NULL; in hpsa_slave_alloc()
1967 sd = sdev->hostdata; in hpsa_slave_configure()
2391 dev = cmd->device->hostdata; in complete_scsi_command()
4387 struct hpsa_scsi_dev_t *dev = cmd->device->hostdata; in hpsa_scsi_ioaccel_direct_map()
[all …]
Dmegaraid.c379 adapter = (adapter_t *)scmd->device->host->hostdata; in megaraid_queue_lck()
1855 adapter = (adapter_t *)host->hostdata; in megaraid_info()
1875 adapter = (adapter_t *)cmd->device->host->hostdata; in megaraid_abort()
1896 adapter = (adapter_t *)cmd->device->host->hostdata; in megaraid_reset()
2840 adapter = (adapter_t *)sdev->host->hostdata; in megaraid_biosparam()
4278 adapter = (adapter_t *)host->hostdata; in megaraid_probe_one()
4580 adapter_t *adapter = (adapter_t *)host->hostdata; in megaraid_remove_one()
4650 adapter_t *adapter = (adapter_t *)host->hostdata; in megaraid_shutdown()
Ddc395x.c1088 (struct AdapterCtlBlk *)cmd->device->host->hostdata; in dc395x_queue_command_lck()
1171 acb = (struct AdapterCtlBlk *)sdev->host->hostdata; in DEF_SCSI_QCMD()
1302 (struct AdapterCtlBlk *)cmd->device->host->hostdata; in __dc395x_eh_bus_reset()
1368 (struct AdapterCtlBlk *)cmd->device->host->hostdata; in dc395x_eh_abort()
3905 struct AdapterCtlBlk *acb = (struct AdapterCtlBlk *)scsi_device->host->hostdata; in dc395x_slave_alloc()
3925 struct AdapterCtlBlk *acb = (struct AdapterCtlBlk *)scsi_device->host->hostdata; in dc395x_slave_destroy()
4417 struct AdapterCtlBlk *acb = (struct AdapterCtlBlk *)host->hostdata; in adapter_init_scsi_host()
4620 struct AdapterCtlBlk *acb = (struct AdapterCtlBlk *)host->hostdata; in dc395x_show_info()
4803 acb = (struct AdapterCtlBlk*)scsi_host->hostdata; in dc395x_init_one()
4844 struct AdapterCtlBlk *acb = (struct AdapterCtlBlk *)(scsi_host->hostdata); in dc395x_remove_one()
Dscsi_debug.c3464 devip = (struct sdebug_dev_info *)scp->device->hostdata; in sdebug_q_cmd_complete()
3524 devip = (struct sdebug_dev_info *)scp->device->hostdata; in sdebug_q_cmd_hrt_complete()
3578 (struct sdebug_dev_info *)sdev->hostdata; in devInfoReg()
3636 sdp->hostdata = devip; in scsi_debug_slave_configure()
3646 (struct sdebug_dev_info *)sdp->hostdata; in scsi_debug_slave_destroy()
3654 sdp->hostdata = NULL; in scsi_debug_slave_destroy()
3676 cmnd->device->hostdata; in stop_queued_cmnd()
3717 sqcp->a_cmnd->device->hostdata; in stop_all_queued()
5079 devip = (struct sdebug_dev_info *)sdev->hostdata; in sdebug_change_qdepth()
5178 devip = (struct sdebug_dev_info *)sdp->hostdata; in scsi_debug_queuecommand()
[all …]
Dncr53c8xx.c7966 struct ncb *np = ((struct host_data *) host->hostdata)->ncb;
7976 struct ncb *np = ((struct host_data *) host->hostdata)->ncb;
8030 struct ncb *np = ((struct host_data *) cmd->device->host->hostdata)->ncb;
8073 struct host_data *host_data = (struct host_data *)shost->hostdata;
8114 struct ncb *np = ((struct host_data *) cmd->device->host->hostdata)->ncb;
8141 struct ncb *np = ((struct host_data *) cmd->device->host->hostdata)->ncb;
8249 struct host_data *host_data = (struct host_data *)host->hostdata;
8327 host_data = (struct host_data *) instance->hostdata;
8541 struct ncb *np = ((struct host_data *)shost->hostdata)->ncb;
8557 struct ncb *np = ((struct host_data *)shost->hostdata)->ncb;
[all …]
Dinitio.c2542 r = initio_isr((struct initio_host *)dev->hostdata); in i91u_intr()
2645 struct initio_host *host = (struct initio_host *) cmd->device->host->hostdata; in i91u_queuecommand_lck()
2672 host = (struct initio_host *) cmnd->device->host->hostdata; in DEF_SCSI_QCMD()
2700 host = (struct initio_host *) sdev->host->hostdata; in i91u_biosparam()
2870 host = (struct initio_host *)shost->hostdata; in initio_probe_one()
2970 struct initio_host *s = (struct initio_host *)host->hostdata; in initio_remove_one()
Dppa.c49 return *(ppa_struct **)&host->hostdata; in ppa_dev()
1074 *(ppa_struct **)&host->hostdata = dev; in __ppa_attach()
Dimm.c58 return *(imm_struct **)&host->hostdata; in imm_dev()
1208 *(imm_struct **)&host->hostdata = dev; in __imm_attach()
Dstex.c561 hba = (struct st_hba *) &host->hostdata[0]; in stex_queuecommand_lck()
1133 struct st_hba *hba = (struct st_hba *)host->hostdata; in stex_abort()
1326 hba = (struct st_hba *) &cmd->device->host->hostdata[0]; in stex_reset()
1536 hba = (struct st_hba *)host->hostdata; in stex_probe()
Dqla1280.c698 ha = (struct scsi_qla_host *)host->hostdata; in qla1280_info()
725 struct scsi_qla_host *ha = (struct scsi_qla_host *)host->hostdata; in qla1280_queuecommand_lck()
861 ha = (struct scsi_qla_host *)(CMD_HOST(cmd)->hostdata); in qla1280_error_action()
1219 ha = (struct scsi_qla_host *)device->host->hostdata; in qla1280_slave_configure()
4038 ha = (struct scsi_qla_host *)host->hostdata; in __qla1280_print_scsi_cmd()
4259 ha = (struct scsi_qla_host *)host->hostdata; in qla1280_probe_one()
4397 struct scsi_qla_host *ha = (struct scsi_qla_host *)host->hostdata; in qla1280_remove_one()
Dmesh.c1635 ms = (struct mesh_state *) cmd->device->host->hostdata; in mesh_queue_lck()
1688 struct mesh_state *ms = (struct mesh_state *) cmd->device->host->hostdata; in mesh_abort()
1705 struct mesh_state *ms = (struct mesh_state *) cmd->device->host->hostdata; in mesh_host_reset()
1889 ms = (struct mesh_state *) mesh_host->hostdata; in mesh_probe()
Daha1740.c86 #define HOSTDATA(host) ((struct aha1740_hostdata *) &host->hostdata)
Dips.c793 ha = (ips_ha_t *) SC->device->host->hostdata; in ips_eh_abort()
857 ha = (ips_ha_t *) SC->device->host->hostdata; in __ips_eh_reset()
1053 ha = (ips_ha_t *) SC->device->host->hostdata; in ips_queue_lck()
1151 ips_ha_t *ha = (ips_ha_t *) sdev->host->hostdata; in DEF_SCSI_QCMD()
1443 ha = (ips_ha_t *) ips_sh[i]->hostdata; in ips_write_info()
1465 ha = (ips_ha_t *) ips_sh[i]->hostdata; in ips_show_info()
Daha152x.c520 #define HOSTDATA(shpnt) ((struct aha152x_hostdata *) &shpnt->hostdata)
1315 struct Scsi_Host *shost = container_of((void *)hd, struct Scsi_Host, hostdata); in run()
3354 struct Scsi_Host *shost = container_of((void *)hd, struct Scsi_Host, hostdata); in aha152x_exit()
Dmvumi.c728 mhba = (struct mvumi_hba *) scmd->device->host->hostdata; in mvumi_host_reset()
2045 mhba = (struct mvumi_hba *) sdev->host->hostdata; in mvumi_slave_configure()
2129 mhba = (struct mvumi_hba *) shost->hostdata; in mvumi_queue_command()
Dips.h60 #define IPS_HA(x) ((ips_ha_t *) x->hostdata)
Dxen-scsifront.c844 info = (struct vscsifrnt_info *)host->hostdata; in scsifront_probe()
/linux-4.4.14/drivers/scsi/ibmvscsi/
Dibmvscsi.c122 struct ibmvscsi_host_data *hostdata);
137 struct ibmvscsi_host_data *hostdata = in ibmvscsi_handle_event() local
139 vio_disable_interrupts(to_vio_dev(hostdata->dev)); in ibmvscsi_handle_event()
140 tasklet_schedule(&hostdata->srp_task); in ibmvscsi_handle_event()
153 struct ibmvscsi_host_data *hostdata, in ibmvscsi_release_crq_queue() argument
157 struct vio_dev *vdev = to_vio_dev(hostdata->dev); in ibmvscsi_release_crq_queue()
158 free_irq(vdev->irq, (void *)hostdata); in ibmvscsi_release_crq_queue()
159 tasklet_kill(&hostdata->srp_task); in ibmvscsi_release_crq_queue()
165 dma_unmap_single(hostdata->dev, in ibmvscsi_release_crq_queue()
206 static int ibmvscsi_send_crq(struct ibmvscsi_host_data *hostdata, in ibmvscsi_send_crq() argument
[all …]
Dibmvscsi.h71 struct ibmvscsi_host_data *hostdata; member
Dibmvfc.c1639 vfc_cmd->cancel_key = cpu_to_be32((unsigned long)cmnd->device->hostdata); in ibmvfc_queuecommand_lck()
1985 tmf->cancel_key = cpu_to_be32((unsigned long)sdev->hostdata); in ibmvfc_reset_device()
2190 tmf->cancel_key = cpu_to_be32((unsigned long)sdev->hostdata); in ibmvfc_cancel_all()
2191 tmf->my_cancel_key = cpu_to_be32((unsigned long)starget->hostdata); in ibmvfc_cancel_all()
2315 tmf->cancel_key = cpu_to_be32((unsigned long)sdev->hostdata); in ibmvfc_abort_task_set()
2339 rc = ibmvfc_wait_for_ops(vhost, sdev->hostdata, ibmvfc_match_key); in ibmvfc_abort_task_set()
2348 rc = ibmvfc_wait_for_ops(vhost, sdev->hostdata, ibmvfc_match_key); in ibmvfc_abort_task_set()
2844 sdev->hostdata = (void *)(unsigned long)vhost->task_set++; in ibmvfc_slave_alloc()
2866 starget->hostdata = (void *)(unsigned long)vhost->task_set++; in ibmvfc_target_alloc()
/linux-4.4.14/drivers/scsi/arcmsr/
Darcmsr_attr.c71 struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata; in arcmsr_sysfs_iop_message_read()
118 struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata; in arcmsr_sysfs_iop_message_write()
166 struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata; in arcmsr_sysfs_iop_message_clear()
274 (struct AdapterControlBlock *) host->hostdata; in arcmsr_attr_host_driver_posted_cmd()
286 (struct AdapterControlBlock *) host->hostdata; in arcmsr_attr_host_driver_reset()
298 (struct AdapterControlBlock *) host->hostdata; in arcmsr_attr_host_driver_abort()
310 (struct AdapterControlBlock *) host->hostdata; in arcmsr_attr_host_fw_model()
322 (struct AdapterControlBlock *) host->hostdata; in arcmsr_attr_host_fw_version()
335 (struct AdapterControlBlock *) host->hostdata; in arcmsr_attr_host_fw_request_len()
348 (struct AdapterControlBlock *) host->hostdata; in arcmsr_attr_host_fw_numbers_queue()
[all …]
Darcmsr_hba.c709 acb = (struct AdapterControlBlock *) host->hostdata; in arcmsr_probe()
814 (struct AdapterControlBlock *)host->hostdata; in arcmsr_suspend()
834 (struct AdapterControlBlock *)host->hostdata; in arcmsr_resume()
1221 (struct AdapterControlBlock *) host->hostdata; in arcmsr_remove()
1267 (struct AdapterControlBlock *)host->hostdata; in arcmsr_shutdown()
2537 struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata; in arcmsr_queue_command_lck()
3744 acb = (struct AdapterControlBlock *) cmd->device->host->hostdata; in arcmsr_bus_reset()
3947 (struct AdapterControlBlock *)cmd->device->host->hostdata; in arcmsr_abort()
3985 (struct AdapterControlBlock *) host->hostdata; in arcmsr_info()
/linux-4.4.14/drivers/scsi/bfa/
Dbfad_attr.c39 im_port = (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_starget_port_id()
65 im_port = (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_starget_node_name()
91 im_port = (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_starget_port_name()
110 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_host_port_id()
124 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_host_port_type()
156 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_host_port_state()
193 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_host_active_fc4s()
212 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_host_speed()
249 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_host_fabric_name()
266 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_stats()
[all …]
Dbfad_im.c96 itnim_data = cmnd->device->hostdata; in bfa_cb_ioim_done()
129 itnim_data = cmnd->device->hostdata; in bfa_cb_ioim_good_comp()
183 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_info()
204 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_abort_handler()
292 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_reset_lun_handler()
293 struct bfad_itnim_data_s *itnim_data = cmnd->device->hostdata; in bfad_im_reset_lun_handler()
356 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_reset_bus_handler()
404 sdev->hostdata = NULL; in bfad_im_slave_destroy()
546 im_port->shost->hostdata[0] = (unsigned long)im_port; in bfad_im_scsi_host_alloc()
973 sdev->hostdata = rport->dd_data; in bfad_im_slave_alloc()
[all …]
Dbfad_bsg.c3136 (struct bfad_im_port_s *) job->shost->hostdata[0]; in bfad_im_bsg_vendor_request()
3358 (struct bfad_im_port_s *) job->shost->hostdata[0]; in bfad_im_bsg_els_ct_request()
/linux-4.4.14/drivers/scsi/lpfc/
Dlpfc_attr.c122 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_enable_fip_show()
136 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_bg_info_show()
155 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_bg_guard_err_show()
167 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_bg_apptag_err_show()
179 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_bg_reftag_err_show()
216 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_serialnum_show()
239 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_temp_sensor_show()
257 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_modeldesc_show()
276 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_modelname_show()
295 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_programtype_show()
[all …]
Dlpfc_scsi.c74 struct lpfc_vport *vport = (struct lpfc_vport *)sdev->host->hostdata; in lpfc_rport_data_from_scsi_device()
77 return ((struct lpfc_device_data *)sdev->hostdata)->rport_data; in lpfc_rport_data_from_scsi_device()
79 return (struct lpfc_rport_data *)sdev->hostdata; in lpfc_rport_data_from_scsi_device()
207 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_update_stats()
3338 scsi_cmnd->device->hostdata)->oas_enabled) in lpfc_scsi_prep_dma_buf_s4()
3484 scsi_cmnd->device->hostdata)->oas_enabled) in lpfc_bg_scsi_prep_dma_buf_s4()
4426 struct lpfc_vport *vport = (struct lpfc_vport *) host->hostdata; in lpfc_info()
4530 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_queuecommand()
4683 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_abort_handler()
5145 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_device_reset_handler()
[all …]
Dlpfc_bsg.c383 struct lpfc_vport *vport = (struct lpfc_vport *)job->shost->hostdata; in lpfc_bsg_send_mgmt_cmd()
653 struct lpfc_vport *vport = (struct lpfc_vport *)job->shost->hostdata; in lpfc_bsg_rport_els()
1192 struct lpfc_vport *vport = (struct lpfc_vport *)job->shost->hostdata; in lpfc_bsg_hba_set_event()
1276 struct lpfc_vport *vport = (struct lpfc_vport *)job->shost->hostdata; in lpfc_bsg_hba_get_event()
1608 struct lpfc_vport *vport = (struct lpfc_vport *)job->shost->hostdata; in lpfc_bsg_send_mgmt_rsp()
2179 vport = (struct lpfc_vport *)job->shost->hostdata; in lpfc_bsg_diag_loopback_mode()
2217 vport = (struct lpfc_vport *)job->shost->hostdata; in lpfc_sli4_bsg_diag_mode_end()
2300 vport = (struct lpfc_vport *)job->shost->hostdata; in lpfc_sli4_bsg_link_diag_test()
2987 struct lpfc_vport *vport = (struct lpfc_vport *)job->shost->hostdata; in lpfc_bsg_diag_loopback_run()
3289 struct lpfc_vport *vport = (struct lpfc_vport *)job->shost->hostdata; in lpfc_bsg_get_dfc_rev()
[all …]
Dlpfc_init.c3302 vport = (struct lpfc_vport *) shost->hostdata; in lpfc_create_port()
3432 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_scan_finished()
3483 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_host_attrib_init()
9694 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_pci_remove_one_s3()
9802 struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; in lpfc_pci_suspend_one_s3()
9845 struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; in lpfc_pci_resume_one_s3()
9991 struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; in lpfc_io_error_detected_s3()
10037 struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; in lpfc_io_slot_reset_s3()
10098 struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; in lpfc_io_resume_s3()
10464 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_pci_remove_one_s4()
[all …]
Dlpfc_vport.c295 struct lpfc_vport *pport = (struct lpfc_vport *) shost->hostdata; in lpfc_vport_create()
Dlpfc.h1003 return container_of((void *) vport, struct Scsi_Host, hostdata[0]); in lpfc_shost_from_vport()
/linux-4.4.14/drivers/scsi/arm/
Dpowertec.c104 struct powertec_info *info = (struct powertec_info *)host->hostdata; in powertecscsi_terminator_ctl()
134 struct powertec_info *info = (struct powertec_info *)host->hostdata; in powertecscsi_dma_setup()
175 struct powertec_info *info = (struct powertec_info *)host->hostdata; in powertecscsi_dma_stop()
187 struct powertec_info *info = (struct powertec_info *)host->hostdata; in powertecscsi_info()
244 info = (struct powertec_info *)host->hostdata; in powertecscsi_show_info()
260 struct powertec_info *info = (struct powertec_info *)host->hostdata; in powertecscsi_show_term()
328 info = (struct powertec_info *)host->hostdata; in powertecscsi_probe()
404 struct powertec_info *info = (struct powertec_info *)host->hostdata; in powertecscsi_remove()
Dcumana_2.c124 struct cumanascsi2_info *info = (struct cumanascsi2_info *)host->hostdata; in cumanascsi_2_terminator_ctl()
160 struct cumanascsi2_info *info = (struct cumanascsi2_info *)host->hostdata; in cumanascsi_2_dma_setup()
212 struct cumanascsi2_info *info = (struct cumanascsi2_info *)host->hostdata; in cumanascsi_2_dma_pseudo()
285 struct cumanascsi2_info *info = (struct cumanascsi2_info *)host->hostdata; in cumanascsi_2_dma_stop()
299 struct cumanascsi2_info *info = (struct cumanascsi2_info *)host->hostdata; in cumanascsi_2_info()
343 info = (struct cumanascsi2_info *)host->hostdata; in cumanascsi_2_show_info()
401 info = (struct cumanascsi2_info *)host->hostdata; in cumanascsi2_probe()
475 struct cumanascsi2_info *info = (struct cumanascsi2_info *)host->hostdata; in cumanascsi2_remove()
Deesox.c123 struct eesoxscsi_info *info = (struct eesoxscsi_info *)host->hostdata; in eesoxscsi_terminator_ctl()
161 struct eesoxscsi_info *info = (struct eesoxscsi_info *)host->hostdata; in eesoxscsi_dma_setup()
356 struct eesoxscsi_info *info = (struct eesoxscsi_info *)host->hostdata; in eesoxscsi_dma_pseudo()
372 struct eesoxscsi_info *info = (struct eesoxscsi_info *)host->hostdata; in eesoxscsi_dma_stop()
384 struct eesoxscsi_info *info = (struct eesoxscsi_info *)host->hostdata; in eesoxscsi_info()
429 info = (struct eesoxscsi_info *)host->hostdata; in eesoxscsi_show_info()
445 struct eesoxscsi_info *info = (struct eesoxscsi_info *)host->hostdata; in eesoxscsi_show_term()
454 struct eesoxscsi_info *info = (struct eesoxscsi_info *)host->hostdata; in eesoxscsi_store_term()
519 info = (struct eesoxscsi_info *)host->hostdata; in eesoxscsi_probe()
597 struct eesoxscsi_info *info = (struct eesoxscsi_info *)host->hostdata; in eesoxscsi_remove()
Darxescsi.c115 struct arxescsi_info *info = (struct arxescsi_info *)host->hostdata; in arxescsi_dma_pseudo()
213 struct arxescsi_info *info = (struct arxescsi_info *)host->hostdata; in arxescsi_info()
227 info = (struct arxescsi_info *)host->hostdata; in arxescsi_show_info()
275 info = (struct arxescsi_info *)host->hostdata; in arxescsi_probe()
Dfas216.c2202 FAS216_Info *info = (FAS216_Info *)SCpnt->device->host->hostdata; in fas216_queue_command_lck()
2251 FAS216_Info *info = (FAS216_Info *)SCpnt->device->host->hostdata; in DEF_SCSI_QCMD()
2269 FAS216_Info *info = (FAS216_Info *)SCpnt->device->host->hostdata; in fas216_noqueue_command_lck()
2419 FAS216_Info *info = (FAS216_Info *)SCpnt->device->host->hostdata; in fas216_eh_abort()
2472 FAS216_Info *info = (FAS216_Info *)SCpnt->device->host->hostdata; in fas216_eh_device_reset()
2553 FAS216_Info *info = (FAS216_Info *)SCpnt->device->host->hostdata; in fas216_eh_bus_reset()
2653 FAS216_Info *info = (FAS216_Info *)SCpnt->device->host->hostdata; in fas216_eh_host_reset()
2836 FAS216_Info *info = (FAS216_Info *)host->hostdata; in fas216_init()
2881 FAS216_Info *info = (FAS216_Info *)host->hostdata; in fas216_add()
2932 FAS216_Info *info = (FAS216_Info *)host->hostdata; in fas216_remove()
[all …]
Doak.c22 #define priv(host) ((struct NCR5380_hostdata *)(host)->hostdata)
Dacornscsi.c2472 AS_Host *host = (AS_Host *)SCpnt->device->host->hostdata; in acornscsi_queuecmd_lck()
2648 AS_Host *host = (AS_Host *) SCpnt->device->host->hostdata; in acornscsi_abort()
2729 AS_Host *host = (AS_Host *)SCpnt->device->host->hostdata; in acornscsi_bus_reset()
2799 host = (AS_Host *)instance->hostdata; in acornscsi_show_info()
2911 ashost = (AS_Host *)host->hostdata; in acornscsi_probe()
2964 AS_Host *ashost = (AS_Host *)host->hostdata; in acornscsi_remove()
Dcumana_1.c22 #define priv(host) ((struct NCR5380_hostdata *)(host)->hostdata)
/linux-4.4.14/drivers/usb/storage/
Duas.c108 err = uas_submit_urbs(cmnd, cmnd->device->hostdata, GFP_ATOMIC); in uas_do_work()
122 struct uas_dev_info *devinfo = cmnd->device->hostdata; in uas_add_work()
222 struct uas_dev_info *devinfo = (void *)cmnd->device->hostdata; in uas_try_complete()
243 err = uas_submit_urbs(cmnd, cmnd->device->hostdata, GFP_ATOMIC); in uas_xfer_data()
253 struct uas_dev_info *devinfo = (struct uas_dev_info *)shost->hostdata; in uas_stat_cmplt()
347 struct uas_dev_info *devinfo = (void *)cmnd->device->hostdata; in uas_data_cmplt()
496 struct uas_dev_info *devinfo = cmnd->device->hostdata; in uas_submit_sense_urb()
596 struct uas_dev_info *devinfo = sdev->hostdata; in uas_queuecommand_lck()
681 struct uas_dev_info *devinfo = (void *)cmnd->device->hostdata; in DEF_SCSI_QCMD()
719 struct uas_dev_info *devinfo = sdev->hostdata; in uas_eh_bus_reset_handler()
[all …]
Dusb.h168 return container_of((void *) us, struct Scsi_Host, hostdata); in us_to_host()
171 return (struct us_data *) host->hostdata; in host_to_us()
/linux-4.4.14/drivers/scsi/aacraid/
Dlinit.c272 struct aac_dev *dev = (struct aac_dev *)shost->hostdata; in aac_info()
404 struct aac_dev *aac = (struct aac_dev *)sdev->host->hostdata; in aac_slave_configure()
500 struct aac_dev *aac = (struct aac_dev *)(sdev->host->hostdata); in aac_show_raid_level()
524 struct aac_dev *dev = (struct aac_dev *)sdev->host->hostdata; in aac_ioctl()
534 struct aac_dev * aac = (struct aac_dev *)host->hostdata; in aac_eh_abort()
591 struct aac_dev * aac = (struct aac_dev *)host->hostdata; in aac_eh_reset()
759 struct aac_dev *dev = (struct aac_dev *)sdev->host->hostdata; in aac_compat_ioctl()
776 struct aac_dev *dev = (struct aac_dev*)class_to_shost(device)->hostdata; in aac_show_model()
795 struct aac_dev *dev = (struct aac_dev*)class_to_shost(device)->hostdata; in aac_show_vendor()
815 struct aac_dev *dev = (struct aac_dev*)class_to_shost(cdev)->hostdata; in aac_show_flags()
[all …]
Daachba.c558 dev = (struct aac_dev *)scsicmd->device->host->hostdata; in aac_get_container_name()
595 struct fsa_dev_info *fsa_dev_ptr = ((struct aac_dev *)(scsicmd->device->host->hostdata))->fsa_dev; in aac_probe_container_callback2()
714 if ((fibptr = aac_fib_alloc((struct aac_dev *)scsicmd->device->host->hostdata))) { in _aac_probe_container()
752 struct fsa_dev_info *fsa_dev_ptr = ((struct aac_dev *)(scsicmd->device->host->hostdata))->fsa_dev; in _aac_probe_container()
1041 dev = (struct aac_dev *)scsicmd->device->host->hostdata; in aac_get_container_serial()
1886 dev = (struct aac_dev *)scsicmd->device->host->hostdata; in aac_read()
1993 dev = (struct aac_dev *)scsicmd->device->host->hostdata; in aac_write()
2205 aac = (struct aac_dev *)sdev->host->hostdata; in aac_synchronize()
2272 struct aac_dev *aac = (struct aac_dev *)sdev->host->hostdata; in aac_start_stop()
2340 struct aac_dev *dev = (struct aac_dev *)host->hostdata; in aac_scsi_cmd()
[all …]
/linux-4.4.14/drivers/scsi/pcmcia/
Dnsp_cs.c179 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; in nsp_scsi_done()
194 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; in nsp_queuecommand_lck()
369 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; in nsphw_start_selection()
449 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; in nsp_analyze_sdtr()
506 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; in nsp_start_timer()
582 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; in nsp_xfer()
621 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; in nsp_dataphase_bypass()
721 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; in nsp_pio_read()
820 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; in nsp_pio_write()
918 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; in nsp_nexus()
[all …]
Dnsp_message.c14 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; in nsp_message_in()
55 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; in nsp_message_out()
Dsym53c500_cs.c361 (struct sym53c500_data *)dev->hostdata; in SYM53C500_intr()
540 (struct sym53c500_data *)SChost->hostdata; in SYM53C500_info()
555 (struct sym53c500_data *)SCpnt->device->host->hostdata; in SYM53C500_queue_lck()
628 (struct sym53c500_data *)SHp->hostdata; in SYM53C500_show_pio()
640 (struct sym53c500_data *)SHp->hostdata; in SYM53C500_store_pio()
762 data = (struct sym53c500_data *)host->hostdata; in SYM53C500_config()
/linux-4.4.14/drivers/scsi/cxlflash/
Dsuperpipe.c305 struct cxlflash_cfg *cfg = (struct cxlflash_cfg *)sdev->host->hostdata; in read_cap16()
608 struct cxlflash_cfg *cfg = (struct cxlflash_cfg *)sdev->host->hostdata; in _cxlflash_disk_release()
610 struct llun_info *lli = sdev->hostdata; in _cxlflash_disk_release()
824 struct cxlflash_cfg *cfg = (struct cxlflash_cfg *)sdev->host->hostdata; in _cxlflash_disk_detach()
826 struct llun_info *lli = sdev->hostdata; in _cxlflash_disk_detach()
1291 struct cxlflash_cfg *cfg = (struct cxlflash_cfg *)sdev->host->hostdata; in cxlflash_disk_attach()
1294 struct llun_info *lli = sdev->hostdata; in cxlflash_disk_attach()
1607 struct cxlflash_cfg *cfg = (struct cxlflash_cfg *)sdev->host->hostdata; in cxlflash_afu_recover()
1609 struct llun_info *lli = sdev->hostdata; in cxlflash_afu_recover()
1705 struct cxlflash_cfg *cfg = (struct cxlflash_cfg *)sdev->host->hostdata; in process_sense()
[all …]
Dvlun.c436 struct cxlflash_cfg *cfg = (struct cxlflash_cfg *)sdev->host->hostdata; in write_same16()
512 struct llun_info *lli = sdev->hostdata; in grow_lxt()
625 struct llun_info *lli = sdev->hostdata; in shrink_lxt()
731 struct cxlflash_cfg *cfg = (struct cxlflash_cfg *)sdev->host->hostdata; in _cxlflash_vlun_resize()
732 struct llun_info *lli = sdev->hostdata; in _cxlflash_vlun_resize()
926 struct cxlflash_cfg *cfg = (struct cxlflash_cfg *)sdev->host->hostdata; in cxlflash_disk_virtual_open()
928 struct llun_info *lli = sdev->hostdata; in cxlflash_disk_virtual_open()
1121 struct cxlflash_cfg *cfg = (struct cxlflash_cfg *)sdev->host->hostdata; in cxlflash_disk_clone()
1122 struct llun_info *lli = sdev->hostdata; in cxlflash_disk_clone()
Dlunmgt.c252 sdev->hostdata = lli; in cxlflash_manage_lun()
257 sdev->hostdata = NULL; in cxlflash_manage_lun()
Dmain.c412 struct cxlflash_cfg *cfg = (struct cxlflash_cfg *)host->hostdata; in send_tmf()
496 struct cxlflash_cfg *cfg = (struct cxlflash_cfg *)host->hostdata; in cxlflash_queuecommand()
1894 struct cxlflash_cfg *cfg = (struct cxlflash_cfg *)host->hostdata; in cxlflash_eh_device_reset_handler()
1939 struct cxlflash_cfg *cfg = (struct cxlflash_cfg *)host->hostdata; in cxlflash_eh_host_reset_handler()
2039 struct cxlflash_cfg *cfg = (struct cxlflash_cfg *)shost->hostdata; in port0_show()
2058 struct cxlflash_cfg *cfg = (struct cxlflash_cfg *)shost->hostdata; in port1_show()
2076 struct cxlflash_cfg *cfg = (struct cxlflash_cfg *)shost->hostdata; in lun_mode_show()
2109 struct cxlflash_cfg *cfg = (struct cxlflash_cfg *)shost->hostdata; in lun_mode_store()
2178 struct cxlflash_cfg *cfg = (struct cxlflash_cfg *)shost->hostdata; in port0_lun_table_show()
2197 struct cxlflash_cfg *cfg = (struct cxlflash_cfg *)shost->hostdata; in port1_lun_table_show()
[all …]
/linux-4.4.14/drivers/staging/unisys/visorhba/
Dvisorhba_main.c282 (struct visorhba_devdata *)scsidev->host->hostdata; in forward_taskmgmt_command()
354 devdata = (struct visorhba_devdata *)scsidev->host->hostdata; in visorhba_abort_handler()
378 devdata = (struct visorhba_devdata *)scsidev->host->hostdata; in visorhba_device_reset_handler()
402 devdata = (struct visorhba_devdata *)scsidev->host->hostdata; in visorhba_bus_reset_handler()
461 (struct visorhba_devdata *)scsihost->hostdata; in visorhba_queue_command_lck()
548 devdata = (struct visorhba_devdata *)scsihost->hostdata; in visorhba_slave_alloc()
582 devdata = (struct visorhba_devdata *)scsihost->hostdata; in visorhba_slave_destroy()
774 devdata = (struct visorhba_devdata *)scsidev->host->hostdata; in do_scsi_linuxstat()
835 devdata = (struct visorhba_devdata *)scsidev->host->hostdata; in do_scsi_nolinuxstat()
1124 devdata = (struct visorhba_devdata *)scsihost->hostdata; in visorhba_probe()
/linux-4.4.14/drivers/scsi/aic7xxx/
Daic79xx_osm.c559 ahd = *(struct ahd_softc **)host->hostdata; in ahd_linux_info()
582 ahd = *(struct ahd_softc **)cmd->device->host->hostdata; in ahd_linux_queue_lck()
597 *((struct ahd_softc **)dev_to_shost(&starget->dev)->hostdata); in DEF_SCSI_QCMD()
611 *((struct ahd_softc **)dev_to_shost(&starget->dev)->hostdata); in ahd_linux_target_alloc()
675 *((struct ahd_softc **)sdev->host->hostdata); in ahd_linux_slave_alloc()
705 ahd = *((struct ahd_softc **)sdev->host->hostdata); in ahd_linux_slave_configure()
734 ahd = *((struct ahd_softc **)sdev->host->hostdata); in ahd_linux_biosparam()
798 ahd = *(struct ahd_softc **)cmd->device->host->hostdata; in ahd_linux_dev_reset()
886 ahd = *(struct ahd_softc **)cmd->device->host->hostdata; in ahd_linux_bus_reset()
1237 *((struct ahd_softc **)host->hostdata) = ahd; in ahd_linux_register_host()
[all …]
Daic7xxx_osm.c503 ahc = *(struct ahc_softc **)host->hostdata; in ahc_linux_info()
528 ahc = *(struct ahc_softc **)cmd->device->host->hostdata; in ahc_linux_queue_lck()
547 *((struct ahc_softc **)dev_to_shost(&starget->dev)->hostdata); in DEF_SCSI_QCMD()
561 *((struct ahc_softc **)dev_to_shost(&starget->dev)->hostdata); in ahc_linux_target_alloc()
643 *((struct ahc_softc **)sdev->host->hostdata); in ahc_linux_slave_alloc()
676 ahc = *((struct ahc_softc **)sdev->host->hostdata); in ahc_linux_slave_configure()
707 ahc = *((struct ahc_softc **)sdev->host->hostdata); in ahc_linux_biosparam()
778 ahc = *(struct ahc_softc **)cmd->device->host->hostdata; in ahc_linux_bus_reset()
1101 *((struct ahc_softc **)host->hostdata) = ahc; in ahc_linux_register_host()
1398 struct ahc_softc *ahc = *((struct ahc_softc **)sdev->host->hostdata); in ahc_linux_device_queue_depth()
[all …]
Daic79xx_proc.c210 struct ahd_softc *ahd = *(struct ahd_softc **)shost->hostdata; in ahd_proc_write_seeprom()
276 struct ahd_softc *ahd = *(struct ahd_softc **)shost->hostdata; in ahd_linux_show_info()
Daic7xxx_proc.c190 struct ahc_softc *ahc = *(struct ahc_softc **)shost->hostdata; in ahc_proc_write_seeprom()
291 struct ahc_softc *ahc = *(struct ahc_softc **)shost->hostdata; in ahc_linux_show_info()
/linux-4.4.14/drivers/message/fusion/
Dmptspi.c422 starget->hostdata = vtarget; in mptspi_target_alloc()
464 kfree(starget->hostdata); in mptspi_target_destroy()
465 starget->hostdata = NULL; in mptspi_target_destroy()
691 VirtTarget *vtarget = scsi_target(sdev)->hostdata; in mptspi_dv_device()
741 sdev->hostdata = vdevice; in mptspi_slave_alloc()
744 vtarget = starget->hostdata; in mptspi_slave_alloc()
757 VirtTarget *vtarget = scsi_target(sdev)->hostdata; in mptspi_slave_configure()
785 VirtDevice *vdevice = SCpnt->device->hostdata; in mptspi_qcmd()
810 VirtTarget *vtarget = starget->hostdata; in mptspi_slave_destroy()
811 VirtDevice *vdevice = sdev->hostdata; in mptspi_slave_destroy()
[all …]
Dmptfc.c218 if (ready == DID_NO_CONNECT || !SCpnt->device->hostdata in mptfc_block_error_handler()
225 ioc->active, SCpnt->device->hostdata)); in mptfc_block_error_handler()
480 vtarget = ri->starget->hostdata; in mptfc_register_dev()
528 kfree(starget->hostdata); in mptfc_target_destroy()
529 starget->hostdata = NULL; in mptfc_target_destroy()
548 starget->hostdata = vtarget; in mptfc_target_alloc()
563 starget->hostdata = NULL; in mptfc_target_alloc()
631 sdev->hostdata = vdevice; in mptfc_slave_alloc()
632 vtarget = starget->hostdata; in mptfc_slave_alloc()
656 VirtDevice *vdevice = SCpnt->device->hostdata; in mptfc_qcmd()
[all …]
Dmptscsih.c633 VirtDevice *vdevice = sc->device->hostdata; in mptscsih_io_done()
729 vdevice = sc->device->hostdata; in mptscsih_io_done()
750 sc->device->hostdata; in mptscsih_io_done()
1318 VirtDevice *vdevice = SCpnt->device->hostdata; in mptscsih_qcmd()
1712 vdevice = SCpnt->device->hostdata; in mptscsih_abort()
1830 vdevice = SCpnt->device->hostdata; in mptscsih_dev_reset()
1893 vdevice = SCpnt->device->hostdata; in mptscsih_bus_reset()
2297 vtarget = starget->hostdata; in mptscsih_slave_destroy()
2298 vdevice = sdev->hostdata; in mptscsih_slave_destroy()
2306 sdev->hostdata = NULL; in mptscsih_slave_destroy()
[all …]
Dmptsas.c367 return ((MPT_SCSI_HOST *)shost->hostdata)->ioc; in phy_to_ioc()
373 return ((MPT_SCSI_HOST *)shost->hostdata)->ioc; in rphy_to_ioc()
764 vtarget = starget->hostdata; in mptsas_add_device_component_starget()
973 vdevice = sdev->hostdata; in mptsas_find_vtarget()
1691 VirtDevice *vdevice = sdev->hostdata; in mptsas_slave_configure()
1789 starget->hostdata = vtarget; in mptsas_target_alloc()
1804 if (!starget->hostdata) in mptsas_target_destroy()
1807 vtarget = starget->hostdata; in mptsas_target_destroy()
1837 kfree(starget->hostdata); in mptsas_target_destroy()
1838 starget->hostdata = NULL; in mptsas_target_destroy()
[all …]
Dmptctl.c1339 vdevice = sdev->hostdata; in mptctl_getiocinfo()
1462 vdevice = sdev->hostdata; in mptctl_gettargetinfo()
1995 VirtTarget *vtarget = starget->hostdata; in mptctl_do_mpt_command()
/linux-4.4.14/drivers/s390/scsi/
Dzfcp_scsi.c114 (struct zfcp_adapter *) sdev->host->hostdata[0]; in zfcp_scsi_slave_alloc()
153 (struct zfcp_adapter *) scsi_host->hostdata[0]; in zfcp_scsi_eh_abort_handler()
336 adapter->scsi_host->hostdata[0] = (unsigned long) adapter; in zfcp_scsi_adapter_register()
450 adapter = (struct zfcp_adapter *)host->hostdata[0]; in zfcp_get_fc_host_stats()
483 adapter = (struct zfcp_adapter *)shost->hostdata[0]; in zfcp_reset_fc_host_stats()
502 (struct zfcp_adapter *)shost->hostdata[0]; in zfcp_get_host_port_state()
536 (struct zfcp_adapter *)shost->hostdata[0]; in zfcp_scsi_terminate_rport_io()
Dzfcp_sysfs.c530 adapter = (struct zfcp_adapter *) scsi_host->hostdata[0]; in zfcp_sysfs_adapter_util_show()
555 adapter = (struct zfcp_adapter *) scsi_host->hostdata[0]; in zfcp_sysfs_adapter_ex_config()
606 ((struct zfcp_adapter *) scsi_host->hostdata[0])->qdio; in zfcp_sysfs_adapter_q_full_show()
Dzfcp_dbf.h318 scmd->device->host->hostdata[0]; in _zfcp_dbf_scsi()
Dzfcp_fc.c907 adapter = (struct zfcp_adapter *) job->shost->hostdata[0]; in zfcp_fc_job_wka_port()
988 adapter = (struct zfcp_adapter *)shost->hostdata[0]; in zfcp_fc_exec_bsg_job()
Dzfcp_dbf.c405 (struct zfcp_adapter *) sc->device->host->hostdata[0]; in zfcp_dbf_scsi()
/linux-4.4.14/drivers/scsi/megaraid/
Dmega_common.h204 #define SCP2HOSTDATA(scp) SCP2HOST(scp)->hostdata // to soft state
210 #define SCSIHOST2ADAP(host) (((caddr_t *)(host->hostdata))[0])
Dmegaraid_sas_base.c1640 scmd->device->host->hostdata; in megasas_queue_command()
2545 instance = (struct megasas_instance *)scmd->device->host->hostdata; in megasas_generic_reset()
2582 instance = (struct megasas_instance *)scmd->device->host->hostdata; in megasas_reset_timer()
2615 instance = (struct megasas_instance *)scmd->device->host->hostdata; in megasas_reset_bus_host()
2731 (struct megasas_instance *) shost->hostdata; in megasas_fw_crash_buffer_store()
2750 (struct megasas_instance *) shost->hostdata; in megasas_fw_crash_buffer_show()
2795 (struct megasas_instance *) shost->hostdata; in megasas_fw_crash_buffer_size_show()
2807 (struct megasas_instance *) shost->hostdata; in megasas_fw_crash_state_store()
2842 (struct megasas_instance *) shost->hostdata; in megasas_fw_crash_state_show()
5368 instance = (struct megasas_instance *)host->hostdata; in megasas_probe_one()
Dmegaraid_sas_fusion.c2743 instance = (struct megasas_instance *)shost->hostdata; in megasas_reset_fusion()
/linux-4.4.14/drivers/staging/rts5208/
Drtsx.h139 return container_of((void *) dev, struct Scsi_Host, hostdata); in rtsx_to_host()
143 return (struct rtsx_dev *) host->hostdata; in host_to_rtsx()
/linux-4.4.14/drivers/scsi/libsas/
Dsas_init.c453 kfree(phy->hostdata); in sas_phy_release()
454 phy->hostdata = NULL; in sas_phy_release()
482 phy->hostdata = d; in sas_phy_setup()
491 struct sas_phy_data *d = phy->hostdata; in queue_phy_reset()
518 struct sas_phy_data *d = phy->hostdata; in queue_phy_enable()
Dsas_scsi_host.c861 starget->hostdata = found_dev; in sas_target_alloc()
955 struct domain_device *found_dev = starget->hostdata; in sas_target_destroy()
960 starget->hostdata = NULL; in sas_target_destroy()
/linux-4.4.14/drivers/firewire/
Dsbp2.c713 container_of((void *)tgt, struct Scsi_Host, hostdata[0]); in sbp2_conditionally_block()
737 container_of((void *)tgt, struct Scsi_Host, hostdata[0]); in sbp2_conditionally_unblock()
760 container_of((void *)tgt, struct Scsi_Host, hostdata[0]); in sbp2_unblock()
875 shost = container_of((void *)tgt, struct Scsi_Host, hostdata[0]); in sbp2_login()
1155 tgt = (struct sbp2_target *)shost->hostdata; in sbp2_probe()
1233 container_of((void *)tgt, struct Scsi_Host, hostdata[0]); in sbp2_remove()
1461 struct sbp2_logical_unit *lu = cmd->device->hostdata; in sbp2_scsi_queuecommand()
1510 struct sbp2_logical_unit *lu = sdev->hostdata; in sbp2_scsi_slave_alloc()
1532 struct sbp2_logical_unit *lu = sdev->hostdata; in sbp2_scsi_slave_configure()
1564 struct sbp2_logical_unit *lu = cmd->device->hostdata; in sbp2_scsi_abort()
[all …]
/linux-4.4.14/arch/powerpc/platforms/powermac/
Dlow_i2c.c86 void *hostdata; member
388 struct pmac_i2c_host_kw *host = bus->hostdata; in kw_i2c_open()
395 struct pmac_i2c_host_kw *host = bus->hostdata; in kw_i2c_close()
402 struct pmac_i2c_host_kw *host = bus->hostdata; in kw_i2c_xfer()
583 bus->hostdata = host; in kw_i2c_add()
679 struct adb_request *req = bus->hostdata; in pmu_i2c_xfer()
815 bus->hostdata = bus + 1; in pmu_i2c_probe()
844 struct smu_i2c_cmd *cmd = bus->hostdata; in smu_i2c_xfer()
938 bus->hostdata = bus + 1; in smu_i2c_probe()
/linux-4.4.14/drivers/scsi/esas2r/
Desas2r_main.c65 return (struct esas2r_adapter *)host->hostdata; in esas2r_adapter_from_kobj()
398 memset(host->hostdata, 0, host_alloc_size); in esas2r_probe()
400 a = (struct esas2r_adapter *)host->hostdata; in esas2r_probe()
443 host->hostdata); in esas2r_probe()
678 return esas2r_ioctl_handler(esas2r_proc_host->hostdata, in esas2r_proc_ioctl()
703 struct esas2r_adapter *a = (struct esas2r_adapter *)sh->hostdata; in esas2r_show_info()
770 struct esas2r_adapter *a = (struct esas2r_adapter *)sh->hostdata; in esas2r_info()
880 (struct esas2r_adapter *)cmd->device->host->hostdata; in esas2r_queuecommand()
1041 (struct esas2r_adapter *)cmd->device->host->hostdata; in esas2r_eh_abort()
1128 (struct esas2r_adapter *)cmd->device->host->hostdata; in esas2r_host_bus_reset()
[all …]
Desas2r_init.c284 a = (struct esas2r_adapter *)host->hostdata; in esas2r_init_adapter()
679 a = (struct esas2r_adapter *)host->hostdata; in esas2r_cleanup()
689 struct esas2r_adapter *a = (struct esas2r_adapter *)host->hostdata; in esas2r_suspend()
713 struct esas2r_adapter *a = (struct esas2r_adapter *)host->hostdata; in esas2r_resume()
Desas2r_ioctl.c1277 int esas2r_ioctl_handler(void *hostdata, int cmd, void __user *arg) in esas2r_ioctl_handler() argument
1285 esas2r_log(ESAS2R_LOG_DEBG, "ioctl (%p, %x, %p)", hostdata, cmd, arg); in esas2r_ioctl_handler()
1361 a = (struct esas2r_adapter *)hostdata; in esas2r_ioctl_handler()
1554 return esas2r_ioctl_handler(sd->host->hostdata, cmd, arg); in esas2r_ioctl()
Desas2r.h969 int esas2r_ioctl_handler(void *hostdata, int cmd, void __user *arg);
/linux-4.4.14/drivers/scsi/mpt3sas/
Dmpt3sas_scsih.c1214 sas_device_priv_data = sdev->hostdata; in scsih_change_queue_depth()
1265 starget->hostdata = sas_target_priv_data; in scsih_target_alloc()
1327 sas_target_priv_data = starget->hostdata; in scsih_target_destroy()
1364 starget->hostdata = NULL; in scsih_target_destroy()
1395 sas_target_priv_data = starget->hostdata; in scsih_slave_alloc()
1398 sdev->hostdata = sas_device_priv_data; in scsih_slave_alloc()
1449 if (!sdev->hostdata) in scsih_slave_destroy()
1453 sas_target_priv_data = starget->hostdata; in scsih_slave_destroy()
1471 kfree(sdev->hostdata); in scsih_slave_destroy()
1472 sdev->hostdata = NULL; in scsih_slave_destroy()
[all …]
Dmpt3sas_ctl.c575 scmd->device->hostdata == NULL) in _ctl_set_task_mid()
579 priv_data = scmd->device->hostdata; in _ctl_set_task_mid()
3334 struct MPT3SAS_DEVICE *sas_device_priv_data = sdev->hostdata; in _ctl_device_sas_address_show()
3355 struct MPT3SAS_DEVICE *sas_device_priv_data = sdev->hostdata; in _ctl_device_handle_show()
/linux-4.4.14/include/scsi/
Dscsi_device.h108 void *hostdata; /* available to low-level driver */ member
285 void *hostdata; /* available to low-level driver */ member
302 uint, uint, u64, void *hostdata);
Dscsi_host.h742 unsigned long hostdata[0] /* Used for storage of host specific stuff */ member
754 return (void *)shost->hostdata; in shost_priv()
Dlibsas.h428 #define SHOST_TO_SAS_HA(_shost) (*(struct sas_ha_struct **)(_shost)->hostdata)
432 return starget->hostdata; in starget_to_domain_dev()
Dscsi_transport_sas.h73 void *hostdata; member
/linux-4.4.14/drivers/usb/image/
Dmicrotek.c338 struct mts_desc* desc = (struct mts_desc*)(srb->device->host->hostdata[0]); in mts_scsi_abort()
349 struct mts_desc* desc = (struct mts_desc*)(srb->device->host->hostdata[0]); in mts_scsi_host_reset()
575 struct mts_desc* desc = (struct mts_desc*)(srb->device->host->hostdata[0]); in mts_scsi_queuecommand_lck()
771 new_desc->host->hostdata[0] = (unsigned long)new_desc; in mts_usb_probe()
/linux-4.4.14/drivers/scsi/csiostor/
Dcsio_init.h85 return container_of((void *)ln, struct Scsi_Host, hostdata[0]); in csio_ln_to_shost()
Dcsio_scsi.c1568 struct csio_rnode *rn = (struct csio_rnode *)(cmnd->device->hostdata); in csio_scsi_err_handler()
1777 struct csio_rnode *rn = (struct csio_rnode *)(cmnd->device->hostdata); in csio_queuecommand()
1921 struct csio_rnode *rn = (struct csio_rnode *)(cmnd->device->hostdata); in csio_eh_abort_handler()
2067 struct csio_rnode *rn = (struct csio_rnode *)(cmnd->device->hostdata); in csio_eh_lun_reset_handler()
2233 sdev->hostdata = *((struct csio_lnode **)(rport->dd_data)); in csio_slave_alloc()
2248 sdev->hostdata = NULL; in csio_slave_destroy()
/linux-4.4.14/drivers/scsi/sym53c8xx_2/
Dsym_glue.h228 return ((struct sym_data *)host->hostdata)->ncb; in sym_get_hcb()
/linux-4.4.14/drivers/block/
Dcciss_scsi.c863 sh->hostdata[0] = (unsigned long) h; in cciss_scsi_detect()
1308 ctlr_info_t *h = (ctlr_info_t *) sh->hostdata[0]; in cciss_scsi_write_info()
1320 ctlr_info_t *h = (ctlr_info_t *) sh->hostdata[0]; in cciss_scsi_show_info()
1419 h = (ctlr_info_t *) cmd->device->host->hostdata[0]; in cciss_scsi_queue_command_lck()
1660 h = (ctlr_info_t *) scsicmd->device->host->hostdata[0]; in cciss_eh_device_reset_handler()
1686 h = (ctlr_info_t *) scsicmd->device->host->hostdata[0]; in cciss_eh_abort_handler()
/linux-4.4.14/Documentation/scsi/
Din2000.txt133 check the 'hostdata->args' section in in2000.h - but be warned! Not
Dscsi_mid_low_api.txt495 * @privsize: extra bytes to allocate in hostdata array (which is the
504 * The hostdata array (by default zero length) is a per host scratch
573 * @privsize: extra bytes to allocate in hostdata array (which is the
582 * The hostdata array (by default zero length) is a per host scratch
1234 hostdata[0] - area reserved for LLD at end of struct Scsi_Host. Size
DChangeLog.lpfc156 moved to rport, hostdata renamed dd_data, add fc_remote_host()
190 hostdata readjust code so that they are no use after free's
1118 * Modified lpfc_slave_alloc to only set the scsi_device->hostdata
1268 scsi_device->hostdata, which is setup in slave_alloc.
/linux-4.4.14/drivers/scsi/mvsas/
Dmv_init.c109 sas_phy->ha = (struct sas_ha_struct *)mvi->shost->hostdata; in mvs_phy_init()
/linux-4.4.14/drivers/target/loopback/
Dtcm_loop.c401 *((struct tcm_loop_hba **)sh->hostdata) = tl_hba; in tcm_loop_driver_probe()
/linux-4.4.14/drivers/scsi/qla2xxx/
Dqla_os.c681 fc_port_t *fcport = (struct fc_port *) cmd->device->hostdata; in qla2xxx_queuecommand()
1074 fc_port_t *fcport = (struct fc_port *) cmd->device->hostdata; in __qla2xxx_eh_generic_reset()
1163 fc_port_t *fcport = (struct fc_port *) cmd->device->hostdata; in qla2xxx_eh_bus_reset()
1389 sdev->hostdata = *(fc_port_t **)rport->dd_data; in qla2xxx_slave_alloc()
1410 sdev->hostdata = NULL; in qla2xxx_slave_destroy()
/linux-4.4.14/drivers/scsi/pm8001/
Dpm8001_init.c137 sas_phy->ha = (struct sas_ha_struct *)pm8001_ha->shost->hostdata; in pm8001_phy_init()
/linux-4.4.14/include/linux/
Dlibata.h1735 return *(struct ata_port **)&host->hostdata[0]; in ata_shost_to_port()
/linux-4.4.14/drivers/scsi/qla4xxx/
Dql4_os.c4061 struct ddb_entry *ddb_entry = cmd->device->hostdata; in qla4xxx_queuecommand()
9049 sdev->hostdata = ddb; in qla4xxx_slave_alloc()
9252 struct ddb_entry *ddb_entry = cmd->device->hostdata; in qla4xxx_eh_device_reset()
9314 struct ddb_entry *ddb_entry = cmd->device->hostdata; in qla4xxx_eh_target_reset()
/linux-4.4.14/drivers/ata/
Dlibata-scsi.c3680 *(struct ata_port **)&shost->hostdata[0] = ap; in ata_scsi_add_hosts()
/linux-4.4.14/drivers/infiniband/ulp/srp/
Dib_srp.c191 return (struct srp_target_port *) host->hostdata; in host_to_target()