Home
last modified time | relevance | path

Searched refs:oq (Results 1 – 22 of 22) sorted by relevance

/Linux-v6.6/drivers/net/ethernet/marvell/octeon_ep/
Doctep_rx.c15 static void octep_oq_reset_indices(struct octep_oq *oq) in octep_oq_reset_indices() argument
17 oq->host_read_idx = 0; in octep_oq_reset_indices()
18 oq->host_refill_idx = 0; in octep_oq_reset_indices()
19 oq->refill_count = 0; in octep_oq_reset_indices()
20 oq->last_pkt_count = 0; in octep_oq_reset_indices()
21 oq->pkts_pending = 0; in octep_oq_reset_indices()
32 static int octep_oq_fill_ring_buffers(struct octep_oq *oq) in octep_oq_fill_ring_buffers() argument
34 struct octep_oq_desc_hw *desc_ring = oq->desc_ring; in octep_oq_fill_ring_buffers()
38 for (i = 0; i < oq->max_count; i++) { in octep_oq_fill_ring_buffers()
41 dev_err(oq->dev, "Rx buffer alloc failed\n"); in octep_oq_fill_ring_buffers()
[all …]
Doctep_config.h61 #define CFG_GET_OQ_NUM_DESC(cfg) ((cfg)->oq.num_descs)
62 #define CFG_GET_OQ_BUF_SIZE(cfg) ((cfg)->oq.buf_size)
63 #define CFG_GET_OQ_REFILL_THRESHOLD(cfg) ((cfg)->oq.refill_threshold)
64 #define CFG_GET_OQ_INTR_PKT(cfg) ((cfg)->oq.oq_intr_pkt)
65 #define CFG_GET_OQ_INTR_TIME(cfg) ((cfg)->oq.oq_intr_time)
190 struct octep_oq_config oq; member
Doctep_cn9k_pf.c235 conf->oq.num_descs = OCTEP_OQ_MAX_DESCRIPTORS; in octep_init_config_cn93_pf()
236 conf->oq.buf_size = OCTEP_OQ_BUF_SIZE; in octep_init_config_cn93_pf()
237 conf->oq.refill_threshold = OCTEP_OQ_REFILL_THRESHOLD; in octep_init_config_cn93_pf()
238 conf->oq.oq_intr_pkt = OCTEP_OQ_INTR_PKT_THRESHOLD; in octep_init_config_cn93_pf()
239 conf->oq.oq_intr_time = OCTEP_OQ_INTR_TIME_THRESHOLD; in octep_init_config_cn93_pf()
314 struct octep_oq *oq = oct->oq[oq_no]; in octep_setup_oq_regs_cn93_pf() local
339 oq->desc_ring_dma); in octep_setup_oq_regs_cn93_pf()
341 oq->max_count); in octep_setup_oq_regs_cn93_pf()
345 oq_ctl |= (oq->buffer_size & 0xffff); //populate the BSIZE (15-0) in octep_setup_oq_regs_cn93_pf()
349 oq->pkts_sent_reg = oct->mmio[0].hw_addr + CN93_SDP_R_OUT_CNTS(oq_no); in octep_setup_oq_regs_cn93_pf()
[all …]
Doctep_main.c60 ioq_vector->oq = oct->oq[i]; in octep_alloc_ioq_vectors()
355 static void octep_enable_ioq_irq(struct octep_iq *iq, struct octep_oq *oq) in octep_enable_ioq_irq() argument
357 u32 pkts_pend = oq->pkts_pending; in octep_enable_ioq_irq()
365 if (oq->last_pkt_count - pkts_pend) { in octep_enable_ioq_irq()
366 writel(oq->last_pkt_count - pkts_pend, oq->pkts_sent_reg); in octep_enable_ioq_irq()
367 oq->last_pkt_count = pkts_pend; in octep_enable_ioq_irq()
372 writeq(1UL << OCTEP_OQ_INTR_RESEND_BIT, oq->pkts_sent_reg); in octep_enable_ioq_irq()
389 rx_done = octep_oq_process_rx(ioq_vector->oq, budget); in octep_napi_poll()
398 octep_enable_ioq_irq(ioq_vector->iq, ioq_vector->oq); in octep_napi_poll()
415 oct->oq[i]->napi = &oct->ioq_vector[i]->napi; in octep_napi_add()
[all …]
Doctep_ethtool.c162 struct octep_oq *oq = oct->oq[q]; in octep_get_ethtool_stats() local
168 rx_packets += oq->stats.packets; in octep_get_ethtool_stats()
169 rx_bytes += oq->stats.bytes; in octep_get_ethtool_stats()
170 rx_alloc_errors += oq->stats.alloc_failures; in octep_get_ethtool_stats()
219 struct octep_oq *oq = oct->oq[q]; in octep_get_ethtool_stats() local
221 data[i++] = oq->stats.packets; in octep_get_ethtool_stats()
222 data[i++] = oq->stats.bytes; in octep_get_ethtool_stats()
223 data[i++] = oq->stats.alloc_failures; in octep_get_ethtool_stats()
Doctep_main.h127 struct octep_oq *oq; member
234 struct octep_oq *oq[OCTEP_MAX_OQ]; member
372 int octep_oq_process_rx(struct octep_oq *oq, int budget);
/Linux-v6.6/drivers/net/ethernet/cavium/liquidio/
Dcn23xx_vf_regs.h164 #define CN23XX_VF_SLI_OQ_PKT_CONTROL(oq) \ argument
165 (CN23XX_VF_SLI_OQ_PKT_CONTROL_START + ((oq) * CN23XX_VF_OQ_OFFSET))
167 #define CN23XX_VF_SLI_OQ_BASE_ADDR64(oq) \ argument
168 (CN23XX_VF_SLI_OQ_BASE_ADDR_START64 + ((oq) * CN23XX_VF_OQ_OFFSET))
170 #define CN23XX_VF_SLI_OQ_SIZE(oq) \ argument
171 (CN23XX_VF_SLI_OQ_SIZE_START + ((oq) * CN23XX_VF_OQ_OFFSET))
173 #define CN23XX_VF_SLI_OQ_BUFF_INFO_SIZE(oq) \ argument
174 (CN23XX_VF_SLI_OQ0_BUFF_INFO_SIZE + ((oq) * CN23XX_VF_OQ_OFFSET))
176 #define CN23XX_VF_SLI_OQ_PKTS_SENT(oq) \ argument
177 (CN23XX_VF_SLI_OQ_PKT_SENT_START + ((oq) * CN23XX_VF_OQ_OFFSET))
[all …]
Dcn23xx_pf_regs.h282 #define CN23XX_SLI_OQ_PKT_CONTROL(oq) \ argument
283 (CN23XX_SLI_OQ_PKT_CONTROL_START + ((oq) * CN23XX_OQ_OFFSET))
285 #define CN23XX_SLI_OQ_BASE_ADDR64(oq) \ argument
286 (CN23XX_SLI_OQ_BASE_ADDR_START64 + ((oq) * CN23XX_OQ_OFFSET))
288 #define CN23XX_SLI_OQ_SIZE(oq) \ argument
289 (CN23XX_SLI_OQ_SIZE_START + ((oq) * CN23XX_OQ_OFFSET))
291 #define CN23XX_SLI_OQ_BUFF_INFO_SIZE(oq) \ argument
292 (CN23XX_SLI_OQ0_BUFF_INFO_SIZE + ((oq) * CN23XX_OQ_OFFSET))
294 #define CN23XX_SLI_OQ_PKTS_SENT(oq) \ argument
295 (CN23XX_SLI_OQ_PKT_SENT_START + ((oq) * CN23XX_OQ_OFFSET))
[all …]
Dcn66xx_regs.h277 #define CN6XXX_SLI_OQ_BASE_ADDR64(oq) \ argument
278 (CN6XXX_SLI_OQ_BASE_ADDR_START64 + ((oq) * CN6XXX_OQ_OFFSET))
280 #define CN6XXX_SLI_OQ_SIZE(oq) \ argument
281 (CN6XXX_SLI_OQ_SIZE_START + ((oq) * CN6XXX_OQ_OFFSET))
283 #define CN6XXX_SLI_OQ_BUFF_INFO_SIZE(oq) \ argument
284 (CN6XXX_SLI_OQ0_BUFF_INFO_SIZE + ((oq) * CN6XXX_OQ_OFFSET))
286 #define CN6XXX_SLI_OQ_PKTS_SENT(oq) \ argument
287 (CN6XXX_SLI_OQ_PKT_SENT_START + ((oq) * CN6XXX_OQ_OFFSET))
289 #define CN6XXX_SLI_OQ_PKTS_CREDIT(oq) \ argument
290 (CN6XXX_SLI_OQ_PKT_CREDITS_START + ((oq) * CN6XXX_OQ_OFFSET))
Docteon_config.h131 #define CFG_GET_OQ_MAX_Q(cfg) ((cfg)->oq.max_oqs)
132 #define CFG_GET_OQ_PKTS_PER_INTR(cfg) ((cfg)->oq.pkts_per_intr)
133 #define CFG_GET_OQ_REFILL_THRESHOLD(cfg) ((cfg)->oq.refill_threshold)
134 #define CFG_GET_OQ_INTR_PKT(cfg) ((cfg)->oq.oq_intr_pkt)
135 #define CFG_GET_OQ_INTR_TIME(cfg) ((cfg)->oq.oq_intr_time)
136 #define CFG_SET_OQ_INTR_PKT(cfg, val) (cfg)->oq.oq_intr_pkt = val
137 #define CFG_SET_OQ_INTR_TIME(cfg, val) (cfg)->oq.oq_intr_time = val
413 struct octeon_oq_config oq; member
Dcn66xx_device.c343 mask |= oct->io_qmask.oq; in lio_cn6xxx_enable_io_queues()
378 mask ^= oct->io_qmask.oq; in lio_cn6xxx_disable_io_queues()
383 mask = (u32)oct->io_qmask.oq; in lio_cn6xxx_disable_io_queues()
393 if (!(oct->io_qmask.oq & BIT_ULL(i))) in lio_cn6xxx_disable_io_queues()
521 droq_mask &= oct->io_qmask.oq; in lio_cn6xxx_process_droq_intr_regs()
557 droq_time_mask &= oct->io_qmask.oq; in lio_cn6xxx_process_droq_intr_regs()
558 droq_cnt_mask &= oct->io_qmask.oq; in lio_cn6xxx_process_droq_intr_regs()
Docteon_device.c52 .oq = {
161 .oq = {
327 .oq = {
430 .oq = {
651 if (oct->io_qmask.oq & BIT_ULL(i)) in octeon_free_device_mem()
1295 (oct->io_qmask.oq & BIT_ULL(q_no))) in octeon_get_rx_qsize()
Docteon_droq.c213 oct->io_qmask.oq &= ~(1ULL << q_no); in octeon_delete_droq()
308 oct->io_qmask.oq |= BIT_ULL(q_no); in octeon_init_droq()
Docteon_device.h189 u64 oq; member
Dcn23xx_vf_device.c345 if (oct->io_qmask.oq & BIT_ULL(q_no)) { in cn23xx_enable_vf_io_queues()
Dlio_ethtool.c1152 if (!(oct->io_qmask.oq & BIT_ULL(i))) in lio_reset_queues()
1681 if (!(oct_dev->io_qmask.oq & BIT_ULL(j))) in lio_get_ethtool_stats()
1880 if (!(oct_dev->io_qmask.oq & BIT_ULL(i))) in lio_get_strings()
1928 if (!(oct_dev->io_qmask.oq & BIT_ULL(i))) in lio_vf_get_strings()
Dlio_vf_main.c84 if (!(oct->io_qmask.oq & BIT_ULL(i))) in lio_wait_for_oq_pkts()
545 if (!(oct->io_qmask.oq & BIT_ULL(i))) in octeon_destroy_resources()
Dlio_main.c168 if (!(oct->io_qmask.oq & BIT_ULL(q_no))) in octeon_droq_bh()
202 if (!(oct->io_qmask.oq & BIT_ULL(i))) in lio_wait_for_oq_pkts()
1069 if (!(oct->io_qmask.oq & BIT_ULL(i))) in octeon_destroy_resources()
Dcn23xx_pf_device.c854 if (oct->io_qmask.oq & BIT_ULL(q_no - srn)) { in cn23xx_enable_io_queues()
Dlio_core.c1281 if (!(oct->io_qmask.oq & BIT_ULL(idx))) in lio_wait_for_clean_oq()
/Linux-v6.6/fs/xfs/
Dxfs_trans_dquot.c78 struct xfs_dqtrx *oq, *nq; in xfs_trans_dup_dqinfo() local
96 oq = &oqa[i]; in xfs_trans_dup_dqinfo()
99 if (oq->qt_blk_res && oq->qt_bcount_delta > 0) in xfs_trans_dup_dqinfo()
100 blk_res_used = oq->qt_bcount_delta; in xfs_trans_dup_dqinfo()
102 nq->qt_dquot = oq->qt_dquot; in xfs_trans_dup_dqinfo()
109 nq->qt_blk_res = oq->qt_blk_res - blk_res_used; in xfs_trans_dup_dqinfo()
110 oq->qt_blk_res = blk_res_used; in xfs_trans_dup_dqinfo()
112 nq->qt_rtblk_res = oq->qt_rtblk_res - in xfs_trans_dup_dqinfo()
113 oq->qt_rtblk_res_used; in xfs_trans_dup_dqinfo()
114 oq->qt_rtblk_res = oq->qt_rtblk_res_used; in xfs_trans_dup_dqinfo()
[all …]
/Linux-v6.6/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_main.c589 struct sge_uld_txq *oq; in fwevtq_handler() local
591 oq = container_of(txq, struct sge_uld_txq, q); in fwevtq_handler()
592 tasklet_schedule(&oq->qresume_tsk); in fwevtq_handler()