Searched refs:io_mem (Results 1 - 13 of 13) sorted by relevance

/linux-4.1.27/drivers/pci/hotplug/
H A Dibmphp_ebda.c65 static void __iomem *io_mem; variable
255 io_mem = ioremap ((0x40 << 4) + 0x0e, 2); ibmphp_access_ebda()
256 if (!io_mem ) ibmphp_access_ebda()
258 ebda_seg = readw (io_mem); ibmphp_access_ebda()
259 iounmap (io_mem); ibmphp_access_ebda()
262 io_mem = ioremap(ebda_seg<<4, 1); ibmphp_access_ebda()
263 if (!io_mem) ibmphp_access_ebda()
265 ebda_sz = readb(io_mem); ibmphp_access_ebda()
266 iounmap(io_mem); ibmphp_access_ebda()
271 io_mem = ioremap(ebda_seg<<4, (ebda_sz * 1024)); ibmphp_access_ebda()
272 if (!io_mem ) ibmphp_access_ebda()
284 next_offset = readw (io_mem + offset); /* offset of next blk */ ibmphp_access_ebda()
289 blk_id = readw (io_mem + offset); /* this blk id */ ibmphp_access_ebda()
299 format = readb (io_mem + offset); ibmphp_access_ebda()
309 re = readw (io_mem + sub_addr); /* next sub blk */ ibmphp_access_ebda()
312 rc_id = readw (io_mem + sub_addr); /* sub blk id */ ibmphp_access_ebda()
318 num_ctlrs = readb (io_mem + sub_addr); ibmphp_access_ebda()
336 rc = readw (io_mem + sub_addr); /* next sub blk */ ibmphp_access_ebda()
339 re_id = readw (io_mem + sub_addr); /* sub blk id */ ibmphp_access_ebda()
346 num_entries = readw (io_mem + sub_addr); ibmphp_access_ebda()
374 rio_table_ptr->ver_num = readb (io_mem + offset); ibmphp_access_ebda()
375 rio_table_ptr->scal_count = readb (io_mem + offset + 1); ibmphp_access_ebda()
376 rio_table_ptr->riodev_count = readb (io_mem + offset + 2); ibmphp_access_ebda()
407 iounmap (io_mem); ibmphp_access_ebda()
428 rio_detail_ptr->rio_node_id = readb (io_mem + offset); ebda_rio_table()
429 rio_detail_ptr->bbar = readl (io_mem + offset + 1); ebda_rio_table()
430 rio_detail_ptr->rio_type = readb (io_mem + offset + 5); ebda_rio_table()
431 rio_detail_ptr->owner_id = readb (io_mem + offset + 6); ebda_rio_table()
432 rio_detail_ptr->port0_node_connect = readb (io_mem + offset + 7); ebda_rio_table()
433 rio_detail_ptr->port0_port_connect = readb (io_mem + offset + 8); ebda_rio_table()
434 rio_detail_ptr->port1_node_connect = readb (io_mem + offset + 9); ebda_rio_table()
435 rio_detail_ptr->port1_port_connect = readb (io_mem + offset + 10); ebda_rio_table()
436 rio_detail_ptr->first_slot_num = readb (io_mem + offset + 11); ebda_rio_table()
437 rio_detail_ptr->status = readb (io_mem + offset + 12); ebda_rio_table()
438 rio_detail_ptr->wpindex = readb (io_mem + offset + 13); ebda_rio_table()
439 rio_detail_ptr->chassis_num = readb (io_mem + offset + 14); ebda_rio_table()
760 ctlr_id = readb (io_mem + addr); ebda_rsrc_controller()
762 slot_num = readb (io_mem + addr); ebda_rsrc_controller()
768 bus_num = readb (io_mem + addr); ebda_rsrc_controller()
773 temp = readb (io_mem + addr); ebda_rsrc_controller()
795 slot_ptr->slot_num = readb (io_mem + addr_slot); ebda_rsrc_controller()
796 slot_ptr->slot_bus_num = readb (io_mem + addr_slot + slot_num); ebda_rsrc_controller()
797 slot_ptr->ctl_index = readb (io_mem + addr_slot + 2*slot_num); ebda_rsrc_controller()
798 slot_ptr->slot_cap = readb (io_mem + addr_slot + 3*slot_num); ebda_rsrc_controller()
837 bus_ptr->bus_num = readb (io_mem + addr_bus + bus); ebda_rsrc_controller()
838 bus_ptr->slots_at_33_conv = readb (io_mem + addr_bus + bus_num + 8 * bus); ebda_rsrc_controller()
839 bus_ptr->slots_at_66_conv = readb (io_mem + addr_bus + bus_num + 8 * bus + 1); ebda_rsrc_controller()
841 bus_ptr->slots_at_66_pcix = readb (io_mem + addr_bus + bus_num + 8 * bus + 2); ebda_rsrc_controller()
843 bus_ptr->slots_at_100_pcix = readb (io_mem + addr_bus + bus_num + 8 * bus + 3); ebda_rsrc_controller()
845 bus_ptr->slots_at_133_pcix = readb (io_mem + addr_bus + bus_num + 8 * bus + 4); ebda_rsrc_controller()
862 hpc_ptr->u.pci_ctlr.bus = readb (io_mem + addr); ebda_rsrc_controller()
863 hpc_ptr->u.pci_ctlr.dev_fun = readb (io_mem + addr + 1); ebda_rsrc_controller()
864 hpc_ptr->irq = readb (io_mem + addr + 2); ebda_rsrc_controller()
872 hpc_ptr->u.isa_ctlr.io_start = readw (io_mem + addr); ebda_rsrc_controller()
873 hpc_ptr->u.isa_ctlr.io_end = readw (io_mem + addr + 2); ebda_rsrc_controller()
880 hpc_ptr->irq = readb (io_mem + addr + 4); ebda_rsrc_controller()
886 hpc_ptr->u.wpeg_ctlr.wpegbbar = readl (io_mem + addr); ebda_rsrc_controller()
887 hpc_ptr->u.wpeg_ctlr.i2c_addr = readb (io_mem + addr + 4); ebda_rsrc_controller()
888 hpc_ptr->irq = readb (io_mem + addr + 5); ebda_rsrc_controller()
998 iounmap (io_mem); ebda_rsrc_controller()
1018 type = readb (io_mem + addr); ebda_rsrc_rsrc()
1026 iounmap (io_mem); ebda_rsrc_rsrc()
1031 rsrc_ptr->bus_num = readb (io_mem + addr); ebda_rsrc_rsrc()
1032 rsrc_ptr->dev_fun = readb (io_mem + addr + 1); ebda_rsrc_rsrc()
1033 rsrc_ptr->start_addr = readw (io_mem + addr + 2); ebda_rsrc_rsrc()
1034 rsrc_ptr->end_addr = readw (io_mem + addr + 4); ebda_rsrc_rsrc()
1047 iounmap (io_mem); ebda_rsrc_rsrc()
1052 rsrc_ptr->bus_num = readb (io_mem + addr); ebda_rsrc_rsrc()
1053 rsrc_ptr->dev_fun = readb (io_mem + addr + 1); ebda_rsrc_rsrc()
1054 rsrc_ptr->start_addr = readl (io_mem + addr + 2); ebda_rsrc_rsrc()
1055 rsrc_ptr->end_addr = readl (io_mem + addr + 6); ebda_rsrc_rsrc()
/linux-4.1.27/drivers/media/pci/b2c2/
H A Dflexcop-pci.c51 void __iomem *io_mem; member in struct:flexcop_pci
80 v.raw = readl(fc_pci->io_mem + r); flexcop_pci_read_ibi_reg()
100 writel(v.raw, fc_pci->io_mem + r); flexcop_pci_write_ibi_reg()
303 fc_pci->io_mem = pci_iomap(fc_pci->pdev, 0, 0x800); flexcop_pci_init()
305 if (!fc_pci->io_mem) { flexcop_pci_init()
321 pci_iounmap(fc_pci->pdev, fc_pci->io_mem); flexcop_pci_init()
333 pci_iounmap(fc_pci->pdev, fc_pci->io_mem); flexcop_pci_exit()
/linux-4.1.27/drivers/scsi/pm8001/
H A Dpm8001_chips.h57 return readl(pm8001_ha->io_mem[bar].memvirtaddr + offset); pm8001_cr32()
63 writel(val, pm8001_ha->io_mem[bar].memvirtaddr + addr); pm8001_cw32()
H A Dpm8001_init.c418 pm8001_ha->io_mem[logicalBar].membase = pm8001_ioremap()
420 pm8001_ha->io_mem[logicalBar].membase &= pm8001_ioremap()
422 pm8001_ha->io_mem[logicalBar].memsize = pm8001_ioremap()
424 pm8001_ha->io_mem[logicalBar].memvirtaddr = pm8001_ioremap()
425 ioremap(pm8001_ha->io_mem[logicalBar].membase, pm8001_ioremap()
426 pm8001_ha->io_mem[logicalBar].memsize); pm8001_ioremap()
432 (u64)pm8001_ha->io_mem[logicalBar].membase, pm8001_ioremap()
434 pm8001_ha->io_mem[logicalBar].memvirtaddr, pm8001_ioremap()
435 pm8001_ha->io_mem[logicalBar].memsize)); pm8001_ioremap()
437 pm8001_ha->io_mem[logicalBar].membase = 0; pm8001_ioremap()
438 pm8001_ha->io_mem[logicalBar].memsize = 0; pm8001_ioremap()
439 pm8001_ha->io_mem[logicalBar].memvirtaddr = 0; pm8001_ioremap()
H A Dpm8001_sas.h481 struct pm8001_hba_memspace io_mem[6]; member in struct:pm8001_hba_info
H A Dpm8001_sas.c217 pm8001_ha->io_mem[2].memvirtaddr) pm8001_phy_control()
H A Dpm8001_hwi.c627 pm8001_ha->io_mem[pcibar].memvirtaddr + offset; init_pci_device_addresses()
1200 if (pm8001_ha->io_mem[logical].memvirtaddr) { pm8001_chip_iounmap()
1201 iounmap(pm8001_ha->io_mem[logical].memvirtaddr); pm8001_chip_iounmap()
H A Dpm80xx_hwi.c785 pm8001_ha->io_mem[pcibar].memvirtaddr + offset; init_pci_device_addresses()
/linux-4.1.27/drivers/pcmcia/
H A Dbfin_cf_pcmcia.c201 struct resource *io_mem, *attr_mem; bfin_cf_probe() local
240 io_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); bfin_cf_probe()
243 if (!io_mem || !attr_mem) bfin_cf_probe()
246 cf->phys_cf_io = io_mem->start; bfin_cf_probe()
/linux-4.1.27/drivers/media/pci/pluto2/
H A Dpluto2.c101 u8 __iomem *io_mem; member in struct:pluto
141 return readl(&pluto->io_mem[reg]); pluto_readreg()
146 writel(val, &pluto->io_mem[reg]); pluto_writereg()
151 u32 val = readl(&pluto->io_mem[reg]); pluto_rw()
154 writel(val, &pluto->io_mem[reg]); pluto_rw()
622 pluto->io_mem = pci_iomap(pdev, 0, 0x40); pluto2_probe()
623 if (!pluto->io_mem) { pluto2_probe()
733 pci_iounmap(pdev, pluto->io_mem); pluto2_probe()
764 pci_iounmap(pdev, pluto->io_mem); pluto2_remove()
/linux-4.1.27/arch/arm/mach-integrator/
H A Dpci_v3.c288 static struct resource io_mem; variable in typeref:struct:resource
615 phys_addr_t io_address = pci_pio_to_address(io_mem.start); pci_v3_preinit()
694 phys_addr_t io_address = pci_pio_to_address(io_mem.start); pci_v3_postinit()
824 ret = of_pci_range_to_resource(&range, np, &io_mem); pci_v3_probe()
825 io_mem.name = "PCIv3 I/O"; pci_v3_probe()
/linux-4.1.27/drivers/media/pci/dm1105/
H A Ddm1105.c336 u8 __iomem *io_mem; member in struct:dm1105_dev
374 #define dm_io_mem(reg) ((unsigned long)(&dev->io_mem[reg]))
1036 dev->io_mem = pci_iomap(pdev, 0, pci_resource_len(pdev, 0)); dm1105_probe()
1037 if (!dev->io_mem) { dm1105_probe()
1176 pci_iounmap(pdev, dev->io_mem); dm1105_probe()
1210 pci_iounmap(pdev, dev->io_mem); dm1105_remove()
/linux-4.1.27/drivers/net/ethernet/cirrus/
H A Dcs89x0.c1590 void __iomem *io_mem; cs89x0_ioport_probe() local
1602 io_mem = ioport_map(ioport & ~3, NETCARD_IO_EXTENT); cs89x0_ioport_probe()
1603 if (!io_mem) { cs89x0_ioport_probe()
1616 if ((ioread16(io_mem + ADD_PORT) & ADD_MASK) != cs89x0_ioport_probe()
1619 dev->name, ioread16(io_mem + ADD_PORT)); cs89x0_ioport_probe()
1626 ret = cs89x0_probe1(dev, io_mem, modular); cs89x0_ioport_probe()
1630 ioport_unmap(io_mem); cs89x0_ioport_probe()

Completed in 408 milliseconds