Lines Matching refs:que
371 static inline bool bnxt_qplib_queue_full(struct bnxt_qplib_q *que, in bnxt_qplib_queue_full() argument
377 hwq = &que->hwq; in bnxt_qplib_queue_full()
574 static inline void *bnxt_qplib_get_swqe(struct bnxt_qplib_q *que, u32 *swq_idx) in bnxt_qplib_get_swqe() argument
578 idx = que->swq_start; in bnxt_qplib_get_swqe()
581 return &que->swq[idx]; in bnxt_qplib_get_swqe()
584 static inline void bnxt_qplib_swq_mod_start(struct bnxt_qplib_q *que, u32 idx) in bnxt_qplib_swq_mod_start() argument
586 que->swq_start = que->swq[idx].next_idx; in bnxt_qplib_swq_mod_start()
589 static inline u32 bnxt_qplib_get_depth(struct bnxt_qplib_q *que, u8 wqe_mode, bool is_sq) in bnxt_qplib_get_depth() argument
594 slots = (que->wqe_size * que->max_wqe) / sizeof(struct sq_sge); in bnxt_qplib_get_depth()
601 static inline u32 bnxt_qplib_set_sq_size(struct bnxt_qplib_q *que, u8 wqe_mode) in bnxt_qplib_set_sq_size() argument
604 que->max_wqe : bnxt_qplib_get_depth(que, wqe_mode, true); in bnxt_qplib_set_sq_size()