Home
last modified time | relevance | path

Searched refs:io_res (Results 1 – 18 of 18) sorted by relevance

/linux/drivers/ata/
A Dpata_platform.c111 mmio = (( io_res->flags == IORESOURCE_MEM) && in __pata_platform_probe()
154 ap->ioaddr.cmd_addr = devm_ioremap(dev, io_res->start, in __pata_platform_probe()
155 resource_size(io_res)); in __pata_platform_probe()
159 ap->ioaddr.cmd_addr = devm_ioport_map(dev, io_res->start, in __pata_platform_probe()
160 resource_size(io_res)); in __pata_platform_probe()
174 (unsigned long long)io_res->start, in __pata_platform_probe()
185 struct resource *io_res; in pata_platform_probe() local
201 io_res = platform_get_resource(pdev, IORESOURCE_IO, 0); in pata_platform_probe()
202 if (io_res == NULL) { in pata_platform_probe()
203 io_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in pata_platform_probe()
[all …]
A Dpata_of_platform.c26 struct resource io_res; in pata_of_platform_probe() local
34 ret = of_address_to_resource(dn, 0, &io_res); in pata_of_platform_probe()
66 return __pata_platform_probe(&ofdev->dev, &io_res, &ctl_res, irq_res, in pata_of_platform_probe()
A Dpata_imx.c132 struct resource *io_res; in pata_imx_probe() local
167 io_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in pata_imx_probe()
168 priv->host_regs = devm_ioremap_resource(&pdev->dev, io_res); in pata_imx_probe()
182 (unsigned long long)io_res->start + PATA_IMX_DRIVE_DATA, in pata_imx_probe()
183 (unsigned long long)io_res->start + PATA_IMX_DRIVE_CONTROL); in pata_imx_probe()
/linux/drivers/mtd/nand/raw/
A Dfsl_upm.c43 const struct resource *io_res) in fun_chip_init() argument
60 (u64)io_res->start, in fun_chip_init()
165 struct resource *io_res; in fun_probe() local
175 io_res = platform_get_resource(ofdev, IORESOURCE_MEM, 0); in fun_probe()
176 fun->io_base = devm_ioremap_resource(&ofdev->dev, io_res); in fun_probe()
180 ret = fsl_upm_find(io_res->start, &fun->upm); in fun_probe()
229 ret = fun_chip_init(fun, ofdev->dev.of_node, io_res); in fun_probe()
/linux/drivers/usb/misc/
A Diowarrior.c504 io_res = 0; in iowarrior_ioctl()
513 io_res = copy_from_user(buffer, user_buffer, in iowarrior_ioctl()
515 if (io_res) { in iowarrior_ioctl()
518 io_res = usb_set_report(dev->interface, 2, 0, in iowarrior_ioctl()
521 if (io_res < 0) in iowarrior_ioctl()
522 retval = io_res; in iowarrior_ioctl()
533 io_res = usb_get_report(dev->udev, in iowarrior_ioctl()
536 if (io_res < 0) in iowarrior_ioctl()
537 retval = io_res; in iowarrior_ioctl()
540 if (io_res) in iowarrior_ioctl()
[all …]
/linux/arch/mips/pci/
A Dpci-ar71xx.c53 struct resource io_res; member
352 apc->io_res.parent = res; in ar71xx_pci_probe()
353 apc->io_res.name = "PCI IO space"; in ar71xx_pci_probe()
354 apc->io_res.start = res->start; in ar71xx_pci_probe()
355 apc->io_res.end = res->end; in ar71xx_pci_probe()
356 apc->io_res.flags = IORESOURCE_IO; in ar71xx_pci_probe()
382 apc->pci_ctrl.io_resource = &apc->io_res; in ar71xx_pci_probe()
A Dpci-ar724x.c52 struct resource io_res; member
395 apc->io_res.parent = res; in ar724x_pci_probe()
396 apc->io_res.name = "PCI IO space"; in ar724x_pci_probe()
397 apc->io_res.start = res->start; in ar724x_pci_probe()
398 apc->io_res.end = res->end; in ar724x_pci_probe()
399 apc->io_res.flags = IORESOURCE_IO; in ar724x_pci_probe()
412 apc->pci_controller.io_resource = &apc->io_res; in ar724x_pci_probe()
A Dpci-ar2315.c164 struct resource io_res; member
482 apc->io_res.name = "AR2315 IO space"; in ar2315_pci_probe()
483 apc->io_res.start = 0; in ar2315_pci_probe()
484 apc->io_res.end = 0; in ar2315_pci_probe()
485 apc->io_res.flags = IORESOURCE_IO; in ar2315_pci_probe()
489 apc->pci_ctrl.io_resource = &apc->io_res; in ar2315_pci_probe()
A Dpci-rt3883.c66 struct resource io_res; member
489 rpc->pci_controller.io_resource = &rpc->io_res; in rt3883_pci_probe()
497 rt3883_pci_w32(rpc, rpc->io_res.start, RT3883_PCI_REG_IOBASE); in rt3883_pci_probe()
499 ioport_resource.start = rpc->io_res.start; in rt3883_pci_probe()
500 ioport_resource.end = rpc->io_res.end; in rt3883_pci_probe()
/linux/drivers/mfd/
A Dsm501.c69 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()
1395 if (!sm->io_res || !sm->mem_res) { 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()
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()
[all …]
/linux/arch/arm/kernel/
A Dbios32.c411 sys->io_res.start = (busnr * SZ_64K) ? : pcibios_min_io; in pcibios_init_resource()
412 sys->io_res.end = (busnr + 1) * SZ_64K - 1; in pcibios_init_resource()
413 sys->io_res.flags = IORESOURCE_IO; in pcibios_init_resource()
414 sys->io_res.name = sys->io_res_name; in pcibios_init_resource()
417 ret = request_resource(&ioport_resource, &sys->io_res); in pcibios_init_resource()
422 pci_add_resource_offset(&sys->resources, &sys->io_res, in pcibios_init_resource()
A Dsetup.c195 static struct resource io_res[] = { variable
216 #define lp0 io_res[0]
217 #define lp1 io_res[1]
218 #define lp2 io_res[2]
/linux/drivers/char/tpm/
A Dtpm_crb.c486 static u64 crb_fixup_cmd_size(struct device *dev, struct resource *io_res, in crb_fixup_cmd_size() argument
489 if (io_res->start > start || io_res->end < start) in crb_fixup_cmd_size()
492 if (start + size - 1 <= io_res->end) in crb_fixup_cmd_size()
497 io_res, start, size); in crb_fixup_cmd_size()
499 return io_res->end - start + 1; in crb_fixup_cmd_size()
/linux/sound/isa/
A Dsscape.c136 struct resource *io_res; member
922 struct resource *io_res; in create_sscape() local
933 io_res = devm_request_region(card->dev, port[dev], 8, "SoundScape"); in create_sscape()
934 if (!io_res) { in create_sscape()
960 sscape->io_res = io_res; in create_sscape()
/linux/include/linux/
A Data_platform.h17 struct resource *io_res,
/linux/drivers/pcmcia/
A Dbcm63xx_pcmcia.h55 struct resource *io_res; member
/linux/arch/arm/include/asm/mach/
A Dpci.h41 struct resource io_res; member
/linux/drivers/pci/
A Dsetup-bus.c1894 struct resource *io_res, *mmio_res, *mmio_pref_res; in pci_bus_distribute_available_resources() local
1898 io_res = &bridge->resource[PCI_BRIDGE_IO_WINDOW]; in pci_bus_distribute_available_resources()
1906 align = pci_resource_alignment(bridge, io_res); in pci_bus_distribute_available_resources()
1907 if (!io_res->parent && align) in pci_bus_distribute_available_resources()
1923 adjust_bridge_window(bridge, io_res, add_list, resource_size(&io)); in pci_bus_distribute_available_resources()

Completed in 36 milliseconds