Lines Matching refs:wake_batch
341 unsigned int wake_batch; in sbq_calc_wake_batch() local
363 wake_batch = clamp_t(unsigned int, depth / SBQ_WAIT_QUEUES, 1, in sbq_calc_wake_batch()
366 return wake_batch; in sbq_calc_wake_batch()
391 sbq->wake_batch = sbq_calc_wake_batch(sbq, depth); in sbitmap_queue_init_node()
404 atomic_set(&sbq->ws[i].wait_cnt, sbq->wake_batch); in sbitmap_queue_init_node()
415 unsigned int wake_batch = sbq_calc_wake_batch(sbq, depth); in sbitmap_queue_update_wake_batch() local
418 if (sbq->wake_batch != wake_batch) { in sbitmap_queue_update_wake_batch()
419 WRITE_ONCE(sbq->wake_batch, wake_batch); in sbitmap_queue_update_wake_batch()
531 unsigned int wake_batch; in __sbq_wake_up() local
542 wake_batch = READ_ONCE(sbq->wake_batch); in __sbq_wake_up()
556 ret = atomic_cmpxchg(&ws->wait_cnt, wait_cnt, wake_batch); in __sbq_wake_up()
559 wake_up_nr(&ws->wait, wake_batch); in __sbq_wake_up()
644 seq_printf(m, "wake_batch=%u\n", sbq->wake_batch); in sbitmap_queue_show()