/kernel/linux/linux-5.10/drivers/ide/ |
D | ide-generic.c | 80 unsigned long io_addr; in ide_generic_init() local 99 io_addr = legacy_bases[i]; in ide_generic_init() 101 if ((probe_mask & (1 << i)) && io_addr) { in ide_generic_init() 102 if (!request_region(io_addr, 8, DRV_NAME)) { in ide_generic_init() 105 DRV_NAME, io_addr, io_addr + 7); in ide_generic_init() 110 if (!request_region(io_addr + 0x206, 1, DRV_NAME)) { in ide_generic_init() 113 DRV_NAME, io_addr + 0x206); in ide_generic_init() 114 release_region(io_addr, 8); in ide_generic_init() 120 ide_std_init_ports(&hw, io_addr, io_addr + 0x206); in ide_generic_init() 128 release_region(io_addr + 0x206, 1); in ide_generic_init() [all …]
|
/kernel/linux/linux-5.10/drivers/watchdog/ |
D | pcwd.c | 185 int io_addr; /* The cards I/O address */ member 229 outb_p(control_status, pcwd_private.io_addr + 2); in send_isa_command() 232 port0 = inb_p(pcwd_private.io_addr); in send_isa_command() 235 port0 = inb_p(pcwd_private.io_addr); in send_isa_command() 263 outb_p(0x00, pcwd_private.io_addr + 2); in set_command_mode() 265 outb_p(0x00, pcwd_private.io_addr + 2); in set_command_mode() 283 outb_p(0x00, pcwd_private.io_addr + 2); in unset_command_mode() 295 if (inb(pcwd_private.io_addr) != 0xF0) in pcwd_check_temperature_support() 338 pcwd_private.io_addr); in pcwd_show_card_info() 342 pcwd_private.io_addr, pcwd_private.fw_ver_str); in pcwd_show_card_info() [all …]
|
D | pcwd_pci.c | 122 unsigned long io_addr; member 169 outb_p(*lsb, pcipcwd_private.io_addr + 4); in send_command() 170 outb_p(*msb, pcipcwd_private.io_addr + 5); in send_command() 171 outb_p(cmd, pcipcwd_private.io_addr + 6); in send_command() 176 got_response = inb_p(pcipcwd_private.io_addr + 2) & WD_PCI_WRSP; in send_command() 180 got_response = inb_p(pcipcwd_private.io_addr + 2) & WD_PCI_WRSP; in send_command() 194 *lsb = inb_p(pcipcwd_private.io_addr + 4); in send_command() 195 *msb = inb_p(pcipcwd_private.io_addr + 5); in send_command() 198 inb_p(pcipcwd_private.io_addr + 6); in send_command() 212 if (inb_p(pcipcwd_private.io_addr) != 0xF0) in pcipcwd_check_temperature_support() [all …]
|
/kernel/linux/linux-5.10/drivers/platform/chrome/ |
D | cros_ec_lpc_mec.c | 77 int io_addr; in cros_ec_lpc_io_bytes_mec() local 101 io_addr = MEC_EMI_EC_DATA_B0(mec_emi_base) + (offset & 0x3); in cros_ec_lpc_io_bytes_mec() 103 while (io_addr <= MEC_EMI_EC_DATA_B3(mec_emi_base)) { in cros_ec_lpc_io_bytes_mec() 105 buf[i] = inb(io_addr++); in cros_ec_lpc_io_bytes_mec() 107 outb(buf[i], io_addr++); in cros_ec_lpc_io_bytes_mec() 133 io_addr = MEC_EMI_EC_DATA_B0(mec_emi_base); in cros_ec_lpc_io_bytes_mec()
|
/kernel/linux/linux-5.10/drivers/usb/host/ |
D | uhci-hcd.h | 389 unsigned long io_addr; member 516 return inl(uhci->io_addr + reg); in uhci_readl() 521 outl(val, uhci->io_addr + reg); in uhci_writel() 526 return inw(uhci->io_addr + reg); in uhci_readw() 531 outw(val, uhci->io_addr + reg); in uhci_writew() 536 return inb(uhci->io_addr + reg); in uhci_readb() 541 outb(val, uhci->io_addr + reg); in uhci_writeb() 548 #define uhci_has_pci_registers(u) ((u)->io_addr != 0) 594 return inl(uhci->io_addr + reg); in uhci_readl() 608 outl(val, uhci->io_addr + reg); in uhci_writel() [all …]
|
D | uhci-pci.c | 29 uhci_reset_hc(to_pci_dev(uhci_dev(uhci)), uhci->io_addr); in uhci_pci_reset_hc() 41 uhci->io_addr); in uhci_pci_check_and_reset_hc() 83 if (inw(uhci->io_addr + USBPORTSC1 + port * 2) & in uhci_pci_resume_detect_interrupts_are_broken() 105 if (inw(uhci->io_addr + USBPORTSC1 + port * 2) & in uhci_pci_global_suspend_mode_is_broken() 118 uhci->io_addr = (unsigned long) hcd->rsrc_start; in uhci_pci_init()
|
/kernel/linux/linux-5.10/drivers/bcma/ |
D | host_soc.c | 18 return readb(core->io_addr + offset); in bcma_host_soc_read8() 23 return readw(core->io_addr + offset); in bcma_host_soc_read16() 28 return readl(core->io_addr + offset); in bcma_host_soc_read32() 34 writeb(value, core->io_addr + offset); in bcma_host_soc_write8() 40 writew(value, core->io_addr + offset); in bcma_host_soc_write16() 46 writel(value, core->io_addr + offset); in bcma_host_soc_write32() 53 void __iomem *addr = core->io_addr + offset; in bcma_host_soc_block_read() 97 void __iomem *addr = core->io_addr + offset; in bcma_host_soc_block_write()
|
D | scan.c | 423 core->io_addr = ioremap(core->addr, BCMA_CORE_SIZE); in bcma_get_next_core() 424 if (!core->io_addr) in bcma_get_next_core() 430 iounmap(core->io_addr); in bcma_get_next_core()
|
/kernel/linux/linux-5.10/lib/ |
D | check_signature.c | 16 int check_signature(const volatile void __iomem *io_addr, in check_signature() argument 20 if (readb(io_addr) != *signature) in check_signature() 22 io_addr++; in check_signature()
|
/kernel/linux/linux-5.10/arch/s390/pci/ |
D | pci_mmio.c | 146 void __iomem *io_addr; in SYSCALL_DEFINE3() local 182 io_addr = (void __iomem *)((pfn << PAGE_SHIFT) | in SYSCALL_DEFINE3() 186 if ((unsigned long) io_addr < ZPCI_IOMAP_ADDR_BASE) in SYSCALL_DEFINE3() 192 ret = zpci_memcpy_toio(io_addr, buf, length); in SYSCALL_DEFINE3() 275 void __iomem *io_addr; in SYSCALL_DEFINE3() local 312 io_addr = (void __iomem *)((pfn << PAGE_SHIFT) | (mmio_addr & ~PAGE_MASK)); in SYSCALL_DEFINE3() 314 if ((unsigned long) io_addr < ZPCI_IOMAP_ADDR_BASE) { in SYSCALL_DEFINE3() 318 ret = zpci_memcpy_fromio(buf, io_addr, length); in SYSCALL_DEFINE3()
|
/kernel/linux/linux-5.10/drivers/scsi/ |
D | BusLogic.c | 570 static void __init blogic_add_probeaddr_isa(unsigned long io_addr) in blogic_add_probeaddr_isa() argument 578 probeinfo->io_addr = io_addr; in blogic_add_probeaddr_isa() 692 pr_probeinfo->io_addr = 0; in blogic_init_mm_probeinfo() 704 unsigned long io_addr; in blogic_init_mm_probeinfo() local 716 io_addr = base_addr0 = pci_resource_start(pci_device, 0); in blogic_init_mm_probeinfo() 721 blogic_err("at PCI Bus %d Device %d I/O Address 0x%lX\n", NULL, bus, device, io_addr); in blogic_init_mm_probeinfo() 731 blogic_err("at PCI Bus %d Device %d I/O Address 0x%lX\n", NULL, bus, device, io_addr); in blogic_init_mm_probeinfo() 736 …PCI Bus %d Device %d I/O Address 0x%lX PCI Address 0x%lX\n", NULL, bus, device, io_addr, pci_addr); in blogic_init_mm_probeinfo() 744 host_adapter->io_addr = io_addr; in blogic_init_mm_probeinfo() 801 pr_probeinfo->io_addr = io_addr; in blogic_init_mm_probeinfo() [all …]
|
D | sim710.c | 169 unsigned long io_addr = edev->base_addr; in sim710_eisa_probe() local 179 irq_index = (inb(io_addr + 0xc85) & 0x7) - 1; in sim710_eisa_probe() 181 val = inb(io_addr + 0x4); in sim710_eisa_probe() 190 irq_index = inb(io_addr + 0xc88) & 0x07; in sim710_eisa_probe() 200 return sim710_probe_common(dev, io_addr, irq, 50, in sim710_eisa_probe()
|
D | BusLogic.h | 226 unsigned long io_addr; member 990 unsigned long io_addr; member 1134 outb(cr.all, adapter->io_addr + BLOGIC_CNTRL_REG); in blogic_busreset() 1142 outb(cr.all, adapter->io_addr + BLOGIC_CNTRL_REG); in blogic_intreset() 1150 outb(cr.all, adapter->io_addr + BLOGIC_CNTRL_REG); in blogic_softreset() 1158 outb(cr.all, adapter->io_addr + BLOGIC_CNTRL_REG); in blogic_hardreset() 1163 return inb(adapter->io_addr + BLOGIC_STATUS_REG); in blogic_rdstatus() 1169 outb(value, adapter->io_addr + BLOGIC_CMD_PARM_REG); in blogic_setcmdparam() 1174 return inb(adapter->io_addr + BLOGIC_DATAIN_REG); in blogic_rddatain() 1179 return inb(adapter->io_addr + BLOGIC_INT_REG); in blogic_rdint() [all …]
|
D | ips.c | 2038 if (ha->io_addr) in ips_host_info() 2041 ha->io_addr, ha->io_len); in ips_host_info() 2286 outl(0, ha->io_addr + IPS_REG_FLAP); in ips_get_bios_version() 2290 if (inb(ha->io_addr + IPS_REG_FLDP) != 0x55) in ips_get_bios_version() 2293 outl(1, ha->io_addr + IPS_REG_FLAP); in ips_get_bios_version() 2297 if (inb(ha->io_addr + IPS_REG_FLDP) != 0xAA) in ips_get_bios_version() 2301 outl(0x1FF, ha->io_addr + IPS_REG_FLAP); in ips_get_bios_version() 2305 major = inb(ha->io_addr + IPS_REG_FLDP); in ips_get_bios_version() 2308 outl(0x1FE, ha->io_addr + IPS_REG_FLAP); in ips_get_bios_version() 2312 minor = inb(ha->io_addr + IPS_REG_FLDP); in ips_get_bios_version() [all …]
|
/kernel/linux/linux-5.10/arch/arm/mach-ixp4xx/include/mach/ |
D | io.h | 256 static inline void outsb(u32 io_addr, const void *p, u32 count) in outsb() argument 261 outb(*vaddr++, io_addr); in outsb() 275 static inline void outsw(u32 io_addr, const void *p, u32 count) in outsw() argument 279 outw(cpu_to_le16(*vaddr++), io_addr); in outsw() 289 static inline void outsl(u32 io_addr, const void *p, u32 count) in outsl() argument 293 outl(cpu_to_le32(*vaddr++), io_addr); in outsl() 309 static inline void insb(u32 io_addr, void *p, u32 count) in insb() argument 313 *vaddr++ = inb(io_addr); in insb() 329 static inline void insw(u32 io_addr, void *p, u32 count) in insw() argument 333 *vaddr++ = le16_to_cpu(inw(io_addr)); in insw() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/davicom/ |
D | dm9000.c | 91 void __iomem *io_addr; /* Register I/O base address */ member 161 writeb(reg, db->io_addr); in ior() 172 writeb(reg, db->io_addr); in iow() 291 reg_save = readb(db->io_addr); in dm9000_phy_read() 299 writeb(reg_save, db->io_addr); in dm9000_phy_read() 305 reg_save = readb(db->io_addr); in dm9000_phy_read() 313 writeb(reg_save, db->io_addr); in dm9000_phy_read() 338 reg_save = readb(db->io_addr); in dm9000_phy_write() 350 writeb(reg_save, db->io_addr); in dm9000_phy_write() 356 reg_save = readb(db->io_addr); in dm9000_phy_write() [all …]
|
/kernel/linux/linux-5.10/arch/xtensa/mm/ |
D | ioremap.c | 59 void xtensa_iounmap(volatile void __iomem *io_addr) in xtensa_iounmap() argument 61 void *addr = (void *)(PAGE_MASK & (unsigned long)io_addr); in xtensa_iounmap()
|
/kernel/linux/linux-5.10/arch/parisc/mm/ |
D | ioremap.c | 93 void iounmap(const volatile void __iomem *io_addr) in iounmap() argument 95 unsigned long addr = (unsigned long)io_addr & PAGE_MASK; in iounmap()
|
/kernel/linux/linux-5.10/arch/arm64/mm/ |
D | ioremap.c | 71 void iounmap(volatile void __iomem *io_addr) in iounmap() argument 73 unsigned long addr = (unsigned long)io_addr & PAGE_MASK; in iounmap()
|
/kernel/linux/linux-5.10/drivers/ata/ |
D | pata_pcmcia.c | 192 void __iomem *io_addr, *ctl_addr; in pcmcia_init_one() local 226 io_addr = devm_ioport_map(&pdev->dev, io_base, 8); in pcmcia_init_one() 228 if (!io_addr || !ctl_addr) in pcmcia_init_one() 258 ap->ioaddr.cmd_addr = io_addr + 0x10 * p; in pcmcia_init_one()
|
/kernel/linux/linux-5.10/arch/x86/events/intel/ |
D | uncore.h | 145 void __iomem *io_addr; member 385 if (box->pci_dev || box->io_addr) in uncore_fixed_ctl() 394 if (box->pci_dev || box->io_addr) in uncore_fixed_ctr() 403 if (box->pci_dev || box->io_addr) in uncore_event_ctl() 412 if (box->pci_dev || box->io_addr) in uncore_perf_ctr()
|
/kernel/linux/linux-5.10/arch/mips/include/asm/octeon/ |
D | cvmx.h | 285 static inline void cvmx_write_io(uint64_t io_addr, uint64_t val) in cvmx_write_io() argument 287 cvmx_write64(io_addr, val); in cvmx_write_io()
|
/kernel/linux/linux-5.10/drivers/pci/controller/ |
D | pcie-iproc-bcma.c | 50 pcie->base = bdev->io_addr; in iproc_pcie_bcma_probe()
|
/kernel/linux/linux-5.10/include/linux/ |
D | io.h | 72 int check_signature(const volatile void __iomem *io_addr,
|
/kernel/linux/linux-5.10/sound/pci/ |
D | azt3328.c | 2590 unsigned long io_addr, unsigned count, u32 *saved_regs) in snd_azf3328_suspend_regs() argument 2595 *saved_regs = inl(io_addr); in snd_azf3328_suspend_regs() 2597 io_addr, *saved_regs); in snd_azf3328_suspend_regs() 2599 io_addr += sizeof(*saved_regs); in snd_azf3328_suspend_regs() 2606 unsigned long io_addr, in snd_azf3328_resume_regs() argument 2613 outl(*saved_regs, io_addr); in snd_azf3328_resume_regs() 2616 io_addr, *saved_regs, inl(io_addr)); in snd_azf3328_resume_regs() 2618 io_addr += sizeof(*saved_regs); in snd_azf3328_resume_regs()
|