Lines Matching refs:b
149 struct bucket *b) in htab_lock_bucket() argument
154 raw_spin_lock_irqsave(&b->raw_lock, flags); in htab_lock_bucket()
156 spin_lock_irqsave(&b->lock, flags); in htab_lock_bucket()
161 struct bucket *b, in htab_unlock_bucket() argument
165 raw_spin_unlock_irqrestore(&b->raw_lock, flags); in htab_unlock_bucket()
167 spin_unlock_irqrestore(&b->lock, flags); in htab_unlock_bucket()
689 struct bucket *b; in htab_lru_map_delete_node() local
692 b = __select_bucket(htab, tgt_l->hash); in htab_lru_map_delete_node()
693 head = &b->head; in htab_lru_map_delete_node()
695 flags = htab_lock_bucket(htab, b); in htab_lru_map_delete_node()
703 htab_unlock_bucket(htab, b, flags); in htab_lru_map_delete_node()
962 struct bucket *b; in htab_map_update_elem() local
976 b = __select_bucket(htab, hash); in htab_map_update_elem()
977 head = &b->head; in htab_map_update_elem()
1001 flags = htab_lock_bucket(htab, b); in htab_map_update_elem()
1042 htab_unlock_bucket(htab, b, flags); in htab_map_update_elem()
1053 struct bucket *b; in htab_lru_map_update_elem() local
1067 b = __select_bucket(htab, hash); in htab_lru_map_update_elem()
1068 head = &b->head; in htab_lru_map_update_elem()
1080 flags = htab_lock_bucket(htab, b); in htab_lru_map_update_elem()
1099 htab_unlock_bucket(htab, b, flags); in htab_lru_map_update_elem()
1117 struct bucket *b; in __htab_percpu_map_update_elem() local
1131 b = __select_bucket(htab, hash); in __htab_percpu_map_update_elem()
1132 head = &b->head; in __htab_percpu_map_update_elem()
1134 flags = htab_lock_bucket(htab, b); in __htab_percpu_map_update_elem()
1157 htab_unlock_bucket(htab, b, flags); in __htab_percpu_map_update_elem()
1169 struct bucket *b; in __htab_lru_percpu_map_update_elem() local
1183 b = __select_bucket(htab, hash); in __htab_lru_percpu_map_update_elem()
1184 head = &b->head; in __htab_lru_percpu_map_update_elem()
1197 flags = htab_lock_bucket(htab, b); in __htab_lru_percpu_map_update_elem()
1219 htab_unlock_bucket(htab, b, flags); in __htab_lru_percpu_map_update_elem()
1243 struct bucket *b; in htab_map_delete_elem() local
1254 b = __select_bucket(htab, hash); in htab_map_delete_elem()
1255 head = &b->head; in htab_map_delete_elem()
1257 flags = htab_lock_bucket(htab, b); in htab_map_delete_elem()
1267 htab_unlock_bucket(htab, b, flags); in htab_map_delete_elem()
1275 struct bucket *b; in htab_lru_map_delete_elem() local
1286 b = __select_bucket(htab, hash); in htab_lru_map_delete_elem()
1287 head = &b->head; in htab_lru_map_delete_elem()
1289 flags = htab_lock_bucket(htab, b); in htab_lru_map_delete_elem()
1298 htab_unlock_bucket(htab, b, flags); in htab_lru_map_delete_elem()
1386 struct bucket *b; in __htab_map_lookup_and_delete_batch() local
1441 b = &htab->buckets[batch]; in __htab_map_lookup_and_delete_batch()
1442 head = &b->head; in __htab_map_lookup_and_delete_batch()
1445 flags = htab_lock_bucket(htab, b); in __htab_map_lookup_and_delete_batch()
1462 htab_unlock_bucket(htab, b, flags); in __htab_map_lookup_and_delete_batch()
1473 htab_unlock_bucket(htab, b, flags); in __htab_map_lookup_and_delete_batch()
1526 htab_unlock_bucket(htab, b, flags); in __htab_map_lookup_and_delete_batch()
1665 struct bucket *b; in bpf_hash_map_seq_find_next() local
1682 b = &htab->buckets[bucket_id++]; in bpf_hash_map_seq_find_next()
1688 b = &htab->buckets[i]; in bpf_hash_map_seq_find_next()
1692 head = &b->head; in bpf_hash_map_seq_find_next()