Lines Matching refs:io_res
69 struct resource *io_res; member
768 res->parent = sm->io_res; in sm501_create_subio()
769 res->start = sm->io_res->start + offs; in sm501_create_subio()
825 uart_data->mapbase = sm->io_res->start + offset; in sm501_setup_uart_data()
1043 resource_size_t iobase = sm->io_res->start + SM501_GPIO; in sm501_register_gpio()
1097 resource_size_t iobase = sm->io_res->start + SM501_GPIO; in sm501_gpio_remove()
1393 sm->io_res = platform_get_resource(dev, IORESOURCE_MEM, 1); in sm501_plat_probe()
1395 if (!sm->io_res || !sm->mem_res) { in sm501_plat_probe()
1401 sm->regs_claim = request_mem_region(sm->io_res->start, in sm501_plat_probe()
1411 sm->regs = ioremap(sm->io_res->start, resource_size(sm->io_res)); in sm501_plat_probe()
1427 release_mem_region(sm->io_res->start, 0x100); in sm501_plat_probe()
1614 sm->io_res = &dev->resource[1]; in sm501_pci_probe()
1617 sm->regs_claim = request_mem_region(sm->io_res->start, in sm501_pci_probe()
1636 release_mem_region(sm->io_res->start, 0x100); in sm501_pci_probe()
1671 release_mem_region(sm->io_res->start, 0x100); in sm501_pci_remove()
1683 release_mem_region(sm->io_res->start, 0x100); in sm501_plat_remove()