Home
last modified time | relevance | path

Searched refs:q_no (Results 1 – 25 of 27) sorted by relevance

12

/Linux-v6.6/drivers/net/ethernet/cavium/liquidio/
Dcn23xx_vf_device.c54 u32 q_no; in cn23xx_vf_reset_io_queues() local
57 for (q_no = 0; q_no < num_queues; q_no++) { in cn23xx_vf_reset_io_queues()
60 CN23XX_VF_SLI_IQ_PKT_CONTROL64(q_no)); in cn23xx_vf_reset_io_queues()
62 octeon_write_csr64(oct, CN23XX_VF_SLI_IQ_PKT_CONTROL64(q_no), in cn23xx_vf_reset_io_queues()
67 for (q_no = 0; q_no < num_queues; q_no++) { in cn23xx_vf_reset_io_queues()
69 CN23XX_VF_SLI_IQ_PKT_CONTROL64(q_no)); in cn23xx_vf_reset_io_queues()
74 oct, CN23XX_VF_SLI_IQ_PKT_CONTROL64(q_no))); in cn23xx_vf_reset_io_queues()
80 q_no); in cn23xx_vf_reset_io_queues()
85 octeon_write_csr64(oct, CN23XX_VF_SLI_IQ_PKT_CONTROL64(q_no), in cn23xx_vf_reset_io_queues()
89 oct, CN23XX_VF_SLI_IQ_PKT_CONTROL64(q_no))); in cn23xx_vf_reset_io_queues()
[all …]
Dcn23xx_pf_device.c349 u32 q_no, srn, ern; in cn23xx_reset_io_queues() local
359 for (q_no = srn; q_no < ern; q_no++) { in cn23xx_reset_io_queues()
361 d64 = octeon_read_csr64(oct, CN23XX_SLI_IQ_PKT_CONTROL64(q_no)); in cn23xx_reset_io_queues()
363 octeon_write_csr64(oct, CN23XX_SLI_IQ_PKT_CONTROL64(q_no), d64); in cn23xx_reset_io_queues()
367 for (q_no = srn; q_no < ern; q_no++) { in cn23xx_reset_io_queues()
369 CN23XX_SLI_IQ_PKT_CONTROL64(q_no)); in cn23xx_reset_io_queues()
374 oct, CN23XX_SLI_IQ_PKT_CONTROL64(q_no))); in cn23xx_reset_io_queues()
379 q_no); in cn23xx_reset_io_queues()
384 octeon_write_csr64(oct, CN23XX_SLI_IQ_PKT_CONTROL64(q_no), in cn23xx_reset_io_queues()
388 oct, CN23XX_SLI_IQ_PKT_CONTROL64(q_no))); in cn23xx_reset_io_queues()
[all …]
Docteon_droq.c199 int octeon_delete_droq(struct octeon_device *oct, u32 q_no) in octeon_delete_droq() argument
201 struct octeon_droq *droq = oct->droq[q_no]; in octeon_delete_droq()
203 dev_dbg(&oct->pci_dev->dev, "%s[%d]\n", __func__, q_no); in octeon_delete_droq()
213 oct->io_qmask.oq &= ~(1ULL << q_no); in octeon_delete_droq()
214 vfree(oct->droq[q_no]); in octeon_delete_droq()
215 oct->droq[q_no] = NULL; in octeon_delete_droq()
223 u32 q_no, in octeon_init_droq() argument
233 dev_dbg(&oct->pci_dev->dev, "%s[%d]\n", __func__, q_no); in octeon_init_droq()
235 droq = oct->droq[q_no]; in octeon_init_droq()
239 droq->q_no = q_no; in octeon_init_droq()
[all …]
Docteon_droq.h248 u32 q_no; member
338 u32 q_no,
350 int octeon_delete_droq(struct octeon_device *oct_dev, u32 q_no);
365 u32 q_no,
376 int octeon_unregister_droq_ops(struct octeon_device *oct, u32 q_no);
402 int octeon_create_droq(struct octeon_device *oct, u32 q_no,
412 int octeon_enable_irq(struct octeon_device *oct, u32 q_no);
Dlio_core.c175 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_set_feature()
442 struct cavium_wq *wq = &lio->rxq_status_wq[droq->q_no]; in octeon_schedule_rxq_oom_work()
453 int q_no = wk->ctxul; in octnet_poll_check_rxq_oom_status() local
454 struct octeon_droq *droq = oct->droq[q_no]; in octnet_poll_check_rxq_oom_status()
468 int q, q_no; in setup_rx_oom_poll_fn() local
471 q_no = lio->linfo.rxpciq[q].s.q_no; in setup_rx_oom_poll_fn()
472 wq = &lio->rxq_status_wq[q_no]; in setup_rx_oom_poll_fn()
483 wq->wk.ctxul = q_no; in setup_rx_oom_poll_fn()
495 int q_no; in cleanup_rx_oom_poll_fn() local
497 for (q_no = 0; q_no < oct->num_oqs; q_no++) { in cleanup_rx_oom_poll_fn()
[all …]
Docteon_mailbox.c65 mbox->mbox_req.q_no = mbox->q_no; in octeon_mbox_read()
77 mbox->mbox_resp.q_no = mbox->q_no; in octeon_mbox_read()
134 struct octeon_mbox *mbox = oct->mbox[mbox_cmd->q_no]; in octeon_mbox_write()
262 mbox->q_no); in octeon_mbox_process_cmd()
263 pcie_flr(oct->sriov_info.dpiring_to_vfpcidev_lut[mbox->q_no]); in octeon_mbox_process_cmd()
355 int octeon_mbox_cancel(struct octeon_device *oct, int q_no) in octeon_mbox_cancel() argument
357 struct octeon_mbox *mbox = oct->mbox[q_no]; in octeon_mbox_cancel()
Docteon_device.c901 txpciq.s.q_no = iq_no; in octeon_setup_instr_queues()
962 u32 q_no; in octeon_set_io_queues_off() local
968 for (q_no = 0; q_no < oct->sriov_info.rings_per_vf; q_no++) { in octeon_set_io_queues_off()
970 oct, CN23XX_VF_SLI_IQ_PKT_CONTROL64(q_no)); in octeon_set_io_queues_off()
976 oct, CN23XX_SLI_IQ_PKT_CONTROL64(q_no)); in octeon_set_io_queues_off()
982 q_no); in octeon_set_io_queues_off()
988 CN23XX_SLI_IQ_PKT_CONTROL64(q_no), in octeon_set_io_queues_off()
992 oct, CN23XX_SLI_IQ_PKT_CONTROL64(q_no)); in octeon_set_io_queues_off()
995 "unable to reset qno %u\n", q_no); in octeon_set_io_queues_off()
1005 u32 q_no, in octeon_set_droq_pkt_op() argument
[all …]
Docteon_mailbox.h65 u32 q_no; member
88 u32 q_no; member
120 int octeon_mbox_cancel(struct octeon_device *oct, int q_no);
Dlio_ethtool.c481 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in lio_send_queue_count_update()
716 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in octnet_gpio_access()
742 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in octnet_id_active()
785 sc->iq_no = lio->linfo.txpciq[0].s.q_no; in octnet_mdio45_access()
1072 lio->txq = lio->linfo.txpciq[0].s.q_no; in lio_23xx_reconfigure_queue_count()
1073 lio->rxq = lio->linfo.rxpciq[0].s.q_no; in lio_23xx_reconfigure_queue_count()
1395 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in lio_set_pauseparam()
1760 j = lio->linfo.txpciq[vj].s.q_no; in lio_vf_get_ethtool_stats()
1802 j = lio->linfo.rxpciq[vj].s.q_no; in lio_vf_get_ethtool_stats()
2019 sc->iq_no = lio->linfo.txpciq[0].s.q_no; in octnet_get_intrmod_cfg()
[all …]
Docteon_nic.h85 u32 q_no; member
112 static inline int octnet_iq_is_full(struct octeon_device *oct, u32 q_no) in octnet_iq_is_full() argument
114 return ((u32)atomic_read(&oct->instr_queue[q_no]->instr_pending) in octnet_iq_is_full()
115 >= (oct->instr_queue[q_no]->max_count - 2)); in octnet_iq_is_full()
Dcn66xx_regs.h473 #define CN6XXX_DPI_DMA_ENG_ENB(q_no) \ argument
474 (CN6XXX_DPI_DMA_ENG0_ENB + ((q_no) * 8))
478 #define CN6XXX_DPI_DMA_ENG_BUF(q_no) \ argument
479 (CN6XXX_DPI_DMA_ENG0_BUF + ((q_no) * 8))
Dlio_main.c161 int q_no; in octeon_droq_bh() local
167 for (q_no = 0; q_no < MAX_OCTEON_OUTPUT_QUEUES(oct); q_no++) { in octeon_droq_bh()
168 if (!(oct->io_qmask.oq & BIT_ULL(q_no))) in octeon_droq_bh()
170 reschedule |= octeon_droq_process_packets(oct, oct->droq[q_no], in octeon_droq_bh()
172 lio_enable_irq(oct->droq[q_no], NULL); in octeon_droq_bh()
178 int adjusted_q_no = q_no + oct->sriov_info.pf_srn; in octeon_droq_bh()
471 lio->oct_dev->num_iqs].s.q_no; in check_txq_status()
636 sc->iq_no = lio->linfo.txpciq[0].s.q_no; in lio_sync_octeon_time()
1174 sc->iq_no = lio->linfo.txpciq[0].s.q_no; in send_rx_ctrl_cmd()
1295 lio->linfo.rxpciq[j].s.q_no); in liquidio_stop_nic_module()
[all …]
Dlio_vf_main.c622 sc->iq_no = lio->linfo.txpciq[0].s.q_no; in send_rx_ctrl_cmd()
731 lio->linfo.rxpciq[j].s.q_no); in liquidio_stop_nic_module()
1054 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_set_uc_list()
1103 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_set_mcast_list()
1146 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_set_mac()
1188 iq_no = lio->linfo.txpciq[i].s.q_no; in liquidio_get_stats64()
1204 oq_no = lio->linfo.rxpciq[i].s.q_no; in liquidio_get_stats64()
1379 sc->iq_no = ndata->q_no; in send_nic_timestamp_pkt()
1428 iq_no = lio->linfo.txpciq[q_idx].s.q_no; in liquidio_xmit()
1455 ndata.q_no = iq_no; in liquidio_xmit()
[all …]
Dliquidio_common.h728 u64 q_no:8; member
744 u64 q_no:8;
756 u64 q_no:8; member
760 u64 q_no:8;
Docteon_device.h858 int octeon_get_tx_qsize(struct octeon_device *oct, u32 q_no);
860 int octeon_get_rx_qsize(struct octeon_device *oct, u32 q_no);
872 void octeon_set_droq_pkt_op(struct octeon_device *oct, u32 q_no, u32 enable);
Dcn23xx_pf_regs.h558 #define CN23XX_DPI_DMA_REQQ_CTL(q_no) \ argument
559 (CN23XX_DPI_DMA_REQQ0_CTL + ((q_no) * 8))
Docteon_nic.c90 return octeon_send_command(oct, ndata->q_no, ring_doorbell, &ndata->cmd, in octnet_send_nic_data_pkt()
/Linux-v6.6/drivers/net/ethernet/marvell/octeon_ep/
Doctep_tx.c93 if (unlikely(__netif_subqueue_stopped(iq->netdev, iq->q_no)) && in octep_iq_process_completions()
96 netif_wake_subqueue(iq->netdev, iq->q_no); in octep_iq_process_completions()
149 netdev_tx_reset_queue(netdev_get_tx_queue(iq->netdev, iq->q_no)); in octep_iq_free_pending()
178 static int octep_setup_iq(struct octep_device *oct, int q_no) in octep_setup_iq() argument
187 oct->iq[q_no] = iq; in octep_setup_iq()
192 iq->q_no = q_no; in octep_setup_iq()
196 iq->netdev_q = netdev_get_tx_queue(iq->netdev, q_no); in octep_setup_iq()
204 "Failed to allocate DMA memory for IQ-%d\n", q_no); in octep_setup_iq()
216 q_no); in octep_setup_iq()
225 "Failed to allocate buff info for IQ-%d\n", q_no); in octep_setup_iq()
[all …]
Doctep_cn9k_pf.c110 static int cn93_reset_iq(struct octep_device *oct, int q_no) in cn93_reset_iq() argument
115 dev_dbg(&oct->pdev->dev, "Reset PF IQ-%d\n", q_no); in cn93_reset_iq()
118 q_no += conf->pf_ring_cfg.srn; in cn93_reset_iq()
121 octep_write_csr64(oct, CN93_SDP_R_IN_ENABLE(q_no), val); in cn93_reset_iq()
124 octep_write_csr64(oct, CN93_SDP_R_IN_CNTS(q_no), val); in cn93_reset_iq()
125 octep_write_csr64(oct, CN93_SDP_R_IN_INT_LEVELS(q_no), val); in cn93_reset_iq()
126 octep_write_csr64(oct, CN93_SDP_R_IN_PKT_CNT(q_no), val); in cn93_reset_iq()
127 octep_write_csr64(oct, CN93_SDP_R_IN_BYTE_CNT(q_no), val); in cn93_reset_iq()
128 octep_write_csr64(oct, CN93_SDP_R_IN_INSTR_BADDR(q_no), val); in cn93_reset_iq()
129 octep_write_csr64(oct, CN93_SDP_R_IN_INSTR_RSIZE(q_no), val); in cn93_reset_iq()
[all …]
Doctep_rx.c50 oq->q_no); in octep_oq_fill_ring_buffers()
99 oq->q_no); in octep_oq_refill()
123 static int octep_setup_oq(struct octep_device *oct, int q_no) in octep_setup_oq() argument
131 oct->oq[q_no] = oq; in octep_setup_oq()
136 oq->q_no = q_no; in octep_setup_oq()
157 "Failed to allocate DMA memory for OQ-%d !!\n", q_no); in octep_setup_oq()
164 "Failed to allocate buffer info for OQ-%d\n", q_no); in octep_setup_oq()
172 oct->hw_ops.setup_oq_regs(oct, q_no); in octep_setup_oq()
186 oct->oq[q_no] = NULL; in octep_setup_oq()
228 int q_no = oq->q_no; in octep_free_oq() local
[all …]
Doctep_main.c359 netdev_dbg(iq->netdev, "enabling intr for Q-%u\n", iq->q_no); in octep_enable_ioq_irq()
602 netif_stop_subqueue(iq->netdev, iq->q_no); in octep_iq_full_check()
609 netif_start_subqueue(iq->netdev, iq->q_no); in octep_iq_full_check()
638 u16 q_no, wi; in octep_start_xmit() local
640 q_no = skb_get_queue_mapping(skb); in octep_start_xmit()
641 if (q_no >= oct->num_iqs) { in octep_start_xmit()
642 netdev_err(netdev, "Invalid Tx skb->queue_mapping=%d\n", q_no); in octep_start_xmit()
643 q_no = q_no % oct->num_iqs; in octep_start_xmit()
646 iq = oct->iq[q_no]; in octep_start_xmit()
Doctep_rx.h140 u32 q_no; member
Doctep_tx.h153 u32 q_no; member
Doctep_main.h102 u32 q_no; member
/Linux-v6.6/drivers/scsi/
Dadvansys.c244 #define ASC_QNO_TO_QADDR(q_no) ((ASC_QADR_BEG)+((int)(q_no) << 6)) argument
248 uchar q_no; member
292 uchar q_no; member
344 uchar q_no; member
6637 scsiq->q_no = (uchar)(_val >> 8); in _AscCopyLramScsiDoneQ()
7871 static int AscPutReadyQueue(ASC_DVC_VAR *asc_dvc, ASC_SCSI_Q *scsiq, uchar q_no) in AscPutReadyQueue() argument
7893 q_addr = ASC_QNO_TO_QADDR(q_no); in AscPutReadyQueue()
7909 q_no << 8) | (ushort)QS_READY)); in AscPutReadyQueue()
7914 AscPutReadySgListQueue(ASC_DVC_VAR *asc_dvc, ASC_SCSI_Q *scsiq, uchar q_no) in AscPutReadySgListQueue() argument
7944 q_addr = ASC_QNO_TO_QADDR(q_no); in AscPutReadySgListQueue()
[all …]

12