• Home
  • Raw
  • Download

Lines Matching refs:count

114 	atomic_set(&ns->count, 1);  in create_user_ns()
200 } while (atomic_dec_and_test(&parent->count)); in free_user_ns()
216 u32 count; /* == 0 unless used with map_id_range_down() */ member
229 id2 = key->id + key->count - 1; in cmp_map_id()
237 last = first + el->count - 1; in cmp_map_id()
254 map_id_range_down_max(unsigned extents, struct uid_gid_map *map, u32 id, u32 count) in map_id_range_down_max() argument
259 key.count = count; in map_id_range_down_max()
272 map_id_range_down_base(unsigned extents, struct uid_gid_map *map, u32 id, u32 count) in map_id_range_down_base() argument
277 id2 = id + count - 1; in map_id_range_down_base()
282 last = first + map->extent[idx].count - 1; in map_id_range_down_base()
290 static u32 map_id_range_down(struct uid_gid_map *map, u32 id, u32 count) in map_id_range_down() argument
297 extent = map_id_range_down_base(extents, map, id, count); in map_id_range_down()
299 extent = map_id_range_down_max(extents, map, id, count); in map_id_range_down()
329 last = first + map->extent[idx].count - 1; in map_id_up_base()
346 key.count = 1; in map_id_up_max()
593 extent->count); in uid_m_show()
614 extent->count); in gid_m_show()
635 extent->count); in projid_m_show()
717 upper_last = upper_first + extent->count - 1; in mappings_overlap()
718 lower_last = lower_first + extent->count - 1; in mappings_overlap()
732 prev_upper_last = prev_upper_first + prev->count - 1; in mappings_overlap()
733 prev_lower_last = prev_lower_first + prev->count - 1; in mappings_overlap()
845 size_t count, loff_t *ppos, in map_write() argument
859 if ((*ppos != 0) || (count >= PAGE_SIZE)) in map_write()
863 kbuf = memdup_user_nul(buf, count); in map_write()
926 extent.count = simple_strtoul(pos, &pos, 10); in map_write()
943 if ((extent.first + extent.count) <= extent.first) in map_write()
945 if ((extent.lower_first + extent.count) <= in map_write()
986 e->count); in map_write()
1016 *ppos = count; in map_write()
1017 ret = count; in map_write()
1092 if ((new_map->nr_extents == 1) && (new_map->extent[0].count == 1) && in new_idmap_permitted()
1134 size_t count, loff_t *ppos) in proc_setgroups_write() argument
1144 if ((*ppos != 0) || (count >= sizeof(kbuf))) in proc_setgroups_write()
1149 if (copy_from_user(kbuf, buf, count)) in proc_setgroups_write()
1151 kbuf[count] = '\0'; in proc_setgroups_write()
1191 *ppos = count; in proc_setgroups_write()
1192 ret = count; in proc_setgroups_write()