• Home
  • Raw
  • Download

Lines Matching refs:qidx

18 				 struct otx2_nic *pfvf, int qidx)  in otx2_nix_rq_op_stats()  argument
20 u64 incr = (u64)qidx << 32; in otx2_nix_rq_op_stats()
31 struct otx2_nic *pfvf, int qidx) in otx2_nix_sq_op_stats() argument
33 u64 incr = (u64)qidx << 32; in otx2_nix_sq_op_stats()
74 int otx2_update_rq_stats(struct otx2_nic *pfvf, int qidx) in otx2_update_rq_stats() argument
76 struct otx2_rcv_queue *rq = &pfvf->qset.rq[qidx]; in otx2_update_rq_stats()
81 otx2_nix_rq_op_stats(&rq->stats, pfvf, qidx); in otx2_update_rq_stats()
85 int otx2_update_sq_stats(struct otx2_nic *pfvf, int qidx) in otx2_update_sq_stats() argument
87 struct otx2_snd_queue *sq = &pfvf->qset.sq[qidx]; in otx2_update_sq_stats()
92 otx2_nix_sq_op_stats(&sq->stats, pfvf, qidx); in otx2_update_sq_stats()
334 aq->qidx = index + idx; in otx2_set_rss_table()
500 void otx2_config_irq_coalescing(struct otx2_nic *pfvf, int qidx) in otx2_config_irq_coalescing() argument
508 otx2_write64(pfvf, NIX_LF_CINTX_WAIT(qidx), in otx2_config_irq_coalescing()
724 int qidx, sqe_tail, sqe_head; in otx2_sqb_flush() local
729 for (qidx = 0; qidx < pfvf->hw.tx_queues; qidx++) { in otx2_sqb_flush()
730 incr = (u64)qidx << 32; in otx2_sqb_flush()
759 static int otx2_rq_init(struct otx2_nic *pfvf, u16 qidx, u16 lpb_aura) in otx2_rq_init() argument
769 aq->rq.cq = qidx; in otx2_rq_init()
785 aq->qidx = qidx; in otx2_rq_init()
792 int otx2_sq_aq_init(void *dev, u16 qidx, u16 sqb_aura) in otx2_sq_aq_init() argument
798 sq = &pfvf->qset.sq[qidx]; in otx2_sq_aq_init()
799 sq->lmt_addr = (__force u64 *)(pfvf->reg_base + LMT_LF_LMTLINEX(qidx)); in otx2_sq_aq_init()
805 aq->sq.cq = pfvf->hw.rx_queues + qidx; in otx2_sq_aq_init()
823 aq->qidx = qidx; in otx2_sq_aq_init()
830 static int otx2_sq_init(struct otx2_nic *pfvf, u16 qidx, u16 sqb_aura) in otx2_sq_init() argument
838 sq = &qset->sq[qidx]; in otx2_sq_init()
878 err = pfvf->hw_ops->sq_aq_init(pfvf, qidx, sqb_aura); in otx2_sq_init()
889 static int otx2_cq_init(struct otx2_nic *pfvf, u16 qidx) in otx2_cq_init() argument
896 cq = &qset->cq[qidx]; in otx2_cq_init()
897 cq->cq_idx = qidx; in otx2_cq_init()
898 if (qidx < pfvf->hw.rx_queues) { in otx2_cq_init()
900 cq->cint_idx = qidx; in otx2_cq_init()
904 cq->cint_idx = qidx - pfvf->hw.rx_queues; in otx2_cq_init()
920 (pfvf->hw.rqpool_cnt != pfvf->hw.rx_queues)) ? 0 : qidx; in otx2_cq_init()
938 if (qidx < pfvf->hw.rx_queues) { in otx2_cq_init()
953 aq->qidx = qidx; in otx2_cq_init()
965 int qidx, free_ptrs = 0; in otx2_pool_refill_task() local
971 qidx = wrk - pfvf->refill_wrk; in otx2_pool_refill_task()
972 cq = &pfvf->qset.cq[qidx]; in otx2_pool_refill_task()
992 pfvf->hw_ops->aura_freeptr(pfvf, qidx, bufptr + OTX2_HEAD_ROOM); in otx2_pool_refill_task()
1000 int qidx, err; in otx2_config_nix_queues() local
1003 for (qidx = 0; qidx < pfvf->hw.rx_queues; qidx++) { in otx2_config_nix_queues()
1004 u16 lpb_aura = otx2_get_pool_idx(pfvf, AURA_NIX_RQ, qidx); in otx2_config_nix_queues()
1006 err = otx2_rq_init(pfvf, qidx, lpb_aura); in otx2_config_nix_queues()
1012 for (qidx = 0; qidx < pfvf->hw.tx_queues; qidx++) { in otx2_config_nix_queues()
1013 u16 sqb_aura = otx2_get_pool_idx(pfvf, AURA_NIX_SQ, qidx); in otx2_config_nix_queues()
1015 err = otx2_sq_init(pfvf, qidx, sqb_aura); in otx2_config_nix_queues()
1021 for (qidx = 0; qidx < pfvf->qset.cq_cnt; qidx++) { in otx2_config_nix_queues()
1022 err = otx2_cq_init(pfvf, qidx); in otx2_config_nix_queues()
1036 for (qidx = 0; qidx < pfvf->qset.cq_cnt; qidx++) { in otx2_config_nix_queues()
1037 pfvf->refill_wrk[qidx].pf = pfvf; in otx2_config_nix_queues()
1038 INIT_DELAYED_WORK(&pfvf->refill_wrk[qidx].pool_refill_work, in otx2_config_nix_queues()
1094 int sqb, qidx; in otx2_sq_free_sqbs() local
1097 for (qidx = 0; qidx < hw->tx_queues; qidx++) { in otx2_sq_free_sqbs()
1098 sq = &qset->sq[qidx]; in otx2_sq_free_sqbs()
1289 int qidx, pool_id, stack_pages, num_sqbs; in otx2_sq_aura_pool_init() local
1309 for (qidx = 0; qidx < hw->tx_queues; qidx++) { in otx2_sq_aura_pool_init()
1310 pool_id = otx2_get_pool_idx(pfvf, AURA_NIX_SQ, qidx); in otx2_sq_aura_pool_init()
1329 for (qidx = 0; qidx < hw->tx_queues; qidx++) { in otx2_sq_aura_pool_init()
1330 pool_id = otx2_get_pool_idx(pfvf, AURA_NIX_SQ, qidx); in otx2_sq_aura_pool_init()
1333 sq = &qset->sq[qidx]; in otx2_sq_aura_pool_init()
1643 int irq, qidx; in otx2_free_cints() local
1645 for (qidx = 0, irq = hw->nix_msixoff + NIX_LF_CINT_VEC_START; in otx2_free_cints()
1646 qidx < n; in otx2_free_cints()
1647 qidx++, irq++) { in otx2_free_cints()
1652 free_irq(vector, &qset->napi[qidx]); in otx2_free_cints()