Lines Matching refs:dcr_n
49 unsigned int dcr_n, in dcr_map_generic() argument
68 host.host.native = dcr_map_native(dev, dcr_n, dcr_c); in dcr_map_generic()
71 host.host.mmio = dcr_map_mmio(dev, dcr_n, dcr_c); in dcr_map_generic()
90 u32 dcr_read_generic(dcr_host_t host, unsigned int dcr_n) in dcr_read_generic() argument
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()
102 void dcr_write_generic(dcr_host_t host, unsigned int dcr_n, u32 value) in dcr_write_generic() argument
105 dcr_write_native(host.host.native, dcr_n, value); in dcr_write_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
182 dcr_host_mmio_t ret = { .token = NULL, .stride = 0, .base = dcr_n }; in dcr_map_mmio()
186 dev, dcr_n, dcr_c); in dcr_map_mmio()
188 addr = of_translate_dcr_address(dev, dcr_n, &ret.stride); in dcr_map_mmio()
198 ret.token, ret.token - dcr_n * ret.stride); in dcr_map_mmio()
199 ret.token -= dcr_n * ret.stride; in dcr_map_mmio()