| /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 120 struct hisi_femac_queue txq; 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 120 struct hisi_femac_queue txq; 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-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 …]
|
| /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 …]
|
| /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) */ 15 TP_PROTO(const struct funeth_txq *txq, 20 TP_ARGS(txq, len, sqe_idx, ngle), 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", [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/marvell/ |
| D | mvneta.c | 7 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 135 #define MVNETA_CPU_TXQ_ACCESS(txq) BIT(txq + 8) argument 149 /* bits 0..7 = TXQ SENT, 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) 377 (((rxd)->status & MVNETA_RXD_BM_POOL_MASK) >> MVNETA_RXD_BM_POOL_SHIFT) 486 /* Pointer to the CPU-local NAPI struct */ [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) 179 #define IS_TSO_HEADER(txq, addr) \ 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/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-5.10/drivers/net/ethernet/marvell/ |
| D | mvneta.c | 7 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 130 #define MVNETA_CPU_TXQ_ACCESS(txq) BIT(txq + 8) argument 144 /* bits 0..7 = TXQ SENT, 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) 335 #define IS_TSO_HEADER(txq, addr) \ argument 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) 178 #define IS_TSO_HEADER(txq, addr) \ argument [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/atheros/alx/ |
| D | main.c | 53 static void alx_free_txbuf(struct alx_tx_queue *txq, int entry) in alx_free_txbuf() argument 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() 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() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/atheros/alx/ |
| D | main.c | 54 static void alx_free_txbuf(struct alx_tx_queue *txq, int entry) in alx_free_txbuf() argument 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() 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() [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/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/mellanox/mlx5/core/en/ |
| D | reporter_tx.c | 1 /* SPDX-License-Identifier: GPL-2.0 */ 12 if (sq->cc == sq->pc) in mlx5e_wait_for_sq_flush() 18 netdev_err(sq->channel->netdev, in mlx5e_wait_for_sq_flush() 20 sq->sqn, sq->cc, sq->pc); in mlx5e_wait_for_sq_flush() 22 return -ETIMEDOUT; in mlx5e_wait_for_sq_flush() 27 WARN_ONCE(sq->cc != sq->pc, in mlx5e_reset_txqsq_cc_pc() 29 sq->sqn, sq->cc, sq->pc); in mlx5e_reset_txqsq_cc_pc() 30 sq->cc = 0; in mlx5e_reset_txqsq_cc_pc() 31 sq->dma_fifo_cc = 0; in mlx5e_reset_txqsq_cc_pc() 32 sq->pc = 0; in mlx5e_reset_txqsq_cc_pc() [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); 241 static inline void cudbg_fill_qdesc_txq(const struct sge_txq *txq, in cudbg_fill_qdesc_txq() argument 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() 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); 241 static inline void cudbg_fill_qdesc_txq(const struct sge_txq *txq, in cudbg_fill_qdesc_txq() argument 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() 257 entry->qtype = type; in cudbg_fill_qdesc_rxq() [all …]
|
| /kernel/linux/linux-5.10/drivers/bluetooth/ |
| D | hci_ag6xx.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 24 struct sk_buff_head txq; member 41 return -ENOMEM; in ag6xx_open() 43 skb_queue_head_init(&ag6xx->txq); in ag6xx_open() 45 hu->priv = ag6xx; in ag6xx_open() 51 struct ag6xx_data *ag6xx = hu->priv; in ag6xx_close() 55 skb_queue_purge(&ag6xx->txq); in ag6xx_close() 56 kfree_skb(ag6xx->rx_skb); in ag6xx_close() 59 hu->priv = NULL; in ag6xx_close() 65 struct ag6xx_data *ag6xx = hu->priv; in ag6xx_flush() [all …]
|
| /kernel/linux/linux-6.6/drivers/bluetooth/ |
| D | hci_ag6xx.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 24 struct sk_buff_head txq; member 41 return -ENOMEM; in ag6xx_open() 43 skb_queue_head_init(&ag6xx->txq); in ag6xx_open() 45 hu->priv = ag6xx; in ag6xx_open() 51 struct ag6xx_data *ag6xx = hu->priv; in ag6xx_close() 55 skb_queue_purge(&ag6xx->txq); in ag6xx_close() 56 kfree_skb(ag6xx->rx_skb); in ag6xx_close() 59 hu->priv = NULL; in ag6xx_close() 65 struct ag6xx_data *ag6xx = hu->priv; in ag6xx_flush() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/wireless/ath/ath6kl/ |
| D | htc_pipe.c | 2 * Copyright (c) 2007-2011 Atheros Communications Inc. 19 #include "hif-ops.h" 31 if (packet->info.tx.flags & HTC_FLAGS_TX_FIXUP_NETBUF) { in restore_tx_packet() 32 skb_pull(packet->skb, sizeof(struct htc_frame_hdr)); in restore_tx_packet() 33 packet->info.tx.flags &= ~HTC_FLAGS_TX_FIXUP_NETBUF; in restore_tx_packet() 47 if (ep->ep_cb.tx_comp_multi != NULL) { in do_send_completion() 50 __func__, ep->eid, in do_send_completion() 56 ep->ep_cb.tx_comp_multi(ep->target, queue_to_indicate); in do_send_completion() 68 list_del(&packet->list); in do_send_completion() 71 __func__, ep->eid, packet); in do_send_completion() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/wireless/ath/ath6kl/ |
| D | htc_pipe.c | 2 * Copyright (c) 2007-2011 Atheros Communications Inc. 19 #include "hif-ops.h" 31 if (packet->info.tx.flags & HTC_FLAGS_TX_FIXUP_NETBUF) { in restore_tx_packet() 32 skb_pull(packet->skb, sizeof(struct htc_frame_hdr)); in restore_tx_packet() 33 packet->info.tx.flags &= ~HTC_FLAGS_TX_FIXUP_NETBUF; in restore_tx_packet() 47 if (ep->ep_cb.tx_comp_multi != NULL) { in do_send_completion() 50 __func__, ep->eid, in do_send_completion() 56 ep->ep_cb.tx_comp_multi(ep->target, queue_to_indicate); in do_send_completion() 68 list_del(&packet->list); in do_send_completion() 71 __func__, ep->eid, packet); in do_send_completion() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtw88/ |
| D | tx.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 2 /* Copyright(c) 2018-2019 Realtek Corporation 18 hdr = (struct ieee80211_hdr *)skb->data; in rtw_tx_stats() 20 if (!ieee80211_is_data(hdr->frame_control)) in rtw_tx_stats() 23 if (!is_broadcast_ether_addr(hdr->addr1) && in rtw_tx_stats() 24 !is_multicast_ether_addr(hdr->addr1)) { in rtw_tx_stats() 25 rtwdev->stats.tx_unicast += skb->len; in rtw_tx_stats() 26 rtwdev->stats.tx_cnt++; in rtw_tx_stats() 28 rtwvif = (struct rtw_vif *)vif->drv_priv; in rtw_tx_stats() 29 rtwvif->stats.tx_unicast += skb->len; in rtw_tx_stats() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/emulex/benet/ |
| D | be_main.c | 1 // 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 …]
|