Lines Matching refs:range

67 	struct regmap_range *range;  in regmap_init_mem_plat()  local
74 for (range = map->ranges; count > 0; reg += 2, range++, count--) { in regmap_init_mem_plat()
75 range->start = *reg; in regmap_init_mem_plat()
76 range->size = reg[1]; in regmap_init_mem_plat()
98 static int init_range(ofnode node, struct regmap_range *range, int addr_len, in init_range() argument
115 range->start = r.start; in init_range()
116 range->size = r.end - r.start + 1; in init_range()
120 range->start = fdtdec_get_addr_size_fixed(gd->fdt_blob, offset, in init_range()
124 if (range->start == FDT_ADDR_T_NONE) { in init_range()
130 range->size = sz; in init_range()
186 struct regmap_range *range; in regmap_init_mem_range() local
192 range = &map->ranges[0]; in regmap_init_mem_range()
193 range->start = r_start; in regmap_init_mem_range()
194 range->size = r_size; in regmap_init_mem_range()
211 struct regmap_range *range; in regmap_init_mem() local
258 for (range = map->ranges, index = 0; count > 0; in regmap_init_mem()
259 count--, range++, index++) { in regmap_init_mem()
260 ret = init_range(node, range, addr_len, size_len, index); in regmap_init_mem()
322 struct regmap_range *range; in regmap_get_range() local
326 range = &map->ranges[range_num]; in regmap_get_range()
328 return map_sysmem(range->start, range->size); in regmap_get_range()
390 struct regmap_range *range; in regmap_raw_read_range() local
398 range = &map->ranges[range_num]; in regmap_raw_read_range()
401 if (offset + val_len > range->size) { in regmap_raw_read_range()
406 ptr = map_physmem(range->start + offset, val_len, MAP_NOCACHE); in regmap_raw_read_range()
500 struct regmap_range *range; in regmap_raw_write_range() local
508 range = &map->ranges[range_num]; in regmap_raw_write_range()
511 if (offset + val_len > range->size) { in regmap_raw_write_range()
516 ptr = map_physmem(range->start + offset, val_len, MAP_NOCACHE); in regmap_raw_write_range()