Lines Matching refs:qidx

20 				 struct otx2_nic *pfvf, int qidx)  in otx2_nix_rq_op_stats()  argument
22 u64 incr = (u64)qidx << 32; in otx2_nix_rq_op_stats()
33 struct otx2_nic *pfvf, int qidx) in otx2_nix_sq_op_stats() argument
35 u64 incr = (u64)qidx << 32; in otx2_nix_sq_op_stats()
76 int otx2_update_rq_stats(struct otx2_nic *pfvf, int qidx) in otx2_update_rq_stats() argument
78 struct otx2_rcv_queue *rq = &pfvf->qset.rq[qidx]; in otx2_update_rq_stats()
83 otx2_nix_rq_op_stats(&rq->stats, pfvf, qidx); in otx2_update_rq_stats()
87 int otx2_update_sq_stats(struct otx2_nic *pfvf, int qidx) in otx2_update_sq_stats() argument
89 struct otx2_snd_queue *sq = &pfvf->qset.sq[qidx]; in otx2_update_sq_stats()
94 if (qidx >= pfvf->hw.non_qos_queues) { in otx2_update_sq_stats()
95 if (!test_bit(qidx - pfvf->hw.non_qos_queues, pfvf->qos.qos_sq_bmap)) in otx2_update_sq_stats()
99 otx2_nix_sq_op_stats(&sq->stats, pfvf, qidx); in otx2_update_sq_stats()
343 aq->qidx = index + idx; in otx2_set_rss_table()
509 void otx2_config_irq_coalescing(struct otx2_nic *pfvf, int qidx) in otx2_config_irq_coalescing() argument
517 otx2_write64(pfvf, NIX_LF_CINTX_WAIT(qidx), in otx2_config_irq_coalescing()
818 int qidx, sqe_tail, sqe_head; in otx2_sqb_flush() local
823 for (qidx = 0; qidx < otx2_get_total_tx_queues(pfvf); qidx++) { in otx2_sqb_flush()
824 sq = &pfvf->qset.sq[qidx]; in otx2_sqb_flush()
828 incr = (u64)qidx << 32; in otx2_sqb_flush()
853 static int otx2_rq_init(struct otx2_nic *pfvf, u16 qidx, u16 lpb_aura) in otx2_rq_init() argument
863 aq->rq.cq = qidx; in otx2_rq_init()
879 aq->qidx = qidx; in otx2_rq_init()
886 int otx2_sq_aq_init(void *dev, u16 qidx, u16 sqb_aura) in otx2_sq_aq_init() argument
892 sq = &pfvf->qset.sq[qidx]; in otx2_sq_aq_init()
893 sq->lmt_addr = (__force u64 *)(pfvf->reg_base + LMT_LF_LMTLINEX(qidx)); in otx2_sq_aq_init()
899 aq->sq.cq = pfvf->hw.rx_queues + qidx; in otx2_sq_aq_init()
903 aq->sq.smq = otx2_get_smq_idx(pfvf, qidx); in otx2_sq_aq_init()
916 aq->qidx = qidx; in otx2_sq_aq_init()
923 int otx2_sq_init(struct otx2_nic *pfvf, u16 qidx, u16 sqb_aura) in otx2_sq_init() argument
931 sq = &qset->sq[qidx]; in otx2_sq_init()
939 if (qidx < pfvf->hw.tx_queues) { in otx2_sq_init()
951 if (pfvf->ptp && qidx < pfvf->hw.tx_queues) { in otx2_sq_init()
974 err = pfvf->hw_ops->sq_aq_init(pfvf, qidx, sqb_aura); in otx2_sq_init()
985 static int otx2_cq_init(struct otx2_nic *pfvf, u16 qidx) in otx2_cq_init() argument
992 cq = &qset->cq[qidx]; in otx2_cq_init()
993 cq->cq_idx = qidx; in otx2_cq_init()
995 if (qidx < pfvf->hw.rx_queues) { in otx2_cq_init()
997 cq->cint_idx = qidx; in otx2_cq_init()
1000 xdp_rxq_info_reg(&cq->xdp_rxq, pfvf->netdev, qidx, 0); in otx2_cq_init()
1001 } else if (qidx < non_xdp_queues) { in otx2_cq_init()
1003 cq->cint_idx = qidx - pfvf->hw.rx_queues; in otx2_cq_init()
1007 qidx < non_xdp_queues + pfvf->hw.xdp_queues) { in otx2_cq_init()
1009 cq->cint_idx = qidx - non_xdp_queues; in otx2_cq_init()
1013 cq->cint_idx = qidx - non_xdp_queues - in otx2_cq_init()
1031 (pfvf->hw.rqpool_cnt != pfvf->hw.rx_queues)) ? 0 : qidx; in otx2_cq_init()
1049 if (qidx < pfvf->hw.rx_queues) { in otx2_cq_init()
1057 aq->cq.bpid = pfvf->bpid[pfvf->queue_to_pfc_map[qidx]]; in otx2_cq_init()
1068 aq->qidx = qidx; in otx2_cq_init()
1080 int qidx; in otx2_pool_refill_task() local
1084 qidx = wrk - pfvf->refill_wrk; in otx2_pool_refill_task()
1085 cq = &pfvf->qset.cq[qidx]; in otx2_pool_refill_task()
1096 int qidx, err; in otx2_config_nix_queues() local
1099 for (qidx = 0; qidx < pfvf->hw.rx_queues; qidx++) { in otx2_config_nix_queues()
1100 u16 lpb_aura = otx2_get_pool_idx(pfvf, AURA_NIX_RQ, qidx); in otx2_config_nix_queues()
1102 err = otx2_rq_init(pfvf, qidx, lpb_aura); in otx2_config_nix_queues()
1108 for (qidx = 0; qidx < pfvf->hw.non_qos_queues; qidx++) { in otx2_config_nix_queues()
1109 u16 sqb_aura = otx2_get_pool_idx(pfvf, AURA_NIX_SQ, qidx); in otx2_config_nix_queues()
1111 err = otx2_sq_init(pfvf, qidx, sqb_aura); in otx2_config_nix_queues()
1117 for (qidx = 0; qidx < pfvf->qset.cq_cnt; qidx++) { in otx2_config_nix_queues()
1118 err = otx2_cq_init(pfvf, qidx); in otx2_config_nix_queues()
1132 for (qidx = 0; qidx < pfvf->qset.cq_cnt; qidx++) { in otx2_config_nix_queues()
1133 pfvf->refill_wrk[qidx].pf = pfvf; in otx2_config_nix_queues()
1134 INIT_DELAYED_WORK(&pfvf->refill_wrk[qidx].pool_refill_work, in otx2_config_nix_queues()
1190 int sqb, qidx; in otx2_sq_free_sqbs() local
1193 for (qidx = 0; qidx < otx2_get_total_tx_queues(pfvf); qidx++) { in otx2_sq_free_sqbs()
1194 sq = &qset->sq[qidx]; in otx2_sq_free_sqbs()
1428 int qidx, pool_id, stack_pages, num_sqbs; in otx2_sq_aura_pool_init() local
1448 for (qidx = 0; qidx < hw->non_qos_queues; qidx++) { in otx2_sq_aura_pool_init()
1449 pool_id = otx2_get_pool_idx(pfvf, AURA_NIX_SQ, qidx); in otx2_sq_aura_pool_init()
1468 for (qidx = 0; qidx < hw->non_qos_queues; qidx++) { in otx2_sq_aura_pool_init()
1469 pool_id = otx2_get_pool_idx(pfvf, AURA_NIX_SQ, qidx); in otx2_sq_aura_pool_init()
1472 sq = &qset->sq[qidx]; in otx2_sq_aura_pool_init()
1773 int irq, qidx; in otx2_free_cints() local
1775 for (qidx = 0, irq = hw->nix_msixoff + NIX_LF_CINT_VEC_START; in otx2_free_cints()
1776 qidx < n; in otx2_free_cints()
1777 qidx++, irq++) { in otx2_free_cints()
1782 free_irq(vector, &qset->napi[qidx]); in otx2_free_cints()