Home
last modified time | relevance | path

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

/lib/
Dsbitmap.c398 static unsigned int sbq_calc_wake_batch(struct sbitmap_queue *sbq, in sbq_calc_wake_batch() argument
420 shallow_depth = min(1U << sbq->sb.shift, sbq->min_shallow_depth); in sbq_calc_wake_batch()
421 depth = ((depth >> sbq->sb.shift) * shallow_depth + in sbq_calc_wake_batch()
422 min(depth & ((1U << sbq->sb.shift) - 1), shallow_depth)); in sbq_calc_wake_batch()
429 int sbitmap_queue_init_node(struct sbitmap_queue *sbq, unsigned int depth, in sbitmap_queue_init_node() argument
435 ret = sbitmap_init_node(&sbq->sb, depth, shift, flags, node, in sbitmap_queue_init_node()
440 sbq->min_shallow_depth = UINT_MAX; in sbitmap_queue_init_node()
441 sbq->wake_batch = sbq_calc_wake_batch(sbq, depth); in sbitmap_queue_init_node()
442 atomic_set(&sbq->wake_index, 0); in sbitmap_queue_init_node()
443 atomic_set(&sbq->ws_active, 0); in sbitmap_queue_init_node()
[all …]