Home
last modified time | relevance | path

Searched refs:io_addr (Results 1 – 25 of 35) sorted by relevance

12

/drivers/staging/comedi/drivers/
Dicp_multi.c116 void __iomem *io_addr; /* Pointer to mapped io address */ member
175 devpriv->io_addr + ICP_MULTI_ADC_CSR); in setup_channel_list()
188 writew(devpriv->IntEnable, devpriv->io_addr + ICP_MULTI_INT_EN); in icp_multi_insn_read_ai()
192 writew(devpriv->IntStatus, devpriv->io_addr + ICP_MULTI_INT_STAT); in icp_multi_insn_read_ai()
201 devpriv->io_addr + ICP_MULTI_ADC_CSR); in icp_multi_insn_read_ai()
209 if (!(readw(devpriv->io_addr + in icp_multi_insn_read_ai()
221 writew(devpriv->IntEnable, devpriv->io_addr + ICP_MULTI_INT_EN); in icp_multi_insn_read_ai()
226 devpriv->io_addr + ICP_MULTI_INT_STAT); in icp_multi_insn_read_ai()
235 (readw(devpriv->io_addr + ICP_MULTI_AI) >> 4) & 0x0fff; in icp_multi_insn_read_ai()
240 writew(devpriv->IntEnable, devpriv->io_addr + ICP_MULTI_INT_EN); in icp_multi_insn_read_ai()
[all …]
Ddt3000.c253 void __iomem *io_addr; member
286 writew(cmd, devpriv->io_addr + DPR_Command_Mbx); in dt3k_send_cmd()
289 status = readw(devpriv->io_addr + DPR_Command_Mbx); in dt3k_send_cmd()
306 writew(subsys, devpriv->io_addr + DPR_SubSys); in dt3k_readsingle()
308 writew(chan, devpriv->io_addr + DPR_Params(0)); in dt3k_readsingle()
309 writew(gain, devpriv->io_addr + DPR_Params(1)); in dt3k_readsingle()
313 return readw(devpriv->io_addr + DPR_Params(2)); in dt3k_readsingle()
321 writew(subsys, devpriv->io_addr + DPR_SubSys); in dt3k_writesingle()
323 writew(chan, devpriv->io_addr + DPR_Params(0)); in dt3k_writesingle()
324 writew(0, devpriv->io_addr + DPR_Params(1)); in dt3k_writesingle()
[all …]
Dni_670x.c147 void __iomem *io_addr = devpriv->mite->daq_io_addr + in ni_670x_dio_insn_bits() local
156 writel(s->state, io_addr); in ni_670x_dio_insn_bits()
159 data[1] = readl(io_addr); in ni_670x_dio_insn_bits()
/drivers/ide/
Dide-generic.c90 unsigned long io_addr; in ide_generic_init() local
109 io_addr = legacy_bases[i]; in ide_generic_init()
111 if ((probe_mask & (1 << i)) && io_addr) { in ide_generic_init()
112 if (!request_region(io_addr, 8, DRV_NAME)) { in ide_generic_init()
115 DRV_NAME, io_addr, io_addr + 7); in ide_generic_init()
120 if (!request_region(io_addr + 0x206, 1, DRV_NAME)) { in ide_generic_init()
123 DRV_NAME, io_addr + 0x206); in ide_generic_init()
124 release_region(io_addr, 8); in ide_generic_init()
130 ide_std_init_ports(&hw, io_addr, io_addr + 0x206); in ide_generic_init()
138 release_region(io_addr + 0x206, 1); in ide_generic_init()
[all …]
/drivers/watchdog/
Dpcwd.c184 int io_addr; /* The cards I/O address */ member
228 outb_p(control_status, pcwd_private.io_addr + 2); in send_isa_command()
231 port0 = inb_p(pcwd_private.io_addr); in send_isa_command()
234 port0 = inb_p(pcwd_private.io_addr); in send_isa_command()
262 outb_p(0x00, pcwd_private.io_addr + 2); in set_command_mode()
264 outb_p(0x00, pcwd_private.io_addr + 2); in set_command_mode()
282 outb_p(0x00, pcwd_private.io_addr + 2); in unset_command_mode()
294 if (inb(pcwd_private.io_addr) != 0xF0) in pcwd_check_temperature_support()
337 pcwd_private.io_addr); in pcwd_show_card_info()
341 pcwd_private.io_addr, pcwd_private.fw_ver_str); in pcwd_show_card_info()
[all …]
Dpcwd_pci.c126 unsigned long io_addr; member
173 outb_p(*lsb, pcipcwd_private.io_addr + 4); in send_command()
174 outb_p(*msb, pcipcwd_private.io_addr + 5); in send_command()
175 outb_p(cmd, pcipcwd_private.io_addr + 6); in send_command()
180 got_response = inb_p(pcipcwd_private.io_addr + 2) & WD_PCI_WRSP; in send_command()
184 got_response = inb_p(pcipcwd_private.io_addr + 2) & WD_PCI_WRSP; in send_command()
198 *lsb = inb_p(pcipcwd_private.io_addr + 4); in send_command()
199 *msb = inb_p(pcipcwd_private.io_addr + 5); in send_command()
202 inb_p(pcipcwd_private.io_addr + 6); in send_command()
216 if (inb_p(pcipcwd_private.io_addr) != 0xF0) in pcipcwd_check_temperature_support()
[all …]
/drivers/bcma/
Dhost_soc.c15 return readb(core->io_addr + offset); in bcma_host_soc_read8()
20 return readw(core->io_addr + offset); in bcma_host_soc_read16()
25 return readl(core->io_addr + offset); in bcma_host_soc_read32()
31 writeb(value, core->io_addr + offset); in bcma_host_soc_write8()
37 writew(value, core->io_addr + offset); in bcma_host_soc_write16()
43 writel(value, core->io_addr + offset); in bcma_host_soc_write32()
50 void __iomem *addr = core->io_addr + offset; in bcma_host_soc_block_read()
94 void __iomem *addr = core->io_addr + offset; in bcma_host_soc_block_write()
Dscan.c407 core->io_addr = ioremap_nocache(core->addr, BCMA_CORE_SIZE); in bcma_get_next_core()
408 if (!core->io_addr) in bcma_get_next_core()
412 iounmap(core->io_addr); in bcma_get_next_core()
Dmain.c99 if (core->io_addr) in bcma_release_core_dev()
100 iounmap(core->io_addr); in bcma_release_core_dev()
Ddriver_chipcommon.c340 ports[i].regs = cc->core->io_addr + BCMA_CC_UART0_DATA + in bcma_chipco_serial_init()
/drivers/usb/host/
Duhci-hcd.h385 unsigned long io_addr; member
503 return inl(uhci->io_addr + reg); in uhci_readl()
508 outl(val, uhci->io_addr + reg); in uhci_writel()
513 return inw(uhci->io_addr + reg); in uhci_readw()
518 outw(val, uhci->io_addr + reg); in uhci_writew()
523 return inb(uhci->io_addr + reg); in uhci_readb()
528 outb(val, uhci->io_addr + reg); in uhci_writeb()
535 #define uhci_has_pci_registers(u) ((u)->io_addr != 0)
551 return inl(uhci->io_addr + reg); in uhci_readl()
563 outl(val, uhci->io_addr + reg); in uhci_writel()
[all …]
Duhci-pci.c28 uhci_reset_hc(to_pci_dev(uhci_dev(uhci)), uhci->io_addr); in uhci_pci_reset_hc()
40 uhci->io_addr); in uhci_pci_check_and_reset_hc()
82 if (inw(uhci->io_addr + USBPORTSC1 + port * 2) & in uhci_pci_resume_detect_interrupts_are_broken()
104 if (inw(uhci->io_addr + USBPORTSC1 + port * 2) & in uhci_pci_global_suspend_mode_is_broken()
117 uhci->io_addr = (unsigned long) hcd->rsrc_start; in uhci_pci_init()
/drivers/net/ethernet/davicom/
Ddm9000.c97 void __iomem *io_addr; /* Register I/O base address */ member
165 writeb(DM9000_NCR, db->io_addr); in dm9000_reset()
177 writeb(reg, db->io_addr); in ior()
188 writeb(reg, db->io_addr); in iow()
286 reg_save = readb(db->io_addr); in dm9000_phy_read()
294 writeb(reg_save, db->io_addr); in dm9000_phy_read()
300 reg_save = readb(db->io_addr); in dm9000_phy_read()
308 writeb(reg_save, db->io_addr); in dm9000_phy_read()
332 reg_save = readb(db->io_addr); in dm9000_phy_write()
344 writeb(reg_save, db->io_addr); in dm9000_phy_write()
[all …]
/drivers/scsi/
Dsim710.c183 unsigned long io_addr = edev->base_addr; in sim710_eisa_probe() local
193 irq_index = (inb(io_addr + 0xc85) & 0x7) - 1; in sim710_eisa_probe()
195 val = inb(io_addr + 0x4); in sim710_eisa_probe()
204 irq_index = inb(io_addr + 0xc88) & 0x07; in sim710_eisa_probe()
214 return sim710_probe_common(dev, io_addr, irq, 50, in sim710_eisa_probe()
Dips.c2050 if (ha->io_addr) in ips_host_info()
2053 ha->io_addr, ha->io_len); in ips_host_info()
2301 outl(0, ha->io_addr + IPS_REG_FLAP); in ips_get_bios_version()
2305 if (inb(ha->io_addr + IPS_REG_FLDP) != 0x55) in ips_get_bios_version()
2308 outl(1, ha->io_addr + IPS_REG_FLAP); in ips_get_bios_version()
2312 if (inb(ha->io_addr + IPS_REG_FLDP) != 0xAA) in ips_get_bios_version()
2316 outl(0x1FF, ha->io_addr + IPS_REG_FLAP); in ips_get_bios_version()
2320 major = inb(ha->io_addr + IPS_REG_FLDP); in ips_get_bios_version()
2323 outl(0x1FE, ha->io_addr + IPS_REG_FLAP); in ips_get_bios_version()
2327 minor = inb(ha->io_addr + IPS_REG_FLDP); in ips_get_bios_version()
[all …]
/drivers/ata/
Dpata_pcmcia.c206 void __iomem *io_addr, *ctl_addr; in pcmcia_init_one() local
240 io_addr = devm_ioport_map(&pdev->dev, io_base, 8); in pcmcia_init_one()
242 if (!io_addr || !ctl_addr) in pcmcia_init_one()
272 ap->ioaddr.cmd_addr = io_addr + 0x10 * p; in pcmcia_init_one()
Dpata_legacy.c956 void __iomem *io_addr, *ctrl_addr; in legacy_init_one() local
973 io_addr = devm_ioport_map(&pdev->dev, io, 8); in legacy_init_one()
975 if (!io_addr || !ctrl_addr) in legacy_init_one()
990 ap->ioaddr.cmd_addr = io_addr; in legacy_init_one()
/drivers/parisc/
Ddino.c717 unsigned long io_addr; in dino_bridge_init() local
725 io_addr = __raw_readl(dino_dev->hba.base_addr + DINO_IO_ADDR_EN); in dino_bridge_init()
726 if (io_addr == 0) { in dino_bridge_init()
735 if((io_addr & (1 << i)) == 0) in dino_bridge_init()
/drivers/infiniband/ulp/iser/
Diser_verbs.c690 u64 io_addr; in iser_reg_page_vec() local
695 io_addr = page_list[0]; in iser_reg_page_vec()
700 io_addr); in iser_reg_page_vec()
711 mem_reg->va = io_addr; in iser_reg_page_vec()
/drivers/video/
Doffb.c373 u64 io_addr = of_translate_address(dp, io_of_addr); in offb_init_palette_hacks() local
374 if (io_addr != OF_BAD_ADDR) { in offb_init_palette_hacks()
375 par->cmap_adr = ioremap(io_addr + 0x3c8, 2); in offb_init_palette_hacks()
/drivers/staging/wlags49_h2/
Dhcf.c1120 hcf_io io_addr; in hcf_connect() local
1134 io_addr = ifbp->IFB_IOBase; in hcf_connect()
1137 io_addr = io_base; in hcf_connect()
1150 OUT_PORT_WORD( io_addr + HREG_CMD, HCMD_INI ); //OPW not yet useable in hcf_connect()
1152 HCF_WAIT_WHILE( (IN_PORT_WORD( io_addr + HREG_EV_STAT) & HREG_EV_CMD) == 0 ); in hcf_connect()
1153 …OUT_PORT_WORD( (io_addr + HREG_IO), HREG_IO_SRESET ); //OPW not yet useable /*… in hcf_connect()
1166 ifbp->IFB_IOBase = io_addr; //set IO_Base asap, so asserts via HREG_SW_2 don't harm in hcf_connect()
1199 HCFASSERT( (io_addr & 0x003F) == 0, io_addr ); in hcf_connect()
/drivers/net/ethernet/emulex/benet/
Dbe_roce.c51 dev_info.unmapped_db = adapter->roce_db.io_addr; in _be_roce_dev_add()
/drivers/cpufreq/
Dacpi-cpufreq.c258 struct io_addr { struct
268 struct io_addr io; argument
/drivers/net/ethernet/broadcom/
Dcnic.h183 u32 io_addr; member
/drivers/video/via/
Dhw.h358 u8 io_addr; member

12