Lines Matching refs:cq
180 struct cmp_queue *cq, int q_len) in nicvf_init_cmp_queue() argument
182 if (nicvf_alloc_q_desc_mem(nic, &cq->dmem, q_len, in nicvf_init_cmp_queue()
188 cq->desc = cq->dmem.base; in nicvf_init_cmp_queue()
190 cq->thresh = CMP_QUEUE_CQE_THRESH; in nicvf_init_cmp_queue()
192 cq->thresh = 0; in nicvf_init_cmp_queue()
193 cq->intr_timer_thresh = CMP_QUEUE_TIMER_THRESH; in nicvf_init_cmp_queue()
198 static void nicvf_free_cmp_queue(struct nicvf *nic, struct cmp_queue *cq) in nicvf_free_cmp_queue() argument
200 if (!cq) in nicvf_free_cmp_queue()
202 if (!cq->dmem.base) in nicvf_free_cmp_queue()
205 nicvf_free_q_desc_mem(nic, &cq->dmem); in nicvf_free_cmp_queue()
385 struct cmp_queue *cq; in nicvf_cmp_queue_config() local
391 cq = &qs->cq[qidx]; in nicvf_cmp_queue_config()
392 cq->enable = enable; in nicvf_cmp_queue_config()
394 if (!cq->enable) { in nicvf_cmp_queue_config()
402 if (!cq->enable) in nicvf_cmp_queue_config()
407 qidx, (u64)(cq->dmem.phys_base)); in nicvf_cmp_queue_config()
418 nicvf_queue_reg_write(nic, NIC_QSET_CQ_0_7_THRESH, qidx, cq->thresh); in nicvf_cmp_queue_config()
420 cq->intr_timer_thresh); in nicvf_cmp_queue_config()
557 nicvf_free_cmp_queue(nic, &qs->cq[qidx]); in nicvf_free_resources()
584 if (nicvf_init_cmp_queue(nic, &qs->cq[qidx], qs->cq_len)) in nicvf_alloc_resources()
963 struct cmp_queue *cq, void *cq_desc) in nicvf_check_cqe_rx_errs() argument
966 struct cmp_queue_stats *stats = &cq->stats; in nicvf_check_cqe_rx_errs()
1087 struct cmp_queue *cq, void *cq_desc) in nicvf_check_cqe_tx_errs() argument
1090 struct cmp_queue_stats *stats = &cq->stats; in nicvf_check_cqe_tx_errs()