Home
last modified time | relevance | path

Searched +full:txrx +full:- +full:2 (Results 1 – 25 of 87) sorted by relevance

1234

/Linux-v6.6/Documentation/devicetree/bindings/net/
Dengleder,tsnep.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Gerhard Engleder <gerhard@engleder-embedded.com>
13 - $ref: ethernet-controller.yaml#
26 interrupt-names:
29 - const: mac
30 - const: txrx-1
31 - const: txrx-2
32 - const: txrx-3
[all …]
/Linux-v6.6/arch/mips/include/asm/sibyte/
Dsb1250_mac.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
30 * MAC Configuration Register (Table 9-13)
39 #define M_MAC_RETRY_EN _SB_MAKEMASK1(2)
50 #define K_MAC_TX_PAUSE_CNT_2K 2
87 #define M_MAC_SPEED_SEL _SB_MAKEMASK(2, S_MAC_SPEED_SEL)
93 #define K_MAC_SPEED_SEL_1000MBPS 2
107 #define M_MAC_BYPASS_CFG _SB_MAKEMASK(2, S_MAC_BYPASS_CFG)
113 #define K_MAC_BYPASS_SOP 2
134 #define K_MAC_FC_CMD_ENAB_FALSECARR 2
143 #define M_MAC_FC_CMD _SB_MAKEMASK(2, S_MAC_FC_CMD)
[all …]
Dsb1250_regs.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
7 * This module contains the addresses of the on-chip peripherals
114 /* Backward-compatibility definitions. */
147 #define MAC_NUM_DMACHAN 2 /* channels per direction */
163 #define A_MAC_DMA_CHANNEL_BASE(macnum, txrx, chan) \ argument
166 (MAC_DMA_TXRX_SPACING*(txrx)) + \
169 #define R_MAC_DMA_CHANNEL_BASE(txrx, chan) \ argument
171 (MAC_DMA_TXRX_SPACING*(txrx)) + \
174 #define A_MAC_DMA_REGISTER(macnum, txrx, chan, reg) \ argument
175 (A_MAC_DMA_CHANNEL_BASE(macnum, txrx, chan) + \
[all …]
/Linux-v6.6/Documentation/devicetree/bindings/bus/
Dts-nbus.txt4 Systems FPGA on the TS-4600 SoM.
7 - compatible : "technologic,ts-nbus"
8 - #address-cells : must be 1
9 - #size-cells : must be 0
10 - pwms : The PWM bound to the FPGA
11 - ts,data-gpios : The 8 GPIO pins connected to the data lines on the FPGA
12 - ts,csn-gpios : The GPIO pin connected to the csn line on the FPGA
13 - ts,txrx-gpios : The GPIO pin connected to the txrx line on the FPGA
14 - ts,strobe-gpios : The GPIO pin connected to the stobe line on the FPGA
15 - ts,ale-gpios : The GPIO pin connected to the ale line on the FPGA
[all …]
/Linux-v6.6/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/
Dhal_btc.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 2009-2012 Realtek Corporation.*/
19 if (!rtlpriv->btcoexist.bt_coexistence) in rtl8723e_dm_bt_turn_off_bt_coexist_before_enter_lps()
22 if (ppsc->inactiveps) { in rtl8723e_dm_bt_turn_off_bt_coexist_before_enter_lps()
25 rtlpriv->btcoexist.cstate = 0; in rtl8723e_dm_bt_turn_off_bt_coexist_before_enter_lps()
26 rtlpriv->btcoexist.previous_state = 0; in rtl8723e_dm_bt_turn_off_bt_coexist_before_enter_lps()
27 rtlpriv->btcoexist.cstate_h = 0; in rtl8723e_dm_bt_turn_off_bt_coexist_before_enter_lps()
28 rtlpriv->btcoexist.previous_state_h = 0; in rtl8723e_dm_bt_turn_off_bt_coexist_before_enter_lps()
38 u8 bibss = (mac->opmode == NL80211_IFTYPE_ADHOC) ? 1 : 0; in mgnt_link_status_query()
39 if (bibss || rtlpriv->mac80211.link_state >= MAC80211_LINKED) in mgnt_link_status_query()
[all …]
/Linux-v6.6/drivers/net/ethernet/mediatek/
Dmtk_eth_soc.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright (C) 2009-2016 John Crispin <blogic@openwrt.org>
5 * Copyright (C) 2009-2016 Felix Fietkau <nbd@openwrt.org>
6 * Copyright (C) 2013-2016 Michael Lee <igvtee@gmail.com>
24 #include <linux/pcs/pcs-mtk-lynxi.h>
34 static int mtk_msg_level = -1;
36 MODULE_PARM_DESC(msg_level, "Message level (-1=defaults,0=none,...,16=all)");
284 __raw_writel(val, eth->base + reg); in mtk_w32()
289 return __raw_readl(eth->base + reg); in mtk_r32()
315 dev_err(eth->dev, "mdio: MDIO timeout\n"); in mtk_mdio_busy_wait()
[all …]
Dmtk_eth_soc.h1 /* SPDX-License-Identifier: GPL-2.0-only */
4 * Copyright (C) 2009-2016 John Crispin <blogic@openwrt.org>
5 * Copyright (C) 2009-2016 Felix Fietkau <nbd@openwrt.org>
6 * Copyright (C) 2013-2016 Michael Lee <igvtee@gmail.com>
12 #include <linux/dma-mapping.h>
26 #define MTK_DSA_PORT_MASK GENMASK(2, 0)
55 #define NEXT_DESP_IDX(X, Y) (((X) + 1) & ((Y) - 1))
60 #define MTK_PP_MAX_BUF_SIZE (PAGE_SIZE - MTK_PP_PAD)
68 #define MTK_MAX_LRO_IP_CNT 2
134 /* Unicast Filter MAC Address Register - Low */
[all …]
/Linux-v6.6/drivers/net/ethernet/broadcom/
Dsb1250-mac.c1 // SPDX-License-Identifier: GPL-2.0-or-later
6 * This driver is designed for the Broadcom SiByte SOC built-in
42 #define TX_TIMEOUT (2*HZ)
48 /* A few user-configurable values which may be modified when a driver
91 #define UNIT_INT(n) (K_BCM1480_INT_MAC_0 + ((n) * 2))
116 sbmac_duplex_none = -1,
142 #define SBDMA_NEXTBUF(d,f) ((((d)->f+1) == (d)->sbdma_dscrtable_end) ? \
143 (d)->sbdma_dscrtable : (d)->f+1)
222 * Linux-specific things
232 * Controller-specific things
[all …]
/Linux-v6.6/samples/pktgen/
Dfunctions.sh3 # - Depending on bash 3 (or higher) syntax
8 set -o errexit
10 ## -- General shell logging cmds --
14 echo "ERROR: $@" >&2
19 echo "WARN : $@" >&2
23 if [[ -n "$VERBOSE" ]]; then
24 echo "INFO : $@" >&2
28 ## -- Pktgen proc config commands -- ##
67 if [[ ! -e "$proc_ctrl" ]]; then
70 if [[ ! -w "$proc_ctrl" ]]; then
[all …]
/Linux-v6.6/drivers/tty/serial/jsm/
Djsm_neo.c1 // SPDX-License-Identifier: GPL-2.0+
25 * a non-destructive, read-only location on the Neo card.
27 * In this case, we are reading the DVID (Read-only Device Identification)
32 readb(bd->re_map_membase + 0x8D); in neo_pci_posting_flush()
38 ier = readb(&ch->ch_neo_uart->ier); in neo_set_cts_flow_control()
39 efr = readb(&ch->ch_neo_uart->efr); in neo_set_cts_flow_control()
41 jsm_dbg(PARAM, &ch->ch_bd->pci_dev, "Setting CTSFLOW\n"); in neo_set_cts_flow_control()
51 writeb(0, &ch->ch_neo_uart->efr); in neo_set_cts_flow_control()
54 writeb(efr, &ch->ch_neo_uart->efr); in neo_set_cts_flow_control()
57 writeb((UART_17158_FCTR_TRGD | UART_17158_FCTR_RTS_4DELAY), &ch->ch_neo_uart->fctr); in neo_set_cts_flow_control()
[all …]
Djsm.h1 /* SPDX-License-Identifier: GPL-2.0+ */
49 dev_dbg(pdev->dev, fmt, ##__VA_ARGS__); \
94 #define JSM_VERSION "jsm: 1.2-1-INKERNEL"
95 #define JSM_PARTNUM "40002438_A-INKERNEL"
124 * Per-board information
128 int boardnum; /* Board number: 0-32 */
183 #define RQUEUEMASK 0x1FFF /* 8 K - 1 */
184 #define EQUEUEMASK 0x1FFF /* 8 K - 1 */
221 u8 *ch_rqueue; /* Our read queue buffer - malloc'ed */
225 u8 *ch_equeue; /* Our error queue buffer - malloc'ed */
[all …]
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dipsec_rxtx.h6 * General Public License (GPL) Version 2, available from the file
14 * - Redistributions of source code must retain the above
18 * - Redistributions in binary form must reproduce the above
40 #include "en/txrx.h"
42 /* Bit31: IPsec marker, Bit30: reserved, Bit29-24: IPsec syndrome, Bit23-0: IPsec obj id */
74 return ipsec_st->tailen; in mlx5e_ipsec_tx_ids_len()
79 return MLX5_IPSEC_METADATA_MARKER(be32_to_cpu(cqe->ft_metadata)); in mlx5_ipsec_is_rx_flow()
84 return eseg->flow_table_metadata & cpu_to_be32(MLX5_ETH_WQE_FT_META_IPSEC); in mlx5e_ipsec_eseg_meta()
96 if (sp && sp->len && xo) { in mlx5e_ipsec_feature_check()
97 struct xfrm_state *x = sp->xvec[0]; in mlx5e_ipsec_feature_check()
[all …]
Den_accel.h6 * General Public License (GPL) Version 2, available from the file
14 * - Redistributions of source code must retain the above
18 * - Redistributions in binary form must reproduce the above
44 #include "en/txrx.h"
65 l4_proto = ip_hdr(skb)->protocol; in mlx5e_tx_tunnel_accel()
68 l4_proto = ipv6_find_hdr(skb, &offset, -1, NULL, NULL); in mlx5e_tx_tunnel_accel()
75 udp_hdr(skb)->dest != cpu_to_be16(GENEVE_UDP_PORT)) in mlx5e_tx_tunnel_accel()
80 if (inner_ip_hdr(skb)->version == 6) { in mlx5e_tx_tunnel_accel()
82 swp_spec.tun_l4_proto = inner_ipv6_hdr(skb)->nexthdr; in mlx5e_tx_tunnel_accel()
85 swp_spec.tun_l4_proto = inner_ip_hdr(skb)->protocol; in mlx5e_tx_tunnel_accel()
[all …]
/Linux-v6.6/drivers/spi/
Dspi-sh-sci.c1 // SPDX-License-Identifier: GPL-2.0-only
33 #define SCSPTR(sp) (sp->membase + 0x1c)
34 #define PIN_SCK (1 << 2)
43 * Reading bit 2 and 0 in SCSPTR gives pin state as input. in setbits()
45 * This makes regular read-modify-write difficult so we in setbits()
46 * use sp->val to keep track of the latest register value. in setbits()
50 sp->val |= bits; in setbits()
52 sp->val &= ~bits; in setbits()
54 iowrite8(sp->val, SCSPTR(sp)); in setbits()
59 setbits(spi_controller_get_devdata(dev->controller), PIN_SCK, on); in setsck()
[all …]
Dspi-mxs.c1 // SPDX-License-Identifier: GPL-2.0+
15 // Based on code from U-Boot bootloader by:
18 // Based on spi-stmp.c, which is:
28 #include <linux/dma-mapping.h>
40 #include <linux/spi/mxs-spi.h>
43 #define DRIVER_NAME "mxs-spi"
51 * Flags for txrx functions. More efficient that using an argument register for
55 #define TXRX_DEASSERT_CS (1<<1) /* De-assert CS at end of txrx */
66 struct mxs_spi *spi = spi_master_get_devdata(dev->master); in mxs_spi_setup_transfer()
67 struct mxs_ssp *ssp = &spi->ssp; in mxs_spi_setup_transfer()
[all …]
Dspi-butterfly.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * parport-to-butterfly adapter
30 /* DATA output bits (pins 2..9 == D0..D7) */
33 #define spi_sck_bit (1 << 0) /* pin 2 */
46 return spi->controller_data; in spidev_to_pp()
60 struct spi_board_info info[2];
64 /*----------------------------------------------------------------------*/
70 u8 bit, byte = pp->lastbyte; in setsck()
78 parport_write_data(pp->port, byte); in setsck()
79 pp->lastbyte = byte; in setsck()
[all …]
Dspi-lm70llp.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Driver for LM70EVAL-LLP board for the LM70 sensor
23 * The LM70 communicates with a host processor using a 3-wire variant of
26 * port to bitbang an SPI-parport bridge. Accordingly, this is an SPI
33 * The schematic for this particular board (the LM70EVAL-LLP) is
37 * Also see Documentation/spi/spi-lm70llp.rst. The SPI<->parport code here is
38 * (heavily) based on spi-butterfly by David Brownell.
44 * ----------- --------- ------------
45 * D0 2 - -
46 * D1 3 --> V+ 5
[all …]
/Linux-v6.6/drivers/net/wireless/st/cw1200/
Dcw1200.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Common private data for ST-Ericsson CW1200 drivers
5 * Copyright (c) 2010, ST-Ericsson
12 * Copyright 2004-2006 Jean-Baptiste Note <jbnote@gmail.com>, et al.
26 #include "txrx.h"
39 #define CW1200_LINK_ID_UAPSD (CW1200_MAX_STA_IN_AP_MODE + 2)
302 return ht_info->channel_type != NL80211_CHAN_NO_HT; in cw1200_is_ht()
308 (ht_info->ht_cap.cap & IEEE80211_HT_CAP_GRN_FLD) && in cw1200_ht_greenfield()
309 !(ht_info->operation_mode & in cw1200_ht_greenfield()
317 return ht_info->ht_cap.ampdu_density; in cw1200_ht_ampdu_density()
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/en/
Dxdp.h6 * General Public License (GPL) Version 2, available from the file
14 * - Redistributions of source code must retain the above
18 * - Redistributions in binary form must reproduce the above
38 #include "en/txrx.h"
44 (MLX5E_XDP_INLINE_WQE_MAX_DS_CNT * MLX5_SEND_WQE_DS - \
127 set_bit(MLX5E_STATE_XDP_TX_ENABLED, &priv->state); in mlx5e_xdp_tx_enable()
129 if (priv->channels.params.xdp_prog) in mlx5e_xdp_tx_enable()
130 set_bit(MLX5E_STATE_XDP_ACTIVE, &priv->state); in mlx5e_xdp_tx_enable()
135 if (priv->channels.params.xdp_prog) in mlx5e_xdp_tx_disable()
136 clear_bit(MLX5E_STATE_XDP_ACTIVE, &priv->state); in mlx5e_xdp_tx_disable()
[all …]
/Linux-v6.6/drivers/net/wireless/mediatek/mt76/mt7615/
Dsdio.c1 // SPDX-License-Identifier: ISC
34 if (!mt76_connac_pm_ref(&dev->mphy, &dev->pm)) { in mt7663s_txrx_worker()
35 queue_work(mdev->wq, &dev->pm.wake_work); in mt7663s_txrx_worker()
39 mt76_connac_pm_unref(&dev->mphy, &dev->pm); in mt7663s_txrx_worker()
55 struct mt76_sdio *sdio = &dev->sdio; in mt7663s_parse_intr()
56 struct mt7663s_intr *irq_data = sdio->intr_data; in mt7663s_parse_intr()
59 sdio_claim_host(sdio->func); in mt7663s_parse_intr()
60 err = sdio_readsb(sdio->func, irq_data, MCR_WHISR, sizeof(*irq_data)); in mt7663s_parse_intr()
61 sdio_release_host(sdio->func); in mt7663s_parse_intr()
66 intr->isr = irq_data->isr; in mt7663s_parse_intr()
[all …]
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/
Den_txrx.c6 * General Public License (GPL) Version 2, available from the file
14 * - Redistributions of source code must retain the above
18 * - Redistributions in binary form must reproduce the above
36 #include "en/txrx.h"
46 return cpumask_test_cpu(current_cpu, c->aff_mask); in mlx5e_channel_no_affinity_change()
51 struct mlx5e_sq_stats *stats = sq->stats; in mlx5e_handle_tx_dim()
54 if (unlikely(!test_bit(MLX5E_SQ_STATE_DIM, &sq->state))) in mlx5e_handle_tx_dim()
57 dim_update_sample(sq->cq.event_ctr, stats->packets, stats->bytes, &dim_sample); in mlx5e_handle_tx_dim()
58 net_dim(&sq->dim, dim_sample); in mlx5e_handle_tx_dim()
63 struct mlx5e_rq_stats *stats = rq->stats; in mlx5e_handle_rx_dim()
[all …]
/Linux-v6.6/drivers/net/can/
Dgrcan.c1 // SPDX-License-Identifier: GPL-2.0-or-later
16 * See "Documentation/ABI/testing/sysfs-class-net-grcan" for information on the
19 * See "Documentation/admin-guide/kernel-parameters.rst" for information on the module
38 #include <linux/dma-mapping.h>
44 #define GRCAN_RESERVE_SIZE(slot1, slot2) (((slot2) - (slot1)) / 4 - 1)
51 u32 smask; /* 0x18 - CanMASK */
52 u32 scode; /* 0x1c - CanCODE */
100 #define GRCAN_CONF_PS2_MIN 2
141 #define GRCAN_IRQIX_RXSYNC 2
201 #define GRCAN_MSG_DATA_SLOT_INDEX(i) (2 + (i) / 4)
[all …]
/Linux-v6.6/arch/powerpc/include/asm/
Dmpc52xx_psc.h2 * include/asm-ppc/mpc52xx_psc.h
6 * UART, AC97, IR, I2S, ... So this header is in asm-ppc.
18 * version 2. This program is licensed "as is" without any warranty of any
62 /* PSC TxRx FIFO status bits */
310 u8 reserved2[2];
329 u8 reserved7[2];
331 u8 reserved8[2];
/Linux-v6.6/drivers/net/wireless/mediatek/mt76/mt7921/
Dsdio.c1 // SPDX-License-Identifier: ISC
32 if (!mt76_connac_pm_ref(&dev->mphy, &dev->pm)) { in mt7921s_txrx_worker()
33 queue_work(mdev->wq, &dev->pm.wake_work); in mt7921s_txrx_worker()
38 mt76_connac_pm_unref(&dev->mphy, &dev->pm); in mt7921s_txrx_worker()
43 struct mt76_connac_pm *pm = &dev->pm; in mt7921s_unregister_device()
45 cancel_work_sync(&dev->init_work); in mt7921s_unregister_device()
46 mt76_unregister_device(&dev->mt76); in mt7921s_unregister_device()
47 cancel_delayed_work_sync(&pm->ps_work); in mt7921s_unregister_device()
48 cancel_work_sync(&pm->wake_work); in mt7921s_unregister_device()
50 mt76s_deinit(&dev->mt76); in mt7921s_unregister_device()
[all …]
/Linux-v6.6/drivers/net/wireless/ath/wil6210/
Dpmc.c1 // SPDX-License-Identifier: ISC
3 * Copyright (c) 2012-2015,2017 Qualcomm Atheros, Inc.
13 #include "txrx.h"
23 return !!pmc->pring_va; in wil_is_pmc_allocated()
28 memset(&wil->pmc, 0, sizeof(struct pmc_ctx)); in wil_pmc_init()
29 mutex_init(&wil->pmc.lock); in wil_pmc_init()
32 /* Allocate the physical ring (p-ring) and the required
44 struct pmc_ctx *pmc = &wil->pmc; in wil_pmc_alloc()
46 struct wil6210_vif *vif = ndev_to_vif(wil->main_ndev); in wil_pmc_alloc()
48 int last_cmd_err = -ENOMEM; in wil_pmc_alloc()
[all …]

1234