Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/marvell/octeon_ep/
H A Doctep_rx.c15 static void octep_oq_free_ring_buffers(struct octep_oq *oq);
17 static void octep_oq_reset_indices(struct octep_oq *oq) in octep_oq_reset_indices() argument
19 oq->host_read_idx = 0; in octep_oq_reset_indices()
20 oq->host_refill_idx = 0; in octep_oq_reset_indices()
21 oq->refill_count = 0; in octep_oq_reset_indices()
22 oq->last_pkt_count = 0; in octep_oq_reset_indices()
23 oq->pkts_pending = 0; in octep_oq_reset_indices()
34 static int octep_oq_fill_ring_buffers(struct octep_oq *oq) in octep_oq_fill_ring_buffers() argument
36 struct octep_oq_desc_hw *desc_ring = oq->desc_ring; in octep_oq_fill_ring_buffers()
40 for (i = 0; i < oq->max_count; i++) { in octep_oq_fill_ring_buffers()
[all …]
H A Doctep_config.h67 #define CFG_GET_OQ_NUM_DESC(cfg) ((cfg)->oq.num_descs)
68 #define CFG_GET_OQ_BUF_SIZE(cfg) ((cfg)->oq.buf_size)
69 #define CFG_GET_OQ_REFILL_THRESHOLD(cfg) ((cfg)->oq.refill_threshold)
70 #define CFG_GET_OQ_INTR_PKT(cfg) ((cfg)->oq.oq_intr_pkt)
71 #define CFG_GET_OQ_INTR_TIME(cfg) ((cfg)->oq.oq_intr_time)
72 #define CFG_GET_OQ_WMARK(cfg) ((cfg)->oq.wmark)
235 struct octep_oq_config oq; member
H A Doctep_main.c66 ioq_vector->oq = oct->oq[i]; in octep_alloc_ioq_vectors()
562 static void octep_update_pkt(struct octep_iq *iq, struct octep_oq *oq) in octep_update_pkt() argument
564 u32 pkts_pend = READ_ONCE(oq->pkts_pending); in octep_update_pkt()
565 u32 last_pkt_count = READ_ONCE(oq->last_pkt_count); in octep_update_pkt()
577 writel(last_pkt_count - pkts_pend, oq->pkts_sent_reg); in octep_update_pkt()
578 readl(oq->pkts_sent_reg); in octep_update_pkt()
579 WRITE_ONCE(oq->last_pkt_count, pkts_pend); in octep_update_pkt()
592 static void octep_enable_ioq_irq(struct octep_iq *iq, struct octep_oq *oq) in octep_enable_ioq_irq() argument
594 writeq(1UL << OCTEP_OQ_INTR_RESEND_BIT, oq->pkts_sent_reg); in octep_enable_ioq_irq()
611 rx_done = octep_oq_process_rx(ioq_vector->oq, budget); in octep_napi_poll()
[all …]
/linux/drivers/net/ethernet/marvell/octeon_ep_vf/
H A Doctep_vf_rx.c15 static void octep_vf_oq_free_ring_buffers(struct octep_vf_oq *oq);
17 static void octep_vf_oq_reset_indices(struct octep_vf_oq *oq) in octep_vf_oq_reset_indices() argument
19 oq->host_read_idx = 0; in octep_vf_oq_reset_indices()
20 oq->host_refill_idx = 0; in octep_vf_oq_reset_indices()
21 oq->refill_count = 0; in octep_vf_oq_reset_indices()
22 oq->last_pkt_count = 0; in octep_vf_oq_reset_indices()
23 oq->pkts_pending = 0; in octep_vf_oq_reset_indices()
34 static int octep_vf_oq_fill_ring_buffers(struct octep_vf_oq *oq) in octep_vf_oq_fill_ring_buffers() argument
36 struct octep_vf_oq_desc_hw *desc_ring = oq->desc_ring; in octep_vf_oq_fill_ring_buffers()
40 for (i = 0; i < oq->max_count; i++) { in octep_vf_oq_fill_ring_buffers()
[all …]
H A Doctep_vf_config.h63 #define CFG_GET_OQ_NUM_DESC(cfg) ((cfg)->oq.num_descs)
64 #define CFG_GET_OQ_BUF_SIZE(cfg) ((cfg)->oq.buf_size)
65 #define CFG_GET_OQ_REFILL_THRESHOLD(cfg) ((cfg)->oq.refill_threshold)
66 #define CFG_GET_OQ_INTR_PKT(cfg) ((cfg)->oq.oq_intr_pkt)
67 #define CFG_GET_OQ_INTR_TIME(cfg) ((cfg)->oq.oq_intr_time)
68 #define CFG_GET_OQ_WMARK(cfg) ((cfg)->oq.wmark)
152 struct octep_vf_oq_config oq; member
H A Doctep_vf_main.c63 ioq_vector->oq = oct->oq[i]; in octep_vf_alloc_ioq_vectors()
295 static void octep_vf_update_pkt(struct octep_vf_iq *iq, struct octep_vf_oq *oq) in octep_vf_update_pkt() argument
297 u32 pkts_pend = READ_ONCE(oq->pkts_pending); in octep_vf_update_pkt()
298 u32 last_pkt_count = READ_ONCE(oq->last_pkt_count); in octep_vf_update_pkt()
310 writel(last_pkt_count - pkts_pend, oq->pkts_sent_reg); in octep_vf_update_pkt()
311 readl(oq->pkts_sent_reg); in octep_vf_update_pkt()
312 WRITE_ONCE(oq->last_pkt_count, pkts_pend); in octep_vf_update_pkt()
326 struct octep_vf_oq *oq) in octep_vf_enable_ioq_irq() argument
328 writeq(1UL << OCTEP_VF_OQ_INTR_RESEND_BIT, oq->pkts_sent_reg); in octep_vf_enable_ioq_irq()
345 rx_done = octep_vf_oq_process_rx(ioq_vector->oq, budget); in octep_vf_napi_poll()
[all …]
/linux/drivers/net/ethernet/cavium/liquidio/
H A 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 …]
H A 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 …]
H A 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))
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_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()
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()
1296 (oct->io_qmask.oq & BIT_ULL(q_no))) in octeon_get_rx_qsize()
H A Docteon_droq.c208 oct->io_qmask.oq &= ~(1ULL << q_no); in octeon_delete_droq()
303 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.c345 if (oct->io_qmask.oq & BIT_ULL(q_no)) { in cn23xx_enable_vf_io_queues()
H A Dlio_ethtool.c1154 if (!(oct->io_qmask.oq & BIT_ULL(i))) in lio_reset_queues()
1683 if (!(oct_dev->io_qmask.oq & BIT_ULL(j))) in lio_get_ethtool_stats()
1882 if (!(oct_dev->io_qmask.oq & BIT_ULL(i))) in lio_get_strings()
1930 if (!(oct_dev->io_qmask.oq & BIT_ULL(i))) in lio_vf_get_strings()
H A Dlio_vf_main.c84 if (!(oct->io_qmask.oq & BIT_ULL(i))) in lio_wait_for_oq_pkts()
546 if (!(oct->io_qmask.oq & BIT_ULL(i))) in octeon_destroy_resources()
H A Dlio_main.c162 if (!(oct->io_qmask.oq & BIT_ULL(q_no))) in octeon_droq_bh()
196 if (!(oct->io_qmask.oq & BIT_ULL(i))) in lio_wait_for_oq_pkts()
1065 if (!(oct->io_qmask.oq & BIT_ULL(i))) in octeon_destroy_resources()
H A Dcn23xx_pf_device.c685 if (oct->io_qmask.oq & BIT_ULL(q_no - srn)) { in cn23xx_enable_io_queues()
H A Dlio_core.c1279 if (!(oct->io_qmask.oq & BIT_ULL(idx))) in lio_wait_for_clean_oq()
/linux/include/asm-generic/
H A Dvmlinux.lds.h124 .text.startu[_0-9A-Za-oq-z]* .text.startu .text.startu.* \
/linux/drivers/net/ethernet/chelsio/cxgb4/
H A 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()