Home
last modified time | relevance | path

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

123

/linux/drivers/net/ethernet/intel/idpf/
H A Didpf_txrx.c1 // SPDX-License-Identifier: GPL-2.0-only
10 #define idpf_tx_buf_next(buf) (*(u32 *)&(buf)->priv)
14 * idpf_chk_linearize - Check if skb exceeds max descriptors per packet
37 * idpf_tx_timeout - Respond to a Tx Hang
45 adapter->tx_timeout_count++; in idpf_tx_timeout()
48 adapter->tx_timeout_count, txqueue); in idpf_tx_timeout()
50 set_bit(IDPF_HR_FUNC_RESET, adapter->flags); in idpf_tx_timeout()
51 queue_delayed_work(adapter->vc_event_wq, in idpf_tx_timeout()
52 &adapter->vc_event_task, in idpf_tx_timeout()
62 .dev = txq->dev, in idpf_tx_buf_clean()
[all …]
H A Didpf_virtchnl.c1 // SPDX-License-Identifier: GPL-2.0-only
12 * struct idpf_vc_xn_manager - Manager for tracking transactions
26 * idpf_vid_to_vport - Translate vport id to vport pointer
39 if (adapter->vport_ids[i] == v_id) in idpf_vid_to_vport()
40 return adapter->vports[i]; in idpf_vid_to_vport()
46 * idpf_handle_event_link - Handle link event message
56 vport = idpf_vid_to_vport(adapter, le32_to_cpu(v2e->vport_id)); in idpf_handle_event_link()
58 dev_err_ratelimited(&adapter->pdev->dev, "Failed to find vport_id %d for link event\n", in idpf_handle_event_link()
59 v2e->vport_id); in idpf_handle_event_link()
62 np = netdev_priv(vport->netdev); in idpf_handle_event_link()
[all …]
/linux/drivers/vhost/
H A Dnet.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * virtio-net server in host kernel.
41 " 1 -Enable; 0 - Disable");
131 struct vhost_net_buf rxq; member
154 static void *vhost_net_buf_get_ptr(struct vhost_net_buf *rxq) in vhost_net_buf_get_ptr() argument
156 if (rxq->tail != rxq->head) in vhost_net_buf_get_ptr()
157 return rxq->queue[rxq->head]; in vhost_net_buf_get_ptr()
162 static int vhost_net_buf_get_size(struct vhost_net_buf *rxq) in vhost_net_buf_get_size() argument
164 return rxq->tail - rxq->head; in vhost_net_buf_get_size()
167 static int vhost_net_buf_is_empty(struct vhost_net_buf *rxq) in vhost_net_buf_is_empty() argument
[all …]
/linux/drivers/net/ethernet/brocade/bna/
H A 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 …]
H A 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
521 /* Tx module - keeps track of free, active tx objects */
562 struct bna_rxq *rxq; member
570 /* RxQ structure - QPT, configuration */
594 /* RxQ pair */
[all …]
H A 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
58 (((_bnad)->cfg_flags & BNAD_CF_MSIX) ? \
59 ((_bnad)->msix_table[BNAD_MAILBOX_MSIX_INDEX].vector) : \
60 ((_bnad)->pcidev->irq))
64 (_res_info)->res_type = BNA_RES_T_MEM; \
65 (_res_info)->res_u.mem_info.mem_type = BNA_MEM_T_KVA; \
66 (_res_info)->res_u.mem_info.num = (_num); \
[all …]
/linux/drivers/net/ethernet/chelsio/cxgb4/
H A 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/Documentation/devicetree/bindings/net/
H A 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/drivers/net/ethernet/marvell/
H A 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
142 * Misc per-port registers.
173 #define SKB_DMA_REALIGN ((PAGE_SIZE - NET_SKB_PAD) % SMP_CACHE_BYTES)
180 ((addr >= txq->tso_hdrs_dma) && \
[all …]
/linux/include/net/libeth/
H A Dxdp.h1 /* SPDX-License-Identifier: GPL-2.0-only */
28 * pick maximum pointer-compatible alignment.
36 * struct libeth_xdp_buff - libeth extension over &xdp_buff
40 * @priv: driver-private scratchspace
43 * to quickly get frame metadata from xdpmo and driver buff-to-xdp callbacks
45 * Pointer/layout-compatible with &xdp_buff and &xdp_buff_xsk.
65 * __LIBETH_XDP_ONSTACK_BUFF - declare a &libeth_xdp_buff on the stack
67 * @...: sizeof() of the driver-private data
72 * LIBETH_XDP_ONSTACK_BUFF - declare a &libeth_xdp_buff on the stack
74 * @...: type or variable name of the driver-private data
[all …]
/linux/drivers/net/ethernet/qlogic/qede/
H A 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 …]
H A 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.
176 "Coupled-Function",
276 if (txq->is_xdp) in qede_get_strings_stats_txq()
281 ethtool_sprintf(buf, "%d_%d: %s", txq->index, txq->cos, in qede_get_strings_stats_txq()
286 struct qede_rx_queue *rxq, u8 **buf) in qede_get_strings_stats_rxq() argument
291 ethtool_sprintf(buf, "%d: %s", rxq->rxq_id, in qede_get_strings_stats_rxq()
309 fp = &edev->fp_array[i]; in qede_get_strings_stats()
311 if (fp->type & QEDE_FASTPATH_RX) in qede_get_strings_stats()
[all …]
/linux/drivers/net/wireless/intel/iwlegacy/
H A 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/drivers/net/wireless/intel/ipw2x00/
H A 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/drivers/net/ethernet/broadcom/genet/
H A Dbcmgenet.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (c) 2014-2025 Broadcom
23 #include <linux/dma-mapping.h>
49 (TOTAL_DESC - priv->hw_params->rx_queues * priv->hw_params->rx_bds_per_q)
51 (TOTAL_DESC - priv->hw_params->tx_queues * priv->hw_params->tx_bds_per_q)
57 #define WORDS_PER_BD(p) (p->hw_params->words_per_bd)
60 #define GENET_TDMA_REG_OFF (priv->hw_params->tdma_offset + \
63 #define GENET_RDMA_REG_OFF (priv->hw_params->rdma_offset + \
72 * peripheral registers for CPU-native byte order. in bcmgenet_writel()
102 * the platform is explicitly configured for 64-bits/LPAE. in dmadesc_set_addr()
[all …]
/linux/drivers/net/ethernet/freescale/
H A 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.
194 { .compatible = "fsl,imx25-fec", .data = &fec_imx25_info, },
195 { .compatible = "fsl,imx27-fec", .data = &fec_imx27_info, },
196 { .compatible = "fsl,imx28-fec", .data = &fec_imx28_info, },
197 { .compatible = "fsl,imx6q-fec", .data = &fec_imx6q_info, },
198 { .compatible = "fsl,mvf600-fec", .data = &fec_mvf600_info, },
199 { .compatible = "fsl,imx6sx-fec", .data = &fec_imx6sx_info, },
[all …]
H A Ducc_geth.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (C) 2006-2009 Freescale Semicondutor, Inc. All rights reserved.
26 #include <linux/dma-mapping.h>
63 #define UGETH_MSG_DEFAULT (NETIF_MSG_IFUP << 1 ) - 1
70 } debug = { -1 };
103 /* adjusted at startup if max-speed 1000 */
215 struct list_head *node = lh->next; in dequeue()
230 skb = netdev_alloc_skb(ugeth->ndev, in get_new_skb()
231 ugeth->ug_info->uf_info.max_rx_buf_length + in get_new_skb()
240 UCC_GETH_RX_DATA_BUF_ALIGNMENT - in get_new_skb()
[all …]
/linux/drivers/net/ethernet/emulex/benet/
H A Dbe_main.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2005 - 2016 Broadcom
7 * linux-drivers@emulex.com
38 /* Per-module error detection/recovery workq shared across all functions.
146 struct be_dma_mem *mem = &q->dma_mem; in be_queue_free()
148 if (mem->va) { in be_queue_free()
149 dma_free_coherent(&adapter->pdev->dev, mem->size, mem->va, in be_queue_free()
150 mem->dma); in be_queue_free()
151 mem->va = NULL; in be_queue_free()
158 struct be_dma_mem *mem = &q->dma_mem; in be_queue_alloc()
[all …]
H A 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/drivers/bluetooth/
H A Dbtintel_pcie.c1 // SPDX-License-Identifier: GPL-2.0-or-later
43 /* Scorpious, Panther Lake-H484 */
45 /* Scorpious, Panther Lake-H404 */
106 * @ver: For Driver-FW compatibility
108 * @num_buf: Num of allocated debug bufs
159 data->dbgc.count = BTINTEL_PCIE_DBGC_BUFFER_COUNT; in btintel_pcie_setup_dbgc()
160 data->dbgc.bufs = devm_kcalloc(&data->pdev->dev, data->dbgc.count, in btintel_pcie_setup_dbgc()
162 if (!data->dbgc.bufs) in btintel_pcie_setup_dbgc()
163 return -ENOMEM; in btintel_pcie_setup_dbgc()
165 data->dbgc.buf_v_addr = dmam_alloc_coherent(&data->pdev->dev, in btintel_pcie_setup_dbgc()
[all …]
/linux/drivers/net/
H A Dtap.c1 // SPDX-License-Identifier: GPL-2.0-only
61 return rcu_dereference(dev->rx_handler_data); in tap_dev_get_rcu()
71 * through sock_hold(&q->sk). When the macvlan_dev goes away first,
72 * q->vlan becomes inaccessible. When the files gets closed,
84 int err = -EINVAL; in tap_enable_queue()
88 if (q->enabled) in tap_enable_queue()
92 rcu_assign_pointer(tap->taps[tap->numvtaps], q); in tap_enable_queue()
93 q->queue_index = tap->numvtaps; in tap_enable_queue()
94 q->enabled = true; in tap_enable_queue()
96 tap->numvtaps++; in tap_enable_queue()
[all …]
/linux/drivers/net/usb/
H A 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 /*-------------------------------------------------------------------------*/
65 static int msg_level = -1;
69 /*-------------------------------------------------------------------------*/
[all …]
/linux/drivers/net/ethernet/chelsio/cxgb4vf/
H A 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/drivers/net/ethernet/marvell/mvpp2/
H A 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 */
490 /* Per-port XGMAC registers. PPv2.2 and PPv2.3, only for GOP port 0,
491 * relative to port->base.
527 /* SMI registers. PPv2.2 and PPv2.3, relative to priv->iface_base. */
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dxdp.c14 * - Redistributions of source code must retain the above
18 * - Redistributions in binary form must reproduce the above
49 * max_mtu = PAGE_SIZE - S - hr - hard_mtu (2) in mlx5e_xdp_max_mtu()
51 * SKB_DATA_ALIGN(PAGE_SIZE - S) + S, which is equal to PAGE_SIZE, in mlx5e_xdp_max_mtu()
64 struct page *page = virt_to_page(xdp->data); in mlx5e_xmit_xdp_buff()
76 xdptxd->data = xdpf->data; in mlx5e_xmit_xdp_buff()
77 xdptxd->len = xdpf->len; in mlx5e_xmit_xdp_buff()
78 xdptxd->has_frags = xdp_frame_has_frags(xdpf); in mlx5e_xmit_xdp_buff()
80 if (xdp->rxq->mem.type == MEM_TYPE_XSK_BUFF_POOL) { in mlx5e_xmit_xdp_buff()
91 __set_bit(MLX5E_RQ_FLAG_XDP_XMIT, rq->flags); /* non-atomic */ in mlx5e_xmit_xdp_buff()
[all …]

123