Home
last modified time | relevance | path

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

123

/linux/drivers/net/ethernet/marvell/
H A 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
300 (((index) < (q)->last_desc) ? ((index) + 1) : 0)
378 #define MVNETA_MAX_RX_BUF_SIZE (PAGE_SIZE - MVNETA_SKB_PAD)
[all …]
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/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
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/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/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 …]
/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 …]
H A Ddebug.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved.
8 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
19 memset(&il->tx_stats, 0, sizeof(struct traffic_stats)); in il_clear_traffic_stats()
20 memset(&il->rx_stats, 0, sizeof(struct traffic_stats)); in il_clear_traffic_stats()
33 stats = &il->tx_stats; in il_update_stats()
35 stats = &il->rx_stats; in il_update_stats()
40 stats->mgmt[MANAGEMENT_ASSOC_REQ]++; in il_update_stats()
43 stats->mgmt[MANAGEMENT_ASSOC_RESP]++; in il_update_stats()
46 stats->mgmt[MANAGEMENT_REASSOC_REQ]++; in il_update_stats()
[all …]
/linux/drivers/net/ethernet/microsoft/mana/
H A Dmana_en.c1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
37 struct gdma_queue *gdma_q = filp->private_data; in mana_dbg_q_read()
39 return simple_read_from_buffer(buf, count, pos, gdma_q->queue_mem_ptr, in mana_dbg_q_read()
40 gdma_q->queue_size); in mana_dbg_q_read()
60 apc->port_is_up = true; in mana_open()
75 if (!apc->port_is_up) in mana_close()
88 if (skb->protocol == htons(ETH_P_IP)) { in mana_checksum_info()
91 if (ip->protocol == IPPROTO_TCP) in mana_checksum_info()
94 if (ip->protocol == IPPROTO_UDP) in mana_checksum_info()
96 } else if (skb->protocol == htons(ETH_P_IPV6)) { in mana_checksum_info()
[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_imx6x_info, },
[all …]
H A Dgianfar.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * This driver is designed for the non-CPM ethernet controllers
13 * Copyright 2002-2009, 2011-2013 Freescale Semiconductor, Inc.
20 * B-V +1.62
25 * is therefore conveyed through an OF-style device tree.
45 * pre-allocated skb, and so after the skb is passed up to the
93 #include <linux/dma-mapping.h>
114 bdp->bufPtr = cpu_to_be32(buf); in gfar_init_rxbdp()
117 if (bdp == rx_queue->rx_bd_base + rx_queue->rx_ring_size - 1) in gfar_init_rxbdp()
122 bdp->lstatus = cpu_to_be32(lstatus); in gfar_init_rxbdp()
[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/net/ethernet/intel/idpf/
H A Didpf_txrx.c1 // SPDX-License-Identifier: GPL-2.0-only
15 #define idpf_tx_buf_compl_tag(buf) (*(u32 *)&(buf)->priv)
22 * idpf_buf_lifo_push - push a buffer pointer onto stack
31 if (unlikely(stack->top == stack->size)) in idpf_buf_lifo_push()
32 return -ENOSPC; in idpf_buf_lifo_push()
34 stack->bufs[stack->top++] = buf; in idpf_buf_lifo_push()
40 * idpf_buf_lifo_pop - pop a buffer pointer from stack
45 if (unlikely(!stack->top)) in idpf_buf_lifo_pop()
48 return stack->bufs[--stack->top]; in idpf_buf_lifo_pop()
52 * idpf_tx_timeout - Respond to a Tx Hang
[all …]
H A Didpf_virtchnl.c1 // SPDX-License-Identifier: GPL-2.0-only
16 * enum idpf_vc_xn_state - Virtchnl transaction status
43 * struct idpf_vc_xn - Data structure representing virtchnl transactions
52 * to. May be 0-length (then NULL address permitted) if the reply data
72 * struct idpf_vc_xn_params - Parameters for executing transaction
92 * struct idpf_vc_xn_manager - Manager for tracking transactions
106 * idpf_vid_to_vport - Translate vport id to vport pointer
119 if (adapter->vport_ids[i] == v_id) in idpf_vid_to_vport()
120 return adapter->vports[i]; in idpf_vid_to_vport()
126 * idpf_handle_event_link - Handle link event message
[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/net/xdp/
H A Dxsk.c1 // SPDX-License-Identifier: GPL-2.0
40 if (pool->cached_need_wakeup & XDP_WAKEUP_RX) in xsk_set_rx_need_wakeup()
43 pool->fq->ring->flags |= XDP_RING_NEED_WAKEUP; in xsk_set_rx_need_wakeup()
44 pool->cached_need_wakeup |= XDP_WAKEUP_RX; in xsk_set_rx_need_wakeup()
52 if (pool->cached_need_wakeup & XDP_WAKEUP_TX) in xsk_set_tx_need_wakeup()
56 list_for_each_entry_rcu(xs, &pool->xsk_tx_list, tx_list) { in xsk_set_tx_need_wakeup()
57 xs->tx->ring->flags |= XDP_RING_NEED_WAKEUP; in xsk_set_tx_need_wakeup()
61 pool->cached_need_wakeup |= XDP_WAKEUP_TX; in xsk_set_tx_need_wakeup()
67 if (!(pool->cached_need_wakeup & XDP_WAKEUP_RX)) in xsk_clear_rx_need_wakeup()
70 pool->fq->ring->flags &= ~XDP_RING_NEED_WAKEUP; in xsk_clear_rx_need_wakeup()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Drx_res.c1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB
40 bool multi_vhca = res->features & MLX5E_RX_RES_FEATURE_MULTI_VHCA; in get_vhca_ids()
42 return multi_vhca ? res->rss_vhca_ids + offset : NULL; in get_vhca_ids()
50 if (res->rss[i]) in mlx5e_rx_res_rss_update_num_channels()
51 mlx5e_rss_params_indir_modify_actual_size(res->rss[i], nch); in mlx5e_rx_res_rss_update_num_channels()
58 bool inner_ft_support = res->features & MLX5E_RX_RES_FEATURE_INNER_FT; in mlx5e_rx_res_rss_init_def()
61 if (WARN_ON(res->rss[0])) in mlx5e_rx_res_rss_init_def()
62 return -EINVAL; in mlx5e_rx_res_rss_init_def()
64 rss = mlx5e_rss_init(res->mdev, inner_ft_support, res->drop_rqn, in mlx5e_rx_res_rss_init_def()
65 &res->pkt_merge_param, MLX5E_RSS_INIT_TIRS, init_nch, res->max_nch); in mlx5e_rx_res_rss_init_def()
[all …]
/linux/drivers/net/ethernet/atheros/atl1c/
H A Datl1c_main.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright(c) 2008 - 2009 Atheros Corporation. All rights reserved.
6 * Copyright(c) 1999 - 2005 Intel Corporation. All rights reserved.
14 * atl1c_pci_tbl - PCI Device ID Table
98 if (hw->nic_type == athr_l1c || hw->nic_type == athr_l2c) { in atl1c_pcie_patch()
108 if (hw->nic_type == athr_l2c_b && hw->revision_id == L2CB_V10) { in atl1c_pcie_patch()
121 if (hw->nic_type == athr_l2c_b || hw->nic_type == athr_l1d) { in atl1c_pcie_patch()
133 * atl1c_init_pcie - init PCIE module
139 struct pci_dev *pdev = hw->adapter->pdev; in atl1c_reset_pcie()
153 /* wol sts read-clear */ in atl1c_reset_pcie()
[all …]
/linux/drivers/net/wireless/ath/ath6kl/
H A Dhtc_mbox.c2 * Copyright (c) 2007-2011 Atheros Communications Inc.
3 * Copyright (c) 2011-2012 Qualcomm Atheros, Inc.
21 #include "hif-ops.h"
26 #define CALC_TXRX_PADDED_LEN(dev, len) (__ALIGN_MASK((len), (dev)->block_mask))
36 /* threshold to re-enable Tx bundling for an AC*/
45 ep_dist->endpoint, credits); in ath6kl_credit_deposit()
47 ep_dist->credits += credits; in ath6kl_credit_deposit()
48 ep_dist->cred_assngd += credits; in ath6kl_credit_deposit()
49 cred_info->cur_free_credits -= credits; in ath6kl_credit_deposit()
61 cred_info->cur_free_credits = tot_credits; in ath6kl_credit_init()
[all …]
/linux/drivers/net/
H A Dvirtio_net.c1 // SPDX-License-Identifier: GPL-2.0-or-later
50 * at once, the weight is chosen so that the EWMA will be insensitive to short-
113 #define VIRTNET_SQ_STAT(name, m) {name, offsetof(struct virtnet_sq_stats, m), -1}
114 #define VIRTNET_RQ_STAT(name, m) {name, offsetof(struct virtnet_rq_stats, m), -1}
159 {#name, offsetof(struct virtio_net_stats_cvq, name), -1}
162 {#name, offsetof(struct virtio_net_stats_rx_ ## class, rx_ ## name), -1}
165 {#name, offsetof(struct virtio_net_stats_tx_ ## class, tx_ ## name), -1}
357 /* xdp rxq used by xsk */
517 static void virtnet_xsk_completed(struct send_queue *sq, int num);
529 rss->indirection_table = NULL; in rss_indirection_table_alloc()
[all …]
/linux/drivers/net/wireless/mediatek/mt7601u/
H A Dinit.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * (c) Copyright 2002-2010, Ralink Technology, Inc.
36 set_bit(MT7601U_STATE_WLAN_RUNNING, &dev->state); in mt7601u_set_wlan_state()
38 clear_bit(MT7601U_STATE_WLAN_RUNNING, &dev->state); in mt7601u_set_wlan_state()
42 for (i = 200; i; i--) { in mt7601u_set_wlan_state()
56 dev_err(dev->dev, "Error: PLL and XTAL check failed!\n"); in mt7601u_set_wlan_state()
63 mutex_lock(&dev->hw_atomic_mutex); in mt7601u_chip_onoff()
87 mutex_unlock(&dev->hw_atomic_mutex); in mt7601u_chip_onoff()
108 if (dev->in_max_packet == 512) in mt7601u_init_usb_dma()
143 u16 addr = dev->beacon_offsets[i]; in mt76_init_beacon_offsets()
[all …]

123