Home
last modified time | relevance | path

Searched refs:dcr_n (Results 1 – 6 of 6) sorted by relevance

/openbmc/linux/arch/powerpc/include/asm/
H A Ddcr.h29 #define dcr_map(dev, dcr_n, dcr_c) dcr_map_generic(dev, dcr_n, dcr_c) argument
31 #define dcr_read(host, dcr_n) dcr_read_generic(host, dcr_n) argument
32 #define dcr_write(host, dcr_n, value) dcr_write_generic(host, dcr_n, value) argument
39 #define dcr_map(dev, dcr_n, dcr_c) dcr_map_native(dev, dcr_n, dcr_c) argument
41 #define dcr_read(host, dcr_n) dcr_read_native(host, dcr_n) argument
42 #define dcr_write(host, dcr_n, value) dcr_write_native(host, dcr_n, value) argument
46 #define dcr_map(dev, dcr_n, dcr_c) dcr_map_mmio(dev, dcr_n, dcr_c) argument
48 #define dcr_read(host, dcr_n) dcr_read_mmio(host, dcr_n) argument
49 #define dcr_write(host, dcr_n, value) dcr_write_mmio(host, dcr_n, value) argument
H A Ddcr-mmio.h25 unsigned int dcr_n,
29 static inline u32 dcr_read_mmio(dcr_host_mmio_t host, unsigned int dcr_n) in dcr_read_mmio() argument
31 return in_be32(host.token + ((host.base + dcr_n) * host.stride)); in dcr_read_mmio()
35 unsigned int dcr_n, in dcr_write_mmio() argument
38 out_be32(host.token + ((host.base + dcr_n) * host.stride), value); in dcr_write_mmio()
H A Ddcr-native.h26 #define dcr_map_native(dev, dcr_n, dcr_c) \ argument
27 ((dcr_host_native_t){ .base = (dcr_n) })
29 #define dcr_read_native(host, dcr_n) mfdcr(dcr_n + host.base) argument
30 #define dcr_write_native(host, dcr_n, value) mtdcr(dcr_n + host.base, value) argument
H A Ddcr-generic.h24 extern dcr_host_t dcr_map_generic(struct device_node *dev, unsigned int dcr_n,
28 extern u32 dcr_read_generic(dcr_host_t host, unsigned int dcr_n);
30 extern void dcr_write_generic(dcr_host_t host, unsigned int dcr_n, u32 value);
/openbmc/linux/arch/powerpc/sysdev/
H A Ddcr.c49 unsigned int dcr_n, in dcr_map_generic() argument
71 host.host.mmio = dcr_map_mmio(dev, dcr_n, dcr_c); in dcr_map_generic()
93 return dcr_read_native(host.host.native, dcr_n); in dcr_read_generic()
95 return dcr_read_mmio(host.host.mmio, dcr_n); in dcr_read_generic()
107 dcr_write_mmio(host.host.mmio, dcr_n, value); in dcr_write_generic()
143 unsigned int dcr_n, in of_translate_dcr_address() argument
169 ret += (u64)(stride) * (u64)dcr_n; in of_translate_dcr_address()
179 unsigned int dcr_n, in dcr_map_mmio() argument
186 dev, dcr_n, dcr_c); in dcr_map_mmio()
198 ret.token, ret.token - dcr_n * ret.stride); in dcr_map_mmio()
[all …]
/openbmc/linux/arch/powerpc/platforms/cell/
H A Daxon_msi.c86 static void msic_dcr_write(struct axon_msic *msic, unsigned int dcr_n, u32 val) in msic_dcr_write() argument
88 pr_devel("axon_msi: dcr_write(0x%x, 0x%x)\n", val, dcr_n); in msic_dcr_write()
90 dcr_write(msic->dcr_host, dcr_n, val); in msic_dcr_write()