Home
last modified time | relevance | path

Searched +full:rx +full:- +full:tx (Results 1 – 25 of 1145) sorted by relevance

12345678910>>...46

/linux/tools/testing/selftests/drivers/net/netdevsim/
H A Dethtool-coalesce.sh2 # SPDX-License-Identifier: GPL-2.0-only
4 source ethtool-common.sh
9 echo $(ethtool -c $NSIM_NETDEV | \
10 awk -F':' -v pattern="$query:" '$0 ~ pattern {gsub(/[ \t]/, "", $2); print $2}')
20 if ! ethtool -h | grep -q coalesce; then
21 echo "SKIP: No --coalesce support in ethtool"
27 set -o pipefail
29 declare -A SETTINGS_MAP=(
30 ["rx-frames-low"]="rx-frame-low"
31 ["tx-frames-low"]="tx-frame-low"
[all …]
/linux/drivers/net/ethernet/engleder/
H A Dtsnep_main.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright (C) 2021 Gerhard Engleder <gerhard@engleder-embedded.com> */
6 * The TSN endpoint Ethernet MAC is a FPGA based network device for real-time
10 * It supports multiple TX/RX queue pairs. The first TX/RX queue pair is used
14 * - www.embedded-experts.at/tsn
15 * - www.engleder-embedded.com
36 #define TSNEP_MAX_RX_BUF_SIZE (PAGE_SIZE - TSNEP_HEADROOM - \
38 /* XSK buffer shall store at least Q-in-Q frame */
52 ECM_INT_DELAY_BASE_US + ECM_INT_DELAY_BASE_US - 1)
78 iowrite32(mask, adapter->addr + ECM_INT_ENABLE); in tsnep_enable_irq()
[all …]
/linux/drivers/firmware/tegra/
H A Divc.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2014-2016, NVIDIA CORPORATION. All rights reserved.
47 * This structure is divided into two-cache aligned parts, the first is only
48 * written through the tx.channel pointer, while the second is only written
49 * through the rx.channel pointer. This delineates ownership of the cache
50 * lines, which is critical to performance and necessary in non-cache coherent
62 } tx; member
68 } rx; member
79 if (!ivc->peer) in tegra_ivc_invalidate()
82 dma_sync_single_for_cpu(ivc->peer, phys, TEGRA_IVC_ALIGN, in tegra_ivc_invalidate()
[all …]
H A Dbpmp-tegra186.c1 // SPDX-License-Identifier: GPL-2.0
13 #include <soc/tegra/bpmp-abi.h>
16 #include "bpmp-private.h"
28 } tx, rx; member
43 return priv->parent; in mbox_client_to_bpmp()
50 err = tegra_ivc_read_get_next_frame(channel->ivc, &channel->ib); in tegra186_bpmp_is_message_ready()
52 iosys_map_clear(&channel->ib); in tegra186_bpmp_is_message_ready()
63 err = tegra_ivc_write_get_next_frame(channel->ivc, &channel->ob); in tegra186_bpmp_is_channel_free()
65 iosys_map_clear(&channel->ob); in tegra186_bpmp_is_channel_free()
74 return tegra_ivc_read_advance(channel->ivc); in tegra186_bpmp_ack_message()
[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 Dbfa_defs_cna.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
19 u64 tx_frames; /*!< Tx frames */
20 u64 tx_words; /*!< Tx words */
21 u64 tx_lip; /*!< Tx LIP */
22 u64 tx_nos; /*!< Tx NOS */
23 u64 tx_ols; /*!< Tx OLS */
24 u64 tx_lr; /*!< Tx LR */
[all …]
/linux/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_fdma.c1 // SPDX-License-Identifier: GPL-2.0+
12 struct lan966x *lan966x = (struct lan966x *)fdma->priv; in lan966x_fdma_rx_dataptr_cb()
13 struct lan966x_rx *rx = &lan966x->rx; in lan966x_fdma_rx_dataptr_cb() local
16 page = page_pool_dev_alloc_pages(rx->page_pool); in lan966x_fdma_rx_dataptr_cb()
18 return -ENOMEM; in lan966x_fdma_rx_dataptr_cb()
20 rx->page[dcb][db] = page; in lan966x_fdma_rx_dataptr_cb()
29 struct lan966x *lan966x = (struct lan966x *)fdma->priv; in lan966x_fdma_tx_dataptr_cb()
31 *dataptr = lan966x->tx.dcbs_buf[dcb].dma_addr; in lan966x_fdma_tx_dataptr_cb()
39 struct lan966x *lan966x = (struct lan966x *)fdma->priv; in lan966x_fdma_xdp_tx_dataptr_cb()
41 *dataptr = lan966x->tx.dcbs_buf[dcb].dma_addr + XDP_PACKET_HEADROOM; in lan966x_fdma_xdp_tx_dataptr_cb()
[all …]
/linux/drivers/net/phy/
H A Dlinkmode.c1 // SPDX-License-Identifier: GPL-2.0+
5 * linkmode_resolve_pause - resolve the allowable pause modes
19 * 0 1 1 1 TX
21 * 1 X 1 X TX+RX
22 * 1 1 0 1 RX
47 * linkmode_set_pause - set the pause mode advertisement
49 * @tx: boolean from ethtool struct ethtool_pauseparam tx_pause member
50 * @rx: boolean from ethtool struct ethtool_pauseparam rx_pause member
53 * capabilities of provided in @tx and @rx.
56 * tx rx Pause AsymDir
[all …]
/linux/drivers/net/wireless/broadcom/b43/
H A Dradio_2055.h1 /* SPDX-License-Identifier: GPL-2.0 */
15 #define B2055_C1_SP_RXGC1 0x07 /* SP RX GC1 Core 1 */
16 #define B2055_C1_SP_RXGC2 0x08 /* SP RX GC2 Core 1 */
17 #define B2055_C2_SP_RXGC1 0x09 /* SP RX GC1 Core 2 */
18 #define B2055_C2_SP_RXGC2 0x0A /* SP RX GC2 Core 2 */
21 #define B2055_C1_SP_TXGC1 0x0D /* SP TX GC1 Core 1 */
22 #define B2055_C1_SP_TXGC2 0x0E /* SP TX GC2 Core 1 */
23 #define B2055_C2_SP_TXGC1 0x0F /* SP TX GC1 Core 2 */
24 #define B2055_C2_SP_TXGC2 0x10 /* SP TX GC2 Core 2 */
30 #define B2055_C1_PD_TX 0x16 /* PD Core 1 TX */
[all …]
H A Dphy_lp.h1 /* SPDX-License-Identifier: GPL-2.0 */
5 /* Definitions for the LP-PHY */
11 #define B43_LPPHY_B_RX_STAT0 B43_PHY_CCK(0x04) /* B PHY RX Status0 */
12 #define B43_LPPHY_B_RX_STAT1 B43_PHY_CCK(0x05) /* B PHY RX Status1 */
22 #define B43_LPPHY_PA_RAMP_TX_TO B43_PHY_CCK(0x10) /* PA Ramp TX Timeout */
24 #define B43_LPPHY_PA_RAMP_TX_TIME_IN B43_PHY_CCK(0x12) /* PA ramp TX Time in */
25 #define B43_LPPHY_RX_FILTER_TIME_IN B43_PHY_CCK(0x13) /* RX Filter Time in */
42 #define B43_LPPHY_TX_DCOFFSET1 B43_PHY_CCK(0x2E) /* TX DCOffset1 */
43 #define B43_LPPHY_TX_DCOFFSET2 B43_PHY_CCK(0x2F) /* TX DCOffset2 */
57 #define B43_LPPHY_RX_DELAYCOMP B43_PHY_CCK(0x44) /* RX DelayComp */
[all …]
/linux/drivers/net/ethernet/microchip/
H A Dlan743x_main.c1 /* SPDX-License-Identifier: GPL-2.0+ */
33 u32 dev_rev = adapter->csr.id_rev & ID_REV_CHIP_REV_MASK_; in pci11x1x_is_a0()
48 netif_err(adapter, drv, adapter->netdev, in pci11x1x_strap_get_status()
62 adapter->is_sgmii_en = true; in pci11x1x_strap_get_status()
64 adapter->is_sgmii_en = false; in pci11x1x_strap_get_status()
69 adapter->is_sgmii_en = true; in pci11x1x_strap_get_status()
71 adapter->is_sgmii_en = false; in pci11x1x_strap_get_status()
73 adapter->is_sgmii_en = false; in pci11x1x_strap_get_status()
76 netif_dbg(adapter, drv, adapter->netdev, in pci11x1x_strap_get_status()
77 "SGMII I/F %sable\n", adapter->is_sgmii_en ? "En" : "Dis"); in pci11x1x_strap_get_status()
[all …]
/linux/drivers/net/ethernet/pasemi/
H A Dpasemi_mac_ethtool.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2006-2008 PA Semi, Inc
19 { "rx-drops" },
20 { "rx-bytes" },
21 { "rx-packets" },
22 { "rx-broadcast-packets" },
23 { "rx-multicast-packets" },
24 { "rx-crc-errors" },
25 { "rx-undersize-errors" },
26 { "rx-oversize-errors" },
[all …]
/linux/sound/soc/mediatek/common/
H A Dmtk-btcvsd.c1 // SPDX-License-Identifier: GPL-2.0
15 #define BTCVSD_SND_NAME "mtk-btcvsd-snd"
27 /* TX */
32 /* RX */
130 spinlock_t tx_lock; /* spinlock for bt tx stream control */
131 spinlock_t rx_lock; /* spinlock for bt rx stream control */
135 struct mtk_btcvsd_snd_stream *tx; member
136 struct mtk_btcvsd_snd_stream *rx; global() member
[all...]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dipsec_fs.c1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB
67 /* IPsec RX flow steering */
77 if (ipsec->is_uplink_rep && type == XFRM_DEV_OFFLOAD_PACKET) in ipsec_rx()
78 return ipsec->rx_esw; in ipsec_rx()
81 return ipsec->rx_ipv4; in ipsec_rx()
83 return ipsec->rx_ipv6; in ipsec_rx()
88 if (ipsec->is_uplink_rep && type == XFRM_DEV_OFFLOAD_PACKET) in ipsec_tx()
89 return ipsec->tx_esw; in ipsec_tx()
91 return ipsec->tx; in ipsec_tx()
165 struct mlx5e_ipsec_rx *rx) in ipsec_rx_status_drop_destroy() argument
[all …]
/linux/net/tipc/
H A Dcrypto.c1 // SPDX-License-Identifier: GPL-2.0
75 STAT_BADKEYS, /* tx only */
76 STAT_BADMSGS = STAT_BADKEYS, /* rx only */
94 * struct tipc_key - TIPC keys' status indicator
97 * +----
847 struct tipc_crypto *tx = aead->crypto; tipc_aead_encrypt_done() local
1213 struct tipc_crypto *tx, *rx; tipc_crypto_key_flush() local
1257 tipc_crypto_key_try_align(struct tipc_crypto * rx,u8 new_pending) tipc_crypto_key_try_align() argument
1319 tipc_crypto_key_pick_tx(struct tipc_crypto * tx,struct tipc_crypto * rx,struct sk_buff * skb,u8 tx_key) tipc_crypto_key_pick_tx() argument
1320 tipc_crypto_key_pick_tx(struct tipc_crypto * tx,struct tipc_crypto * rx,struct sk_buff * skb,u8 tx_key) tipc_crypto_key_pick_tx() argument
1390 tipc_crypto_key_synch(struct tipc_crypto * rx,struct sk_buff * skb) tipc_crypto_key_synch() argument
1393 struct tipc_crypto *tx = tipc_net(rx->net)->crypto_tx; tipc_crypto_key_synch() local
1450 struct tipc_crypto *tx = tipc_net(net)->crypto_tx; tipc_crypto_key_revoke() local
1551 tipc_crypto_timeout(struct tipc_crypto * rx) tipc_crypto_timeout() argument
1554 struct tipc_crypto *tx = tn->crypto_tx; tipc_crypto_timeout() local
1694 struct tipc_crypto *tx = tipc_net(net)->crypto_tx; tipc_crypto_xmit() local
1814 tipc_crypto_rcv(struct net * net,struct tipc_crypto * rx,struct sk_buff ** skb,struct tipc_bearer * b) tipc_crypto_rcv() argument
1817 struct tipc_crypto *tx = tipc_net(net)->crypto_tx; tipc_crypto_rcv() local
1902 struct tipc_crypto *rx = aead->crypto; tipc_crypto_rcv_complete() local
2010 struct tipc_crypto *tx = tn->crypto_tx, *rx; tipc_crypto_do_cmd() local
2166 struct tipc_crypto *rx; tipc_crypto_msg_rcv() local
2200 tipc_crypto_key_distr(struct tipc_crypto * tx,u8 key,struct tipc_node * dest) tipc_crypto_key_distr() argument
2287 tipc_crypto_key_rcv(struct tipc_crypto * rx,struct tipc_msg * hdr) tipc_crypto_key_rcv() argument
2289 struct tipc_crypto *tx = tipc_net(rx->net)->crypto_tx; tipc_crypto_key_rcv() local
2358 struct tipc_crypto *rx = container_of(dwork, struct tipc_crypto, work); tipc_crypto_work_rx() local
2359 struct tipc_crypto *tx = tipc_net(rx->net)->crypto_tx; tipc_crypto_work_rx() local
2415 tipc_crypto_rekeying_sched(struct tipc_crypto * tx,bool changed,u32 new_intv) tipc_crypto_rekeying_sched() argument
2447 struct tipc_crypto *tx = container_of(dwork, struct tipc_crypto, work); tipc_crypto_work_tx() local
[all...]
/linux/drivers/net/ethernet/intel/e1000e/
H A Dregs.h1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright(c) 1999 - 2018 Intel Corporation. */
7 #define E1000_CTRL 0x00000 /* Device Control - RW */
8 #define E1000_STATUS 0x00008 /* Device Status - RO */
9 #define E1000_EECD 0x00010 /* EEPROM/Flash Control - RW */
10 #define E1000_EERD 0x00014 /* EEPROM Read - RW */
11 #define E1000_CTRL_EXT 0x00018 /* Extended Device Control - RW */
12 #define E1000_FLA 0x0001C /* Flash Access - RW */
13 #define E1000_MDIC 0x00020 /* MDI Control - RW */
14 #define E1000_SCTL 0x00024 /* SerDes Control - RW */
[all …]
/linux/drivers/net/ethernet/sun/
H A Dsunqe.h1 /* SPDX-License-Identifier: GPL-2.0 */
15 #define GLOB_MSIZE 0x0cUL /* Local-memory Size */
45 /* The following registers are for per-qe channel information/status. */
48 #define CREG_RXDS 0x08UL /* RX descriptor ring ptr */
49 #define CREG_TXDS 0x0cUL /* TX descriptor ring ptr */
50 #define CREG_RIMASK 0x10UL /* RX Interrupt Mask */
51 #define CREG_TIMASK 0x14UL /* TX Interrupt Mask */
54 #define CREG_RXWBUFPTR 0x20UL /* Local memory rx write ptr */
55 #define CREG_RXRBUFPTR 0x24UL /* Local memory rx read ptr */
56 #define CREG_TXWBUFPTR 0x28UL /* Local memory tx write ptr */
[all …]
H A Dsungem.h1 /* SPDX-License-Identifier: GPL-2.0 */
26 #define GREG_SEBSTATE_RXWON 0x00000004 /* RX won internal arbitration */
30 #define GREG_CFG_TXDMALIM 0x0000003e /* TX DMA grant limit */
31 #define GREG_CFG_RXDMALIM 0x000007c0 /* RX DMA grant limit */
34 #define GREG_CFG_ENBUG2FIX 0x00001000 /* Fix Rx hang after overflow */
39 * This auto-clearing does not occur when the alias at GREG_STAT2
45 #define GREG_STAT_TXINTME 0x00000001 /* TX INTME frame transferred */
46 #define GREG_STAT_TXALL 0x00000002 /* All TX frames transferred */
47 #define GREG_STAT_TXDONE 0x00000004 /* One TX frame transferred */
48 #define GREG_STAT_RXDONE 0x00000010 /* One RX frame arrived */
[all …]
/linux/drivers/net/ethernet/microchip/sparx5/lan969x/
H A Dlan969x_fdma.c1 // SPDX-License-Identifier: GPL-2.0+
15 #define FDMA_PRIV(fdma) ((struct sparx5 *)((fdma)->priv))
20 *dataptr = FDMA_PRIV(fdma)->tx.dbs[dcb].dma_addr; in lan969x_fdma_tx_dataptr_cb()
28 struct sparx5_rx *rx = &FDMA_PRIV(fdma)->rx; in lan969x_fdma_rx_dataptr_cb() local
31 page = page_pool_dev_alloc_pages(rx->page_pool); in lan969x_fdma_rx_dataptr_cb()
33 return -ENOMEM; in lan969x_fdma_rx_dataptr_cb()
35 rx->page[dcb][db] = page; in lan969x_fdma_rx_dataptr_cb()
42 static int lan969x_fdma_get_next_dcb(struct sparx5_tx *tx) in lan969x_fdma_get_next_dcb() argument
44 struct fdma *fdma = &tx->fdma; in lan969x_fdma_get_next_dcb()
46 for (int i = 0; i < fdma->n_dcbs; ++i) in lan969x_fdma_get_next_dcb()
[all …]
/linux/drivers/net/wireless/purelifi/plfxlc/
H A Dusb.c1 // SPDX-License-Identifier: GPL-2.0-only
38 struct plfxlc_usb_tx *tx = &usb->tx; in plfxlc_send_packet_from_data_queue() local
43 spin_lock_irqsave(&tx->lock, flags); in plfxlc_send_packet_from_data_queue()
44 last_served_sidx = usb->sidx; in plfxlc_send_packet_from_data_queue()
46 usb->sidx = (usb->sidx + 1) % MAX_STA_NUM; in plfxlc_send_packet_from_data_queue()
47 if (!(tx->station[usb->sidx].flag & STATION_CONNECTED_FLAG)) in plfxlc_send_packet_from_data_queue()
49 if (!(tx->station[usb->sidx].flag & STATION_FIFO_FULL_FLAG)) in plfxlc_send_packet_from_data_queue()
50 skb = skb_peek(&tx->station[usb->sidx].data_list); in plfxlc_send_packet_from_data_queue()
51 } while ((usb->sidx != last_served_sidx) && (!skb)); in plfxlc_send_packet_from_data_queue()
54 skb = skb_dequeue(&tx->station[usb->sidx].data_list); in plfxlc_send_packet_from_data_queue()
[all …]
/linux/sound/arm/
H A Daaci.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * linux/sound/arm/aaci.c - ARM PrimeCell AACI PL041 driver
19 #define AACI_RXCR 0x000 /* 29 bits Control Rx FIFO */
20 #define AACI_TXCR 0x004 /* 17 bits Control Tx FIFO */
49 * TX/RX fifo control register (CR). P48
74 #define SR_RXTOFE (1 << 11) /* rx timeout fifo empty */
75 #define SR_TXTO (1 << 10) /* rx timeout fifo nonempty */
76 #define SR_TXU (1 << 9) /* tx underrun */
77 #define SR_RXO (1 << 8) /* rx overrun */
78 #define SR_TXB (1 << 7) /* tx busy */
[all …]
/linux/drivers/net/ethernet/intel/igb/
H A De1000_regs.h1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright(c) 2007 - 2018 Intel Corporation. */
7 #define E1000_CTRL 0x00000 /* Device Control - RW */
8 #define E1000_STATUS 0x00008 /* Device Status - RO */
9 #define E1000_EECD 0x00010 /* EEPROM/Flash Control - RW */
10 #define E1000_EERD 0x00014 /* EEPROM Read - RW */
11 #define E1000_CTRL_EXT 0x00018 /* Extended Device Control - RW */
12 #define E1000_MDIC 0x00020 /* MDI Control - RW */
13 #define E1000_MDICNFG 0x00E04 /* MDI Config - RW */
14 #define E1000_SCTL 0x00024 /* SerDes Control - RW */
[all …]
/linux/drivers/net/ethernet/broadcom/
H A Db44.h1 /* SPDX-License-Identifier: GPL-2.0 */
17 #define B44_BIST_STAT 0x000CUL /* Built-In Self-Test Status */
43 #define ISTAT_RX 0x00010000 /* RX Interrupt */
44 #define ISTAT_TX 0x01000000 /* TX Interrupt */
56 #define B44_TXBURST 0x00A0UL /* TX Max Burst Length */
57 #define B44_RXBURST 0x00A4UL /* RX Max Burst Length */
71 #define B44_DMATX_CTRL 0x0200UL /* DMA TX Control */
77 #define B44_DMATX_ADDR 0x0204UL /* DMA TX Descriptor Ring Address */
78 #define B44_DMATX_PTR 0x0208UL /* DMA TX Last Posted Descriptor */
79 #define B44_DMATX_STAT 0x020CUL /* DMA TX Current Active Desc. + Status */
[all …]
/linux/tools/testing/selftests/drivers/net/
H A Dpsp.py2 # SPDX-License-Identifier: GPL-2.0
37 return int(cfg.comm_sock.recv(1024)[:-1].decode('utf-8'))
63 def _spi_xchg(s, rx): argument
64 s.send(struct.pack('I', rx['spi']) + rx['key'])
65 tx = s.recv(4 + len(rx['key']))
67 'spi': struct.unpack('I', tx[:4])[0],
68 'key': tx[4:]
93 read_len = -1
96 read_len = int(cfg.comm_sock.recv(1024)[:-1].decode('utf-8'))
114 return cfg.pspnl.get_stats({'dev-id': cfg.psp_dev_id})[key]
[all …]
/linux/tools/testing/selftests/drivers/net/hw/
H A Dethtool_mm.sh2 # SPDX-License-Identifier: GPL-2.0
33 before=$(ethtool_std_stats_get $if "eth-mac" "FramesTransmittedOK" $src)
35 $MZ $if -q -c $num_pkts -p 64 -b bcast -t ip -R $PREEMPTIBLE_PRIO
37 after=$(ethtool_std_stats_get $if "eth-mac" "FramesTransmittedOK" $src)
39 delta=$((after - before))
42 [ $delta -ge $num_pkts ] && [ $delta -le $((num_pkts + 100)) ]
47 local tx=$1; shift
48 local rx=$1; shift
52 # It isn't completely clear from IEEE 802.3-2018 Figure 99-5: Transmit
55 # MAC Merge TX direction is disabled. That being said, at least the
[all …]

12345678910>>...46