Lines Matching defs:dcr_n
61 unsigned int dcr_n,
80 host.host.native = dcr_map_native(dev, dcr_n, dcr_c);
83 host.host.mmio = dcr_map_mmio(dev, dcr_n, dcr_c);
102 u32 dcr_read_generic(dcr_host_t host, unsigned int dcr_n)
105 return dcr_read_native(host.host.native, dcr_n);
107 return dcr_read_mmio(host.host.mmio, dcr_n);
114 void dcr_write_generic(dcr_host_t host, unsigned int dcr_n, u32 value)
117 dcr_write_native(host.host.native, dcr_n, value);
119 dcr_write_mmio(host.host.mmio, dcr_n, value);
155 unsigned int dcr_n,
180 ret += (u64)(stride) * (u64)dcr_n;
190 unsigned int dcr_n,
193 dcr_host_mmio_t ret = { .token = NULL, .stride = 0, .base = dcr_n };
197 dev->full_name, dcr_n, dcr_c);
199 addr = of_translate_dcr_address(dev, dcr_n, &ret.stride);
209 ret.token, ret.token - dcr_n * ret.stride);
210 ret.token -= dcr_n * ret.stride;