Home
last modified time | relevance | path

Searched +full:num +full:- +full:rxq (Results 1 – 25 of 76) sorted by relevance

1234

/Linux-v6.1/drivers/net/ethernet/hisilicon/
Dhisi_femac.c1 // SPDX-License-Identifier: GPL-2.0-or-later
38 #define HW_RX_FIFO_DEPTH (MAX_HW_FIFO_DEPTH - HW_TX_FIFO_DEPTH)
84 #define MAX_MULTICAST_ADDRESSES (MAX_MAC_FILTER_NUM - \
91 #define PHY_RESET_DELAYS_PROPERTY "hisilicon,phy-reset-delays-us"
103 int num; member
121 struct hisi_femac_queue rxq; member
130 val = readl(priv->glb_base + GLB_IRQ_ENA); in hisi_femac_irq_enable()
131 writel(val | irqs, priv->glb_base + GLB_IRQ_ENA); in hisi_femac_irq_enable()
138 val = readl(priv->glb_base + GLB_IRQ_ENA); in hisi_femac_irq_disable()
139 writel(val & (~irqs), priv->glb_base + GLB_IRQ_ENA); in hisi_femac_irq_disable()
[all …]
/Linux-v6.1/drivers/net/ethernet/fungible/funeth/
Dfuneth_trace.h1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
27 __string(devname, txq->netdev->name)
31 __entry->qidx = txq->qidx;
32 __entry->len = len;
33 __entry->sqe_idx = sqe_idx;
34 __entry->ngle = ngle;
35 __assign_str(devname, txq->netdev->name);
38 TP_printk("%s: Txq %u, SQE idx %u, len %u, num GLEs %u",
39 __get_str(devname), __entry->qidx, __entry->sqe_idx,
40 __entry->len, __entry->ngle)
[all …]
/Linux-v6.1/drivers/vhost/
Dnet.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * virtio-net server in host kernel.
41 " 1 -Enable; 0 - Disable");
126 struct vhost_net_buf rxq; member
151 static void *vhost_net_buf_get_ptr(struct vhost_net_buf *rxq) in vhost_net_buf_get_ptr() argument
153 if (rxq->tail != rxq->head) in vhost_net_buf_get_ptr()
154 return rxq->queue[rxq->head]; in vhost_net_buf_get_ptr()
159 static int vhost_net_buf_get_size(struct vhost_net_buf *rxq) in vhost_net_buf_get_size() argument
161 return rxq->tail - rxq->head; in vhost_net_buf_get_size()
164 static int vhost_net_buf_is_empty(struct vhost_net_buf *rxq) in vhost_net_buf_is_empty() argument
[all …]
/Linux-v6.1/drivers/net/ethernet/brocade/bna/
Dbna_tx_rx.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Linux network driver for QLogic BR-series Converged Network Adapter.
6 * Copyright (c) 2005-2014 Brocade Communications Systems, Inc.
7 * Copyright (c) 2014-2015 QLogic Corporation
18 ib->coalescing_timeo = coalescing_timeo; in bna_ib_coalescing_timeo_set()
19 ib->door_bell.doorbell_ack = BNA_DOORBELL_IB_INT_ACK( in bna_ib_coalescing_timeo_set()
20 (u32)ib->coalescing_timeo, 0); in bna_ib_coalescing_timeo_set()
27 (rxf)->vlan_pending_bitmask = (u8)BFI_VLAN_BMASK_ALL; \
28 (rxf)->vlan_strip_pending = true; \
33 if ((rxf)->rss_status == BNA_STATUS_T_ENABLED) \
[all …]
Dbna_types.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Linux network driver for QLogic BR-series Converged Network Adapter.
6 * Copyright (c) 2005-2014 Brocade Communications Systems, Inc.
7 * Copyright (c) 2014-2015 QLogic Corporation
270 u32 num; member
282 int num; member
512 /* Tx module - keeps track of free, active tx objects */
553 struct bna_rxq *rxq; member
561 /* RxQ structure - QPT, configuration */
585 /* RxQ pair */
[all …]
Dbnad.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Linux network driver for QLogic BR-series Converged Network Adapter.
6 * Copyright (c) 2005-2014 Brocade Communications Systems, Inc.
7 * Copyright (c) 2014-2015 QLogic Corporation
57 (((_bnad)->cfg_flags & BNAD_CF_MSIX) ? \
58 ((_bnad)->msix_table[BNAD_MAILBOX_MSIX_INDEX].vector) : \
59 ((_bnad)->pcidev->irq))
63 (_res_info)->res_type = BNA_RES_T_MEM; \
64 (_res_info)->res_u.mem_info.mem_type = BNA_MEM_T_KVA; \
65 (_res_info)->res_u.mem_info.num = (_num); \
[all …]
/Linux-v6.1/drivers/net/ethernet/marvell/
Dmvneta.c7 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
109 #define MVNETA_VLAN_PRIO_RXQ_MAP(prio, rxq) ((rxq) << ((prio) * 3)) argument
134 #define MVNETA_CPU_RXQ_ACCESS(rxq) BIT(rxq) argument
150 * bits 8..15 = RXQ OCCUP, one bit per queue.
151 * bits 16..23 = RXQ FREE, one bit per queue.
156 #define MVNETA_TX_INTR_MASK(nr_txqs) (((1 << nr_txqs) - 1) << 0)
158 #define MVNETA_RX_INTR_MASK(nr_rxqs) (((1 << nr_rxqs) - 1) << 8)
270 * to cover all rate-limit values from 10Kbps up to 5Gbps
296 (((index) < (q)->last_desc) ? ((index) + 1) : 0)
365 #define MVNETA_MAX_RX_BUF_SIZE (PAGE_SIZE - MVNETA_SKB_PAD)
[all …]
Dmv643xx_eth.c1 // SPDX-License-Identifier: GPL-2.0-or-later
10 * Copyright (C) 2003 PMC-Sierra, Inc.,
13 * Copyright (C) 2003 Ralf Baechle <ralf@linux-mips.org>
15 * Copyright (C) 2004-2006 MontaVista Software, Inc.
21 * Copyright (C) 2007-2008 Marvell Semiconductor
30 #include <linux/dma-mapping.h>
71 * Main per-port registers. These live at offset 0x0400 for
141 * Misc per-port registers.
172 #define SKB_DMA_REALIGN ((PAGE_SIZE - NET_SKB_PAD) % SMP_CACHE_BYTES)
179 ((addr >= txq->tso_hdrs_dma) && \
[all …]
/Linux-v6.1/drivers/net/ethernet/atheros/alx/
Dmain.c56 struct alx_buffer *txb = &txq->bufs[entry]; in alx_free_txbuf()
59 dma_unmap_single(txq->dev, in alx_free_txbuf()
66 if (txb->skb) { in alx_free_txbuf()
67 dev_kfree_skb_any(txb->skb); in alx_free_txbuf()
68 txb->skb = NULL; in alx_free_txbuf()
74 struct alx_rx_queue *rxq = alx->qnapi[0]->rxq; in alx_refill_rx_ring() local
80 next = cur = rxq->write_idx; in alx_refill_rx_ring()
81 if (++next == alx->rx_ringsz) in alx_refill_rx_ring()
83 cur_buf = &rxq->bufs[cur]; in alx_refill_rx_ring()
85 while (!cur_buf->skb && next != rxq->read_idx) { in alx_refill_rx_ring()
[all …]
/Linux-v6.1/drivers/net/ethernet/marvell/mvpp2/
Dmvpp2_main.c1 // SPDX-License-Identifier: GPL-2.0
76 writel(data, priv->swth_base[0] + offset); in mvpp2_write()
81 return readl(priv->swth_base[0] + offset); in mvpp2_read()
86 return readl_relaxed(priv->swth_base[0] + offset); in mvpp2_read_relaxed()
91 return cpu % priv->nthreads; in mvpp2_cpu_to_thread()
96 writel(data, priv->cm3_base + offset); in mvpp2_cm3_write()
101 return readl(priv->cm3_base + offset); in mvpp2_cm3_read()
105 mvpp2_create_page_pool(struct device *dev, int num, int len, in mvpp2_create_page_pool() argument
111 .pool_size = num, in mvpp2_create_page_pool()
124 * - per-thread registers, where each thread has its own copy of the
[all …]
Dmvpp2.h1 /* SPDX-License-Identifier: GPL-2.0 */
47 #define MVPP2_RXQ_CONFIG_REG(rxq) (0x800 + 4 * (rxq)) argument
177 #define MVPP2_RXQ_STATUS_UPDATE_REG(rxq) (0x3000 + 4 * (rxq)) argument
180 #define MVPP2_RXQ_STATUS_REG(rxq) (0x3400 + 4 * (rxq)) argument
261 #define MVPP2_ISR_RX_THRESHOLD_REG(rxq) (0x5200 + 4 * (rxq)) argument
355 /* Packet Processor per-port counters */
420 /* Per-port registers */
485 /* Per-port XGMAC registers. PPv2.2 and PPv2.3, only for GOP port 0,
486 * relative to port->base.
522 /* SMI registers. PPv2.2 and PPv2.3, relative to priv->iface_base. */
[all …]
/Linux-v6.1/drivers/net/ethernet/chelsio/cxgb4/
Dcudbg_lib.h1 /* SPDX-License-Identifier: GPL-2.0-only */
181 u32 *num, u32 *size);
245 entry->qtype = type; in cudbg_fill_qdesc_txq()
246 entry->qid = txq->cntxt_id; in cudbg_fill_qdesc_txq()
247 entry->desc_size = sizeof(struct tx_desc); in cudbg_fill_qdesc_txq()
248 entry->num_desc = txq->size; in cudbg_fill_qdesc_txq()
249 entry->data_size = txq->size * sizeof(struct tx_desc); in cudbg_fill_qdesc_txq()
250 memcpy(entry->data, txq->desc, entry->data_size); in cudbg_fill_qdesc_txq()
253 static inline void cudbg_fill_qdesc_rxq(const struct sge_rspq *rxq, in cudbg_fill_qdesc_rxq() argument
257 entry->qtype = type; in cudbg_fill_qdesc_rxq()
[all …]
/Linux-v6.1/Documentation/devicetree/bindings/net/
Dbrcm,systemport.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Florian Fainelli <f.fainelli@gmail.com>
15 - brcm,systemport-v1.00
16 - brcm,systemportlite-v1.00
17 - brcm,systemport
25 - description: interrupt line for RX queues
26 - description: interrupt line for TX queues
27 - description: interrupt line for Wake-on-LAN
[all …]
/Linux-v6.1/drivers/net/ethernet/qlogic/qede/
Dqede_fp.c1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
3 * Copyright (c) 2015-2017 QLogic Corporation
4 * Copyright (c) 2019-2020 Marvell International Ltd.
27 int qede_alloc_rx_buffer(struct qede_rx_queue *rxq, bool allow_lazy) in qede_alloc_rx_buffer() argument
34 /* In case lazy-allocation is allowed, postpone allocation until the in qede_alloc_rx_buffer()
38 if (allow_lazy && likely(rxq->filled_buffers > 12)) { in qede_alloc_rx_buffer()
39 rxq->filled_buffers--; in qede_alloc_rx_buffer()
45 return -ENOMEM; in qede_alloc_rx_buffer()
50 mapping = dma_map_page(rxq->dev, data, 0, in qede_alloc_rx_buffer()
51 PAGE_SIZE, rxq->data_direction); in qede_alloc_rx_buffer()
[all …]
Dqede_ethtool.c1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
3 * Copyright (c) 2015-2017 QLogic Corporation
4 * Copyright (c) 2019-2020 Marvell International Ltd.
177 "Coupled-Function",
285 linkmode_set_bit_array(map->cap_arr, map->arr_size, map->caps); in qede_forced_speed_maps_init()
286 map->cap_arr = NULL; in qede_forced_speed_maps_init()
287 map->arr_size = 0; in qede_forced_speed_maps_init()
299 if (txq->is_xdp) in qede_get_strings_stats_txq()
304 sprintf(*buf, "%d_%d: %s", txq->index, txq->cos, in qede_get_strings_stats_txq()
311 struct qede_rx_queue *rxq, u8 **buf) in qede_get_strings_stats_rxq() argument
[all …]
/Linux-v6.1/drivers/net/wireless/intel/iwlegacy/
D4965-mac.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright(c) 2003 - 2011 Intel Corporation. All rights reserved.
11 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
22 #include <linux/dma-mapping.h>
71 if (!test_bit(S_EXIT_PENDING, &il->status)) in il4965_check_abort_status()
72 queue_work(il->workqueue, &il->tx_flush); in il4965_check_abort_status()
85 il4965_rx_queue_reset(struct il_priv *il, struct il_rx_queue *rxq) in il4965_rx_queue_reset() argument
89 spin_lock_irqsave(&rxq->lock, flags); in il4965_rx_queue_reset()
90 INIT_LIST_HEAD(&rxq->rx_free); in il4965_rx_queue_reset()
91 INIT_LIST_HEAD(&rxq->rx_used); in il4965_rx_queue_reset()
[all …]
/Linux-v6.1/drivers/mailbox/
Domap-mailbox.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2006-2009 Nokia Corporation. All rights reserved.
6 * Copyright (C) 2013-2021 Texas Instruments Incorporated - https://www.ti.com
9 * Suman Anna <s-anna@ti.com>
22 #include <linux/omap-mailbox.h>
105 struct omap_mbox_queue *rxq; member
125 if (!chan || !chan->con_priv) in mbox_chan_to_omap_mbox()
128 return (struct omap_mbox *)chan->con_priv; in mbox_chan_to_omap_mbox()
134 return __raw_readl(mdev->mbox_base + ofs); in mbox_read_reg()
140 __raw_writel(val, mdev->mbox_base + ofs); in mbox_write_reg()
[all …]
/Linux-v6.1/drivers/net/wireless/intel/ipw2x00/
Dipw2200.c1 // SPDX-License-Identifier: GPL-2.0-only
4 Copyright(c) 2003 - 2006 Intel Corporation. All rights reserved.
6 802.11 status code portion of this file from ethereal-0.10.6:
8 Ethereal - Network traffic analyzer
15 Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
21 #include <net/cfg80211-wext.h>
64 #define DRV_COPYRIGHT "Copyright(c) 2003-2006 Intel Corporation"
73 MODULE_FIRMWARE("ipw2200-ibss.fw");
75 MODULE_FIRMWARE("ipw2200-sniffer.fw");
77 MODULE_FIRMWARE("ipw2200-bss.fw");
[all …]
/Linux-v6.1/drivers/net/ethernet/freescale/
Dfec_main.c1 // SPDX-License-Identifier: GPL-2.0+
17 * Copyright (c) 2001-2005 Greg Ungerer (gerg@snapgear.com)
20 * Copyright (c) 2004-2006 Macq Electronique SA.
22 * Copyright (C) 2010-2011 Freescale Semiconductor, Inc.
174 .name = "imx25-fec",
177 .name = "imx27-fec",
180 .name = "imx28-fec",
183 .name = "imx6q-fec",
186 .name = "mvf600-fec",
189 .name = "imx6sx-fec",
[all …]
/Linux-v6.1/drivers/net/ethernet/emulex/benet/
Dbe_main.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2005 - 2016 Broadcom
7 * linux-drivers@emulex.com
39 /* Per-module error detection/recovery workq shared across all functions.
147 struct be_dma_mem *mem = &q->dma_mem; in be_queue_free()
149 if (mem->va) { in be_queue_free()
150 dma_free_coherent(&adapter->pdev->dev, mem->size, mem->va, in be_queue_free()
151 mem->dma); in be_queue_free()
152 mem->va = NULL; in be_queue_free()
159 struct be_dma_mem *mem = &q->dma_mem; in be_queue_alloc()
[all …]
Dbe.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (C) 2005 - 2016 Broadcom
7 * linux-drivers@emulex.com
31 #include <linux/hwmon-sysfs.h>
60 /* Number of bytes of an RX frame that are copied to skb->data */
67 #define BE_MAX_MTU (BE_MAX_JUMBO_FRAME_SIZE - \
71 #define BE_MAX_GSO_SIZE (65535 - 2 * VLAN_HLEN)
105 #define RX_FRAGS_REFILL_WM (RX_Q_LEN - MAX_RX_POST)
111 #define CNTL_SERIAL_NUM_WORD_SZ (sizeof(u16)) /* Byte-sz of serial num word */
136 BUG_ON(limit & (limit - 1)); in MODULO()
[all …]
/Linux-v6.1/drivers/net/wireless/intel/iwlwifi/fw/
Derror-dump.h1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
3 * Copyright (C) 2014, 2018-2021 Intel Corporation
4 * Copyright (C) 2014-2015 Intel Mobile Communications GmbH
5 * Copyright (C) 2016-2017 Intel Deutschland GmbH
17 * enum iwl_fw_error_dump_type - types of data in the dump file
18 * @IWL_FW_ERROR_DUMP_CSR: Control Status Registers - from offset 0
25 * @IWL_FW_ERROR_DUMP_PRPH: range of periphery registers - there can be several
37 * for that reason is not in use in any other place in the Linux Wi-Fi
67 * struct iwl_fw_error_dump_data - data for one type
79 * struct iwl_fw_error_dump_file - the layout of the header of the file
[all …]
/Linux-v6.1/drivers/net/usb/
Dusbnet.c1 // SPDX-License-Identifier: GPL-2.0-or-later
4 * Copyright (C) 2000-2005 by David Brownell
5 * Copyright (C) 2003-2005 David Hollis <dhollis@davehollis.com>
10 * kinds of full and high speed networking devices: host-to-host cables,
34 /*-------------------------------------------------------------------------*/
48 #define RX_QLEN(dev) ((dev)->rx_qlen)
49 #define TX_QLEN(dev) ((dev)->tx_qlen)
62 /*-------------------------------------------------------------------------*/
68 static int msg_level = -1;
72 /*-------------------------------------------------------------------------*/
[all …]
/Linux-v6.1/drivers/net/ethernet/chelsio/cxgb4vf/
Dsge.c2 * This file is part of the Chelsio T4 PCI-E SR-IOV Virtual Function Ethernet
5 * Copyright (c) 2009-2010 Chelsio Communications, Inc. All rights reserved.
17 * - Redistributions of source code must retain the above
21 * - Redistributions in binary form must reproduce the above
43 #include <linux/dma-mapping.h>
63 * 64-bit PCI DMA addresses.
106 ETHTXQ_MAX_SGL_LEN = ((3 * (ETHTXQ_MAX_FRAGS-1))/2 +
107 ((ETHTXQ_MAX_FRAGS-1) & 1) +
140 * in-line room in skb's to accommodate pulling in RX_PULL_LEN bytes
189 * get_buf_addr - return DMA buffer address of software descriptor
[all …]
/Linux-v6.1/drivers/net/wan/
Dixp4xx_hss.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2007-2008 Krzysztof Hałasa <khc@pm.waw.pl>
13 #include <linux/dma-mapping.h>
90 #define PKT_HDLC_CRC_32 0x2 /* default = CRC-16 */
142 /* 56k data endiannes - which bit unused: high (default) or low */
159 /* hss_config, clkCR: main:10, num:10, denom:12 */
180 * The clock sequence consists of (C - B) states of 0s and 1s, each state is
192 * The sequence takes (C - B) * A + (B + 1) * (A + 1) = 5 * 2 + 3 * 3 bits
201 #define TDMMAP_HDLC 1 /* HDLC - packetized */
202 #define TDMMAP_VOICE56K 2 /* Voice56K - 7-bit channelized */
[all …]

1234