Home
last modified time | relevance | path

Searched refs:io_mem (Results 1 – 16 of 16) sorted by relevance

/Linux-v5.10/drivers/pci/hotplug/
Dibmphp_ebda.c51 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 …]
DTODO43 * iounmap(io_mem) is called in the error path of ebda_rsrc_controller()
/Linux-v5.10/drivers/media/pci/b2c2/
Dflexcop-pci.c52 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()
303 fc_pci->io_mem = pci_iomap(fc_pci->pdev, 0, 0x800); in flexcop_pci_init()
305 if (!fc_pci->io_mem) { in flexcop_pci_init()
321 pci_iounmap(fc_pci->pdev, fc_pci->io_mem); in flexcop_pci_init()
333 pci_iounmap(fc_pci->pdev, fc_pci->io_mem); in flexcop_pci_exit()
/Linux-v5.10/drivers/scsi/pm8001/
Dpm8001_chips.h57 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()
Dpm8001_init.c463 pm8001_ha->io_mem[logicalBar].membase = in pm8001_ioremap()
465 pm8001_ha->io_mem[logicalBar].memsize = in pm8001_ioremap()
467 pm8001_ha->io_mem[logicalBar].memvirtaddr = in pm8001_ioremap()
468 ioremap(pm8001_ha->io_mem[logicalBar].membase, in pm8001_ioremap()
469 pm8001_ha->io_mem[logicalBar].memsize); in pm8001_ioremap()
475 (u64)pm8001_ha->io_mem[logicalBar].membase, in pm8001_ioremap()
477 pm8001_ha->io_mem[logicalBar].memvirtaddr, in pm8001_ioremap()
478 pm8001_ha->io_mem[logicalBar].memsize)); in pm8001_ioremap()
480 pm8001_ha->io_mem[logicalBar].membase = 0; in pm8001_ioremap()
481 pm8001_ha->io_mem[logicalBar].memsize = 0; in pm8001_ioremap()
[all …]
Dpm8001_sas.h506 struct pm8001_hba_memspace io_mem[6]; member
Dpm8001_sas.c240 pm8001_ha->io_mem[2].memvirtaddr) in pm8001_phy_control()
Dpm8001_hwi.c633 pm8001_ha->io_mem[pcibar].memvirtaddr + offset; in init_pci_device_addresses()
1206 if (pm8001_ha->io_mem[logical].memvirtaddr) { in pm8001_chip_iounmap()
1207 iounmap(pm8001_ha->io_mem[logical].memvirtaddr); in pm8001_chip_iounmap()
Dpm80xx_hwi.c1147 pm8001_ha->io_mem[pcibar].memvirtaddr + offset; in init_pci_device_addresses()
/Linux-v5.10/drivers/media/pci/pluto2/
Dpluto2.c87 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-v5.10/drivers/acpi/
Dacpi_lpit.c24 static int lpit_read_residency_counter_us(u64 *counter, bool io_mem) in lpit_read_residency_counter_us() argument
28 if (io_mem) { in lpit_read_residency_counter_us()
/Linux-v5.10/drivers/media/pci/dm1105/
Ddm1105.c320 u8 __iomem *io_mem; member
358 #define dm_io_mem(reg) ((unsigned long)(&dev->io_mem[reg]))
1023 dev->io_mem = pci_iomap(pdev, 0, pci_resource_len(pdev, 0)); in dm1105_probe()
1024 if (!dev->io_mem) { in dm1105_probe()
1164 pci_iounmap(pdev, dev->io_mem); in dm1105_probe()
1197 pci_iounmap(pdev, dev->io_mem); in dm1105_remove()
/Linux-v5.10/drivers/net/ethernet/cirrus/
Dcs89x0.c1590 void __iomem *io_mem; in cs89x0_ioport_probe() local
1602 io_mem = ioport_map(ioport & ~3, NETCARD_IO_EXTENT); in cs89x0_ioport_probe()
1603 if (!io_mem) { in cs89x0_ioport_probe()
1616 if ((ioread16(io_mem + ADD_PORT) & ADD_MASK) != in cs89x0_ioport_probe()
1619 dev->name, ioread16(io_mem + ADD_PORT)); in cs89x0_ioport_probe()
1626 ret = cs89x0_probe1(dev, io_mem, modular); in cs89x0_ioport_probe()
1630 ioport_unmap(io_mem); in cs89x0_ioport_probe()
/Linux-v5.10/sound/soc/sof/
Ddebug.c504 memcpy_fromio(buf, dfse->io_mem + pos, size); in sof_dfsentry_read()
520 memcpy_fromio(buf, dfse->io_mem + pos, size); in sof_dfsentry_read()
563 dfse->io_mem = base; in snd_sof_debugfs_io_item()
Dpm.c80 memcpy_fromio(dfse->cache_buf, dfse->io_mem, in sof_cache_debugfs()
Dsof-priv.h306 void __iomem *io_mem; member