Searched refs:bucket (Results 1 – 6 of 6) sorted by relevance
/kernel/dma/ |
D | debug.c | 264 static void put_hash_bucket(struct hash_bucket *bucket, in put_hash_bucket() argument 266 __releases(&bucket->lock) in put_hash_bucket() 268 spin_unlock_irqrestore(&bucket->lock, flags); in put_hash_bucket() 293 static struct dma_debug_entry *__hash_bucket_find(struct hash_bucket *bucket, in __hash_bucket_find() argument 300 list_for_each_entry(entry, &bucket->list, list) { in __hash_bucket_find() 343 static struct dma_debug_entry *bucket_find_exact(struct hash_bucket *bucket, in bucket_find_exact() argument 346 return __hash_bucket_find(bucket, ref, exact_match); in bucket_find_exact() 349 static struct dma_debug_entry *bucket_find_contain(struct hash_bucket **bucket, in bucket_find_contain() argument 358 entry = __hash_bucket_find(*bucket, ref, containing_match); in bucket_find_contain() 366 put_hash_bucket(*bucket, *flags); in bucket_find_contain() [all …]
|
/kernel/bpf/ |
D | stackmap.c | 217 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 …]
|
D | hashtab.c | 78 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() 518 if (htab->n_buckets > U32_MAX / sizeof(struct bucket)) in htab_map_alloc() 527 sizeof(struct bucket), in htab_map_alloc() 623 static inline struct bucket *__select_bucket(struct bpf_htab *htab, u32 hash) in __select_bucket() 806 struct bucket *b; in htab_lru_map_delete_node() 1100 struct bucket *b; in htab_map_update_elem() 1203 struct bucket *b; in htab_lru_map_update_elem() [all …]
|
/kernel/locking/ |
D | lockdep.c | 3337 #define for_each_chain_block(bucket, prev, curr) \ argument 3338 for ((prev) = -1, (curr) = chain_block_buckets[bucket]; \ 3369 static inline void init_chain_block(int offset, int next, int bucket, int size) in init_chain_block() argument 3374 if (size && !bucket) { in init_chain_block() 3382 int bucket = size_to_bucket(size); in add_chain_block() local 3383 int next = chain_block_buckets[bucket]; in add_chain_block() 3400 if (!bucket) { in add_chain_block() 3420 init_chain_block(offset, next, bucket, size); in add_chain_block() 3421 chain_block_buckets[bucket] = offset; in add_chain_block() 3435 static inline void del_chain_block(int bucket, int size, int next) in del_chain_block() argument [all …]
|
/kernel/sched/ |
D | core.c | 1481 struct uclamp_bucket *bucket = rq->uclamp[clamp_id].bucket; in uclamp_rq_max_value() local 1489 if (!bucket[bucket_id].tasks) in uclamp_rq_max_value() 1491 return bucket[bucket_id].value; in uclamp_rq_max_value() 1612 struct uclamp_bucket *bucket; in uclamp_rq_inc_id() local 1619 bucket = &uc_rq->bucket[uc_se->bucket_id]; in uclamp_rq_inc_id() 1620 bucket->tasks++; in uclamp_rq_inc_id() 1629 if (bucket->tasks == 1 || uc_se->value > bucket->value) in uclamp_rq_inc_id() 1630 bucket->value = uc_se->value; in uclamp_rq_inc_id() 1650 struct uclamp_bucket *bucket; in uclamp_rq_dec_id() local 1682 bucket = &uc_rq->bucket[uc_se->bucket_id]; in uclamp_rq_dec_id() [all …]
|
D | sched.h | 966 struct uclamp_bucket bucket[UCLAMP_BUCKETS]; member
|