/linux-6.6.21/drivers/pci/hotplug/ |
D | ibmphp_ebda.c | 51 static void __iomem *io_mem; variable 241 io_mem = ioremap((0x40 << 4) + 0x0e, 2); in ibmphp_access_ebda() 242 if (!io_mem) in ibmphp_access_ebda() 244 ebda_seg = readw(io_mem); in ibmphp_access_ebda() 245 iounmap(io_mem); in ibmphp_access_ebda() 248 io_mem = ioremap(ebda_seg<<4, 1); in ibmphp_access_ebda() 249 if (!io_mem) in ibmphp_access_ebda() 251 ebda_sz = readb(io_mem); in ibmphp_access_ebda() 252 iounmap(io_mem); in ibmphp_access_ebda() 257 io_mem = ioremap(ebda_seg<<4, (ebda_sz * 1024)); in ibmphp_access_ebda() [all …]
|
/linux-6.6.21/include/linux/ |
D | coresight.h | 124 bool io_mem; member 137 .io_mem = true, \ 385 if (likely(csa->io_mem)) in csdev_access_relaxed_read32() 451 if (likely(csa->io_mem)) { in csdev_access_relaxed_read_pair() 462 if (likely(csa->io_mem)) { in csdev_access_relaxed_write_pair() 473 if (likely(csa->io_mem)) in csdev_access_read32() 482 if (likely(csa->io_mem)) in csdev_access_relaxed_write32() 490 if (likely(csa->io_mem)) in csdev_access_write32() 501 if (likely(csa->io_mem)) in csdev_access_relaxed_read64() 509 if (likely(csa->io_mem)) in csdev_access_read64() [all …]
|
/linux-6.6.21/drivers/media/pci/b2c2/ |
D | flexcop-pci.c | 52 void __iomem *io_mem; member 81 v.raw = readl(fc_pci->io_mem + r); in flexcop_pci_read_ibi_reg() 101 writel(v.raw, fc_pci->io_mem + r); in flexcop_pci_write_ibi_reg() 306 fc_pci->io_mem = pci_iomap(fc_pci->pdev, 0, 0x800); in flexcop_pci_init() 308 if (!fc_pci->io_mem) { in flexcop_pci_init() 324 pci_iounmap(fc_pci->pdev, fc_pci->io_mem); in flexcop_pci_init() 336 pci_iounmap(fc_pci->pdev, fc_pci->io_mem); in flexcop_pci_exit()
|
/linux-6.6.21/drivers/scsi/pm8001/ |
D | pm8001_chips.h | 57 return readl(pm8001_ha->io_mem[bar].memvirtaddr + offset); in pm8001_cr32() 63 writel(val, pm8001_ha->io_mem[bar].memvirtaddr + addr); in pm8001_cw32()
|
D | pm8001_init.c | 472 pm8001_ha->io_mem[logicalBar].membase = in pm8001_ioremap() 474 pm8001_ha->io_mem[logicalBar].memsize = in pm8001_ioremap() 476 pm8001_ha->io_mem[logicalBar].memvirtaddr = in pm8001_ioremap() 477 ioremap(pm8001_ha->io_mem[logicalBar].membase, in pm8001_ioremap() 478 pm8001_ha->io_mem[logicalBar].memsize); in pm8001_ioremap() 479 if (!pm8001_ha->io_mem[logicalBar].memvirtaddr) { in pm8001_ioremap() 487 (u64)pm8001_ha->io_mem[logicalBar].membase, in pm8001_ioremap() 489 pm8001_ha->io_mem[logicalBar].memvirtaddr, in pm8001_ioremap() 490 pm8001_ha->io_mem[logicalBar].memsize); in pm8001_ioremap() 492 pm8001_ha->io_mem[logicalBar].membase = 0; in pm8001_ioremap() [all …]
|
D | pm8001_sas.h | 482 struct pm8001_hba_memspace io_mem[6]; member
|
D | pm8001_sas.c | 250 u32 __iomem *qp = pm8001_ha->io_mem[2].memvirtaddr in pm8001_phy_control()
|
D | pm80xx_hwi.c | 1125 if (offset > pm8001_ha->io_mem[pcibar].memsize) { in init_pci_device_addresses() 1128 offset, pm8001_ha->io_mem[pcibar].memsize); in init_pci_device_addresses() 1132 pm8001_ha->io_mem[pcibar].memvirtaddr + offset; in init_pci_device_addresses()
|
D | pm8001_hwi.c | 634 pm8001_ha->io_mem[pcibar].memvirtaddr + offset; in init_pci_device_addresses() 1176 if (pm8001_ha->io_mem[logical].memvirtaddr) { in pm8001_chip_iounmap() 1177 iounmap(pm8001_ha->io_mem[logical].memvirtaddr); in pm8001_chip_iounmap()
|
/linux-6.6.21/drivers/media/pci/pluto2/ |
D | pluto2.c | 87 u8 __iomem *io_mem; member 127 return readl(&pluto->io_mem[reg]); in pluto_readreg() 132 writel(val, &pluto->io_mem[reg]); in pluto_writereg() 137 u32 val = readl(&pluto->io_mem[reg]); in pluto_rw() 140 writel(val, &pluto->io_mem[reg]); in pluto_rw() 608 pluto->io_mem = pci_iomap(pdev, 0, 0x40); in pluto2_probe() 609 if (!pluto->io_mem) { in pluto2_probe() 719 pci_iounmap(pdev, pluto->io_mem); in pluto2_probe() 750 pci_iounmap(pdev, pluto->io_mem); in pluto2_remove()
|
/linux-6.6.21/drivers/acpi/ |
D | acpi_lpit.c | 25 static int lpit_read_residency_counter_us(u64 *counter, bool io_mem) in lpit_read_residency_counter_us() argument 29 if (io_mem) { in lpit_read_residency_counter_us()
|
/linux-6.6.21/sound/soc/sof/ |
D | debug.c | 89 memcpy_fromio(buf, dfse->io_mem + pos, size); in sof_dfsentry_read() 105 memcpy_fromio(buf, dfse->io_mem + pos, size); in sof_dfsentry_read() 148 dfse->io_mem = base; in snd_sof_debugfs_io_item()
|
D | pm.c | 67 memcpy_fromio(dfse->cache_buf, dfse->io_mem, in sof_cache_debugfs()
|
D | sof-priv.h | 371 void __iomem *io_mem; member
|
/linux-6.6.21/drivers/media/pci/dm1105/ |
D | dm1105.c | 320 u8 __iomem *io_mem; member 358 #define dm_io_mem(reg) ((unsigned long)(&dev->io_mem[reg])) 1021 dev->io_mem = pci_iomap(pdev, 0, pci_resource_len(pdev, 0)); in dm1105_probe() 1022 if (!dev->io_mem) { in dm1105_probe() 1162 pci_iounmap(pdev, dev->io_mem); in dm1105_probe() 1196 pci_iounmap(pdev, dev->io_mem); in dm1105_remove()
|
/linux-6.6.21/drivers/net/ethernet/cirrus/ |
D | cs89x0.c | 1594 void __iomem *io_mem; in cs89x0_ioport_probe() local 1606 io_mem = ioport_map(ioport & ~3, NETCARD_IO_EXTENT); in cs89x0_ioport_probe() 1607 if (!io_mem) { in cs89x0_ioport_probe() 1620 if ((ioread16(io_mem + ADD_PORT) & ADD_MASK) != in cs89x0_ioport_probe() 1623 dev->name, ioread16(io_mem + ADD_PORT)); in cs89x0_ioport_probe() 1630 ret = cs89x0_probe1(dev, io_mem, modular); in cs89x0_ioport_probe() 1634 ioport_unmap(io_mem); in cs89x0_ioport_probe()
|
/linux-6.6.21/drivers/hwtracing/coresight/ |
D | coresight-etm4x-core.c | 217 if (csa->io_mem) in etm4_cs_lock() 224 if (csa->io_mem) in etm4_cs_unlock() 381 if (!csa->io_mem) in etm4_check_arch_features() 429 if (!csa->io_mem) in etm4_enable_hw() 522 if (!csa->io_mem) in etm4_enable_hw() 1058 .io_mem = false, in etm4_init_sysreg_access() 1065 .io_mem = false, in etm4_init_sysreg_access() 2002 if (!desc.access.io_mem || in etm4_add_coresight_dev()
|
D | coresight-etm4x.h | 538 ((u32)((csa)->io_mem ? \ 543 ((u64)((csa)->io_mem ? \ 563 if ((csa)->io_mem) \ 572 if ((csa)->io_mem) \
|