| /linux/tools/testing/selftests/net/ |
| H A D | udpgro.sh | 2 # SPDX-License-Identifier: GPL-2.0 8 readonly PEER_NS="ns-peer-$(mktemp -u XXXXXX)" 13 if [ $ret -eq 0 ]; then 19 local -r jobs="$(jobs -p)" 20 local -r ns="$(ip netns list|grep $PEER_NS)" 22 [ -n "${jobs}" ] && kill -1 ${jobs} 2>/dev/null 23 [ -n "$ns" ] && ip netns del $ns 2>/dev/null 29 ip -netns "${PEER_NS}" link set lo up 36 ip -netns "${PEER_NS}" addr add dev veth1 192.168.1.1/24 37 ip -netns "${PEER_NS}" addr add dev veth1 2001:db8::1/64 nodad [all …]
|
| /linux/net/nfc/nci/ |
| H A D | spi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 12 #include <linux/crc-ccitt.h> 33 struct spi_message m; in __nci_spi_send() local 39 t.tx_buf = skb->data; in __nci_spi_send() 40 t.len = skb->len; in __nci_spi_send() 47 t.delay.value = nspi->xfer_udelay; in __nci_spi_send() 49 t.speed_hz = nspi->xfer_speed_hz; in __nci_spi_send() 51 spi_message_init(&m); in __nci_spi_send() 52 spi_message_add_tail(&t, &m); in __nci_spi_send() 54 return spi_sync(nspi->spi, &m); in __nci_spi_send() [all …]
|
| /linux/drivers/net/phy/ |
| H A D | linkmode.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * linkmode_resolve_pause - resolve the allowable pause modes 21 * 1 X 1 X TX+RX 22 * 1 1 0 1 RX 28 __ETHTOOL_DECLARE_LINK_MODE_MASK(m); in linkmode_resolve_pause() 30 linkmode_and(m, local_adv, partner_adv); in linkmode_resolve_pause() 31 if (linkmode_test_bit(ETHTOOL_LINK_MODE_Pause_BIT, m)) { in linkmode_resolve_pause() 34 } else if (linkmode_test_bit(ETHTOOL_LINK_MODE_Asym_Pause_BIT, m)) { in linkmode_resolve_pause() 47 * linkmode_set_pause - set the pause mode advertisement 50 * @rx: boolean from ethtool struct ethtool_pauseparam rx_pause member [all …]
|
| /linux/Documentation/devicetree/bindings/net/ |
| H A D | nvidia,tegra234-mgbe.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/net/nvidia,tegra234-mgbe.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Tegra234 MGBE Multi-Gigabit Ethernet Controller 10 - Thierry Reding <treding@nvidia.com> 11 - Jon Hunter <jonathanh@nvidia.com> 15 const: nvidia,tegra234-mgbe 20 reg-names: 22 - const: hypervisor [all …]
|
| /linux/net/tipc/ |
| H A D | crypto.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 58 * - CLUSTER_KEY: 59 * One single key is used for both TX & RX in all nodes in the cluster. 60 * - PER_NODE_KEY: 61 * Each nodes in the cluster has one TX key, for RX a node needs to know 77 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 78 * w0:|Ver=7| User |D|TX |RX |K|M|N| Rsvd | 79 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 82 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 85 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ [all …]
|
| /linux/drivers/net/ethernet/marvell/octeontx2/af/ |
| H A D | mbox.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 39 #define INTR_MASK(pfvfs) ((pfvfs < 64) ? (BIT_ULL(pfvfs) - 1) : (~0ull)) 76 u64 rx_start; /* Offset of Rx region in mbox memory */ 78 u16 rx_size; /* Size of Rx region */ 142 /* Generic mbox IDs (range 0x000 - 0x1FF) */ \ 143 M(READY, 0x001, ready, msg_req, ready_msg_rsp) \ 144 M(ATTACH_RESOURCES, 0x002, attach_resources, rsrc_attach, msg_rsp) \ 145 M(DETACH_RESOURCE 404 #define M(_name, _id, _1, _2, _3) MBOX_MS global() macro 1119 } rx; global() member 1418 } rx; global() member [all...] |
| /linux/Documentation/RCU/Design/Memory-Ordering/ |
| H A D | TreeRCU-gp.svg | 1 <?xml version="1.0" encoding="UTF-8" standalone="no"?> 2 <!-- Creator: fig2dev Version 3.2 Patchlevel 5e --> 4 <!-- CreationDate: Wed Dec 9 17:35:03 2015 --> 6 <!-- Magnification: 2.000 --> 11 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 14 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" 18 viewBox="-44 -44 21630.525 84996.019" 22 sodipodi:docname="TreeRCU-gp.svg"> 46 d="M 0,0 5,-5 -12.5,0 5,5 0,0 z" 47 style="fill-rule:evenodd;stroke:#000000;stroke-width:1pt" [all …]
|
| H A D | TreeRCU-gp-cleanup.svg | 1 <?xml version="1.0" encoding="UTF-8" standalone="no"?> 2 <!-- Creator: fig2dev Version 3.2 Patchlevel 5e --> 4 <!-- CreationDate: Wed Dec 9 17:35:03 2015 --> 6 <!-- Magnification: 2.000 --> 11 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 14 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" 18 viewBox="-44 -44 13645.583 16565.045" 22 sodipodi:docname="TreeRCU-gp-cleanup.svg"> 46 d="M 0,0 5,-5 -12.5,0 5,5 0,0 z" 47 style="fill-rule:evenodd;stroke:#000000;stroke-width:1pt" [all …]
|
| H A D | TreeRCU-gp-init-1.svg | 1 <?xml version="1.0" encoding="UTF-8" standalone="no"?> 2 <!-- Creator: fig2dev Version 3.2 Patchlevel 5e --> 4 <!-- CreationDate: Wed Dec 9 17:35:03 2015 --> 6 <!-- Magnification: 2.000 --> 11 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 14 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" 18 viewBox="-44 -44 13821.733 9008.3597" 22 sodipodi:docname="TreeRCU-gp-init-1.svg"> 46 d="M 0,0 5,-5 -12.5,0 5,5 0,0 z" 47 style="fill-rule:evenodd;stroke:#000000;stroke-width:1pt" [all …]
|
| H A D | TreeRCU-gp-init-2.svg | 1 <?xml version="1.0" encoding="UTF-8" standalone="no"?> 2 <!-- Creator: fig2dev Version 3.2 Patchlevel 5e --> 4 <!-- CreationDate: Wed Dec 9 17:35:03 2015 --> 6 <!-- Magnification: 2.000 --> 11 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 14 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" 18 viewBox="-44 -44 13802.928 8857.5401" 22 sodipodi:docname="TreeRCU-gp-init-2.svg"> 46 d="M 0,0 5,-5 -12.5,0 5,5 0,0 z" 47 style="fill-rule:evenodd;stroke:#000000;stroke-width:1pt" [all …]
|
| H A D | TreeRCU-qs.svg | 1 <?xml version="1.0" encoding="UTF-8" standalone="no"?> 2 <!-- Creator: fig2dev Version 3.2 Patchlevel 5e --> 4 <!-- CreationDate: Wed Dec 9 17:35:03 2015 --> 6 <!-- Magnification: 2.000 --> 11 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 14 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" 18 viewBox="-44 -44 13802.927 18253.333" 22 sodipodi:docname="TreeRCU-qs.svg"> 46 d="M 0,0 5,-5 -12.5,0 5,5 0,0 z" 47 style="fill-rule:evenodd;stroke:#000000;stroke-width:1pt" [all …]
|
| H A D | TreeRCU-gp-fqs.svg | 1 <?xml version="1.0" encoding="UTF-8" standalone="no"?> 2 <!-- Creator: fig2dev Version 3.2 Patchlevel 5e --> 4 <!-- CreationDate: Wed Dec 9 17:35:03 2015 --> 6 <!-- Magnification: 2.000 --> 11 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 14 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" 18 viewBox="-44 -44 21630.534 11207.028" 22 sodipodi:docname="TreeRCU-gp-fqs.svg"> 46 d="M 0,0 5,-5 -12.5,0 5,5 0,0 z" 47 style="fill-rule:evenodd;stroke:#000000;stroke-width:1pt" [all …]
|
| H A D | TreeRCU-gp-init-3.svg | 1 <?xml version="1.0" encoding="UTF-8" standalone="no"?> 2 <!-- Creator: fig2dev Version 3.2 Patchlevel 5e --> 4 <!-- CreationDate: Wed Dec 9 17:35:03 2015 --> 6 <!-- Magnification: 2.000 --> 11 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 14 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" 18 viewBox="-44 -44 13821.733 7897.9895" 22 sodipodi:docname="TreeRCU-gp-init-3.svg"> 46 d="M 0,0 5,-5 -12.5,0 5,5 0,0 z" 47 style="fill-rule:evenodd;stroke:#000000;stroke-width:1pt" [all …]
|
| /linux/drivers/net/ethernet/dec/tulip/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 7 bool "DEC - Tulip devices" 27 To compile this driver as a module, choose M here. The module will 55 To compile this driver as a module, choose M here. The module will 79 bool "Use RX polling (NAPI)" 86 If your estimated Rx load is 10kpps or more, or if the card will be 96 Use HW to reduce RX interrupts. Not strictly necessary since NAPI 97 reduces RX interrupts by itself. Interrupt mitigation reduces RX 114 the TX9882 chip on the Compex RL100-ATX board. 128 To compile this driver as a module, choose M here. The module will [all …]
|
| /linux/drivers/net/ethernet/tehuti/ |
| H A D | tehuti.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 9 * RX HW/SW interaction overview 11 * There are 2 types of RX communication channels between driver and NIC. 12 * 1) RX Free Fifo - RXF - holds descriptors of empty buffers to accept incoming 16 * 2) RX Data Fifo - RXD - holds descriptors of full buffers. This Fifo is 20 * pushes it into RXD Fifo and raises interrupt to indicate new RX data. 23 * One holds 1.5K packets and another - 26K packets. Depending on incoming 28 * RX SW Data Structures 30 * skb db - used to keep track of all skbs owned by SW and their dma addresses. 31 * For RX case, ownership lasts from allocating new empty skb for RXF until [all …]
|
| /linux/net/l2tp/ |
| H A D | l2tp_debugfs.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 46 if (pd->tunnel) in l2tp_dfs_next_tunnel() 47 l2tp_tunnel_put(pd->tunnel); in l2tp_dfs_next_tunnel() 49 pd->tunnel = l2tp_tunnel_get_next(pd->net, &pd->tke in l2tp_dfs_next_tunnel() 70 l2tp_dfs_seq_start(struct seq_file * m,loff_t * offs) l2tp_dfs_seq_start() argument 97 l2tp_dfs_seq_next(struct seq_file * m,void * v,loff_t * pos) l2tp_dfs_seq_next() argument 123 l2tp_dfs_seq_tunnel_show(struct seq_file * m,void * v) l2tp_dfs_seq_tunnel_show() argument 176 l2tp_dfs_seq_session_show(struct seq_file * m,void * v) l2tp_dfs_seq_session_show() argument 230 l2tp_dfs_seq_show(struct seq_file * m,void * v) l2tp_dfs_seq_show() argument [all...] |
| /linux/arch/arm/boot/dts/nxp/imx/ |
| H A D | imx6qdl-dhcom-drc02.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ 8 stdout-path = "serial0:115200n8"; 14 * pins SD3_DAT0 and SD3_DAT1 are muxed as can2 Tx and Rx. The signals for can2 15 * Tx and Rx are routed to the DHCOM UART1 rts/cts pins. Therefore the micro SD 26 * GPIO line, however the i.MX6 UART driver assumes RX happens 28 * line. Hence, the RX is always enabled here. 30 rs485-rx-en-hog { 31 gpio-hog; 33 line-name = "rs485-rx-en"; 34 output-low; [all …]
|
| /linux/drivers/net/wireless/realtek/rtw88/ |
| H A D | debug.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 2 /* Copyright(c) 2018-2019 Realtek Corporation 21 int (*cb_read)(struct seq_file *m, void *v); 107 static int rtw_debugfs_single_show(struct seq_file *m, void *v) in rtw_debugfs_single_show() argument 109 struct rtw_debugfs_priv *debugfs_priv = m->private; in rtw_debugfs_single_show() 111 return debugfs_priv->cb_read(m, v); in rtw_debugfs_single_show() 118 struct rtw_debugfs_priv *debugfs_priv = filp->private_data; in rtw_debugfs_common_write() 120 return debugfs_priv->cb_write(filp, buffer, count, loff); in rtw_debugfs_common_write() 127 struct seq_file *seqpriv = (struct seq_file *)filp->private_data; in rtw_debugfs_single_write() 128 struct rtw_debugfs_priv *debugfs_priv = seqpriv->private; in rtw_debugfs_single_write() [all …]
|
| /linux/net/atm/ |
| H A D | mpoa_proc.c | 1 // SPDX-License-Identifier: GPL-2.0 101 * FIXME: mpcs (and per-mpc lists) have no locking whatsoever. 104 static void *mpc_start(struct seq_file *m, loff_t *pos) in mpc_start() argument 109 if (!l--) in mpc_start() 111 for (mpc = mpcs; mpc; mpc = mpc->next) in mpc_start() 112 if (!l--) in mpc_start() 117 static void *mpc_next(struct seq_file *m, void *v, loff_t *pos) in mpc_next() argument 121 return v == SEQ_START_TOKEN ? mpcs : p->next; in mpc_next() 124 static void mpc_stop(struct seq_file *m, void *v) in mpc_stop() argument 129 * READING function - called when the /proc/atm/mpoa file is read from. [all …]
|
| /linux/sound/soc/atmel/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 23 Say Y or M if you want to add support for Atmel SSC interface 24 in PDC mode configured using audio-graph-card in device-tree. 32 Say Y or M if you want to add support for Atmel SSC interface 33 in DMA mode configured using audio-graph-card in device-tree. 36 tristate "SoC Audio support for WM8731-based At91sam9g20 evaluation board" 42 Say Y if you want to add support for SoC audio on WM8731-based 56 tristate "SoC Audio support for WM8731-based at91sam9x5 board" 84 tristate "ASoC driver for the Axentia TSE-850" 91 Axentia TSE-850 with a PCM5142 codec. [all …]
|
| /linux/drivers/spi/ |
| H A D | spi-fsl-espi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 64 #define SPIE_RXT BIT(13) /* RX FIFO threshold */ 65 #define SPIE_RXF BIT(12) /* RX FIFO full */ 67 #define SPIE_RNE BIT(9) /* RX FIFO not empty */ 73 #define SPIM_RXT BIT(13) /* RX FIFO threshold */ 74 #define SPIM_RXF BIT(12) /* RX FIFO full */ 76 #define SPIM_RNE BIT(9) /* RX FIFO not empty */ 118 return ioread32be(espi->reg_base + offset); in fsl_espi_read_reg() 123 return ioread16be(espi->reg_base + offset); in fsl_espi_read_reg16() 128 return ioread8(espi->reg_base + offset); in fsl_espi_read_reg8() [all …]
|
| H A D | spi-mpc512x-psc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * Hongjun Chen <hong-jun.chen@freescale.com> 37 switch (mps->type) { \ 39 struct mpc52xx_psc __iomem *psc = mps->psc; \ 40 __ret = &psc->regname; \ 44 struct mpc5125_psc __iomem *psc = mps->psc; \ 45 __ret = &psc->regname; \ 75 struct mpc512x_psc_spi_cs *cs = spi->controller_state; in mpc512x_psc_spi_transfer_setup() 77 cs->speed_hz = (t && t->speed_hz) in mpc512x_psc_spi_transfer_setup() 78 ? t->speed_hz : spi->max_speed_hz; in mpc512x_psc_spi_transfer_setup() [all …]
|
| /linux/Documentation/devicetree/bindings/clock/ |
| H A D | qcom,qca8k-nsscc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/clock/qcom,qca8k-nsscc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Bjorn Andersson <andersson@kernel.org> 11 - Luo Jie <quic_luoj@quicinc.com> 18 include/dt-bindings/clock/qcom,qca8k-nsscc.h 19 include/dt-bindings/reset/qcom,qca8k-nsscc.h 24 - const: qcom,qca8084-nsscc 25 - items: [all …]
|
| /linux/net/can/ |
| H A D | proc.c | 1 // SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) 3 * proc.c - procfs support for Protocol family CAN core module 5 * Copyright (c) 2002-2007 Volkswagen Group Electronic Research 48 #include <linux/can/can-ml.h> 81 struct can_pkg_stats *pkg_stats = net->can.pkg_stats; in can_init_stats() 82 struct can_rcv_lists_stats *rcv_lists_stats = net->can.rcv_lists_stats; in can_init_stats() 89 pkg_stats->jiffies_init = jiffies; in can_init_stats() 91 rcv_lists_stats->stats_reset++; in can_init_stats() 95 rcv_lists_stats->user_reset++; in can_init_stats() 105 /* see can_stat_update() - this should NEVER happen! */ in calc_rate() [all …]
|
| /linux/drivers/staging/most/net/ |
| H A D | net.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * net.c - Networking component for Mostcore 22 #define MAMAC_DATA_LEN (1024 - MDP_HDR_LEN) 65 struct net_dev_channel rx; member 71 static DEFINE_MUTEX(probe_disc_mt); /* ch->linked = true, most_nd_open */ 72 static DEFINE_SPINLOCK(list_lock); /* list_head, ch->linked = false, dev_hold */ 77 u8 *buff = mbo->virt_address; in skb_to_mamac() 79 const u8 *dest_addr = skb->data + 4; in skb_to_mamac() 80 const u8 *eth_type = skb->data + 12; in skb_to_mamac() 81 unsigned int payload_len = skb->len - ETH_HLEN; in skb_to_mamac() [all …]
|