Lines Matching refs:u32
35 u32 n_buckets; /* number of hash buckets */
36 u32 elem_size; /* size of each element in bytes */
37 u32 hashrnd;
56 u32 hash;
79 static inline void htab_elem_set_ptr(struct htab_elem *l, u32 key_size, in htab_elem_set_ptr()
85 static inline void __percpu *htab_elem_get_ptr(struct htab_elem *l, u32 key_size) in htab_elem_get_ptr()
120 u32 hash) in prealloc_lru_pop()
136 u32 num_entries = htab->map.max_entries; in prealloc_init()
151 u32 size = round_up(htab->map.value_size, 8); in prealloc_init()
405 static inline u32 htab_map_hash(const void *key, u32 key_len, u32 hashrnd) in htab_map_hash()
410 static inline struct bucket *__select_bucket(struct bpf_htab *htab, u32 hash) in __select_bucket()
415 static inline struct hlist_nulls_head *select_bucket(struct bpf_htab *htab, u32 hash) in select_bucket()
421 static struct htab_elem *lookup_elem_raw(struct hlist_nulls_head *head, u32 hash, in lookup_elem_raw()
422 void *key, u32 key_size) in lookup_elem_raw()
439 u32 hash, void *key, in lookup_nulls_elem_raw()
440 u32 key_size, u32 n_buckets) in lookup_nulls_elem_raw()
466 u32 hash, key_size; in __htab_map_lookup_elem()
503 static u32 htab_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf) in htab_map_gen_lookup()
542 static u32 htab_lru_map_gen_lookup(struct bpf_map *map, in htab_lru_map_gen_lookup()
602 u32 hash, key_size; in htab_map_get_next_key()
704 u32 size = round_up(htab->map.value_size, 8); in pcpu_copy_value()
722 void *value, u32 key_size, u32 hash, in alloc_htab_elem()
726 u32 size = htab->map.value_size; in alloc_htab_elem()
827 u32 key_size, hash; in htab_map_update_elem()
919 u32 key_size, hash; in htab_lru_map_update_elem()
984 u32 key_size, hash; in __htab_percpu_map_update_elem()
1037 u32 key_size, hash; in __htab_lru_percpu_map_update_elem()
1114 u32 hash, key_size; in htab_map_delete_elem()
1146 u32 hash, key_size; in htab_lru_map_delete_elem()
1289 u32 size; in bpf_percpu_hash_copy()
1386 if (attr->value_size != sizeof(u32)) in fd_htab_map_alloc_check()
1413 int bpf_fd_htab_map_lookup_elem(struct bpf_map *map, void *key, u32 *value) in bpf_fd_htab_map_lookup_elem()
1438 u32 ufd = *(u32 *)value; in bpf_fd_htab_map_update_elem()
1480 static u32 htab_of_map_gen_lookup(struct bpf_map *map, in htab_of_map_gen_lookup()