Home
last modified time | relevance | path

Searched refs:oq (Results 1 - 25 of 38) sorted by relevance

12

/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/octeon_ep/
H A 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()
27 * @oq: Octeon Rx queue data structure.
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 in octep_oq_fill_ring_buffers()
79 octep_oq_refill(struct octep_device *oct, struct octep_oq *oq) octep_oq_refill() argument
125 struct octep_oq *oq; octep_setup_oq() local
198 octep_oq_free_ring_buffers(struct octep_oq *oq) octep_oq_free_ring_buffers() argument
225 octep_free_oq(struct octep_oq *oq) octep_free_oq() argument
316 octep_oq_check_hw_for_pkts(struct octep_device *oct, struct octep_oq *oq) octep_oq_check_hw_for_pkts() argument
352 __octep_oq_process_rx(struct octep_device *oct, struct octep_oq *oq, u16 pkts_to_process) __octep_oq_process_rx() argument
474 octep_oq_process_rx(struct octep_oq *oq, int budget) octep_oq_process_rx() argument
[all...]
H A 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
H A 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 in octep_setup_oq_regs_cn93_pf()
516 struct octep_oq *oq = vector->oq; octep_ioq_intr_handler_cn93_pf() local
[all...]
H A Doctep_main.c60 ioq_vector->oq = oct->oq[i]; in octep_alloc_ioq_vectors()
353 * @oq: Octeon Rx queue data structure.
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 in octep_enable_ioq_irq()
776 struct octep_oq *oq = oct->oq[q]; octep_get_stats64() local
[all...]
H A 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 in octep_get_ethtool_stats()
[all...]
H A 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);
/kernel/linux/linux-5.10/drivers/net/ethernet/cavium/liquidio/
H A Dcn23xx_vf_regs.h164 #define CN23XX_VF_SLI_OQ_PKT_CONTROL(oq) \
165 (CN23XX_VF_SLI_OQ_PKT_CONTROL_START + ((oq) * CN23XX_VF_OQ_OFFSET))
167 #define CN23XX_VF_SLI_OQ_BASE_ADDR64(oq) \
168 (CN23XX_VF_SLI_OQ_BASE_ADDR_START64 + ((oq) * CN23XX_VF_OQ_OFFSET))
170 #define CN23XX_VF_SLI_OQ_SIZE(oq) \
171 (CN23XX_VF_SLI_OQ_SIZE_START + ((oq) * CN23XX_VF_OQ_OFFSET))
173 #define CN23XX_VF_SLI_OQ_BUFF_INFO_SIZE(oq) \
174 (CN23XX_VF_SLI_OQ0_BUFF_INFO_SIZE + ((oq) * CN23XX_VF_OQ_OFFSET))
176 #define CN23XX_VF_SLI_OQ_PKTS_SENT(oq) \
177 (CN23XX_VF_SLI_OQ_PKT_SENT_START + ((oq) * CN23XX_VF_OQ_OFFSE
[all...]
H A Dcn23xx_pf_regs.h282 #define CN23XX_SLI_OQ_PKT_CONTROL(oq) \
283 (CN23XX_SLI_OQ_PKT_CONTROL_START + ((oq) * CN23XX_OQ_OFFSET))
285 #define CN23XX_SLI_OQ_BASE_ADDR64(oq) \
286 (CN23XX_SLI_OQ_BASE_ADDR_START64 + ((oq) * CN23XX_OQ_OFFSET))
288 #define CN23XX_SLI_OQ_SIZE(oq) \
289 (CN23XX_SLI_OQ_SIZE_START + ((oq) * CN23XX_OQ_OFFSET))
291 #define CN23XX_SLI_OQ_BUFF_INFO_SIZE(oq) \
292 (CN23XX_SLI_OQ0_BUFF_INFO_SIZE + ((oq) * CN23XX_OQ_OFFSET))
294 #define CN23XX_SLI_OQ_PKTS_SENT(oq) \
295 (CN23XX_SLI_OQ_PKT_SENT_START + ((oq) * CN23XX_OQ_OFFSE
[all...]
H A 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
H A Dcn66xx_regs.h277 #define CN6XXX_SLI_OQ_BASE_ADDR64(oq) \
278 (CN6XXX_SLI_OQ_BASE_ADDR_START64 + ((oq) * CN6XXX_OQ_OFFSET))
280 #define CN6XXX_SLI_OQ_SIZE(oq) \
281 (CN6XXX_SLI_OQ_SIZE_START + ((oq) * CN6XXX_OQ_OFFSET))
283 #define CN6XXX_SLI_OQ_BUFF_INFO_SIZE(oq) \
284 (CN6XXX_SLI_OQ0_BUFF_INFO_SIZE + ((oq) * CN6XXX_OQ_OFFSET))
286 #define CN6XXX_SLI_OQ_PKTS_SENT(oq) \
287 (CN6XXX_SLI_OQ_PKT_SENT_START + ((oq) * CN6XXX_OQ_OFFSET))
289 #define CN6XXX_SLI_OQ_PKTS_CREDIT(oq) \
290 (CN6XXX_SLI_OQ_PKT_CREDITS_START + ((oq) * CN6XXX_OQ_OFFSE
[all...]
H A Dcn66xx_device.c136 /* core clock per us / oq ticks will be fractional. TO avoid that in lio_cn6xxx_get_oq_ticks()
143 /* This gives the oq ticks (1024 core clock cycles) per millisecond */ in lio_cn6xxx_get_oq_ticks()
146 /* time_intr is in microseconds. The next 2 steps gives the oq ticks in lio_cn6xxx_get_oq_ticks()
343 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()
[all...]
H A Docteon_device.c52 .oq = {
161 .oq = {
327 .oq = {
430 .oq = {
650 if (oct->io_qmask.oq & BIT_ULL(i)) in octeon_free_device_mem()
1280 (oct->io_qmask.oq & BIT_ULL(q_no))) in octeon_get_rx_qsize()
H A Docteon_droq.c212 oct->io_qmask.oq &= ~(1ULL << q_no); in octeon_delete_droq()
306 oct->io_qmask.oq |= BIT_ULL(q_no); in octeon_init_droq()
H A Docteon_device.h189 u64 oq; member
H A Dcn23xx_vf_device.c38 /* This gives the oq ticks (1024 core clock cycles) per millisecond */ in cn23xx_vf_get_oq_ticks()
41 /* time_intr is in microseconds. The next 2 steps gives the oq ticks in cn23xx_vf_get_oq_ticks()
347 if (oct->io_qmask.oq & BIT_ULL(q_no)) { in cn23xx_enable_vf_io_queues()
/kernel/linux/linux-6.6/drivers/net/ethernet/cavium/liquidio/
H A Dcn23xx_vf_regs.h164 #define CN23XX_VF_SLI_OQ_PKT_CONTROL(oq) \
165 (CN23XX_VF_SLI_OQ_PKT_CONTROL_START + ((oq) * CN23XX_VF_OQ_OFFSET))
167 #define CN23XX_VF_SLI_OQ_BASE_ADDR64(oq) \
168 (CN23XX_VF_SLI_OQ_BASE_ADDR_START64 + ((oq) * CN23XX_VF_OQ_OFFSET))
170 #define CN23XX_VF_SLI_OQ_SIZE(oq) \
171 (CN23XX_VF_SLI_OQ_SIZE_START + ((oq) * CN23XX_VF_OQ_OFFSET))
173 #define CN23XX_VF_SLI_OQ_BUFF_INFO_SIZE(oq) \
174 (CN23XX_VF_SLI_OQ0_BUFF_INFO_SIZE + ((oq) * CN23XX_VF_OQ_OFFSET))
176 #define CN23XX_VF_SLI_OQ_PKTS_SENT(oq) \
177 (CN23XX_VF_SLI_OQ_PKT_SENT_START + ((oq) * CN23XX_VF_OQ_OFFSE
[all...]
H A Dcn23xx_pf_regs.h282 #define CN23XX_SLI_OQ_PKT_CONTROL(oq) \
283 (CN23XX_SLI_OQ_PKT_CONTROL_START + ((oq) * CN23XX_OQ_OFFSET))
285 #define CN23XX_SLI_OQ_BASE_ADDR64(oq) \
286 (CN23XX_SLI_OQ_BASE_ADDR_START64 + ((oq) * CN23XX_OQ_OFFSET))
288 #define CN23XX_SLI_OQ_SIZE(oq) \
289 (CN23XX_SLI_OQ_SIZE_START + ((oq) * CN23XX_OQ_OFFSET))
291 #define CN23XX_SLI_OQ_BUFF_INFO_SIZE(oq) \
292 (CN23XX_SLI_OQ0_BUFF_INFO_SIZE + ((oq) * CN23XX_OQ_OFFSET))
294 #define CN23XX_SLI_OQ_PKTS_SENT(oq) \
295 (CN23XX_SLI_OQ_PKT_SENT_START + ((oq) * CN23XX_OQ_OFFSE
[all...]
H A 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
H A Dcn66xx_regs.h277 #define CN6XXX_SLI_OQ_BASE_ADDR64(oq) \
278 (CN6XXX_SLI_OQ_BASE_ADDR_START64 + ((oq) * CN6XXX_OQ_OFFSET))
280 #define CN6XXX_SLI_OQ_SIZE(oq) \
281 (CN6XXX_SLI_OQ_SIZE_START + ((oq) * CN6XXX_OQ_OFFSET))
283 #define CN6XXX_SLI_OQ_BUFF_INFO_SIZE(oq) \
284 (CN6XXX_SLI_OQ0_BUFF_INFO_SIZE + ((oq) * CN6XXX_OQ_OFFSET))
286 #define CN6XXX_SLI_OQ_PKTS_SENT(oq) \
287 (CN6XXX_SLI_OQ_PKT_SENT_START + ((oq) * CN6XXX_OQ_OFFSET))
289 #define CN6XXX_SLI_OQ_PKTS_CREDIT(oq) \
290 (CN6XXX_SLI_OQ_PKT_CREDITS_START + ((oq) * CN6XXX_OQ_OFFSE
[all...]
H A Dcn66xx_device.c136 /* core clock per us / oq ticks will be fractional. TO avoid that in lio_cn6xxx_get_oq_ticks()
143 /* This gives the oq ticks (1024 core clock cycles) per millisecond */ in lio_cn6xxx_get_oq_ticks()
146 /* time_intr is in microseconds. The next 2 steps gives the oq ticks in lio_cn6xxx_get_oq_ticks()
343 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()
[all...]
H A 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()
H A 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()
H A Docteon_device.h189 u64 oq; member
/kernel/linux/linux-5.10/fs/xfs/
H A Dxfs_trans_dquot.c78 struct xfs_dqtrx *oq, *nq; in xfs_trans_dup_dqinfo() local
103 oq = &oqa[i]; in xfs_trans_dup_dqinfo()
106 if (oq->qt_blk_res && oq->qt_bcount_delta > 0) in xfs_trans_dup_dqinfo()
107 blk_res_used = oq->qt_bcount_delta; in xfs_trans_dup_dqinfo()
109 nq->qt_dquot = oq->qt_dquot; in xfs_trans_dup_dqinfo()
116 nq->qt_blk_res = oq->qt_blk_res - blk_res_used; in xfs_trans_dup_dqinfo()
117 oq->qt_blk_res = blk_res_used; in xfs_trans_dup_dqinfo()
119 nq->qt_rtblk_res = oq->qt_rtblk_res - in xfs_trans_dup_dqinfo()
120 oq in xfs_trans_dup_dqinfo()
[all...]
/kernel/linux/linux-6.6/fs/xfs/
H A 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 in xfs_trans_dup_dqinfo()
[all...]

Completed in 22 milliseconds

12