Lines Matching refs:qidx
1218 u64 qidx = 0; in otx2_q_intr_handler() local
1221 for (qidx = 0; qidx < pf->qset.cq_cnt; qidx++) { in otx2_q_intr_handler()
1223 val = otx2_atomic64_add((qidx << 44), ptr); in otx2_q_intr_handler()
1225 otx2_write64(pf, NIX_LF_CQ_OP_INT, (qidx << 44) | in otx2_q_intr_handler()
1233 qidx, otx2_read64(pf, NIX_LF_ERR_INT)); in otx2_q_intr_handler()
1237 qidx); in otx2_q_intr_handler()
1241 qidx); in otx2_q_intr_handler()
1248 for (qidx = 0; qidx < pf->hw.tx_queues; qidx++) { in otx2_q_intr_handler()
1258 val = otx2_atomic64_add((qidx << 44), ptr); in otx2_q_intr_handler()
1259 otx2_write64(pf, NIX_LF_SQ_OP_INT, (qidx << 44) | in otx2_q_intr_handler()
1265 qidx, otx2_read64(pf, NIX_LF_ERR_INT)); in otx2_q_intr_handler()
1276 qidx, sq_op_err_dbg, in otx2_q_intr_handler()
1297 qidx, mnq_err_dbg, nix_mnqerr_e_str[mnq_err_code], in otx2_q_intr_handler()
1307 qidx, snd_err_dbg, in otx2_q_intr_handler()
1317 qidx); in otx2_q_intr_handler()
1329 int qidx = cq_poll->cint_idx; in otx2_cq_intr_handler() local
1336 otx2_write64(pf, NIX_LF_CINTX_ENA_W1C(qidx), BIT_ULL(0)); in otx2_cq_intr_handler()
1348 int qidx; in otx2_disable_napi() local
1350 for (qidx = 0; qidx < pf->hw.cint_cnt; qidx++) { in otx2_disable_napi()
1351 cq_poll = &qset->napi[qidx]; in otx2_disable_napi()
1361 int qidx; in otx2_free_cq_res() local
1365 for (qidx = 0; qidx < qset->cq_cnt; qidx++) { in otx2_free_cq_res()
1366 cq = &qset->cq[qidx]; in otx2_free_cq_res()
1375 int qidx; in otx2_free_sq_res() local
1381 for (qidx = 0; qidx < pf->hw.tx_queues; qidx++) { in otx2_free_sq_res()
1382 sq = &qset->sq[qidx]; in otx2_free_sq_res()
1527 int qidx, err; in otx2_free_hw_resources() local
1547 for (qidx = 0; qidx < qset->cq_cnt; qidx++) { in otx2_free_hw_resources()
1548 cq = &qset->cq[qidx]; in otx2_free_hw_resources()
1651 int err = 0, qidx, vec; in otx2_open() local
1691 for (qidx = 0; qidx < pf->hw.cint_cnt; qidx++) { in otx2_open()
1692 cq_poll = &qset->napi[qidx]; in otx2_open()
1693 cq_poll->cint_idx = qidx; in otx2_open()
1699 (qidx < pf->hw.rx_queues) ? qidx : CINT_INVALID_CQ; in otx2_open()
1700 cq_poll->cq_ids[CQ_TX] = (qidx < pf->hw.tx_queues) ? in otx2_open()
1701 qidx + pf->hw.rx_queues : CINT_INVALID_CQ; in otx2_open()
1741 for (qidx = 0; qidx < pf->hw.cint_cnt; qidx++) { in otx2_open()
1745 qidx); in otx2_open()
1749 &qset->napi[qidx]); in otx2_open()
1753 rvu_get_pf(pf->pcifunc), qidx); in otx2_open()
1758 otx2_config_irq_coalescing(pf, qidx); in otx2_open()
1761 otx2_write64(pf, NIX_LF_CINTX_INT(qidx), BIT_ULL(0)); in otx2_open()
1762 otx2_write64(pf, NIX_LF_CINTX_ENA_W1S(qidx), BIT_ULL(0)); in otx2_open()
1814 otx2_free_cints(pf, qidx); in otx2_open()
1838 int qidx, vec, wrk; in otx2_stop() local
1869 for (qidx = 0; qidx < pf->hw.cint_cnt; qidx++) { in otx2_stop()
1871 otx2_write64(pf, NIX_LF_CINTX_ENA_W1C(qidx), BIT_ULL(0)); in otx2_stop()
1875 cq_poll = &qset->napi[qidx]; in otx2_stop()
1886 for (qidx = 0; qidx < netdev->num_tx_queues; qidx++) in otx2_stop()
1887 netdev_tx_reset_queue(netdev_get_tx_queue(netdev, qidx)); in otx2_stop()
1907 int qidx = skb_get_queue_mapping(skb); in otx2_xmit() local
1918 sq = &pf->qset.sq[qidx]; in otx2_xmit()
1919 txq = netdev_get_tx_queue(netdev, qidx); in otx2_xmit()
1921 if (!otx2_sq_append_skb(netdev, sq, skb, qidx)) { in otx2_xmit()