• Home
  • Raw
  • Download

Lines Matching refs:u32

103 	u32 n_buckets;	/* number of hash buckets */
104 u32 elem_size; /* size of each element in bytes */
105 u32 hashrnd;
127 u32 hash;
150 struct bucket *b, u32 hash, in htab_lock_bucket()
155 hash = hash & min_t(u32, HASHTAB_MAP_LOCK_MASK, htab->n_buckets - 1); in htab_lock_bucket()
173 struct bucket *b, u32 hash, in htab_unlock_bucket()
176 hash = hash & min_t(u32, HASHTAB_MAP_LOCK_MASK, htab->n_buckets - 1); in htab_unlock_bucket()
197 static inline void htab_elem_set_ptr(struct htab_elem *l, u32 key_size, in htab_elem_set_ptr()
203 static inline void __percpu *htab_elem_get_ptr(struct htab_elem *l, u32 key_size) in htab_elem_get_ptr()
225 u32 num_entries = htab->map.max_entries; in htab_free_prealloced_timers()
246 u32 num_entries = htab->map.max_entries; in htab_free_prealloced_kptrs()
294 u32 hash) in prealloc_lru_pop()
310 u32 num_entries = htab->map.max_entries; in prealloc_init()
325 u32 size = round_up(htab->map.value_size, 8); in prealloc_init()
603 static inline u32 htab_map_hash(const void *key, u32 key_len, u32 hashrnd) in htab_map_hash()
608 static inline struct bucket *__select_bucket(struct bpf_htab *htab, u32 hash) in __select_bucket()
613 static inline struct hlist_nulls_head *select_bucket(struct bpf_htab *htab, u32 hash) in select_bucket()
619 static struct htab_elem *lookup_elem_raw(struct hlist_nulls_head *head, u32 hash, in lookup_elem_raw()
620 void *key, u32 key_size) in lookup_elem_raw()
637 u32 hash, void *key, in lookup_nulls_elem_raw()
638 u32 key_size, u32 n_buckets) in lookup_nulls_elem_raw()
664 u32 hash, key_size; in __htab_map_lookup_elem()
815 u32 hash, key_size; in htab_map_get_next_key()
932 u32 size = round_up(htab->map.value_size, 8); in pcpu_copy_value()
952 u32 size = round_up(htab->map.value_size, 8); in pcpu_init_value()
975 void *value, u32 key_size, u32 hash, in alloc_htab_elem()
979 u32 size = htab->map.value_size; in alloc_htab_elem()
1077 u32 key_size, hash; in htab_map_update_elem()
1179 u32 key_size, hash; in htab_lru_map_update_elem()
1248 u32 key_size, hash; in __htab_percpu_map_update_elem()
1303 u32 key_size, hash; in __htab_lru_percpu_map_update_elem()
1383 u32 hash, key_size; in htab_map_delete_elem()
1419 u32 hash, key_size; in htab_lru_map_delete_elem()
1569 u32 hash, key_size; in __htab_map_lookup_and_delete_elem()
1588 u32 roundup_value_size = round_up(map->value_size, 8); in __htab_map_lookup_and_delete_elem()
1600 u32 roundup_key_size = round_up(map->key_size, 8); in __htab_map_lookup_and_delete_elem()
1664 u32 bucket_cnt, total, key_size, value_size, roundup_key_size; in __htab_map_lookup_and_delete_batch()
1669 u32 batch, max_count, size, bucket_size, map_id; in __htab_map_lookup_and_delete_batch()
1957 u32 bucket_id;
1958 u32 skip_elems;
1966 u32 skip_elems = info->skip_elems; in bpf_hash_map_seq_find_next()
1967 u32 bucket_id = info->bucket_id; in bpf_hash_map_seq_find_next()
1972 u32 i, count; in bpf_hash_map_seq_find_next()
2043 u32 roundup_key_size, roundup_value_size; in __bpf_hash_map_seq_show()
2098 u32 buf_size; in bpf_iter_init_hash_map()
2145 u32 roundup_key_size; in bpf_for_each_hash_elem()
2247 static void *htab_percpu_map_lookup_percpu_elem(struct bpf_map *map, void *key, u32 cpu) in htab_percpu_map_lookup_percpu_elem()
2273 static void *htab_lru_percpu_map_lookup_percpu_elem(struct bpf_map *map, void *key, u32 cpu) in htab_lru_percpu_map_lookup_percpu_elem()
2295 u32 size; in bpf_percpu_hash_copy()
2408 if (attr->value_size != sizeof(u32)) in fd_htab_map_alloc_check()
2435 int bpf_fd_htab_map_lookup_elem(struct bpf_map *map, void *key, u32 *value) in bpf_fd_htab_map_lookup_elem()
2460 u32 ufd = *(u32 *)value; in bpf_fd_htab_map_update_elem()