/Linux-v4.19/drivers/ata/ |
D | pata_platform.c | 101 int __pata_platform_probe(struct device *dev, struct resource *io_res, in __pata_platform_probe() argument 115 mmio = (( io_res->flags == IORESOURCE_MEM) && in __pata_platform_probe() 150 ap->ioaddr.cmd_addr = devm_ioremap(dev, io_res->start, in __pata_platform_probe() 151 resource_size(io_res)); in __pata_platform_probe() 155 ap->ioaddr.cmd_addr = devm_ioport_map(dev, io_res->start, in __pata_platform_probe() 156 resource_size(io_res)); in __pata_platform_probe() 170 (unsigned long long)io_res->start, in __pata_platform_probe() 181 struct resource *io_res; in pata_platform_probe() local 197 io_res = platform_get_resource(pdev, IORESOURCE_IO, 0); in pata_platform_probe() 198 if (io_res == NULL) { in pata_platform_probe() [all …]
|
D | pata_of_platform.c | 29 struct resource io_res; in pata_of_platform_probe() local 36 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()
|
D | pata_imx.c | 132 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-v4.19/drivers/char/tpm/ |
D | tpm_crb.c | 431 struct resource *io_res = data; in crb_check_resource() local 437 *io_res = *res; in crb_check_resource() 438 io_res->name = NULL; in crb_check_resource() 445 struct resource *io_res, u64 start, u32 size) in crb_map_res() argument 457 if (!resource_contains(io_res, &new_res)) in crb_map_res() 460 return priv->iobase + (new_res.start - io_res->start); in crb_map_res() 468 static u64 crb_fixup_cmd_size(struct device *dev, struct resource *io_res, in crb_fixup_cmd_size() argument 471 if (io_res->start > start || io_res->end < start) in crb_fixup_cmd_size() 474 if (start + size - 1 <= io_res->end) in crb_fixup_cmd_size() 479 io_res, start, size); in crb_fixup_cmd_size() [all …]
|
/Linux-v4.19/drivers/usb/misc/ |
D | iowarrior.c | 470 int io_res; /* checks for bytes read/written and copy_to/from_user results */ in iowarrior_ioctl() local 494 io_res = 0; in iowarrior_ioctl() 502 io_res = copy_from_user(buffer, user_buffer, in iowarrior_ioctl() 504 if (io_res) { in iowarrior_ioctl() 507 io_res = usb_set_report(dev->interface, 2, 0, in iowarrior_ioctl() 510 if (io_res < 0) in iowarrior_ioctl() 511 retval = io_res; in iowarrior_ioctl() 522 io_res = usb_get_report(dev->udev, in iowarrior_ioctl() 525 if (io_res < 0) in iowarrior_ioctl() 526 retval = io_res; in iowarrior_ioctl() [all …]
|
/Linux-v4.19/drivers/mtd/nand/raw/ |
D | fsl_upm.c | 159 const struct resource *io_res) in fun_chip_init() argument 187 mtd->name = kasprintf(GFP_KERNEL, "0x%llx.%s", (u64)io_res->start, in fun_chip_init() 209 struct resource io_res; in fun_probe() local 220 ret = of_address_to_resource(ofdev->dev.of_node, 0, &io_res); in fun_probe() 226 ret = fsl_upm_find(io_res.start, &fun->upm); in fun_probe() 294 fun->io_base = devm_ioremap_nocache(&ofdev->dev, io_res.start, in fun_probe() 295 resource_size(&io_res)); in fun_probe() 304 ret = fun_chip_init(fun, ofdev->dev.of_node, &io_res); in fun_probe()
|
/Linux-v4.19/arch/mips/pci/ |
D | pci-ar71xx.c | 56 struct resource io_res; member 355 apc->io_res.parent = res; in ar71xx_pci_probe() 356 apc->io_res.name = "PCI IO space"; in ar71xx_pci_probe() 357 apc->io_res.start = res->start; in ar71xx_pci_probe() 358 apc->io_res.end = res->end; in ar71xx_pci_probe() 359 apc->io_res.flags = IORESOURCE_IO; in ar71xx_pci_probe() 385 apc->pci_ctrl.io_resource = &apc->io_res; in ar71xx_pci_probe()
|
D | pci-ar724x.c | 55 struct resource io_res; member 401 apc->io_res.parent = res; in ar724x_pci_probe() 402 apc->io_res.name = "PCI IO space"; in ar724x_pci_probe() 403 apc->io_res.start = res->start; in ar724x_pci_probe() 404 apc->io_res.end = res->end; in ar724x_pci_probe() 405 apc->io_res.flags = IORESOURCE_IO; in ar724x_pci_probe() 418 apc->pci_controller.io_resource = &apc->io_res; in ar724x_pci_probe()
|
D | pci-ar2315.c | 174 struct resource io_res; member 495 apc->io_res.name = "AR2315 IO space"; in ar2315_pci_probe() 496 apc->io_res.start = 0; in ar2315_pci_probe() 497 apc->io_res.end = 0; in ar2315_pci_probe() 498 apc->io_res.flags = IORESOURCE_IO, in ar2315_pci_probe() 502 apc->pci_ctrl.io_resource = &apc->io_res, in ar2315_pci_probe()
|
D | pci-rt3883.c | 68 struct resource io_res; member 500 rpc->pci_controller.io_resource = &rpc->io_res; in rt3883_pci_probe() 508 rt3883_pci_w32(rpc, rpc->io_res.start, RT3883_PCI_REG_IOBASE); in rt3883_pci_probe() 510 ioport_resource.start = rpc->io_res.start; in rt3883_pci_probe() 511 ioport_resource.end = rpc->io_res.end; in rt3883_pci_probe()
|
/Linux-v4.19/arch/arm/kernel/ |
D | bios32.c | 437 sys->io_res.start = (busnr * SZ_64K) ? : pcibios_min_io; in pcibios_init_resource() 438 sys->io_res.end = (busnr + 1) * SZ_64K - 1; in pcibios_init_resource() 439 sys->io_res.flags = IORESOURCE_IO; in pcibios_init_resource() 440 sys->io_res.name = sys->io_res_name; in pcibios_init_resource() 443 ret = request_resource(&ioport_resource, &sys->io_res); in pcibios_init_resource() 448 pci_add_resource_offset(&sys->resources, &sys->io_res, in pcibios_init_resource()
|
D | setup.c | 192 static struct resource io_res[] = { variable 213 #define lp0 io_res[0] 214 #define lp1 io_res[1] 215 #define lp2 io_res[2]
|
/Linux-v4.19/drivers/mfd/ |
D | sm501.c | 71 struct resource *io_res; member 770 res->parent = sm->io_res; in sm501_create_subio() 771 res->start = sm->io_res->start + offs; in sm501_create_subio() 827 uart_data->mapbase = sm->io_res->start + offset; in sm501_setup_uart_data() 1045 resource_size_t iobase = sm->io_res->start + SM501_GPIO; in sm501_register_gpio() 1404 sm->io_res = platform_get_resource(dev, IORESOURCE_MEM, 1); in sm501_plat_probe() 1406 if (!sm->io_res || !sm->mem_res) { in sm501_plat_probe() 1412 sm->regs_claim = request_mem_region(sm->io_res->start, in sm501_plat_probe() 1422 sm->regs = ioremap(sm->io_res->start, resource_size(sm->io_res)); in sm501_plat_probe() 1620 sm->io_res = &dev->resource[1]; in sm501_pci_probe() [all …]
|
/Linux-v4.19/include/linux/ |
D | ata_platform.h | 17 struct resource *io_res,
|
/Linux-v4.19/sound/isa/ |
D | sscape.c | 150 struct resource *io_res; member 349 release_and_free_resource(sscape->io_res); in soundscape_free() 946 struct resource *io_res; in create_sscape() local 957 io_res = request_region(port[dev], 8, "SoundScape"); in create_sscape() 958 if (!io_res) { in create_sscape() 984 sscape->io_res = io_res; in create_sscape() 1140 release_and_free_resource(io_res); in create_sscape()
|
/Linux-v4.19/drivers/pcmcia/ |
D | bcm63xx_pcmcia.h | 55 struct resource *io_res; member
|
/Linux-v4.19/arch/arm/include/asm/mach/ |
D | pci.h | 51 struct resource io_res; member
|
/Linux-v4.19/drivers/pci/ |
D | setup-bus.c | 1882 struct resource *io_res, *mmio_res, *mmio_pref_res; in pci_bus_distribute_available_resources() local 1885 io_res = &bridge->resource[PCI_BRIDGE_RESOURCES + 0]; in pci_bus_distribute_available_resources() 1895 extend_bridge_window(bridge, io_res, add_list, available_io); in pci_bus_distribute_available_resources() 1979 align = pci_resource_alignment(bridge, io_res); in pci_bus_distribute_available_resources()
|