Home
last modified time | relevance | path

Searched refs:bucket (Results 1 – 6 of 6) sorted by relevance

/kernel/dma/
Ddebug.c263 static void put_hash_bucket(struct hash_bucket *bucket, in put_hash_bucket() argument
265 __releases(&bucket->lock) in put_hash_bucket()
267 spin_unlock_irqrestore(&bucket->lock, flags); in put_hash_bucket()
292 static struct dma_debug_entry *__hash_bucket_find(struct hash_bucket *bucket, in __hash_bucket_find() argument
299 list_for_each_entry(entry, &bucket->list, list) { in __hash_bucket_find()
342 static struct dma_debug_entry *bucket_find_exact(struct hash_bucket *bucket, in bucket_find_exact() argument
345 return __hash_bucket_find(bucket, ref, exact_match); in bucket_find_exact()
348 static struct dma_debug_entry *bucket_find_contain(struct hash_bucket **bucket, in bucket_find_contain() argument
357 entry = __hash_bucket_find(*bucket, ref, containing_match); in bucket_find_contain()
365 put_hash_bucket(*bucket, *flags); in bucket_find_contain()
[all …]
/kernel/bpf/
Dstackmap.c217 struct stack_map_bucket *bucket, *new_bucket, *old_bucket; in __bpf_get_stackid() local
233 bucket = READ_ONCE(smap->buckets[id]); in __bpf_get_stackid()
235 hash_matches = bucket && bucket->hash == hash; in __bpf_get_stackid()
251 if (hash_matches && bucket->nr == trace_nr && in __bpf_get_stackid()
252 memcmp(bucket->data, new_bucket->data, trace_len) == 0) { in __bpf_get_stackid()
256 if (bucket && !(flags & BPF_F_REUSE_STACKID)) { in __bpf_get_stackid()
261 if (hash_matches && bucket->nr == trace_nr && in __bpf_get_stackid()
262 memcmp(bucket->data, ips, trace_len) == 0) in __bpf_get_stackid()
264 if (bucket && !(flags & BPF_F_REUSE_STACKID)) in __bpf_get_stackid()
581 struct stack_map_bucket *bucket, *old_bucket; in bpf_stackmap_copy() local
[all …]
Dhashtab.c78 struct bucket { struct
90 struct bucket *buckets; argument
150 struct bucket *b, u32 hash, in htab_lock_bucket()
173 struct bucket *b, u32 hash, in htab_unlock_bucket()
511 htab->n_buckets > U32_MAX / sizeof(struct bucket)) in htab_map_alloc()
516 sizeof(struct bucket), in htab_map_alloc()
608 static inline struct bucket *__select_bucket(struct bpf_htab *htab, u32 hash) in __select_bucket()
786 struct bucket *b; in htab_lru_map_delete_node()
1076 struct bucket *b; in htab_map_update_elem()
1178 struct bucket *b; in htab_lru_map_update_elem()
[all …]
/kernel/locking/
Dlockdep.c3293 #define for_each_chain_block(bucket, prev, curr) \ argument
3294 for ((prev) = -1, (curr) = chain_block_buckets[bucket]; \
3325 static inline void init_chain_block(int offset, int next, int bucket, int size) in init_chain_block() argument
3330 if (size && !bucket) { in init_chain_block()
3338 int bucket = size_to_bucket(size); in add_chain_block() local
3339 int next = chain_block_buckets[bucket]; in add_chain_block()
3356 if (!bucket) { in add_chain_block()
3376 init_chain_block(offset, next, bucket, size); in add_chain_block()
3377 chain_block_buckets[bucket] = offset; in add_chain_block()
3391 static inline void del_chain_block(int bucket, int size, int next) in del_chain_block() argument
[all …]
/kernel/sched/
Dcore.c1433 struct uclamp_bucket *bucket = rq->uclamp[clamp_id].bucket; in uclamp_rq_max_value() local
1441 if (!bucket[bucket_id].tasks) in uclamp_rq_max_value()
1443 return bucket[bucket_id].value; in uclamp_rq_max_value()
1564 struct uclamp_bucket *bucket; in uclamp_rq_inc_id() local
1571 bucket = &uc_rq->bucket[uc_se->bucket_id]; in uclamp_rq_inc_id()
1572 bucket->tasks++; in uclamp_rq_inc_id()
1581 if (bucket->tasks == 1 || uc_se->value > bucket->value) in uclamp_rq_inc_id()
1582 bucket->value = uc_se->value; in uclamp_rq_inc_id()
1602 struct uclamp_bucket *bucket; in uclamp_rq_dec_id() local
1634 bucket = &uc_rq->bucket[uc_se->bucket_id]; in uclamp_rq_dec_id()
[all …]
Dsched.h954 struct uclamp_bucket bucket[UCLAMP_BUCKETS]; member