Home
last modified time | relevance | path

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

123456

/linux/drivers/scsi/
A D53c700.c353 hostdata->free_list = &hostdata->slots[j]; in NCR_700_detect()
384 host->hostdata[0] = (unsigned long)hostdata; in NCR_700_detect()
399 hostdata->rev, hostdata->differential ? in NCR_700_detect()
424 hostdata->script, hostdata->pScript, in NCR_700_release()
428 hostdata->script, hostdata->pScript); in NCR_700_release()
726 hostdata->sync_clock = hostdata->clock/2; in NCR_700_chip_setup()
732 hostdata->sync_clock = hostdata->clock*2; in NCR_700_chip_setup()
740 hostdata->sync_clock = hostdata->clock; in NCR_700_chip_setup()
746 hostdata->sync_clock = hostdata->clock; in NCR_700_chip_setup()
752 hostdata->sync_clock = hostdata->clock; in NCR_700_chip_setup()
[all …]
A Dwd33c93.c87 #define optimum_sx_per(hostdata) (hostdata)->sx_table[1].period_ns argument
370 hostdata = (struct WD33C93_hostdata *) cmd->device->host->hostdata; in wd33c93_queuecommand_lck()
479 if (hostdata->selecting || hostdata->connected) { in DEF_SCSI_QCMD()
749 if (hostdata->no_dma || hostdata->dma_setup(cmd, data_in_dir)) { in transfer_bytes()
956 hostdata); in wd33c93_intr()
988 hostdata->incoming_msg[hostdata->incoming_ptr] = msg; in wd33c93_intr()
1229 hostdata->outgoing_len, DATA_OUT_DIR, hostdata); in wd33c93_intr()
1572 hostdata = (struct WD33C93_hostdata *) instance->hostdata; in wd33c93_host_reset()
1612 hostdata = (struct WD33C93_hostdata *) instance->hostdata; in wd33c93_abort()
1938 hostdata = (struct WD33C93_hostdata *) instance->hostdata; in wd33c93_init()
[all …]
A DNCR5380.c427 snprintf(hostdata->info, sizeof(hostdata->info), in NCR5380_init()
609 queue_work(hostdata->work_q, &hostdata->main_task); in NCR5380_queue_command()
644 if (hostdata->sensing || list_empty(&hostdata->autosense)) { in dequeue_next_cmd()
705 while (!hostdata->connected && !hostdata->selecting) { in NCR5380_main()
734 if (hostdata->connected && !hostdata->dma_len) { in NCR5380_main()
894 queue_work(hostdata->work_q, &hostdata->main_task); in NCR5380_intr()
909 queue_work(hostdata->work_q, &hostdata->main_task); in NCR5380_intr()
968 __releases(&hostdata->lock) __acquires(&hostdata->lock) in NCR5380_select()
1677 __releases(&hostdata->lock) __acquires(&hostdata->lock) in NCR5380_information_transfer()
2319 queue_work(hostdata->work_q, &hostdata->main_task); in NCR5380_abort()
[all …]
A Dg_NCR5380.c39 ioread8(hostdata->io + hostdata->offset + (reg))
41 iowrite8(value, hostdata->io + hostdata->offset + (reg))
531 if (NCR5380_poll_politely(hostdata, hostdata->c400_ctl_status, in generic_NCR5380_precv()
535 if (NCR5380_poll_politely2(hostdata, hostdata->c400_ctl_status, in generic_NCR5380_precv()
544 if (hostdata->io_port && hostdata->io_width == 2) in generic_NCR5380_precv()
545 insw(hostdata->io_port + hostdata->c400_host_buf, in generic_NCR5380_precv()
548 insb(hostdata->io_port + hostdata->c400_host_buf, in generic_NCR5380_precv()
596 if (NCR5380_poll_politely2(hostdata, hostdata->c400_ctl_status, in generic_NCR5380_psend()
623 if (hostdata->io_port && hostdata->io_width == 2) in generic_NCR5380_psend()
624 outsw(hostdata->io_port + hostdata->c400_host_buf, in generic_NCR5380_psend()
[all …]
A Dmac_scsi.c284 hostdata->pdma_residual = len; in macscsi_pread()
299 hostdata->pdma_residual -= bytes; in macscsi_pread()
302 if (hostdata->pdma_residual == 0) in macscsi_pread()
326 scmd_printk(KERN_ERR, hostdata->connected, in macscsi_pread()
343 hostdata->pdma_residual = len; in macscsi_pwrite()
358 hostdata->pdma_residual -= bytes; in macscsi_pwrite()
361 if (hostdata->pdma_residual == 0) { in macscsi_pwrite()
416 return hostdata->pdma_residual; in macscsi_dma_residual()
444 struct NCR5380_hostdata *hostdata; in mac_scsi_probe() local
482 hostdata = shost_priv(instance); in mac_scsi_probe()
[all …]
A Dlasi700.c91 hostdata = kzalloc(sizeof(*hostdata), GFP_KERNEL); in lasi700_probe()
92 if (!hostdata) { in lasi700_probe()
97 hostdata->dev = &dev->dev; in lasi700_probe()
100 hostdata->differential = 0; in lasi700_probe()
104 hostdata->force_le_on_be = 1; in lasi700_probe()
108 hostdata->chip710 = 1; in lasi700_probe()
110 hostdata->burst_length = 8; in lasi700_probe()
132 iounmap(hostdata->base); in lasi700_probe()
133 kfree(hostdata); in lasi700_probe()
147 iounmap(hostdata->base); in lasi700_driver_remove()
[all …]
A Dsni_53c710.c67 hostdata = kzalloc(sizeof(*hostdata), GFP_KERNEL); in snirm710_probe()
68 if (!hostdata) in snirm710_probe()
71 hostdata->dev = &dev->dev; in snirm710_probe()
74 hostdata->differential = 0; in snirm710_probe()
77 hostdata->force_le_on_be = 1; in snirm710_probe()
78 hostdata->chip710 = 1; in snirm710_probe()
79 hostdata->burst_length = 4; in snirm710_probe()
102 iounmap(hostdata->base); in snirm710_probe()
103 kfree(hostdata); in snirm710_probe()
116 iounmap(hostdata->base); in snirm710_driver_remove()
[all …]
A Dbvme6000_scsi.c42 struct NCR_700_Host_Parameters *hostdata; in bvme6000_probe() local
48 if (!hostdata) { in bvme6000_probe()
55 hostdata->base = (void __iomem *)BVME_NCR53C710_BASE; in bvme6000_probe()
56 hostdata->clock = 40; /* XXX - depends on the CPU clock! */ in bvme6000_probe()
57 hostdata->chip710 = 1; in bvme6000_probe()
58 hostdata->dmode_extra = DMODE_FC2; in bvme6000_probe()
59 hostdata->dcntl_extra = EA_710; in bvme6000_probe()
60 hostdata->ctest7_extra = CTEST7_TT1; in bvme6000_probe()
87 kfree(hostdata); in bvme6000_probe()
96 struct NCR_700_Host_Parameters *hostdata = shost_priv(host); in bvme6000_device_remove() local
[all …]
A Dmvme16x_scsi.c41 struct NCR_700_Host_Parameters *hostdata; in mvme16x_probe() local
53 if (hostdata == NULL) { in mvme16x_probe()
60 hostdata->base = (void __iomem *)0xfff47000UL; in mvme16x_probe()
61 hostdata->clock = 50; /* XXX - depends on the CPU clock! */ in mvme16x_probe()
62 hostdata->chip710 = 1; in mvme16x_probe()
63 hostdata->dmode_extra = DMODE_FC2; in mvme16x_probe()
64 hostdata->dcntl_extra = EA_710; in mvme16x_probe()
65 hostdata->ctest7_extra = CTEST7_TT1; in mvme16x_probe()
101 kfree(hostdata); in mvme16x_probe()
109 struct NCR_700_Host_Parameters *hostdata = shost_priv(host); in mvme16x_device_remove() local
[all …]
A D53c700.h109 struct NCR_700_Device_Parameters *hostdata = SDp->hostdata; in NCR_700_get_sense_cmnd() local
111 return hostdata->cmnd; in NCR_700_get_sense_cmnd()
117 struct NCR_700_Device_Parameters *hostdata = SDp->hostdata; in NCR_700_set_depth() local
119 hostdata->depth = depth; in NCR_700_set_depth()
124 struct NCR_700_Device_Parameters *hostdata = SDp->hostdata; in NCR_700_get_depth() local
126 return hostdata->depth; in NCR_700_get_depth()
259 #define bSWAP (hostdata->force_le_on_be)
260 #define bEBus (!hostdata->force_le_on_be)
486 return ioread8(hostdata->base + (reg^bE)); in NCR_700_readb()
495 ioread32(hostdata->base + reg); in NCR_700_readl()
[all …]
A Da4000t.c39 struct NCR_700_Host_Parameters *hostdata; in amiga_a4000t_scsi_probe() local
50 hostdata = kzalloc(sizeof(struct NCR_700_Host_Parameters), in amiga_a4000t_scsi_probe()
52 if (!hostdata) { in amiga_a4000t_scsi_probe()
60 hostdata->base = ZTWO_VADDR(scsi_addr); in amiga_a4000t_scsi_probe()
61 hostdata->clock = 50; in amiga_a4000t_scsi_probe()
62 hostdata->chip710 = 1; in amiga_a4000t_scsi_probe()
63 hostdata->dmode_extra = DMODE_FC2; in amiga_a4000t_scsi_probe()
64 hostdata->dcntl_extra = EA_710; in amiga_a4000t_scsi_probe()
67 host = NCR_700_detect(&a4000t_scsi_driver_template, hostdata, in amiga_a4000t_scsi_probe()
92 kfree(hostdata); in amiga_a4000t_scsi_probe()
[all …]
A Dzorro7xx.c79 struct NCR_700_Host_Parameters *hostdata; in zorro7xx_init_one() local
99 if (!hostdata) { in zorro7xx_init_one()
106 hostdata->base = ioremap(ioaddr, zorro_resource_len(z)); in zorro7xx_init_one()
108 hostdata->base = ZTWO_VADDR(ioaddr); in zorro7xx_init_one()
110 hostdata->clock = 50; in zorro7xx_init_one()
111 hostdata->chip710 = 1; in zorro7xx_init_one()
114 hostdata->ctest7_extra = CTEST7_TT1; in zorro7xx_init_one()
146 iounmap(hostdata->base); in zorro7xx_init_one()
147 kfree(hostdata); in zorro7xx_init_one()
157 struct NCR_700_Host_Parameters *hostdata = shost_priv(host); in zorro7xx_remove_one() local
[all …]
A Dsim710.c89 struct NCR_700_Host_Parameters *hostdata = in sim710_probe_common() local
96 if(hostdata == NULL) { in sim710_probe_common()
108 hostdata->base = ioport_map(base_addr, 64); in sim710_probe_common()
109 hostdata->differential = differential; in sim710_probe_common()
110 hostdata->clock = clock; in sim710_probe_common()
111 hostdata->chip710 = 1; in sim710_probe_common()
112 hostdata->burst_length = 8; in sim710_probe_common()
138 kfree(hostdata); in sim710_probe_common()
146 struct NCR_700_Host_Parameters *hostdata = in sim710_device_remove() local
147 (struct NCR_700_Host_Parameters *)host->hostdata[0]; in sim710_device_remove()
[all …]
A Dsun3_scsi.c46 #define NCR5380_read(reg) in_8(hostdata->io + (reg))
273 shost_printk(KERN_ERR, hostdata->host, in sun3scsi_dma_setup()
276 NCR5380_dprint(NDEBUG_DMA, hostdata->host); in sun3scsi_dma_setup()
320 return sun3scsi_dma_setup(hostdata, data, count, 0); in sun3scsi_dma_recv_setup()
326 return sun3scsi_dma_setup(hostdata, data, count, 1); in sun3scsi_dma_send_setup()
514 struct NCR5380_hostdata *hostdata; in sun3_scsi_probe() local
589 hostdata = shost_priv(instance); in sun3_scsi_probe()
590 hostdata->base = mem->start; in sun3_scsi_probe()
591 hostdata->io = ioaddr; in sun3_scsi_probe()
647 struct NCR5380_hostdata *hostdata = shost_priv(instance); in sun3_scsi_remove() local
[all …]
A Ddmx3191d.c25 #define NCR5380_read(reg) inb(hostdata->base + (reg))
26 #define NCR5380_write(reg, value) outb(value, hostdata->base + (reg))
62 struct NCR5380_hostdata *hostdata; in dmx3191d_probe_one() local
81 hostdata = shost_priv(shost); in dmx3191d_probe_one()
82 hostdata->base = io; in dmx3191d_probe_one()
119 struct NCR5380_hostdata *hostdata = shost_priv(shost); in dmx3191d_remove_one() local
120 unsigned long io = hostdata->base; in dmx3191d_remove_one()
A 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()
428 hostdata->host->host_no, data, addr, count, dir); in atari_scsi_dma_setup()
488 return atari_scsi_dma_setup(hostdata, data, count, 0); in atari_scsi_dma_recv_setup()
494 return atari_scsi_dma_setup(hostdata, data, count, 1); in atari_scsi_dma_send_setup()
497 static int atari_scsi_dma_residual(struct NCR5380_hostdata *hostdata) in atari_scsi_dma_residual() argument
829 struct NCR5380_hostdata *hostdata = in atari_scsi_probe() local
[all …]
/linux/drivers/scsi/ibmvscsi/
A Dibmvscsi.c472 evt->hostdata = hostdata; in initialize_event_pool()
849 struct ibmvscsi_host_data *hostdata = evt_struct->hostdata; in ibmvscsi_timeout() local
1113 hostdata->caps_addr = dma_map_single(hostdata->dev, &hostdata->caps, in DEF_SCSI_QCMD()
1121 hostdata->adapter_info_addr = dma_map_single(hostdata->dev, in DEF_SCSI_QCMD()
1127 dma_unmap_single(hostdata->dev, hostdata->caps_addr, in DEF_SCSI_QCMD()
1143 dma_unmap_single(hostdata->dev, hostdata->caps_addr, in unmap_persist_bufs()
2242 memset(hostdata, 0x00, sizeof(*hostdata)); in ibmvscsi_probe()
2283 if (scsi_add_host(hostdata->host, hostdata->dev)) in ibmvscsi_probe()
2327 release_event_pool(&hostdata->pool, hostdata); in ibmvscsi_probe()
2348 release_event_pool(&hostdata->pool, hostdata); in ibmvscsi_remove()
[all …]
/linux/drivers/scsi/arm/
A Dcumana_1.c18 #define NCR5380_read(reg) cumanascsi_read(hostdata, reg)
48 u8 __iomem *base = hostdata->io; in cumanascsi_pwrite()
49 u8 __iomem *dma = hostdata->pdma_io + 0x2000; in cumanascsi_pwrite()
104 writeb(hostdata->ctrl | 0x40, base + CTRL); in cumanascsi_pwrite()
115 u8 __iomem *base = hostdata->io; in cumanascsi_pread()
116 u8 __iomem *dma = hostdata->pdma_io + 0x2000; in cumanascsi_pread()
170 writeb(hostdata->ctrl | 0x40, base + CTRL); in cumanascsi_pread()
186 u8 __iomem *base = hostdata->io; in cumanascsi_read()
193 hostdata->ctrl = 0x40; in cumanascsi_read()
202 u8 __iomem *base = hostdata->io; in cumanascsi_write()
[all …]
A Doak.c18 #define priv(host) ((struct NCR5380_hostdata *)(host)->hostdata)
20 #define NCR5380_read(reg) readb(hostdata->io + ((reg) << 2))
21 #define NCR5380_write(reg, value) writeb(value, hostdata->io + ((reg) << 2))
41 static inline int oakscsi_pwrite(struct NCR5380_hostdata *hostdata, in oakscsi_pwrite() argument
44 u8 __iomem *base = hostdata->io; in oakscsi_pwrite()
56 static inline int oakscsi_pread(struct NCR5380_hostdata *hostdata, in oakscsi_pread() argument
59 u8 __iomem *base = hostdata->io; in oakscsi_pread()
A Dpowertec.c101 struct powertec_info *info = (struct powertec_info *)host->hostdata; in powertecscsi_terminator_ctl()
131 struct powertec_info *info = (struct powertec_info *)host->hostdata; in powertecscsi_dma_setup()
173 struct powertec_info *info = (struct powertec_info *)host->hostdata; in powertecscsi_dma_stop()
185 struct powertec_info *info = (struct powertec_info *)host->hostdata; in powertecscsi_info()
242 info = (struct powertec_info *)host->hostdata; in powertecscsi_show_info()
258 struct powertec_info *info = (struct powertec_info *)host->hostdata; in powertecscsi_show_term()
325 info = (struct powertec_info *)host->hostdata; in powertecscsi_probe()
401 struct powertec_info *info = (struct powertec_info *)host->hostdata; in powertecscsi_remove()
/linux/drivers/scsi/arcmsr/
A Darcmsr_attr.c69 struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata; in arcmsr_sysfs_iop_message_read()
116 struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata; in arcmsr_sysfs_iop_message_write()
272 (struct AdapterControlBlock *) host->hostdata; in arcmsr_attr_host_driver_posted_cmd()
284 (struct AdapterControlBlock *) host->hostdata; in arcmsr_attr_host_driver_reset()
296 (struct AdapterControlBlock *) host->hostdata; in arcmsr_attr_host_driver_abort()
308 (struct AdapterControlBlock *) host->hostdata; in arcmsr_attr_host_fw_model()
320 (struct AdapterControlBlock *) host->hostdata; in arcmsr_attr_host_fw_version()
333 (struct AdapterControlBlock *) host->hostdata; in arcmsr_attr_host_fw_request_len()
346 (struct AdapterControlBlock *) host->hostdata; in arcmsr_attr_host_fw_numbers_queue()
359 (struct AdapterControlBlock *) host->hostdata; in arcmsr_attr_host_fw_sdram_size()
[all …]
/linux/drivers/scsi/bfa/
A Dbfad_attr.c103 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_host_port_id()
117 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_host_port_type()
149 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_host_port_state()
186 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_host_active_fc4s()
205 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_host_speed()
242 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_host_fabric_name()
259 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_stats()
312 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_reset_stats()
357 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_vport_create()
444 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_issue_fc_host_lip()
[all …]
/linux/include/linux/
A 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/drivers/scsi/lpfc/
A Dlpfc_attr.c122 struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata; in lpfc_cmf_info_show()
322 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_enable_fip_show()
758 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_bg_info_show()
778 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_bg_guard_err_show()
790 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_bg_apptag_err_show()
802 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_bg_reftag_err_show()
839 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_serialnum_show()
936 struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata; in lpfc_mlomgmt_show()
1213 struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata; in lpfc_oas_supported_show()
1505 ((struct lpfc_vport *)shost->hostdata)->phba; in lpfc_reset_pci_bus()
[all …]
/linux/drivers/usb/storage/
A Duas.c121 err = uas_submit_urbs(cmnd, cmnd->device->hostdata); in uas_do_work()
146 struct uas_dev_info *devinfo = cmnd->device->hostdata; in uas_add_work()
270 err = uas_submit_urbs(cmnd, cmnd->device->hostdata); in uas_xfer_data()
540 struct uas_dev_info *devinfo = cmnd->device->hostdata; in uas_submit_sense_urb()
639 struct uas_dev_info *devinfo = sdev->hostdata; in uas_queuecommand_lck()
772 struct uas_dev_info *devinfo = sdev->hostdata; in uas_eh_device_reset_handler()
816 dev_to_shost(starget->dev.parent)->hostdata; in uas_target_alloc()
827 (struct uas_dev_info *)sdev->host->hostdata; in uas_slave_alloc()
829 sdev->hostdata = devinfo; in uas_slave_alloc()
848 struct uas_dev_info *devinfo = sdev->hostdata; in uas_slave_configure()
[all …]

Completed in 86 milliseconds

123456