Home
last modified time | relevance | path

Searched +full:rx +full:- +full:stash +full:- +full:len (Results 1 – 11 of 11) sorted by relevance

/linux/drivers/net/ethernet/intel/libeth/
H A Dxdp.c1 // SPDX-License-Identifier: GPL-2.0-only
22 spin_lock_init(&lock->lock); in __libeth_xdpsq_get()
23 lock->share = true; in __libeth_xdpsq_get()
41 lock->share = false; in __libeth_xdpsq_put()
45 void __acquires(&lock->lock)
48 spin_lock(&lock->lock); in __libeth_xdpsq_lock()
52 void __releases(&lock->lock)
55 spin_unlock(&lock->lock); in __libeth_xdpsq_unlock()
59 /* XDPSQ clean-up timers */
62 * libeth_xdpsq_init_timer - initialize an XDPSQ clean-up timer
[all …]
/linux/Documentation/devicetree/bindings/net/
H A Dfsl,gianfar.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Freescale Three-Speed Ethernet Controller (TSEC), "Gianfar"
10 - J. Neuschäfer <j.ne@posteo.net>
12 # This is needed to distinguish gianfar.yaml and gianfar-mdio.yaml, because
16 - properties:
23 - device_type
25 - properties:
30 - compatible
[all …]
/linux/include/net/libeth/
H A Dxdp.h1 /* SPDX-License-Identifier: GPL-2.0-only */
10 #include <net/libeth/rx.h>
15 * Defined as bits to be able to use them as a mask on Rx.
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-t
352 u32 len; global() member
447 u32 len; global() member
1217 libeth_xdp_return_stash(struct libeth_xdp_buff_stash * stash) libeth_xdp_return_stash() argument
1281 libeth_xdp_prepare_buff(struct libeth_xdp_buff * xdp,const struct libeth_fqe * fqe,u32 len) libeth_xdp_prepare_buff() argument
1314 libeth_xdp_process_buff(struct libeth_xdp_buff * xdp,const struct libeth_fqe * fqe,u32 len) libeth_xdp_process_buff() argument
[all...]
/linux/drivers/net/wireless/marvell/mwifiex/
H A Dsta_rx.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * NXP Wireless LAN device driver: station RX data handling
5 * Copyright 2011-2020 NXP
31 eth = (struct ethhdr *)skb->data; in mwifiex_discard_gratuitous_arp()
32 switch (ntohs(eth->h_proto)) { in mwifiex_discard_gratuitous_arp()
34 arp = (void *)(skb->data + sizeof(struct ethhdr)); in mwifiex_discard_gratuitous_arp()
35 if (arp->hdr.ar_op == htons(ARPOP_REPLY) || in mwifiex_discard_gratuitous_arp()
36 arp->hdr.ar_op == htons(ARPOP_REQUEST)) { in mwifiex_discard_gratuitous_arp()
37 if (!memcmp(arp->ar_sip, arp->ar_tip, 4)) in mwifiex_discard_gratuitous_arp()
42 ipv6 = (void *)(skb->data + sizeof(struct ethhdr)); in mwifiex_discard_gratuitous_arp()
[all …]
/linux/drivers/usb/gadget/
H A Dcomposite.c1 // SPDX-License-Identifier: GPL-2.0+
3 * composite.c - infrastructure for Composite USB Gadgets
5 * Copyright (C) 2006-2008 David Brownell
27 * struct usb_os_string - represents OS String to be reported by a gadget
46 * with the relevant device-wide data.
52 return (struct usb_gadget_strings **)uc->stash; in get_containers_gs()
56 * function_descriptors() - get function descriptors for speed
75 descriptors = f->ssp_descriptors; in function_descriptors()
80 descriptors = f->ss_descriptors; in function_descriptors()
85 descriptors = f->hs_descriptors; in function_descriptors()
[all …]
/linux/drivers/net/ethernet/freescale/
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>
115 bdp->bufPtr = cpu_to_be32(buf); in gfar_init_rxbdp()
118 if (bdp == rx_queue->rx_bd_base + rx_queue->rx_ring_size - 1) in gfar_init_rxbdp()
123 bdp->lstatus = cpu_to_be32(lstatus); in gfar_init_rxbdp()
[all …]
/linux/net/rds/
H A Drecv.c14 * - Redistributions of source code must retain the above
18 * - Redistributions in binary form must reproduce the above
47 refcount_set(&inc->i_refcount, 1); in rds_inc_init()
48 INIT_LIST_HEAD(&inc->i_item); in rds_inc_init()
49 inc->i_conn = conn; in rds_inc_init()
50 inc->i_saddr = *saddr; in rds_inc_init()
51 inc->i_usercopy.rdma_cookie = 0; in rds_inc_init()
52 inc->i_usercopy.rx_tstamp = ktime_set(0, 0); in rds_inc_init()
54 memset(inc->i_rx_lat_trace, 0, sizeof(inc->i_rx_lat_trac in rds_inc_init()
169 unsigned int pos = 0, type, len; rds_recv_incoming_exthdrs() local
202 unsigned int pos = 0, type, len; rds_recv_hs_exthdrs() local
[all...]
/linux/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_main.c1 // SPDX-License-Identifier: GPL-2.0-only
3 This is the driver for the ST MAC 10/100/1000 on-chip Ethernet controllers.
6 Copyright(C) 2007-2011 STMicroelectronics Ltd
29 #include <linux/dma-mapping.h>
57 * with fine resolution and binary rollover. This avoid non-monotonic behavior
64 #define TSO_MAX_BUFF_SIZE (SZ_16K - 1)
72 static int debug = -1;
74 MODULE_PARM_DESC(debug, "Message Level (-1: default, 0: no output, 16: all)");
76 static int phyaddr = -1;
80 #define STMMAC_TX_THRESH(x) ((x)->dma_conf.dma_tx_size / 4)
[all …]
/linux/drivers/net/ethernet/netronome/nfp/
H A Dnfp_net_common.c1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 /* Copyright (C) 2015-2019 Netronome Systems, Inc. */
59 * nfp_net_get_fw_version() - Read and parse the FW version
74 queue &= dev_info->qc_idx_mask; in nfp_qcp_queue_offset()
75 return dev_info->qc_addr_offset + NFP_QCP_QUEUE_ADDR_SZ * queue; in nfp_qcp_queue_offset()
80 * Firmware reconfig may take a while so we have two versions of it -
89 nfp_qcp_wr_ptr_add(nn->qcp_cfg, 1); in nfp_net_reconfig_start()
90 nn->reconfig_in_progress_update = update; in nfp_net_reconfig_start()
96 update |= nn->reconfig_posted; in nfp_net_reconfig_start_async()
97 nn->reconfig_posted = 0; in nfp_net_reconfig_start_async()
[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()
156 u16 len, u16 entry_size) in be_queue_alloc() argument
[all …]
/linux/drivers/net/ethernet/intel/idpf/
H A Didpf_lib.c1 // SPDX-License-Identifier: GPL-2.0-only
13 * idpf_init_vector_stack - Fill the MSIX vector stack with vector index
24 mutex_lock(&adapter->vector_lock); in idpf_init_vector_stack()
25 min_vec = adapter->num_msix_entries - adapter->num_avail_msix; in idpf_init_vector_stack()
26 stack = &adapter->vector_stack; in idpf_init_vector_stack()
27 stack->size = adapter->num_msix_entries; in idpf_init_vector_stack()
29 * distribute the unused vectors on-demand basis in idpf_init_vector_stack()
31 stack->base = min_vec; in idpf_init_vector_stack()
32 stack->top = min_vec; in idpf_init_vector_stack()
34 stack->vec_idx = kcalloc(stack->size, sizeof(u16), GFP_KERNEL); in idpf_init_vector_stack()
[all …]