| /kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/ |
| D | hisi_femac.c | 1 // 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 …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/hisilicon/ |
| D | hisi_femac.c | 1 // 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 …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/fungible/funeth/ |
| D | funeth_trace.h | 1 /* 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 …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/marvell/ |
| D | mvneta.c | 7 * 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) 374 #define MVNETA_MAX_RX_BUF_SIZE (PAGE_SIZE - MVNETA_SKB_PAD) [all …]
|
| D | mv643xx_eth.c | 1 // 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 …]
|
| /kernel/linux/linux-6.6/drivers/vhost/ |
| D | net.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * virtio-net server in host kernel. 41 " 1 -Enable; 0 - Disable"); 127 struct vhost_net_buf rxq; member 152 static void *vhost_net_buf_get_ptr(struct vhost_net_buf *rxq) in vhost_net_buf_get_ptr() argument 154 if (rxq->tail != rxq->head) in vhost_net_buf_get_ptr() 155 return rxq->queue[rxq->head]; in vhost_net_buf_get_ptr() 160 static int vhost_net_buf_get_size(struct vhost_net_buf *rxq) in vhost_net_buf_get_size() argument 162 return rxq->tail - rxq->head; in vhost_net_buf_get_size() 165 static int vhost_net_buf_is_empty(struct vhost_net_buf *rxq) in vhost_net_buf_is_empty() argument [all …]
|
| /kernel/linux/linux-5.10/drivers/vhost/ |
| D | net.c | 1 // 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 …]
|
| /kernel/linux/linux-5.10/drivers/vdpa/vdpa_sim/ |
| D | vdpa_sim.c | 1 // SPDX-License-Identifier: GPL-2.0-only 21 #include <linux/dma-map-ops.h> 39 MODULE_PARM_DESC(batch_mapping, "Batched mapping 1 -Enable; 0 - Disable"); 55 u32 num; member 65 #define VDPASIM_NAME "vdpasim-netdev" 99 /* TODO: cross-endian support */ 103 (vdpasim->features & (1ULL << VIRTIO_F_VERSION_1)); in vdpasim_is_little_endian() 132 struct vdpasim_virtqueue *vq = &vdpasim->vqs[idx]; in vdpasim_queue_ready() 134 vringh_init_iotlb(&vq->vring, vdpasim_features, in vdpasim_queue_ready() 136 (struct vring_desc *)(uintptr_t)vq->desc_addr, in vdpasim_queue_ready() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/marvell/ |
| D | mvneta.c | 7 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 129 #define MVNETA_CPU_RXQ_ACCESS(rxq) BIT(rxq) argument 145 * bits 8..15 = RXQ OCCUP, one bit per queue. 146 * bits 16..23 = RXQ FREE, one bit per queue. 151 #define MVNETA_TX_INTR_MASK(nr_txqs) (((1 << nr_txqs) - 1) << 0) 153 #define MVNETA_RX_INTR_MASK(nr_rxqs) (((1 << nr_rxqs) - 1) << 8) 264 (((index) < (q)->last_desc) ? ((index) + 1) : 0) 333 #define MVNETA_MAX_RX_BUF_SIZE (PAGE_SIZE - MVNETA_SKB_PAD) 336 ((addr >= txq->tso_hdrs_phys) && \ 337 (addr < txq->tso_hdrs_phys + txq->size * TSO_HEADER_SIZE)) [all …]
|
| D | mv643xx_eth.c | 1 // 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 …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/brocade/bna/ |
| D | bna_tx_rx.c | 1 // 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 …]
|
| D | bna_types.h | 1 /* 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 …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/brocade/bna/ |
| D | bna_tx_rx.c | 1 // 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 …]
|
| D | bna_types.h | 1 /* 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 …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/marvell/mvpp2/ |
| D | mvpp2_main.c | 1 // 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() 95 mvpp2_create_page_pool(struct device *dev, int num, int len, in mvpp2_create_page_pool() argument 101 .pool_size = num, in mvpp2_create_page_pool() 114 * - per-thread registers, where each thread has its own copy of the 130 * - global registers that must be accessed through a specific thread 131 * window, because they are related to an access to a per-thread [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/atheros/alx/ |
| D | main.c | 55 struct alx_buffer *txb = &txq->bufs[entry]; in alx_free_txbuf() 58 dma_unmap_single(txq->dev, in alx_free_txbuf() 65 if (txb->skb) { in alx_free_txbuf() 66 dev_kfree_skb_any(txb->skb); in alx_free_txbuf() 67 txb->skb = NULL; in alx_free_txbuf() 73 struct alx_rx_queue *rxq = alx->qnapi[0]->rxq; in alx_refill_rx_ring() local 79 next = cur = rxq->write_idx; in alx_refill_rx_ring() 80 if (++next == alx->rx_ringsz) in alx_refill_rx_ring() 82 cur_buf = &rxq->bufs[cur]; in alx_refill_rx_ring() 84 while (!cur_buf->skb && next != rxq->read_idx) { in alx_refill_rx_ring() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/atheros/alx/ |
| D | main.c | 56 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 …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/marvell/mvpp2/ |
| D | mvpp2_main.c | 1 // 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 …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4/ |
| D | cudbg_lib.h | 1 /* 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 …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/cxgb4/ |
| D | cudbg_lib.h | 1 /* 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 …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/net/ |
| D | brcm,systemport.txt | 4 - compatible: should be one of: 5 "brcm,systemport-v1.00" 6 "brcm,systemportlite-v1.00" or 8 - reg: address and length of the register set for the device. 9 - interrupts: interrupts for the device, first cell must be for the rx 11 optional third interrupt cell for Wake-on-LAN can be specified 12 - local-mac-address: Ethernet MAC address (48 bits) of this adapter 13 - phy-mode: Should be a string describing the PHY interface to the 15 - fixed-link: see Documentation/devicetree/bindings/net/fixed-link.txt for 19 - systemport,num-tier2-arb: number of tier 2 arbiters, an integer [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/net/ |
| D | brcm,systemport.yaml | 1 # 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 …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qede/ |
| D | qede_fp.c | 1 // 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. 26 int qede_alloc_rx_buffer(struct qede_rx_queue *rxq, bool allow_lazy) in qede_alloc_rx_buffer() argument 33 /* In case lazy-allocation is allowed, postpone allocation until the in qede_alloc_rx_buffer() 37 if (allow_lazy && likely(rxq->filled_buffers > 12)) { in qede_alloc_rx_buffer() 38 rxq->filled_buffers--; in qede_alloc_rx_buffer() 44 return -ENOMEM; in qede_alloc_rx_buffer() 49 mapping = dma_map_page(rxq->dev, data, 0, in qede_alloc_rx_buffer() 50 PAGE_SIZE, rxq->data_direction); in qede_alloc_rx_buffer() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/qlogic/qede/ |
| D | qede_fp.c | 1 // 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 …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/microsoft/mana/ |
| D | mana_en.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 44 apc->port_is_up = true; in mana_open() 59 if (!apc->port_is_up) in mana_close() 72 if (skb->protocol == htons(ETH_P_IP)) { in mana_checksum_info() 75 if (ip->protocol == IPPROTO_TCP) in mana_checksum_info() 78 if (ip->protocol == IPPROTO_UDP) in mana_checksum_info() 80 } else if (skb->protocol == htons(ETH_P_IPV6)) { in mana_checksum_info() 83 if (ip6->nexthdr == IPPROTO_TCP) in mana_checksum_info() 86 if (ip6->nexthdr == IPPROTO_UDP) in mana_checksum_info() 97 ash->dma_handle[sg_i] = da; in mana_add_sge() [all …]
|