Lines Matching refs:ddcb_max
92 return queue->ddcb_max - (queue->ddcb_act - queue->ddcb_next); in queue_enqueued_ddcbs()
97 int free_ddcbs = queue->ddcb_max - queue_enqueued_ddcbs(queue) - 1; in queue_free_ddcbs()
177 for (i = 0; i < queue->ddcb_max; i++) { in print_ddcb_info()
282 prev_no = (ddcb_no == 0) ? queue->ddcb_max - 1 : ddcb_no - 1; in enqueue_ddcb()
348 queue->ddcb_max - 1 : ddcb_no - 1; in copy_ddcb_results()
375 while (!queue_empty(queue) && (ddcbs_finished < queue->ddcb_max)) { in genwqe_check_ddcb_queue()
451 queue->ddcb_act = (queue->ddcb_act + 1) % queue->ddcb_max; in genwqe_check_ddcb_queue()
492 if (ddcb_no >= queue->ddcb_max) in __genwqe_wait_ddcb()
586 queue->ddcb_next = (queue->ddcb_next + 1) % queue->ddcb_max; in get_next_ddcb()
699 queue->ddcb_max); in __genwqe_purge_ddcb()
1041 queue->ddcb_max = GENWQE_DDCB_MAX; in setup_ddcb_queue()
1049 queue->ddcb_req = kcalloc(queue->ddcb_max, sizeof(struct ddcb_requ *), in setup_ddcb_queue()
1056 queue->ddcb_waitqs = kcalloc(queue->ddcb_max, in setup_ddcb_queue()
1064 for (i = 0; i < queue->ddcb_max; i++) { in setup_ddcb_queue()
1079 val64 = ((u64)(queue->ddcb_max - 1) << 8); /* lastptr */ in setup_ddcb_queue()
1107 queue_size = roundup(queue->ddcb_max * sizeof(struct ddcb), PAGE_SIZE); in free_ddcb_queue()
1324 for (i = 0; i < queue->ddcb_max; i++) in queue_wake_up_all()