Lines Matching refs:qidx

1232 	u64 qidx = 0;  in otx2_q_intr_handler()  local
1235 for (qidx = 0; qidx < pf->qset.cq_cnt; qidx++) { in otx2_q_intr_handler()
1237 val = otx2_atomic64_add((qidx << 44), ptr); in otx2_q_intr_handler()
1239 otx2_write64(pf, NIX_LF_CQ_OP_INT, (qidx << 44) | in otx2_q_intr_handler()
1246 qidx, otx2_read64(pf, NIX_LF_ERR_INT)); in otx2_q_intr_handler()
1250 qidx); in otx2_q_intr_handler()
1253 qidx); in otx2_q_intr_handler()
1260 for (qidx = 0; qidx < pf->hw.tot_tx_queues; qidx++) { in otx2_q_intr_handler()
1270 val = otx2_atomic64_add((qidx << 44), ptr); in otx2_q_intr_handler()
1271 otx2_write64(pf, NIX_LF_SQ_OP_INT, (qidx << 44) | in otx2_q_intr_handler()
1276 qidx, otx2_read64(pf, NIX_LF_ERR_INT)); in otx2_q_intr_handler()
1286 qidx, sq_op_err_dbg, nix_sqoperr_e_str[sq_op_err_code]); in otx2_q_intr_handler()
1304 qidx, mnq_err_dbg, nix_mnqerr_e_str[mnq_err_code]); in otx2_q_intr_handler()
1312 qidx, snd_err_dbg, nix_snd_status_e_str[snd_err_code]); in otx2_q_intr_handler()
1320 qidx); in otx2_q_intr_handler()
1332 int qidx = cq_poll->cint_idx; in otx2_cq_intr_handler() local
1339 otx2_write64(pf, NIX_LF_CINTX_ENA_W1C(qidx), BIT_ULL(0)); in otx2_cq_intr_handler()
1352 int qidx; in otx2_disable_napi() local
1354 for (qidx = 0; qidx < pf->hw.cint_cnt; qidx++) { in otx2_disable_napi()
1355 cq_poll = &qset->napi[qidx]; in otx2_disable_napi()
1366 int qidx; in otx2_free_cq_res() local
1370 for (qidx = 0; qidx < qset->cq_cnt; qidx++) { in otx2_free_cq_res()
1371 cq = &qset->cq[qidx]; in otx2_free_cq_res()
1380 int qidx; in otx2_free_sq_res() local
1386 for (qidx = 0; qidx < pf->hw.tot_tx_queues; qidx++) { in otx2_free_sq_res()
1387 sq = &qset->sq[qidx]; in otx2_free_sq_res()
1555 int qidx, err; in otx2_free_hw_resources() local
1580 for (qidx = 0; qidx < qset->cq_cnt; qidx++) { in otx2_free_hw_resources()
1581 cq = &qset->cq[qidx]; in otx2_free_hw_resources()
1686 int err = 0, qidx, vec; in otx2_open() local
1726 for (qidx = 0; qidx < pf->hw.cint_cnt; qidx++) { in otx2_open()
1727 cq_poll = &qset->napi[qidx]; in otx2_open()
1728 cq_poll->cint_idx = qidx; in otx2_open()
1735 (qidx < pf->hw.rx_queues) ? qidx : CINT_INVALID_CQ; in otx2_open()
1736 cq_poll->cq_ids[CQ_TX] = (qidx < pf->hw.tx_queues) ? in otx2_open()
1737 qidx + pf->hw.rx_queues : CINT_INVALID_CQ; in otx2_open()
1739 cq_poll->cq_ids[CQ_XDP] = (qidx < pf->hw.xdp_queues) ? in otx2_open()
1740 (qidx + pf->hw.rx_queues + in otx2_open()
1786 for (qidx = 0; qidx < pf->hw.cint_cnt; qidx++) { in otx2_open()
1790 qidx); in otx2_open()
1794 &qset->napi[qidx]); in otx2_open()
1798 rvu_get_pf(pf->pcifunc), qidx); in otx2_open()
1803 otx2_config_irq_coalescing(pf, qidx); in otx2_open()
1806 otx2_write64(pf, NIX_LF_CINTX_INT(qidx), BIT_ULL(0)); in otx2_open()
1807 otx2_write64(pf, NIX_LF_CINTX_ENA_W1S(qidx), BIT_ULL(0)); in otx2_open()
1850 otx2_free_cints(pf, qidx); in otx2_open()
1873 int qidx, vec, wrk; in otx2_stop() local
1901 for (qidx = 0; qidx < pf->hw.cint_cnt; qidx++) { in otx2_stop()
1903 otx2_write64(pf, NIX_LF_CINTX_ENA_W1C(qidx), BIT_ULL(0)); in otx2_stop()
1907 cq_poll = &qset->napi[qidx]; in otx2_stop()
1918 for (qidx = 0; qidx < netdev->num_tx_queues; qidx++) in otx2_stop()
1919 netdev_tx_reset_queue(netdev_get_tx_queue(netdev, qidx)); in otx2_stop()
1938 int qidx = skb_get_queue_mapping(skb); in otx2_xmit() local
1949 sq = &pf->qset.sq[qidx]; in otx2_xmit()
1950 txq = netdev_get_tx_queue(netdev, qidx); in otx2_xmit()
1952 if (!otx2_sq_append_skb(netdev, sq, skb, qidx)) { in otx2_xmit()
2436 int qidx) in otx2_xdp_xmit_tx() argument
2448 err = otx2_xdp_sq_append_pkt(pf, dma_addr, xdpf->len, qidx); in otx2_xdp_xmit_tx()
2462 int qidx = smp_processor_id(); in otx2_xdp_xmit() local
2469 qidx += pf->hw.tx_queues; in otx2_xdp_xmit()
2470 sq = pf->xdp_prog ? &pf->qset.sq[qidx] : NULL; in otx2_xdp_xmit()
2483 err = otx2_xdp_xmit_tx(pf, xdpf, qidx); in otx2_xdp_xmit()