Lines Matching refs:iter
189 static void map_iter_free(struct map_iter *iter) in map_iter_free() argument
191 if (iter) { in map_iter_free()
192 kfree(iter->key); in map_iter_free()
193 kfree(iter); in map_iter_free()
199 struct map_iter *iter; in map_iter_alloc() local
201 iter = kzalloc(sizeof(*iter), GFP_KERNEL | __GFP_NOWARN); in map_iter_alloc()
202 if (!iter) in map_iter_alloc()
205 iter->key = kzalloc(map->key_size, GFP_KERNEL | __GFP_NOWARN); in map_iter_alloc()
206 if (!iter->key) in map_iter_alloc()
209 return iter; in map_iter_alloc()
212 map_iter_free(iter); in map_iter_alloc()
277 struct map_iter *iter; in bpffs_map_open() local
281 iter = map_iter_alloc(map); in bpffs_map_open()
282 if (!iter) in bpffs_map_open()
287 map_iter_free(iter); in bpffs_map_open()
292 m->private = iter; in bpffs_map_open()