Lines Matching refs:u32
99 u32 n_buckets; /* number of hash buckets */
100 u32 elem_size; /* size of each element in bytes */
101 u32 hashrnd;
121 u32 hash;
184 static inline void htab_elem_set_ptr(struct htab_elem *l, u32 key_size, in htab_elem_set_ptr()
190 static inline void __percpu *htab_elem_get_ptr(struct htab_elem *l, u32 key_size) in htab_elem_get_ptr()
236 u32 hash) in prealloc_lru_pop()
252 u32 num_entries = htab->map.max_entries; in prealloc_init()
267 u32 size = round_up(htab->map.value_size, 8); in prealloc_init()
518 static inline u32 htab_map_hash(const void *key, u32 key_len, u32 hashrnd) in htab_map_hash()
523 static inline struct bucket *__select_bucket(struct bpf_htab *htab, u32 hash) in __select_bucket()
528 static inline struct hlist_nulls_head *select_bucket(struct bpf_htab *htab, u32 hash) in select_bucket()
534 static struct htab_elem *lookup_elem_raw(struct hlist_nulls_head *head, u32 hash, in lookup_elem_raw()
535 void *key, u32 key_size) in lookup_elem_raw()
552 u32 hash, void *key, in lookup_nulls_elem_raw()
553 u32 key_size, u32 n_buckets) in lookup_nulls_elem_raw()
579 u32 hash, key_size; in __htab_map_lookup_elem()
714 u32 hash, key_size; in htab_map_get_next_key()
813 u32 size = round_up(htab->map.value_size, 8); in pcpu_copy_value()
834 u32 size = round_up(htab->map.value_size, 8); in pcpu_init_value()
857 void *value, u32 key_size, u32 hash, in alloc_htab_elem()
861 u32 size = htab->map.value_size; in alloc_htab_elem()
963 u32 key_size, hash; in htab_map_update_elem()
1054 u32 key_size, hash; in htab_lru_map_update_elem()
1118 u32 key_size, hash; in __htab_percpu_map_update_elem()
1170 u32 key_size, hash; in __htab_lru_percpu_map_update_elem()
1246 u32 hash, key_size; in htab_map_delete_elem()
1278 u32 hash, key_size; in htab_lru_map_delete_elem()
1373 u32 bucket_cnt, total, key_size, value_size, roundup_key_size; in __htab_map_lookup_and_delete_batch()
1378 u32 batch, max_count, size, bucket_size; in __htab_map_lookup_and_delete_batch()
1651 u32 bucket_id;
1652 u32 skip_elems;
1660 u32 skip_elems = info->skip_elems; in bpf_hash_map_seq_find_next()
1661 u32 bucket_id = info->bucket_id; in bpf_hash_map_seq_find_next()
1666 u32 i, count; in bpf_hash_map_seq_find_next()
1737 u32 roundup_key_size, roundup_value_size; in __bpf_hash_map_seq_show()
1792 u32 buf_size; in bpf_iter_init_hash_map()
1898 u32 size; in bpf_percpu_hash_copy()
2007 if (attr->value_size != sizeof(u32)) in fd_htab_map_alloc_check()
2034 int bpf_fd_htab_map_lookup_elem(struct bpf_map *map, void *key, u32 *value) in bpf_fd_htab_map_lookup_elem()
2059 u32 ufd = *(u32 *)value; in bpf_fd_htab_map_update_elem()