Lines Matching refs:id
237 u32 id; /* id to find */ member
251 id2 = key->id + key->count - 1; in cmp_map_id()
261 if (key->id >= first && key->id <= last && in cmp_map_id()
265 if (key->id < first || id2 < first) in cmp_map_id()
276 map_id_range_down_max(unsigned extents, struct uid_gid_map *map, u32 id, u32 count) in map_id_range_down_max() argument
282 key.id = id; in map_id_range_down_max()
294 map_id_range_down_base(unsigned extents, struct uid_gid_map *map, u32 id, u32 count) in map_id_range_down_base() argument
299 id2 = id + count - 1; in map_id_range_down_base()
305 if (id >= first && id <= last && in map_id_range_down_base()
312 static u32 map_id_range_down(struct uid_gid_map *map, u32 id, u32 count) in map_id_range_down() argument
319 extent = map_id_range_down_base(extents, map, id, count); in map_id_range_down()
321 extent = map_id_range_down_max(extents, map, id, count); in map_id_range_down()
325 id = (id - extent->first) + extent->lower_first; in map_id_range_down()
327 id = (u32) -1; in map_id_range_down()
329 return id; in map_id_range_down()
332 static u32 map_id_down(struct uid_gid_map *map, u32 id) in map_id_down() argument
334 return map_id_range_down(map, id, 1); in map_id_down()
343 map_id_up_base(unsigned extents, struct uid_gid_map *map, u32 id) in map_id_up_base() argument
352 if (id >= first && id <= last) in map_id_up_base()
363 map_id_up_max(unsigned extents, struct uid_gid_map *map, u32 id) in map_id_up_max() argument
369 key.id = id; in map_id_up_max()
375 static u32 map_id_up(struct uid_gid_map *map, u32 id) in map_id_up() argument
382 extent = map_id_up_base(extents, map, id); in map_id_up()
384 extent = map_id_up_max(extents, map, id); in map_id_up()
388 id = (id - extent->lower_first) + extent->first; in map_id_up()
390 id = (u32) -1; in map_id_up()
392 return id; in map_id_up()
1174 u32 id = new_map->extent[0].lower_first; in new_idmap_permitted() local
1176 kuid_t uid = make_kuid(ns->parent, id); in new_idmap_permitted()
1180 kgid_t gid = make_kgid(ns->parent, id); in new_idmap_permitted()