Lines Matching refs:ranges
171 const __be32 *ranges; in of_translate_one() local
193 ranges = of_get_property(parent, rprop, &rlen); in of_translate_one()
194 if (ranges == NULL || rlen == 0) { in of_translate_one()
206 for (; rlen >= rone; rlen -= rone, ranges += rone) { in of_translate_one()
207 offset = bus->map(addr, ranges, na, ns, pna); in of_translate_one()
215 memcpy(addr, ranges + na, 4 * pna); in of_translate_one()
328 const __be32 *ranges; in of_get_dma_range() local
335 ranges = of_get_property(dev, "dma-ranges", &len); in of_get_dma_range()
338 if (ranges && len > 0) in of_get_dma_range()
342 if (found_dma_ranges && !ranges) { in of_get_dma_range()
347 if (ranges) in of_get_dma_range()
355 if (!dev || !ranges) { in of_get_dma_range()
387 *bus = of_read_number(ranges, na); in of_get_dma_range()
388 *cpu = of_translate_dma_address(dev, ranges + na); in of_get_dma_range()
389 *size = of_read_number(ranges + na + pna, ns); in of_get_dma_range()