Home
last modified time | relevance | path

Searched refs:rsrc (Results 1 – 23 of 23) sorted by relevance

/arch/powerpc/sysdev/
Dmv64x60_pci.c124 struct resource rsrc; in mv64x60_add_bridge() local
128 memset(&rsrc, 0, sizeof(rsrc)); in mv64x60_add_bridge()
131 if (of_address_to_resource(dev, 0, &rsrc)) { in mv64x60_add_bridge()
149 setup_indirect_pci(hose, rsrc.start, rsrc.start + 4, 0); in mv64x60_add_bridge()
154 (unsigned long long)rsrc.start, hose->first_busno, in mv64x60_add_bridge()
Dmpic_msgr.c164 struct resource rsrc; in mpic_msgr_probe() local
195 of_address_to_resource(np, 0, &rsrc); in mpic_msgr_probe()
196 msgr_block_addr = ioremap(rsrc.start, rsrc.end - rsrc.start); in mpic_msgr_probe()
Dfsl_pci.c130 struct resource *rsrc) in setup_pci_atmu() argument
144 (u64)rsrc->start, (u64)resource_size(rsrc)); in setup_pci_atmu()
152 pci = ioremap(rsrc->start, resource_size(rsrc)); in setup_pci_atmu()
426 struct resource rsrc; in fsl_add_bridge() local
438 if (of_address_to_resource(dev, 0, &rsrc)) { in fsl_add_bridge()
457 setup_indirect_pci(hose, rsrc.start, rsrc.start + 0x4, in fsl_add_bridge()
483 (unsigned long long)rsrc.start, hose->first_busno, in fsl_add_bridge()
494 setup_pci_atmu(hose, &rsrc); in fsl_add_bridge()
Dtsi108_pci.c202 struct resource rsrc; in tsi108_setup_pci() local
213 has_address = (of_address_to_resource(dev, 0, &rsrc) == 0); in tsi108_setup_pci()
236 rsrc.start, hose->first_busno, hose->last_busno); in tsi108_setup_pci()
/arch/powerpc/platforms/86xx/
Dmpc86xx_hpcn.c55 struct resource rsrc; in mpc86xx_exclude_device() local
58 of_address_to_resource(node, 0, &rsrc); in mpc86xx_exclude_device()
60 if ((rsrc.start & 0xfffff) == 0x8000) { in mpc86xx_exclude_device()
83 struct resource rsrc; in mpc86xx_hpcn_setup_arch() local
84 of_address_to_resource(np, 0, &rsrc); in mpc86xx_hpcn_setup_arch()
85 if ((rsrc.start & 0xfffff) == 0x8000) in mpc86xx_hpcn_setup_arch()
Dmpc8610_hpcd.c291 struct resource rsrc; in mpc86xx_hpcd_setup_arch() local
292 of_address_to_resource(np, 0, &rsrc); in mpc86xx_hpcd_setup_arch()
293 if ((rsrc.start & 0xfffff) == 0xa000) in mpc86xx_hpcd_setup_arch()
/arch/powerpc/platforms/85xx/
Dmpc8536_ds.c62 struct resource rsrc; in mpc8536_ds_setup_arch() local
63 of_address_to_resource(np, 0, &rsrc); in mpc8536_ds_setup_arch()
64 if ((rsrc.start & 0xfffff) == 0x8000) in mpc8536_ds_setup_arch()
Dmpc85xx_ds.c125 struct resource rsrc; in mpc85xx_exclude_device() local
128 of_address_to_resource(node, 0, &rsrc); in mpc85xx_exclude_device()
130 if ((rsrc.start & 0xfffff) == primary_phb_addr) { in mpc85xx_exclude_device()
157 struct resource rsrc; in mpc85xx_ds_setup_arch() local
158 of_address_to_resource(np, 0, &rsrc); in mpc85xx_ds_setup_arch()
159 if ((rsrc.start & 0xfffff) == primary_phb_addr) in mpc85xx_ds_setup_arch()
Dtqm85xx.c77 struct resource rsrc; in tqm85xx_setup_arch() local
78 if (!of_address_to_resource(np, 0, &rsrc)) { in tqm85xx_setup_arch()
79 if ((rsrc.start & 0xfffff) == 0x8000) in tqm85xx_setup_arch()
Dsbc8548.c102 struct resource rsrc; in sbc8548_setup_arch() local
103 of_address_to_resource(np, 0, &rsrc); in sbc8548_setup_arch()
104 if ((rsrc.start & 0xfffff) == 0x8000) in sbc8548_setup_arch()
Dge_imp3a.c111 struct resource rsrc; in ge_imp3a_setup_arch() local
112 of_address_to_resource(np, 0, &rsrc); in ge_imp3a_setup_arch()
113 if ((rsrc.start & 0xfffff) == primary_phb_addr) in ge_imp3a_setup_arch()
Dxes_mpc85xx.c144 struct resource rsrc; in xes_mpc85xx_setup_arch() local
145 of_address_to_resource(np, 0, &rsrc); in xes_mpc85xx_setup_arch()
146 if ((rsrc.start & 0xfffff) == primary_phb_addr) in xes_mpc85xx_setup_arch()
Dmpc85xx_cds.c315 struct resource rsrc; in mpc85xx_cds_setup_arch() local
316 of_address_to_resource(np, 0, &rsrc); in mpc85xx_cds_setup_arch()
317 if ((rsrc.start & 0xfffff) == 0x8000) in mpc85xx_cds_setup_arch()
Dmpc85xx_mds.c343 struct resource rsrc; in mpc85xx_mds_setup_arch() local
344 of_address_to_resource(np, 0, &rsrc); in mpc85xx_mds_setup_arch()
345 if ((rsrc.start & 0xfffff) == 0x8000) in mpc85xx_mds_setup_arch()
Dp1022_ds.c540 struct resource rsrc; in p1022_ds_setup_arch() local
543 of_address_to_resource(np, 0, &rsrc); in p1022_ds_setup_arch()
545 if ((rsrc.start & 0xfffff) == 0x8000) in p1022_ds_setup_arch()
/arch/powerpc/platforms/powermac/
Dtime.c264 struct resource rsrc; in via_calibrate_decr() local
271 if (vias == NULL || of_address_to_resource(vias, 0, &rsrc)) { in via_calibrate_decr()
276 via = ioremap(rsrc.start, resource_size(&rsrc)); in via_calibrate_decr()
Dpci.c911 struct resource rsrc; in pmac_add_bridge() local
919 has_address = (of_address_to_resource(dev, 0, &rsrc) == 0); in pmac_add_bridge()
958 primary = setup_uninorth(hose, &rsrc); in pmac_add_bridge()
965 setup_bandit(hose, &rsrc); in pmac_add_bridge()
968 setup_chaos(hose, &rsrc); in pmac_add_bridge()
974 disp_name, (unsigned long long)rsrc.start, hose->first_busno, in pmac_add_bridge()
/arch/powerpc/platforms/52xx/
Dmpc52xx_pci.c370 struct resource rsrc; in mpc52xx_add_bridge() local
376 if (of_address_to_resource(node, 0, &rsrc) != 0) { in mpc52xx_add_bridge()
405 pci_regs = ioremap(rsrc.start, resource_size(&rsrc)); in mpc52xx_add_bridge()
413 mpc52xx_pci_setup(hose, pci_regs, rsrc.start); in mpc52xx_add_bridge()
/arch/sparc/include/asm/
Dpci_64.h83 const struct resource *rsrc,
/arch/microblaze/include/asm/
Dpci.h141 const struct resource *rsrc,
/arch/powerpc/include/asm/
Dpci.h182 const struct resource *rsrc,
/arch/powerpc/kernel/
Dpci-common.c591 const struct resource *rsrc, in pci_resource_to_user() argument
600 if (rsrc->flags & IORESOURCE_IO) in pci_resource_to_user()
621 else if (rsrc->flags & IORESOURCE_MEM) in pci_resource_to_user()
625 *start = rsrc->start - offset; in pci_resource_to_user()
626 *end = rsrc->end - offset; in pci_resource_to_user()
/arch/microblaze/pci/
Dpci-common.c593 const struct resource *rsrc, in pci_resource_to_user() argument
602 if (rsrc->flags & IORESOURCE_IO) in pci_resource_to_user()
623 else if (rsrc->flags & IORESOURCE_MEM) in pci_resource_to_user()
627 *start = rsrc->start - offset; in pci_resource_to_user()
628 *end = rsrc->end - offset; in pci_resource_to_user()