Lines Matching refs:elem
234 struct htab_elem *elem; in htab_free_prealloced_timers() local
236 elem = get_htab_elem(htab, i); in htab_free_prealloced_timers()
237 bpf_timer_cancel_and_free(elem->key + in htab_free_prealloced_timers()
255 struct htab_elem *elem; in htab_free_prealloced_kptrs() local
257 elem = get_htab_elem(htab, i); in htab_free_prealloced_kptrs()
258 bpf_map_free_kptrs(&htab->map, elem->key + round_up(htab->map.key_size, 8)); in htab_free_prealloced_kptrs()
766 struct htab_elem *elem) in check_and_free_fields() argument
768 void *map_value = elem->key + round_up(htab->map.key_size, 8); in check_and_free_fields()
1165 static void htab_lru_push_free(struct bpf_htab *htab, struct htab_elem *elem) in htab_lru_push_free() argument
1167 check_and_free_fields(htab, elem); in htab_lru_push_free()
1168 bpf_lru_push_free(&htab->lru, &elem->lru_node); in htab_lru_push_free()
1970 struct htab_elem *elem; in bpf_hash_map_seq_find_next() local
1983 elem = hlist_nulls_entry_safe(n, struct htab_elem, hash_node); in bpf_hash_map_seq_find_next()
1984 if (elem) in bpf_hash_map_seq_find_next()
1985 return elem; in bpf_hash_map_seq_find_next()
1999 hlist_nulls_for_each_entry_rcu(elem, n, head, hash_node) { in bpf_hash_map_seq_find_next()
2003 return elem; in bpf_hash_map_seq_find_next()
2020 struct htab_elem *elem; in bpf_hash_map_seq_start() local
2022 elem = bpf_hash_map_seq_find_next(info, NULL); in bpf_hash_map_seq_start()
2023 if (!elem) in bpf_hash_map_seq_start()
2028 return elem; in bpf_hash_map_seq_start()
2040 static int __bpf_hash_map_seq_show(struct seq_file *seq, struct htab_elem *elem) in __bpf_hash_map_seq_show() argument
2052 prog = bpf_iter_get_info(&meta, elem == NULL); in __bpf_hash_map_seq_show()
2056 if (elem) { in __bpf_hash_map_seq_show()
2058 ctx.key = elem->key; in __bpf_hash_map_seq_show()
2060 ctx.value = elem->key + roundup_key_size; in __bpf_hash_map_seq_show()
2063 pptr = htab_elem_get_ptr(elem, map->key_size); in __bpf_hash_map_seq_show()
2144 struct htab_elem *elem; in bpf_for_each_hash_elem() local
2168 hlist_nulls_for_each_entry_rcu(elem, n, head, hash_node) { in bpf_for_each_hash_elem()
2169 key = elem->key; in bpf_for_each_hash_elem()
2172 pptr = htab_elem_get_ptr(elem, map->key_size); in bpf_for_each_hash_elem()
2175 val = elem->key + roundup_key_size; in bpf_for_each_hash_elem()