Searched refs:io_res (Results 1 – 5 of 5) sorted by relevance
/drivers/ata/ |
D | pata_platform.c | 103 struct resource *io_res, in __pata_platform_probe() argument 118 mmio = (( io_res->flags == IORESOURCE_MEM) && in __pata_platform_probe() 153 ap->ioaddr.cmd_addr = devm_ioremap(dev, io_res->start, in __pata_platform_probe() 154 io_res->end - io_res->start + 1); in __pata_platform_probe() 158 ap->ioaddr.cmd_addr = devm_ioport_map(dev, io_res->start, in __pata_platform_probe() 159 io_res->end - io_res->start + 1); in __pata_platform_probe() 173 (unsigned long long)io_res->start, in __pata_platform_probe() 201 struct resource *io_res; in pata_platform_probe() local 217 io_res = platform_get_resource(pdev, IORESOURCE_IO, 0); in pata_platform_probe() 218 if (io_res == NULL) { in pata_platform_probe() [all …]
|
D | pata_of_platform.c | 22 struct resource io_res; in pata_of_platform_probe() local 30 ret = of_address_to_resource(dn, 0, &io_res); in pata_of_platform_probe() 41 ctl_res = io_res; in pata_of_platform_probe() 43 io_res.end = ctl_res.start-1; in pata_of_platform_probe() 77 return __pata_platform_probe(&ofdev->dev, &io_res, &ctl_res, &irq_res, in pata_of_platform_probe()
|
/drivers/mtd/nand/ |
D | fsl_upm.c | 124 const struct resource *io_res) in fun_chip_init() argument 151 fun->mtd.name = kasprintf(GFP_KERNEL, "%x.%s", io_res->start, in fun_chip_init() 186 struct resource io_res; in fun_probe() local 195 ret = of_address_to_resource(ofdev->node, 0, &io_res); in fun_probe() 201 ret = fsl_upm_find(io_res.start, &fun->upm); in fun_probe() 242 fun->io_base = devm_ioremap_nocache(&ofdev->dev, io_res.start, in fun_probe() 243 io_res.end - io_res.start + 1); in fun_probe() 252 ret = fun_chip_init(fun, ofdev->node, &io_res); in fun_probe()
|
/drivers/usb/misc/ |
D | iowarrior.c | 483 int io_res; /* checks for bytes read/written and copy_to/from_user results */ in iowarrior_ioctl() local 508 io_res = 0; in iowarrior_ioctl() 516 io_res = copy_from_user(buffer, user_buffer, in iowarrior_ioctl() 518 if (io_res) { in iowarrior_ioctl() 521 io_res = usb_set_report(dev->interface, 2, 0, in iowarrior_ioctl() 524 if (io_res < 0) in iowarrior_ioctl() 525 retval = io_res; in iowarrior_ioctl() 536 io_res = usb_get_report(dev->udev, in iowarrior_ioctl() 539 if (io_res < 0) in iowarrior_ioctl() 540 retval = io_res; in iowarrior_ioctl() [all …]
|
/drivers/mfd/ |
D | sm501.c | 69 struct resource *io_res; member 776 res->parent = sm->io_res; in sm501_create_subio() 777 res->start = sm->io_res->start + offs; in sm501_create_subio() 833 uart_data->mapbase = sm->io_res->start + offset; in sm501_setup_uart_data() 1056 resource_size_t iobase = sm->io_res->start + SM501_GPIO; in sm501_register_gpio() 1423 sm->io_res = platform_get_resource(dev, IORESOURCE_MEM, 1); in sm501_plat_probe() 1425 if (sm->io_res == NULL || sm->mem_res == NULL) { in sm501_plat_probe() 1431 sm->regs_claim = request_mem_region(sm->io_res->start, in sm501_plat_probe() 1442 sm->regs = ioremap(sm->io_res->start, in sm501_plat_probe() 1443 (sm->io_res->end - sm->io_res->start) - 1); in sm501_plat_probe() [all …]
|