Home
last modified time | relevance | path

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

123456

/Linux-v4.19/drivers/scsi/ibmvscsi/
Dibmvscsi.c123 struct ibmvscsi_host_data *hostdata);
138 struct ibmvscsi_host_data *hostdata = in ibmvscsi_handle_event() local
140 vio_disable_interrupts(to_vio_dev(hostdata->dev)); in ibmvscsi_handle_event()
141 tasklet_schedule(&hostdata->srp_task); in ibmvscsi_handle_event()
154 struct ibmvscsi_host_data *hostdata, in ibmvscsi_release_crq_queue() argument
158 struct vio_dev *vdev = to_vio_dev(hostdata->dev); in ibmvscsi_release_crq_queue()
159 free_irq(vdev->irq, (void *)hostdata); in ibmvscsi_release_crq_queue()
160 tasklet_kill(&hostdata->srp_task); in ibmvscsi_release_crq_queue()
166 dma_unmap_single(hostdata->dev, in ibmvscsi_release_crq_queue()
207 static int ibmvscsi_send_crq(struct ibmvscsi_host_data *hostdata, in ibmvscsi_send_crq() argument
[all …]
/Linux-v4.19/drivers/scsi/
D53c700.c244 NCR_700_offset_period_to_sxfer(struct NCR_700_Host_Parameters *hostdata, in NCR_700_offset_period_to_sxfer() argument
249 __u8 min_xferp = (hostdata->chip710 in NCR_700_offset_period_to_sxfer()
251 __u8 max_offset = (hostdata->chip710 in NCR_700_offset_period_to_sxfer()
257 if(period < hostdata->min_period) { in NCR_700_offset_period_to_sxfer()
259 period = hostdata->min_period; in NCR_700_offset_period_to_sxfer()
261 XFERP = (period*4 * hostdata->sync_clock)/1000 - 4; in NCR_700_offset_period_to_sxfer()
276 struct NCR_700_Host_Parameters *hostdata = in NCR_700_get_SXFER() local
277 (struct NCR_700_Host_Parameters *)SDp->host->hostdata[0]; in NCR_700_get_SXFER()
279 return NCR_700_offset_period_to_sxfer(hostdata, in NCR_700_get_SXFER()
286 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.c184 static int NCR5380_poll_politely2(struct NCR5380_hostdata *hostdata, in NCR5380_poll_politely2() argument
189 unsigned long n = hostdata->poll_loops; in NCR5380_poll_politely2()
273 struct NCR5380_hostdata *hostdata = shost_priv(instance); in NCR5380_print() local
323 struct NCR5380_hostdata *hostdata = shost_priv(instance); in NCR5380_print_phase() local
348 struct NCR5380_hostdata *hostdata = shost_priv(instance); in NCR5380_info() local
350 return hostdata->info; in NCR5380_info()
369 struct NCR5380_hostdata *hostdata = shost_priv(instance); in NCR5380_init() local
376 hostdata->host = instance; in NCR5380_init()
377 hostdata->id_mask = 1 << instance->this_id; in NCR5380_init()
378 hostdata->id_higher_mask = 0; in NCR5380_init()
[all …]
Dg_NCR5380.c38 ioread8(hostdata->io + hostdata->offset + (reg))
40 iowrite8(value, hostdata->io + hostdata->offset + (reg))
116 struct NCR5380_hostdata *hostdata = shost_priv(instance); in g_NCR5380_trigger_irq() local
128 NCR5380_write(SELECT_ENABLE_REG, hostdata->id_mask); in g_NCR5380_trigger_irq()
129 NCR5380_write(OUTPUT_DATA_REG, hostdata->id_mask); in g_NCR5380_trigger_irq()
150 struct NCR5380_hostdata *hostdata = shost_priv(instance); in g_NCR5380_probe_irq() local
233 struct NCR5380_hostdata *hostdata; in generic_NCR5380_init_one() local
318 hostdata = shost_priv(instance); in generic_NCR5380_init_one()
320 hostdata->board = board; in generic_NCR5380_init_one()
321 hostdata->io = iomem; in generic_NCR5380_init_one()
[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 …]
Dmac_scsi.c33 #define NCR5380_read(reg) in_8(hostdata->io + ((reg) << 4))
34 #define NCR5380_write(reg, value) out_8(hostdata->io + ((reg) << 4), value)
154 static inline int macscsi_pread(struct NCR5380_hostdata *hostdata, in macscsi_pread() argument
157 u8 __iomem *s = hostdata->pdma_io + (INPUT_DATA_REG << 4); in macscsi_pread()
162 while (!NCR5380_poll_politely(hostdata, BUS_AND_STATUS_REG, in macscsi_pread()
168 hostdata->pdma_residual = len - transferred; in macscsi_pread()
175 if (NCR5380_poll_politely2(hostdata, STATUS_REG, SR_REQ, SR_REQ, in macscsi_pread()
177 scmd_printk(KERN_ERR, hostdata->connected, in macscsi_pread()
182 dsprintk(NDEBUG_PSEUDO_DMA, hostdata->host, in macscsi_pread()
184 NCR5380_dprint(NDEBUG_PSEUDO_DMA, hostdata->host); in macscsi_pread()
[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.h110 struct NCR_700_Device_Parameters *hostdata = SDp->hostdata; in NCR_700_get_sense_cmnd() local
112 return hostdata->cmnd; in NCR_700_get_sense_cmnd()
118 struct NCR_700_Device_Parameters *hostdata = SDp->hostdata; in NCR_700_set_depth() local
120 hostdata->depth = depth; in NCR_700_set_depth()
125 struct NCR_700_Device_Parameters *hostdata = SDp->hostdata; in NCR_700_get_depth() local
127 return hostdata->depth; in NCR_700_get_depth()
258 #define bE (hostdata->force_le_on_be ? 0 : 3)
259 #define bSWAP (hostdata->force_le_on_be)
260 #define bEBus (!hostdata->force_le_on_be)
483 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 …]
Ddmx3191d.c37 #define NCR5380_read(reg) inb(hostdata->base + (reg))
38 #define NCR5380_write(reg, value) outb(value, hostdata->base + (reg))
74 struct NCR5380_hostdata *hostdata; in dmx3191d_probe_one() local
93 hostdata = shost_priv(shost); in dmx3191d_probe_one()
94 hostdata->base = io; in dmx3191d_probe_one()
131 struct NCR5380_hostdata *hostdata = shost_priv(shost); in dmx3191d_remove_one() local
132 unsigned long io = hostdata->base; in dmx3191d_remove_one()
Dsun3_scsi.c45 #define NCR5380_read(reg) in_8(hostdata->io + (reg))
46 #define NCR5380_write(reg, value) out_8(hostdata->io + (reg), value)
219 static int sun3scsi_dma_setup(struct NCR5380_hostdata *hostdata, in sun3scsi_dma_setup() argument
272 shost_printk(KERN_ERR, hostdata->host, in sun3scsi_dma_setup()
275 NCR5380_dprint(NDEBUG_DMA, hostdata->host); in sun3scsi_dma_setup()
310 static int sun3scsi_dma_count(struct NCR5380_hostdata *hostdata, in sun3scsi_dma_count() argument
316 static inline int sun3scsi_dma_recv_setup(struct NCR5380_hostdata *hostdata, in sun3scsi_dma_recv_setup() argument
319 return sun3scsi_dma_setup(hostdata, data, count, 0); in sun3scsi_dma_recv_setup()
322 static inline int sun3scsi_dma_send_setup(struct NCR5380_hostdata *hostdata, in sun3scsi_dma_send_setup() argument
325 return sun3scsi_dma_setup(hostdata, data, count, 1); in sun3scsi_dma_send_setup()
[all …]
Datari_scsi.c184 struct NCR5380_hostdata *hostdata = shost_priv(instance); in scsi_tt_intr() local
213 atari_dma_residual = hostdata->dma_len - in scsi_tt_intr()
273 struct NCR5380_hostdata *hostdata = shost_priv(instance); in scsi_falcon_intr() local
308 atari_dma_residual = hostdata->dma_len - transferred; in scsi_falcon_intr()
320 hostdata->dma_len - atari_dma_residual); in scsi_falcon_intr()
425 static unsigned long atari_scsi_dma_setup(struct NCR5380_hostdata *hostdata, in atari_scsi_dma_setup() argument
432 hostdata->host->host_no, data, addr, count, dir); in atari_scsi_dma_setup()
489 static inline int atari_scsi_dma_recv_setup(struct NCR5380_hostdata *hostdata, in atari_scsi_dma_recv_setup() argument
492 return atari_scsi_dma_setup(hostdata, data, count, 0); in atari_scsi_dma_recv_setup()
495 static inline int atari_scsi_dma_send_setup(struct NCR5380_hostdata *hostdata, in atari_scsi_dma_send_setup() argument
[all …]
/Linux-v4.19/drivers/scsi/arm/
Dcumana_1.c16 #define priv(host) ((struct NCR5380_hostdata *)(host)->hostdata)
17 #define NCR5380_read(reg) cumanascsi_read(hostdata, reg)
18 #define NCR5380_write(reg, value) cumanascsi_write(hostdata, reg, value)
43 static inline int cumanascsi_pwrite(struct NCR5380_hostdata *hostdata, in cumanascsi_pwrite() argument
47 u8 __iomem *base = hostdata->io; in cumanascsi_pwrite()
48 u8 __iomem *dma = hostdata->pdma_io + 0x2000; in cumanascsi_pwrite()
103 writeb(hostdata->ctrl | 0x40, base + CTRL); in cumanascsi_pwrite()
110 static inline int cumanascsi_pread(struct NCR5380_hostdata *hostdata, in cumanascsi_pread() argument
114 u8 __iomem *base = hostdata->io; in cumanascsi_pread()
115 u8 __iomem *dma = hostdata->pdma_io + 0x2000; in cumanascsi_pread()
[all …]
Doak.c17 #define priv(host) ((struct NCR5380_hostdata *)(host)->hostdata)
19 #define NCR5380_read(reg) readb(hostdata->io + ((reg) << 2))
20 #define NCR5380_write(reg, value) writeb(value, hostdata->io + ((reg) << 2))
40 static inline int oakscsi_pwrite(struct NCR5380_hostdata *hostdata, in oakscsi_pwrite() argument
43 u8 __iomem *base = hostdata->io; in oakscsi_pwrite()
55 static inline int oakscsi_pread(struct NCR5380_hostdata *hostdata, in oakscsi_pread() argument
58 u8 __iomem *base = hostdata->io; in oakscsi_pread()
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()
/Linux-v4.19/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 …]
/Linux-v4.19/include/linux/
Dlogic_pio.h26 void *hostdata; member
31 u32 (*in)(void *hostdata, unsigned long addr, size_t dwidth);
32 void (*out)(void *hostdata, unsigned long addr, u32 val,
34 u32 (*ins)(void *hostdata, unsigned long addr, void *buffer,
36 void (*outs)(void *hostdata, unsigned long addr, const void *buffer,
/Linux-v4.19/drivers/scsi/bfa/
Dbfad_attr.c40 im_port = (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_starget_port_id()
66 im_port = (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_starget_node_name()
92 im_port = (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_starget_port_name()
111 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_host_port_id()
125 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_host_port_type()
157 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_host_port_state()
194 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_host_active_fc4s()
213 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_host_speed()
250 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_host_fabric_name()
267 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_stats()
[all …]
/Linux-v4.19/drivers/scsi/lpfc/
Dlpfc_attr.c136 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_enable_fip_show()
517 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_bg_info_show()
536 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_bg_guard_err_show()
548 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_bg_apptag_err_show()
560 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_bg_reftag_err_show()
597 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_serialnum_show()
620 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_temp_sensor_show()
638 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_modeldesc_show()
657 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_modelname_show()
676 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_programtype_show()
[all …]
/Linux-v4.19/drivers/bus/
Dhisi_lpc.c207 static u32 hisi_lpc_comm_in(void *hostdata, unsigned long pio, size_t dwidth) in hisi_lpc_comm_in() argument
209 struct hisi_lpc_dev *lpcdev = hostdata; in hisi_lpc_comm_in()
240 static void hisi_lpc_comm_out(void *hostdata, unsigned long pio, in hisi_lpc_comm_out() argument
243 struct hisi_lpc_dev *lpcdev = hostdata; in hisi_lpc_comm_out()
273 static u32 hisi_lpc_comm_ins(void *hostdata, unsigned long pio, void *buffer, in hisi_lpc_comm_ins() argument
276 struct hisi_lpc_dev *lpcdev = hostdata; in hisi_lpc_comm_ins()
311 static void hisi_lpc_comm_outs(void *hostdata, unsigned long pio, in hisi_lpc_comm_outs() argument
315 struct hisi_lpc_dev *lpcdev = hostdata; in hisi_lpc_comm_outs()
626 lpcdev->io_host->hostdata = lpcdev; in hisi_lpc_probe()

123456