Lines Matching refs:res

246 	struct resource *res;  in xgene_pcie_map_reg()  local
248 res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "csr"); in xgene_pcie_map_reg()
249 port->csr_base = devm_ioremap_resource(port->dev, res); in xgene_pcie_map_reg()
253 res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "cfg"); in xgene_pcie_map_reg()
254 port->cfg_base = devm_ioremap_resource(port->dev, res); in xgene_pcie_map_reg()
257 port->cfg_addr = res->start; in xgene_pcie_map_reg()
263 struct resource *res, u32 offset, in xgene_pcie_setup_ob_reg() argument
267 resource_size_t size = resource_size(res); in xgene_pcie_setup_ob_reg()
268 u64 restype = resource_type(res); in xgene_pcie_setup_ob_reg()
302 struct list_head *res, in xgene_pcie_map_ranges() argument
309 resource_list_for_each_entry(window, res) { in xgene_pcie_map_ranges()
310 struct resource *res = window->res; in xgene_pcie_map_ranges() local
311 u64 restype = resource_type(res); in xgene_pcie_map_ranges()
313 dev_dbg(port->dev, "%pR\n", res); in xgene_pcie_map_ranges()
317 xgene_pcie_setup_ob_reg(port, res, OMR3BARL, io_base, in xgene_pcie_map_ranges()
318 res->start - window->offset); in xgene_pcie_map_ranges()
319 ret = pci_remap_iospace(res, io_base); in xgene_pcie_map_ranges()
324 if (res->flags & IORESOURCE_PREFETCH) in xgene_pcie_map_ranges()
325 xgene_pcie_setup_ob_reg(port, res, OMR2BARL, in xgene_pcie_map_ranges()
326 res->start, in xgene_pcie_map_ranges()
327 res->start - in xgene_pcie_map_ranges()
330 xgene_pcie_setup_ob_reg(port, res, OMR1BARL, in xgene_pcie_map_ranges()
331 res->start, in xgene_pcie_map_ranges()
332 res->start - in xgene_pcie_map_ranges()
338 dev_err(dev, "invalid resource %pR\n", res); in xgene_pcie_map_ranges()
483 struct list_head *res, in xgene_pcie_setup() argument
495 ret = xgene_pcie_map_ranges(port, res, io_base); in xgene_pcie_setup()
519 LIST_HEAD(res); in xgene_pcie_probe_bridge()
539 ret = of_pci_get_host_bridge_resources(dn, 0, 0xff, &res, &iobase); in xgene_pcie_probe_bridge()
543 ret = xgene_pcie_setup(port, &res, iobase); in xgene_pcie_probe_bridge()
548 &xgene_pcie_ops, port, &res); in xgene_pcie_probe_bridge()