Lines Matching refs:ctl_res
78 * @ctl_res: Resource representing CTL base
103 struct resource *ctl_res,
118 (ctl_res->flags == IORESOURCE_MEM));
154 ap->ioaddr.ctl_addr = devm_ioremap(dev, ctl_res->start,
155 resource_size(ctl_res));
159 ap->ioaddr.ctl_addr = devm_ioport_map(dev, ctl_res->start,
160 resource_size(ctl_res));
173 (unsigned long long)ctl_res->start);
201 struct resource *ctl_res;
226 ctl_res = platform_get_resource(pdev, IORESOURCE_IO, 1);
227 if (ctl_res == NULL) {
228 ctl_res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
229 if (unlikely(ctl_res == NULL))
240 return __pata_platform_probe(&pdev->dev, io_res, ctl_res, irq_res,