Lines Matching refs:max
107 unsigned int max) in regcache_maple_drop() argument
110 MA_STATE(mas, mt, min, max); in regcache_maple_drop()
122 mas_for_each(&mas, entry, max) { in regcache_maple_drop()
144 if (mas.last > max) { in regcache_maple_drop()
145 upper_index = max + 1; in regcache_maple_drop()
148 upper = kmemdup_array(&entry[max - mas.index + 1], in regcache_maple_drop()
149 mas.last - max, sizeof(*upper), in regcache_maple_drop()
190 unsigned int min, unsigned int max) in regcache_maple_sync_block() argument
205 if (max - min > 1 && regmap_can_raw_write(map)) { in regcache_maple_sync_block()
206 buf = kmalloc_array(max - min, val_bytes, map->alloc_flags); in regcache_maple_sync_block()
213 for (r = min; r < max; r++) { in regcache_maple_sync_block()
218 ret = _regmap_raw_write(map, min, buf, (max - min) * val_bytes, in regcache_maple_sync_block()
223 for (r = min; r < max; r++) { in regcache_maple_sync_block()
238 unsigned int max) in regcache_maple_sync() argument
242 MA_STATE(mas, mt, min, max); in regcache_maple_sync()
244 unsigned long lmax = max; in regcache_maple_sync()
253 mas_for_each(&mas, entry, max) { in regcache_maple_sync()
254 for (r = max(mas.index, lmin); r <= min(mas.last, lmax); r++) { in regcache_maple_sync()