Home
last modified time | relevance | path

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

/Linux-v5.4/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.4/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.4/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.c416 pm8001_ha->io_mem[logicalBar].membase = in pm8001_ioremap()
418 pm8001_ha->io_mem[logicalBar].memsize = in pm8001_ioremap()
420 pm8001_ha->io_mem[logicalBar].memvirtaddr = in pm8001_ioremap()
421 ioremap(pm8001_ha->io_mem[logicalBar].membase, in pm8001_ioremap()
422 pm8001_ha->io_mem[logicalBar].memsize); in pm8001_ioremap()
428 (u64)pm8001_ha->io_mem[logicalBar].membase, in pm8001_ioremap()
430 pm8001_ha->io_mem[logicalBar].memvirtaddr, in pm8001_ioremap()
431 pm8001_ha->io_mem[logicalBar].memsize)); in pm8001_ioremap()
433 pm8001_ha->io_mem[logicalBar].membase = 0; in pm8001_ioremap()
434 pm8001_ha->io_mem[logicalBar].memsize = 0; in pm8001_ioremap()
[all …]
Dpm8001_sas.h491 struct pm8001_hba_memspace io_mem[6]; member
Dpm8001_sas.c239 pm8001_ha->io_mem[2].memvirtaddr) in pm8001_phy_control()
Dpm8001_hwi.c627 pm8001_ha->io_mem[pcibar].memvirtaddr + offset; in init_pci_device_addresses()
1200 if (pm8001_ha->io_mem[logical].memvirtaddr) { in pm8001_chip_iounmap()
1201 iounmap(pm8001_ha->io_mem[logical].memvirtaddr); in pm8001_chip_iounmap()
Dpm80xx_hwi.c808 pm8001_ha->io_mem[pcibar].memvirtaddr + offset; in init_pci_device_addresses()
/Linux-v5.4/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.4/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.4/sound/soc/sof/
Ddebug.c289 memcpy_fromio(buf, dfse->io_mem + pos, size); in sof_dfsentry_read()
305 memcpy_fromio(buf, dfse->io_mem + pos, size); in sof_dfsentry_read()
348 dfse->io_mem = base; in snd_sof_debugfs_io_item()
Dpm.c257 memcpy_fromio(dfse->cache_buf, dfse->io_mem, in sof_cache_debugfs()
Dsof-priv.h251 void __iomem *io_mem; member
/Linux-v5.4/drivers/media/pci/dm1105/
Ddm1105.c321 u8 __iomem *io_mem; member
359 #define dm_io_mem(reg) ((unsigned long)(&dev->io_mem[reg]))
1024 dev->io_mem = pci_iomap(pdev, 0, pci_resource_len(pdev, 0)); in dm1105_probe()
1025 if (!dev->io_mem) { in dm1105_probe()
1165 pci_iounmap(pdev, dev->io_mem); in dm1105_probe()
1198 pci_iounmap(pdev, dev->io_mem); in dm1105_remove()
/Linux-v5.4/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.4/drivers/pci/controller/
Dpci-v3-semi.c244 u32 io_mem; member
536 v3->io_mem = io_base; in v3_pci_setup_resource()
548 writel(v3_addr_to_lb_base2(v3->io_mem) | in v3_pci_setup_resource()