Home
last modified time | relevance | path

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

/arch/powerpc/include/asm/
Ddcr.h42 #define dcr_map(dev, dcr_n, dcr_c) dcr_map_generic(dev, dcr_n, dcr_c) argument
44 #define dcr_read(host, dcr_n) dcr_read_generic(host, dcr_n) argument
45 #define dcr_write(host, dcr_n, value) dcr_write_generic(host, dcr_n, value) argument
52 #define dcr_map(dev, dcr_n, dcr_c) dcr_map_native(dev, dcr_n, dcr_c) argument
54 #define dcr_read(host, dcr_n) dcr_read_native(host, dcr_n) argument
55 #define dcr_write(host, dcr_n, value) dcr_write_native(host, dcr_n, value) argument
59 #define dcr_map(dev, dcr_n, dcr_c) dcr_map_mmio(dev, dcr_n, dcr_c) argument
61 #define dcr_read(host, dcr_n) dcr_read_mmio(host, dcr_n) argument
62 #define dcr_write(host, dcr_n, value) dcr_write_mmio(host, dcr_n, value) argument
Ddcr-mmio.h38 unsigned int dcr_n,
42 static inline u32 dcr_read_mmio(dcr_host_mmio_t host, unsigned int dcr_n) in dcr_read_mmio() argument
44 return in_be32(host.token + ((host.base + dcr_n) * host.stride)); in dcr_read_mmio()
48 unsigned int dcr_n, in dcr_write_mmio() argument
51 out_be32(host.token + ((host.base + dcr_n) * host.stride), value); in dcr_write_mmio()
55 unsigned int dcr_n,
Ddcr-generic.h37 extern dcr_host_t dcr_map_generic(struct device_node *dev, unsigned int dcr_n,
41 extern u32 dcr_read_generic(dcr_host_t host, unsigned int dcr_n);
43 extern void dcr_write_generic(dcr_host_t host, unsigned int dcr_n, u32 value);
Ddcr-native.h37 #define dcr_map_native(dev, dcr_n, dcr_c) \ argument
38 ((dcr_host_native_t){ .base = (dcr_n) })
40 #define dcr_read_native(host, dcr_n) mfdcr(dcr_n + host.base) argument
41 #define dcr_write_native(host, dcr_n, value) mtdcr(dcr_n + host.base, value) argument
/arch/powerpc/sysdev/
Ddcr.c61 unsigned int dcr_n, in dcr_map_generic() argument
80 host.host.native = dcr_map_native(dev, dcr_n, dcr_c); in dcr_map_generic()
83 host.host.mmio = dcr_map_mmio(dev, dcr_n, dcr_c); in dcr_map_generic()
102 u32 dcr_read_generic(dcr_host_t host, unsigned int dcr_n) in dcr_read_generic() argument
105 return dcr_read_native(host.host.native, dcr_n); in dcr_read_generic()
107 return dcr_read_mmio(host.host.mmio, dcr_n); in dcr_read_generic()
114 void dcr_write_generic(dcr_host_t host, unsigned int dcr_n, u32 value) in dcr_write_generic() argument
117 dcr_write_native(host.host.native, dcr_n, value); in dcr_write_generic()
119 dcr_write_mmio(host.host.mmio, dcr_n, value); in dcr_write_generic()
155 unsigned int dcr_n, in of_translate_dcr_address() argument
[all …]
/arch/powerpc/platforms/cell/
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_debug("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()