Home
last modified time | relevance | path

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

123

/linux-6.1.9/drivers/watchdog/
Dpcwd.c185 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 …]
Dpcwd_pci.c122 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 …]
/linux-6.1.9/arch/x86/events/intel/
Duncore_discovery.c210 void __iomem *io_addr; in parse_discovery_table() local
231 io_addr = ioremap(addr, size); in parse_discovery_table()
232 if (!io_addr) in parse_discovery_table()
236 memcpy_fromio(&global, io_addr, sizeof(struct uncore_global_discovery)); in parse_discovery_table()
240 iounmap(io_addr); in parse_discovery_table()
243 iounmap(io_addr); in parse_discovery_table()
246 io_addr = ioremap(addr, size); in parse_discovery_table()
247 if (!io_addr) in parse_discovery_table()
252 memcpy_fromio(&unit, io_addr + (i + 1) * (global.stride * 8), in parse_discovery_table()
265 iounmap(io_addr); in parse_discovery_table()
[all …]
Duncore_snb.c700 box->io_addr = ioremap(addr, type->mmio_map_size); in snb_uncore_imc_init_box()
701 if (!box->io_addr) in snb_uncore_imc_init_box()
857 return (u64)readl(box->io_addr + hwc->event_base); in snb_uncore_imc_read_counter()
1353 box->io_addr = ioremap(addr, type->mmio_map_size); in __uncore_imc_init_box()
1354 if (!box->io_addr) in __uncore_imc_init_box()
1434 if (box->io_addr && (box->pmu->pmu_idx == 1)) in adl_uncore_imc_init_box()
1435 writel(ADL_UNCORE_IMC_CTL_INT, box->io_addr + ADL_UNCORE_IMC_GLOBAL_CTL); in adl_uncore_imc_init_box()
1440 if (!box->io_addr) in adl_uncore_mmio_disable_box()
1443 writel(ADL_UNCORE_IMC_CTL_FRZ, box->io_addr + uncore_mmio_box_ctl(box)); in adl_uncore_mmio_disable_box()
1448 if (!box->io_addr) in adl_uncore_mmio_enable_box()
[all …]
Duncore.h154 void __iomem *io_addr; member
400 if (box->pci_dev || box->io_addr) in uncore_fixed_ctl()
409 if (box->pci_dev || box->io_addr) in uncore_fixed_ctr()
418 if (box->pci_dev || box->io_addr) in uncore_event_ctl()
427 if (box->pci_dev || box->io_addr) in uncore_perf_ctr()
/linux-6.1.9/drivers/platform/chrome/
Dcros_ec_lpc_mec.c77 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()
/linux-6.1.9/drivers/usb/host/
Duhci-hcd.h385 unsigned long io_addr; member
512 return inl(uhci->io_addr + reg); in uhci_readl()
517 outl(val, uhci->io_addr + reg); in uhci_writel()
522 return inw(uhci->io_addr + reg); in uhci_readw()
527 outw(val, uhci->io_addr + reg); in uhci_writew()
532 return inb(uhci->io_addr + reg); in uhci_readb()
537 outb(val, uhci->io_addr + reg); in uhci_writeb()
544 #define uhci_has_pci_registers(u) ((u)->io_addr != 0)
590 return inl(uhci->io_addr + reg); in uhci_readl()
604 outl(val, uhci->io_addr + reg); in uhci_writel()
[all …]
Duhci-pci.c29 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()
/linux-6.1.9/drivers/bcma/
Dhost_soc.c18 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()
Dscan.c422 core->io_addr = ioremap(core->addr, BCMA_CORE_SIZE); in bcma_get_next_core()
423 if (!core->io_addr) in bcma_get_next_core()
429 iounmap(core->io_addr); in bcma_get_next_core()
/linux-6.1.9/lib/
Dcheck_signature.c16 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()
/linux-6.1.9/arch/s390/pci/
Dpci_mmio.c122 void __iomem *io_addr; in SYSCALL_DEFINE3() local
176 io_addr = (void __iomem *)((pte_pfn(*ptep) << PAGE_SHIFT) | in SYSCALL_DEFINE3()
179 if ((unsigned long) io_addr < ZPCI_IOMAP_ADDR_BASE) in SYSCALL_DEFINE3()
182 ret = zpci_memcpy_toio(io_addr, buf, length); in SYSCALL_DEFINE3()
264 void __iomem *io_addr; in SYSCALL_DEFINE3() local
315 io_addr = (void __iomem *)((pte_pfn(*ptep) << PAGE_SHIFT) | in SYSCALL_DEFINE3()
318 if ((unsigned long) io_addr < ZPCI_IOMAP_ADDR_BASE) { in SYSCALL_DEFINE3()
322 ret = zpci_memcpy_fromio(buf, io_addr, length); in SYSCALL_DEFINE3()
/linux-6.1.9/drivers/scsi/
DBusLogic.c635 pr_probeinfo->io_addr = 0; in blogic_init_mm_probeinfo()
647 unsigned long io_addr; in blogic_init_mm_probeinfo() local
659 io_addr = base_addr0 = pci_resource_start(pci_device, 0); in blogic_init_mm_probeinfo()
664 blogic_err("at PCI Bus %d Device %d I/O Address 0x%lX\n", NULL, bus, device, io_addr); in blogic_init_mm_probeinfo()
674 blogic_err("at PCI Bus %d Device %d I/O Address 0x%lX\n", NULL, bus, device, io_addr); in blogic_init_mm_probeinfo()
679 …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()
687 host_adapter->io_addr = io_addr; in blogic_init_mm_probeinfo()
741 pr_probeinfo->io_addr = io_addr; in blogic_init_mm_probeinfo()
753 probeinfo->io_addr = io_addr; in blogic_init_mm_probeinfo()
789 unsigned long io_addr; in blogic_init_mm_probeinfo() local
[all …]
Dsim710.c169 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()
DBusLogic.h226 unsigned long io_addr; member
982 unsigned long io_addr; member
1123 outb(cr.all, adapter->io_addr + BLOGIC_CNTRL_REG); in blogic_busreset()
1131 outb(cr.all, adapter->io_addr + BLOGIC_CNTRL_REG); in blogic_intreset()
1139 outb(cr.all, adapter->io_addr + BLOGIC_CNTRL_REG); in blogic_softreset()
1147 outb(cr.all, adapter->io_addr + BLOGIC_CNTRL_REG); in blogic_hardreset()
1152 return inb(adapter->io_addr + BLOGIC_STATUS_REG); in blogic_rdstatus()
1158 outb(value, adapter->io_addr + BLOGIC_CMD_PARM_REG); in blogic_setcmdparam()
1163 return inb(adapter->io_addr + BLOGIC_DATAIN_REG); in blogic_rddatain()
1168 return inb(adapter->io_addr + BLOGIC_INT_REG); in blogic_rdint()
[all …]
Dips.c2042 if (ha->io_addr) in ips_host_info()
2045 ha->io_addr, ha->io_len); in ips_host_info()
2290 outl(0, ha->io_addr + IPS_REG_FLAP); in ips_get_bios_version()
2294 if (inb(ha->io_addr + IPS_REG_FLDP) != 0x55) in ips_get_bios_version()
2297 outl(1, ha->io_addr + IPS_REG_FLAP); in ips_get_bios_version()
2301 if (inb(ha->io_addr + IPS_REG_FLDP) != 0xAA) in ips_get_bios_version()
2305 outl(0x1FF, ha->io_addr + IPS_REG_FLAP); in ips_get_bios_version()
2309 major = inb(ha->io_addr + IPS_REG_FLDP); in ips_get_bios_version()
2312 outl(0x1FE, ha->io_addr + IPS_REG_FLAP); in ips_get_bios_version()
2316 minor = inb(ha->io_addr + IPS_REG_FLDP); in ips_get_bios_version()
[all …]
/linux-6.1.9/drivers/net/ethernet/davicom/
Ddm9000.c90 void __iomem *io_addr; /* Register I/O base address */ member
160 writeb(reg, db->io_addr); in ior()
171 writeb(reg, db->io_addr); in iow()
287 reg_save = readb(db->io_addr); in dm9000_phy_read()
295 writeb(reg_save, db->io_addr); in dm9000_phy_read()
301 reg_save = readb(db->io_addr); in dm9000_phy_read()
309 writeb(reg_save, db->io_addr); in dm9000_phy_read()
334 reg_save = readb(db->io_addr); in dm9000_phy_write()
346 writeb(reg_save, db->io_addr); in dm9000_phy_write()
352 reg_save = readb(db->io_addr); in dm9000_phy_write()
[all …]
/linux-6.1.9/arch/xtensa/mm/
Dioremap.c59 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()
/linux-6.1.9/arch/parisc/mm/
Dioremap.c93 void iounmap(const volatile void __iomem *io_addr) in iounmap() argument
95 unsigned long addr = (unsigned long)io_addr & PAGE_MASK; in iounmap()
/linux-6.1.9/drivers/ata/
Dpata_pcmcia.c192 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()
/linux-6.1.9/drivers/net/ethernet/wangxun/txgbe/
Dtxgbe_main.c111 adapter->io_addr = devm_ioremap(&pdev->dev, in txgbe_probe()
114 if (!adapter->io_addr) { in txgbe_probe()
Dtxgbe.h16 u8 __iomem *io_addr; /* Mainly for iounmap use */ member
/linux-6.1.9/drivers/net/ethernet/wangxun/ngbe/
Dngbe_main.c115 adapter->io_addr = devm_ioremap(&pdev->dev, in ngbe_probe()
118 if (!adapter->io_addr) { in ngbe_probe()
Dngbe.h16 u8 __iomem *io_addr; /* Mainly for iounmap use */ member
/linux-6.1.9/arch/mips/include/asm/octeon/
Dcvmx.h285 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()

123