dcr_n 24 arch/powerpc/include/asm/dcr-generic.h extern dcr_host_t dcr_map_generic(struct device_node *dev, unsigned int dcr_n, dcr_n 28 arch/powerpc/include/asm/dcr-generic.h extern u32 dcr_read_generic(dcr_host_t host, unsigned int dcr_n); dcr_n 30 arch/powerpc/include/asm/dcr-generic.h extern void dcr_write_generic(dcr_host_t host, unsigned int dcr_n, u32 value); dcr_n 25 arch/powerpc/include/asm/dcr-mmio.h unsigned int dcr_n, dcr_n 29 arch/powerpc/include/asm/dcr-mmio.h static inline u32 dcr_read_mmio(dcr_host_mmio_t host, unsigned int dcr_n) dcr_n 31 arch/powerpc/include/asm/dcr-mmio.h return in_be32(host.token + ((host.base + dcr_n) * host.stride)); dcr_n 35 arch/powerpc/include/asm/dcr-mmio.h unsigned int dcr_n, dcr_n 38 arch/powerpc/include/asm/dcr-mmio.h out_be32(host.token + ((host.base + dcr_n) * host.stride), value); dcr_n 26 arch/powerpc/include/asm/dcr-native.h #define dcr_map_native(dev, dcr_n, dcr_c) \ dcr_n 27 arch/powerpc/include/asm/dcr-native.h ((dcr_host_native_t){ .base = (dcr_n) }) dcr_n 29 arch/powerpc/include/asm/dcr-native.h #define dcr_read_native(host, dcr_n) mfdcr(dcr_n + host.base) dcr_n 30 arch/powerpc/include/asm/dcr-native.h #define dcr_write_native(host, dcr_n, value) mtdcr(dcr_n + host.base, value) dcr_n 29 arch/powerpc/include/asm/dcr.h #define dcr_map(dev, dcr_n, dcr_c) dcr_map_generic(dev, dcr_n, dcr_c) dcr_n 31 arch/powerpc/include/asm/dcr.h #define dcr_read(host, dcr_n) dcr_read_generic(host, dcr_n) dcr_n 32 arch/powerpc/include/asm/dcr.h #define dcr_write(host, dcr_n, value) dcr_write_generic(host, dcr_n, value) dcr_n 39 arch/powerpc/include/asm/dcr.h #define dcr_map(dev, dcr_n, dcr_c) dcr_map_native(dev, dcr_n, dcr_c) dcr_n 41 arch/powerpc/include/asm/dcr.h #define dcr_read(host, dcr_n) dcr_read_native(host, dcr_n) dcr_n 42 arch/powerpc/include/asm/dcr.h #define dcr_write(host, dcr_n, value) dcr_write_native(host, dcr_n, value) dcr_n 46 arch/powerpc/include/asm/dcr.h #define dcr_map(dev, dcr_n, dcr_c) dcr_map_mmio(dev, dcr_n, dcr_c) dcr_n 48 arch/powerpc/include/asm/dcr.h #define dcr_read(host, dcr_n) dcr_read_mmio(host, dcr_n) dcr_n 49 arch/powerpc/include/asm/dcr.h #define dcr_write(host, dcr_n, value) dcr_write_mmio(host, dcr_n, value) dcr_n 85 arch/powerpc/platforms/cell/axon_msi.c static void msic_dcr_write(struct axon_msic *msic, unsigned int dcr_n, u32 val) dcr_n 87 arch/powerpc/platforms/cell/axon_msi.c pr_devel("axon_msi: dcr_write(0x%x, 0x%x)\n", val, dcr_n); dcr_n 89 arch/powerpc/platforms/cell/axon_msi.c dcr_write(msic->dcr_host, dcr_n, val); dcr_n 49 arch/powerpc/sysdev/dcr.c unsigned int dcr_n, dcr_n 68 arch/powerpc/sysdev/dcr.c host.host.native = dcr_map_native(dev, dcr_n, dcr_c); dcr_n 71 arch/powerpc/sysdev/dcr.c host.host.mmio = dcr_map_mmio(dev, dcr_n, dcr_c); dcr_n 90 arch/powerpc/sysdev/dcr.c u32 dcr_read_generic(dcr_host_t host, unsigned int dcr_n) dcr_n 93 arch/powerpc/sysdev/dcr.c return dcr_read_native(host.host.native, dcr_n); dcr_n 95 arch/powerpc/sysdev/dcr.c return dcr_read_mmio(host.host.mmio, dcr_n); dcr_n 102 arch/powerpc/sysdev/dcr.c void dcr_write_generic(dcr_host_t host, unsigned int dcr_n, u32 value) dcr_n 105 arch/powerpc/sysdev/dcr.c dcr_write_native(host.host.native, dcr_n, value); dcr_n 107 arch/powerpc/sysdev/dcr.c dcr_write_mmio(host.host.mmio, dcr_n, value); dcr_n 143 arch/powerpc/sysdev/dcr.c unsigned int dcr_n, dcr_n 169 arch/powerpc/sysdev/dcr.c ret += (u64)(stride) * (u64)dcr_n; dcr_n 179 arch/powerpc/sysdev/dcr.c unsigned int dcr_n, dcr_n 182 arch/powerpc/sysdev/dcr.c dcr_host_mmio_t ret = { .token = NULL, .stride = 0, .base = dcr_n }; dcr_n 186 arch/powerpc/sysdev/dcr.c dev, dcr_n, dcr_c); dcr_n 188 arch/powerpc/sysdev/dcr.c addr = of_translate_dcr_address(dev, dcr_n, &ret.stride); dcr_n 198 arch/powerpc/sysdev/dcr.c ret.token, ret.token - dcr_n * ret.stride); dcr_n 199 arch/powerpc/sysdev/dcr.c ret.token -= dcr_n * ret.stride;