Lines Matching full:stride
148 unsigned int stride; in of_translate_dcr_address() local
155 /* Stride is not properly defined yet, default to 0x10 for Axon */ in of_translate_dcr_address()
156 p = of_get_property(dp, "dcr-mmio-stride", NULL); in of_translate_dcr_address()
157 stride = (p == NULL) ? 0x10 : *p; in of_translate_dcr_address()
169 ret += (u64)(stride) * (u64)dcr_n; in of_translate_dcr_address()
171 *out_stride = stride; in of_translate_dcr_address()
182 dcr_host_mmio_t ret = { .token = NULL, .stride = 0, .base = dcr_n }; in dcr_map_mmio()
188 addr = of_translate_dcr_address(dev, dcr_n, &ret.stride); in dcr_map_mmio()
189 pr_debug("translates to addr: 0x%llx, stride: 0x%x\n", in dcr_map_mmio()
190 (unsigned long long) addr, ret.stride); in dcr_map_mmio()
193 pr_debug("mapping 0x%x bytes\n", dcr_c * ret.stride); in dcr_map_mmio()
194 ret.token = ioremap(addr, dcr_c * 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()
210 h.token += host.base * h.stride; in dcr_unmap_mmio()