Lines Matching refs:q_depth
34 #define WQ_SIZE(wq) ((wq)->q_depth * (wq)->wqebb_size)
504 u16 wqebb_size, u32 wq_page_size, u16 q_depth, in hinic_wq_allocate() argument
523 if (q_depth & (q_depth - 1)) { in hinic_wq_allocate()
547 wq->q_depth = q_depth; in hinic_wq_allocate()
564 atomic_set(&wq->delta, q_depth); in hinic_wq_allocate()
565 wq->mask = q_depth - 1; in hinic_wq_allocate()
602 u16 q_depth, u16 max_wqe_size) in hinic_wqs_cmdq_alloc() argument
620 if (q_depth & (q_depth - 1)) { in hinic_wqs_cmdq_alloc()
650 wq[i].q_depth = q_depth; in hinic_wqs_cmdq_alloc()
668 atomic_set(&wq[i].delta, q_depth); in hinic_wqs_cmdq_alloc()
669 wq[i].mask = q_depth - 1; in hinic_wqs_cmdq_alloc()
829 if ((atomic_read(&wq->delta) + num_wqebbs) > wq->q_depth) in hinic_read_wqe()