/linux/drivers/net/ethernet/cavium/thunder/ |
H A D | nicvf_queues.c | 32 static int nicvf_poll_reg(struct nicvf *nic, int qidx, in nicvf_poll_reg() argument 43 reg_val = nicvf_queue_reg_read(nic, reg, qidx); in nicvf_poll_reg() 505 struct snd_queue *sq, int q_len, int qidx) in nicvf_init_snd_queue() argument 525 qidx += ((nic->sqs_id + 1) * MAX_SND_QUEUES_PER_QS); in nicvf_init_snd_queue() 526 if (qidx < nic->pnicvf->xdp_tx_queues) { in nicvf_init_snd_queue() 628 struct queue_set *qs, int qidx) in nicvf_reclaim_snd_queue() argument 631 nicvf_queue_reg_write(nic, NIC_QSET_SQ_0_7_CFG, qidx, 0); in nicvf_reclaim_snd_queue() 633 if (nicvf_poll_reg(nic, qidx, NIC_QSET_SQ_0_7_STATUS, 21, 1, 0x01)) in nicvf_reclaim_snd_queue() 636 nicvf_queue_reg_write(nic, NIC_QSET_SQ_0_7_CFG, qidx, NICVF_SQ_RESET); in nicvf_reclaim_snd_queue() 640 struct queue_set *qs, int qidx) in nicvf_reclaim_rcv_queue() argument [all …]
|
H A D | nicvf_main.c | 75 static inline u8 nicvf_netdev_qidx(struct nicvf *nic, u8 qidx) in nicvf_netdev_qidx() argument 78 return qidx + ((nic->sqs_id + 1) * MAX_CMP_QUEUES_PER_QS); in nicvf_netdev_qidx() 80 return qidx; in nicvf_netdev_qidx() 104 u64 qidx, u64 val) in nicvf_queue_reg_write() argument 108 writeq_relaxed(val, addr + (qidx << NIC_Q_NUM_SHIFT)); in nicvf_queue_reg_write() 111 u64 nicvf_queue_reg_read(struct nicvf *nic, u64 offset, u64 qidx) in nicvf_queue_reg_read() argument 115 return readq_relaxed(addr + (qidx << NIC_Q_NUM_SHIFT)); in nicvf_queue_reg_read() 989 int qidx; in nicvf_handle_qs_err() local 995 for (qidx = 0; qidx < qs->cq_cnt; qidx++) { in nicvf_handle_qs_err() 997 qidx); in nicvf_handle_qs_err() [all …]
|
H A D | nicvf_ethtool.c | 214 int stats, qidx; in nicvf_get_qset_strings() local 217 for (qidx = 0; qidx < nic->qs->rq_cnt; qidx++) { in nicvf_get_qset_strings() 219 sprintf(*data, "rxq%d: %s", qidx + start_qidx, in nicvf_get_qset_strings() 225 for (qidx = 0; qidx < nic->qs->sq_cnt; qidx++) { in nicvf_get_qset_strings() 227 sprintf(*data, "txq%d: %s", qidx + start_qidx, in nicvf_get_qset_strings() 301 int stat, qidx; in nicvf_get_qset_stats() local 306 for (qidx = 0; qidx < nic->qs->rq_cnt; qidx++) { in nicvf_get_qset_stats() 307 nicvf_update_rq_stats(nic, qidx); in nicvf_get_qset_stats() 309 *((*data)++) = ((u64 *)&nic->qs->rq[qidx].stats) in nicvf_get_qset_stats() 313 for (qidx = 0; qidx < nic->qs->sq_cnt; qidx++) { in nicvf_get_qset_stats() [all …]
|
H A D | nicvf_queues.h | 336 int qidx, bool enable); 338 void nicvf_sq_enable(struct nicvf *nic, struct snd_queue *sq, int qidx); 339 void nicvf_sq_disable(struct nicvf *nic, int qidx); 342 struct snd_queue *sq, int qidx); 363 u64 qidx, u64 val); 365 u64 offset, u64 qidx);
|
/linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
H A D | qos_sq.c | 33 static int otx2_qos_sq_aura_pool_init(struct otx2_nic *pfvf, int qidx) in otx2_qos_sq_aura_pool_init() argument 56 pool_id = otx2_get_pool_idx(pfvf, AURA_NIX_SQ, qidx); in otx2_qos_sq_aura_pool_init() 76 sq = &qset->sq[qidx]; in otx2_qos_sq_aura_pool_init() 116 static void otx2_qos_sq_free_sqbs(struct otx2_nic *pfvf, int qidx) in otx2_qos_sq_free_sqbs() argument 124 sq = &qset->sq[qidx]; in otx2_qos_sq_free_sqbs() 140 sq = &qset->sq[qidx]; in otx2_qos_sq_free_sqbs() 151 static void otx2_qos_sqb_flush(struct otx2_nic *pfvf, int qidx) in otx2_qos_sqb_flush() argument 157 incr = (u64)qidx << 32; in otx2_qos_sqb_flush() 165 static int otx2_qos_ctx_disable(struct otx2_nic *pfvf, u16 qidx, int aura_id) in otx2_qos_ctx_disable() argument 176 cn10k_sq_aq->qidx = qidx; in otx2_qos_ctx_disable() [all …]
|
H A D | rep.c | 154 u16 qidx = rep->rep_id; in rvu_rep_sp_stats64() local 156 otx2_update_rq_stats(priv, qidx); in rvu_rep_sp_stats64() 157 rq = &priv->qset.rq[qidx]; in rvu_rep_sp_stats64() 159 otx2_update_sq_stats(priv, qidx); in rvu_rep_sp_stats64() 160 sq = &priv->qset.sq[qidx]; in rvu_rep_sp_stats64() 491 int err = 0, qidx, vec; in rvu_rep_napi_init() local 499 for (qidx = 0; qidx < hw->cint_cnt; qidx++) { in rvu_rep_napi_init() 500 cq_poll = &qset->napi[qidx]; in rvu_rep_napi_init() 501 cq_poll->cint_idx = qidx; in rvu_rep_napi_init() 503 (qidx < hw->rx_queues) ? qidx : CINT_INVALID_CQ; in rvu_rep_napi_init() [all …]
|
H A D | otx2_ethtool.c | 86 int qidx, stats; in otx2_get_qset_strings() local 88 for (qidx = 0; qidx < pfvf->hw.rx_queues; qidx++) in otx2_get_qset_strings() 90 ethtool_sprintf(data, "rxq%d: %s", qidx + start_qidx, in otx2_get_qset_strings() 93 for (qidx = 0; qidx < otx2_get_total_tx_queues(pfvf); qidx++) in otx2_get_qset_strings() 95 if (qidx >= pfvf->hw.non_qos_queues) in otx2_get_qset_strings() 97 qidx + start_qidx - in otx2_get_qset_strings() 102 qidx + start_qidx, in otx2_get_qset_strings() 138 int stat, qidx; in otx2_get_qset_stats() local 142 for (qidx = 0; qidx < pfvf->hw.rx_queues; qidx++) { in otx2_get_qset_stats() 143 if (!otx2_update_rq_stats(pfvf, qidx)) { in otx2_get_qset_stats() [all …]
|
H A D | qos.h | 27 void otx2_qos_free_qid(struct otx2_nic *pfvf, int qidx); 28 int otx2_qos_enable_sq(struct otx2_nic *pfvf, int qidx); 29 void otx2_qos_disable_sq(struct otx2_nic *pfvf, int qidx);
|
/linux/drivers/net/ethernet/chelsio/inline_crypto/ch_ipsec/ |
H A D | chcr_ipsec.c | 422 u32 qidx; in copy_esn_pktxt() local 430 qidx = skb->queue_mapping; in copy_esn_pktxt() 431 q = &adap->sge.ethtxq[qidx + pi->first_qset]; in copy_esn_pktxt() 472 u32 ctrl0, qidx; in copy_cpltx_pktxt() local 478 qidx = skb->queue_mapping; in copy_cpltx_pktxt() 479 q = &adap->sge.ethtxq[qidx + pi->first_qset]; in copy_cpltx_pktxt() 517 unsigned int qidx; in copy_key_cpltx_pktxt() local 521 qidx = skb->queue_mapping; in copy_key_cpltx_pktxt() 522 q = &adap->sge.ethtxq[qidx + pi->first_qset]; in copy_key_cpltx_pktxt() 577 int qidx = skb_get_queue_mapping(skb); in ch_ipsec_crypto_wreq() local [all …]
|
/linux/drivers/dma/ptdma/ |
H A D | ptdma-dev.c |
|
H A D | ptdma.h |
|
/linux/drivers/net/ethernet/fungible/funeth/ |
H A D | funeth_rx.c | 432 skb_record_rx_queue(skb, q->qidx); in fun_handle_cqe_pkt() 614 unsigned int qidx, in fun_rxq_create_sw() argument 629 q->qidx = qidx; in fun_rxq_create_sw() 673 netdev_err(dev, "Unable to allocate memory for Rx queue %u\n", qidx); in fun_rxq_create_sw() 704 err = xdp_rxq_info_reg(&q->xdp_rxq, q->netdev, q->qidx, in fun_rxq_create_dev() 750 q->qidx, ncqe, nrqe, q->hw_cqid, q->hw_sqid, irq->irq_idx, in fun_rxq_create_dev() 761 q->qidx, err); in fun_rxq_create_dev() 776 q->qidx, q->hw_cqid, q->hw_sqid, irq->irq_idx); in fun_rxq_free_dev() 788 int funeth_rxq_create(struct net_device *dev, unsigned int qidx, in funeth_rxq_create() argument 796 q = fun_rxq_create_sw(dev, qidx, ncqe, nrqe, irq); in funeth_rxq_create()
|
H A D | funeth_tx.c | 624 unsigned int qidx, in fun_txq_create_sw() argument 635 numa_node = cpu_to_node(qidx); /* XDP Tx queue */ in fun_txq_create_sw() 651 q->qidx = qidx; in fun_txq_create_sw() 661 irq ? "Tx" : "XDP", qidx); in fun_txq_create_sw() 709 q->ndq = netdev_get_tx_queue(q->netdev, q->qidx); in fun_txq_create_dev() 718 irq ? "Tx" : "XDP", q->qidx, ndesc, q->hw_qid, irq_idx, in fun_txq_create_dev() 727 irq ? "Tx" : "XDP", q->qidx, err); in fun_txq_create_dev() 740 q->irq ? "Tx" : "XDP", q->qidx, q->hw_qid, in fun_txq_free_dev() 759 int funeth_txq_create(struct net_device *dev, unsigned int qidx, in funeth_txq_create() argument 767 q = fun_txq_create_sw(dev, qidx, ndesc, irq); in funeth_txq_create()
|
H A D | funeth_txrx.h | 117 u16 qidx; /* queue index within net_device */ member 173 u16 qidx; /* queue index within net_device */ member 254 int funeth_txq_create(struct net_device *dev, unsigned int qidx, 259 int funeth_rxq_create(struct net_device *dev, unsigned int qidx,
|
/linux/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt_dcb.c | 55 u8 qidx; in bnxt_hwrm_queue_pri2cos_cfg() local 60 qidx = bp->tc_to_qidx[ets->prio_tc[i]]; in bnxt_hwrm_queue_pri2cos_cfg() 61 pri2cos[i] = bp->q_info[qidx].queue_id; in bnxt_hwrm_queue_pri2cos_cfg() 108 u8 qidx = bp->tc_to_qidx[i]; in bnxt_hwrm_queue_cos2bw_cfg() local 112 qidx); in bnxt_hwrm_queue_cos2bw_cfg() 115 cos2bw.queue_id = bp->q_info[qidx].queue_id; in bnxt_hwrm_queue_cos2bw_cfg() 131 if (qidx == 0) { in bnxt_hwrm_queue_cos2bw_cfg() 277 u8 qidx = bp->tc_to_qidx[i]; in bnxt_hwrm_queue_pfc_cfg() local 279 if (!BNXT_LLQ(bp->q_info[qidx].queue_profile)) { in bnxt_hwrm_queue_pfc_cfg()
|
/linux/drivers/scsi/csiostor/ |
H A D | csio_wr.c | 745 csio_wr_cleanup_eq_stpg(struct csio_hw *hw, int qidx) in csio_wr_cleanup_eq_stpg() argument 747 struct csio_q *q = csio_hw_to_wrm(hw)->q_arr[qidx]; in csio_wr_cleanup_eq_stpg() 762 csio_wr_cleanup_iq_ftr(struct csio_hw *hw, int qidx) in csio_wr_cleanup_iq_ftr() argument 765 struct csio_q *q = wrm->q_arr[qidx]; in csio_wr_cleanup_iq_ftr() 863 csio_wr_get(struct csio_hw *hw, int qidx, uint32_t size, in csio_wr_get() argument 867 struct csio_q *q = wrm->q_arr[qidx]; in csio_wr_get() 878 CSIO_DB_ASSERT((qidx >= 0) && (qidx < wrm->free_qidx)); in csio_wr_get() 982 csio_wr_issue(struct csio_hw *hw, int qidx, bool prio) in csio_wr_issue() argument 985 struct csio_q *q = wrm->q_arr[qidx]; in csio_wr_issue() 987 CSIO_DB_ASSERT((qidx >= 0) && (qidx < wrm->free_qidx)); in csio_wr_issue() [all …]
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_amdkfd_gfx_v9.c | 1026 int qidx; in kgd_gfx_v9_get_cu_occupancy() local 1055 for (qidx = 0; qidx < max_queue_cnt; qidx++) { in kgd_gfx_v9_get_cu_occupancy() 1059 if (!test_bit(qidx, cp_queue_bitmap)) in kgd_gfx_v9_get_cu_occupancy() 1062 if (!(queue_map & (1 << qidx))) in kgd_gfx_v9_get_cu_occupancy() 1066 get_wave_count(adev, qidx, &cu_occupancy[qidx], in kgd_gfx_v9_get_cu_occupancy()
|
/linux/drivers/net/ethernet/marvell/octeontx2/af/ |
H A D | rvu_nix.c | 1070 if (!pfvf->rq_ctx || req->qidx >= pfvf->rq_ctx->qsize) in rvu_nix_blk_aq_enq_inst() 1074 if (!pfvf->sq_ctx || req->qidx >= pfvf->sq_ctx->qsize) in rvu_nix_blk_aq_enq_inst() 1078 if (!pfvf->cq_ctx || req->qidx >= pfvf->cq_ctx->qsize) in rvu_nix_blk_aq_enq_inst() 1085 (req->qidx >= (256UL << (cfg & 0xF)))) in rvu_nix_blk_aq_enq_inst() 1093 (req->qidx >= (256UL << (cfg & 0xF)))) in rvu_nix_blk_aq_enq_inst() 1127 inst.cindex = req->qidx; in rvu_nix_blk_aq_enq_inst() 1203 __set_bit(req->qidx, pfvf->rq_bmap); in rvu_nix_blk_aq_enq_inst() 1205 __set_bit(req->qidx, pfvf->sq_bmap); in rvu_nix_blk_aq_enq_inst() 1207 __set_bit(req->qidx, pfvf->cq_bmap); in rvu_nix_blk_aq_enq_inst() 1213 (test_bit(req->qidx, pfvf->rq_bmap) & in rvu_nix_blk_aq_enq_inst() [all …]
|
/linux/include/linux/ |
H A D | nvme-fc-driver.h | 480 unsigned int qidx, u16 qsize, 483 unsigned int qidx, void *handle);
|
/linux/drivers/scsi/lpfc/ |
H A D | lpfc_debugfs.h | 522 lpfc_debug_dump_hba_eq(struct lpfc_hba *phba, int qidx) in lpfc_debug_dump_hba_eq() argument 526 qp = phba->sli4_hba.hdwq[qidx].hba_eq; in lpfc_debug_dump_hba_eq() 528 pr_err("EQ[Idx:%d|Qid:%d]\n", qidx, qp->queue_id); in lpfc_debug_dump_hba_eq()
|
H A D | lpfc_nvme.c | 83 unsigned int qidx, u16 qsize, in lpfc_nvme_create_queue() argument 106 qhandle->qidx = qidx; in lpfc_nvme_create_queue() 112 if (qidx) { in lpfc_nvme_create_queue() 114 qhandle->index = ((qidx - 1) % in lpfc_nvme_create_queue() 118 qhandle->index = qidx; in lpfc_nvme_create_queue() 124 qidx, qhandle->cpu_id, qhandle->index, qhandle); in lpfc_nvme_create_queue() 145 unsigned int qidx, in lpfc_nvme_delete_queue() argument 159 lport, qidx, handle); in lpfc_nvme_delete_queue() 1629 if (!lpfc_queue_info->qidx && !pnvme_fcreq->sg_cnt) { in lpfc_nvme_fcp_io_submit() 1704 lpfc_ncmd->qidx = lpfc_queue_info->qidx; in lpfc_nvme_fcp_io_submit()
|
/linux/drivers/net/ethernet/chelsio/cxgb3/ |
H A D | cxgb3_main.c | 401 int i, j, err, qidx = 0; in request_msix_data_irqs() local 407 err = request_irq(adap->msix_info[qidx + 1].vec, in request_msix_data_irqs() 409 adap->sge.qs[qidx]. in request_msix_data_irqs() 411 adap->msix_info[qidx + 1].desc, in request_msix_data_irqs() 412 &adap->sge.qs[qidx]); in request_msix_data_irqs() 414 while (--qidx >= 0) in request_msix_data_irqs() 415 free_irq(adap->msix_info[qidx + 1].vec, in request_msix_data_irqs() 416 &adap->sge.qs[qidx]); in request_msix_data_irqs() 419 qidx++; in request_msix_data_irqs() 939 static int send_pktsched_cmd(struct adapter *adap, int sched, int qidx, int lo, in send_pktsched_cmd() argument [all …]
|
/linux/drivers/crypto/ccp/ |
H A D | ccp-dev-v5.c | 216 n = head_idx + COMMANDS_PER_QUEUE - cmd_q->qidx - 1; in ccp5_get_free_slots() 238 mP = (__le32 *)&cmd_q->qbase[cmd_q->qidx]; in ccp5_do_cmd() 243 cmd_q->qidx = (cmd_q->qidx + 1) % COMMANDS_PER_QUEUE; in ccp5_do_cmd() 249 tail = low_address(cmd_q->qdma_tail + cmd_q->qidx * Q_DESC_SIZE); in ccp5_do_cmd() 840 cmd_q->qidx = 0; in ccp5_init()
|
/linux/drivers/scsi/mpi3mr/ |
H A D | mpi3mr_fw.c | 1891 static int mpi3mr_delete_op_reply_q(struct mpi3mr_ioc *mrioc, u16 qidx) in mpi3mr_delete_op_reply_q() argument 1894 struct op_reply_qinfo *op_reply_q = mrioc->op_reply_qinfo + qidx; in mpi3mr_delete_op_reply_q() 1900 midx = REPLY_QUEUE_IDX_TO_MSIX_IDX(qidx, mrioc->op_reply_q_offset); in mpi3mr_delete_op_reply_q() 1953 mpi3mr_free_op_reply_q_segments(mrioc, qidx); in mpi3mr_delete_op_reply_q() 1972 static int mpi3mr_alloc_op_reply_q_segments(struct mpi3mr_ioc *mrioc, u16 qidx) in mpi3mr_alloc_op_reply_q_segments() argument 1974 struct op_reply_qinfo *op_reply_q = mrioc->op_reply_qinfo + qidx; in mpi3mr_alloc_op_reply_q_segments() 2029 static int mpi3mr_alloc_op_req_q_segments(struct mpi3mr_ioc *mrioc, u16 qidx) in mpi3mr_alloc_op_req_q_segments() argument 2031 struct op_req_qinfo *op_req_q = mrioc->req_qinfo + qidx; in mpi3mr_alloc_op_req_q_segments() 2087 static int mpi3mr_create_op_reply_q(struct mpi3mr_ioc *mrioc, u16 qidx) in mpi3mr_create_op_reply_q() argument 2090 struct op_reply_qinfo *op_reply_q = mrioc->op_reply_qinfo + qidx; in mpi3mr_create_op_reply_q() [all …]
|
/linux/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x_sriov.c | 1738 int qidx = 0, abs_vfid; in bnx2x_iov_eq_sp_event() local 1787 qidx = cid & ((1 << BNX2X_VF_CID_WND)-1); in bnx2x_iov_eq_sp_event() 1801 vf->abs_vfid, qidx); in bnx2x_iov_eq_sp_event() 1802 vfq_get(vf, qidx)->sp_obj.complete_cmd(bp, in bnx2x_iov_eq_sp_event() 1804 qidx)->sp_obj, in bnx2x_iov_eq_sp_event() 1809 vf->abs_vfid, qidx); in bnx2x_iov_eq_sp_event() 1810 bnx2x_vf_handle_classification_eqe(bp, vfq_get(vf, qidx), elem); in bnx2x_iov_eq_sp_event() 1814 vf->abs_vfid, qidx); in bnx2x_iov_eq_sp_event() 1819 vf->abs_vfid, qidx); in bnx2x_iov_eq_sp_event() 1824 vf->abs_vfid, qidx); in bnx2x_iov_eq_sp_event()
|