Lines Matching refs:qidx
1271 u64 qidx = 0; in otx2_q_intr_handler() local
1274 for (qidx = 0; qidx < pf->qset.cq_cnt; qidx++) { in otx2_q_intr_handler()
1276 val = otx2_atomic64_add((qidx << 44), ptr); in otx2_q_intr_handler()
1278 otx2_write64(pf, NIX_LF_CQ_OP_INT, (qidx << 44) | in otx2_q_intr_handler()
1286 qidx, otx2_read64(pf, NIX_LF_ERR_INT)); in otx2_q_intr_handler()
1290 qidx); in otx2_q_intr_handler()
1294 qidx); in otx2_q_intr_handler()
1301 for (qidx = 0; qidx < otx2_get_total_tx_queues(pf); qidx++) { in otx2_q_intr_handler()
1305 sq = &pf->qset.sq[qidx]; in otx2_q_intr_handler()
1315 val = otx2_atomic64_add((qidx << 44), ptr); in otx2_q_intr_handler()
1316 otx2_write64(pf, NIX_LF_SQ_OP_INT, (qidx << 44) | in otx2_q_intr_handler()
1322 qidx, otx2_read64(pf, NIX_LF_ERR_INT)); in otx2_q_intr_handler()
1333 qidx, sq_op_err_dbg, in otx2_q_intr_handler()
1354 qidx, mnq_err_dbg, nix_mnqerr_e_str[mnq_err_code], in otx2_q_intr_handler()
1364 qidx, snd_err_dbg, in otx2_q_intr_handler()
1374 qidx); in otx2_q_intr_handler()
1386 int qidx = cq_poll->cint_idx; in otx2_cq_intr_handler() local
1393 otx2_write64(pf, NIX_LF_CINTX_ENA_W1C(qidx), BIT_ULL(0)); in otx2_cq_intr_handler()
1406 int qidx; in otx2_disable_napi() local
1408 for (qidx = 0; qidx < pf->hw.cint_cnt; qidx++) { in otx2_disable_napi()
1409 cq_poll = &qset->napi[qidx]; in otx2_disable_napi()
1420 int qidx; in otx2_free_cq_res() local
1424 for (qidx = 0; qidx < qset->cq_cnt; qidx++) { in otx2_free_cq_res()
1425 cq = &qset->cq[qidx]; in otx2_free_cq_res()
1434 int qidx; in otx2_free_sq_res() local
1440 for (qidx = 0; qidx < otx2_get_total_tx_queues(pf); qidx++) { in otx2_free_sq_res()
1441 sq = &qset->sq[qidx]; in otx2_free_sq_res()
1614 int qidx; in otx2_free_hw_resources() local
1639 for (qidx = 0; qidx < qset->cq_cnt; qidx++) { in otx2_free_hw_resources()
1640 cq = &qset->cq[qidx]; in otx2_free_hw_resources()
1642 otx2_cleanup_rx_cqes(pf, cq, qidx); in otx2_free_hw_resources()
1653 for (qidx = 0; qidx < pf->hw.rx_queues; qidx++) { in otx2_free_hw_resources()
1654 pool_id = otx2_get_pool_idx(pf, AURA_NIX_RQ, qidx); in otx2_free_hw_resources()
1778 int err = 0, qidx, vec; in otx2_open() local
1822 for (qidx = 0; qidx < pf->hw.cint_cnt; qidx++) { in otx2_open()
1823 cq_poll = &qset->napi[qidx]; in otx2_open()
1824 cq_poll->cint_idx = qidx; in otx2_open()
1831 (qidx < pf->hw.rx_queues) ? qidx : CINT_INVALID_CQ; in otx2_open()
1832 cq_poll->cq_ids[CQ_TX] = (qidx < pf->hw.tx_queues) ? in otx2_open()
1833 qidx + pf->hw.rx_queues : CINT_INVALID_CQ; in otx2_open()
1835 cq_poll->cq_ids[CQ_XDP] = (qidx < pf->hw.xdp_queues) ? in otx2_open()
1836 (qidx + pf->hw.rx_queues + in otx2_open()
1842 cq_poll->cq_ids[CQ_QOS] = (qidx < pf->hw.tc_tx_queues) ? in otx2_open()
1843 (qidx + pf->hw.rx_queues + in otx2_open()
1887 for (qidx = 0; qidx < pf->hw.cint_cnt; qidx++) { in otx2_open()
1892 pf->netdev->name, qidx); in otx2_open()
1896 rvu_get_pf(pf->pcifunc), qidx); in otx2_open()
1903 &qset->napi[qidx]); in otx2_open()
1907 rvu_get_pf(pf->pcifunc), qidx); in otx2_open()
1912 otx2_config_irq_coalescing(pf, qidx); in otx2_open()
1915 otx2_write64(pf, NIX_LF_CINTX_INT(qidx), BIT_ULL(0)); in otx2_open()
1916 otx2_write64(pf, NIX_LF_CINTX_ENA_W1S(qidx), BIT_ULL(0)); in otx2_open()
1973 otx2_free_cints(pf, qidx); in otx2_open()
1996 int qidx, vec, wrk; in otx2_stop() local
2026 for (qidx = 0; qidx < pf->hw.cint_cnt; qidx++) { in otx2_stop()
2028 otx2_write64(pf, NIX_LF_CINTX_ENA_W1C(qidx), BIT_ULL(0)); in otx2_stop()
2032 cq_poll = &qset->napi[qidx]; in otx2_stop()
2047 for (qidx = 0; qidx < netdev->num_tx_queues; qidx++) in otx2_stop()
2048 netdev_tx_reset_queue(netdev_get_tx_queue(netdev, qidx)); in otx2_stop()
2064 int qidx = skb_get_queue_mapping(skb); in otx2_xmit() local
2072 sq_idx = (qidx >= pf->hw.tx_queues) ? (qidx + pf->hw.xdp_queues) : qidx; in otx2_xmit()
2082 txq = netdev_get_tx_queue(netdev, qidx); in otx2_xmit()
2084 if (!otx2_sq_append_skb(netdev, sq, skb, qidx)) { in otx2_xmit()
2607 int qidx) in otx2_xdp_xmit_tx() argument
2619 err = otx2_xdp_sq_append_pkt(pf, dma_addr, xdpf->len, qidx); in otx2_xdp_xmit_tx()
2633 int qidx = smp_processor_id(); in otx2_xdp_xmit() local
2640 qidx += pf->hw.tx_queues; in otx2_xdp_xmit()
2641 sq = pf->xdp_prog ? &pf->qset.sq[qidx] : NULL; in otx2_xdp_xmit()
2654 err = otx2_xdp_xmit_tx(pf, xdpf, qidx); in otx2_xdp_xmit()