Home
last modified time | relevance | path

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

1234

/openbmc/linux/Documentation/devicetree/bindings/net/
H A 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#
20 maxItems: 1
23 minItems: 1
26 interrupt-names:
27 minItems: 1
29 - const: mac
[all …]
/openbmc/linux/arch/mips/include/asm/sibyte/
H A Dsb1250_mac.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
10 * SB1250 specification level: User's manual 1/02/02
30 * MAC Configuration Register (Table 9-13)
38 #define M_MAC_TX_HOLD_SOP_EN _SB_MAKEMASK1(1)
49 #define K_MAC_TX_PAUSE_CNT_1K 1
92 #define K_MAC_SPEED_SEL_100MBPS 1
112 #define K_MAC_BYPASS_ENCODED 1
133 #define K_MAC_FC_CMD_ENABLED 1
161 #define M_MAC_RXDMA_EN1 _SB_MAKEMASK1(1)
202 * MAC Fifo Threshold registers (Table 9-14)
[all …]
H A 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. */
146 #define DMA_TX 1
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 …]
/openbmc/linux/drivers/bus/
H A Dts-nbus.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * NBUS driver for TS-4600 based boards
5 * Copyright (c) 2016 - Savoir-faire Linux
8 * This driver implements a GPIOs bit-banged bus, called the NBUS by Technologic
10 * TS-4600 SoM.
21 #include <linux/ts-nbus.h>
24 #define TS_NBUS_DIRECTION_OUT 1
26 #define TS_NBUS_WRITE_VAL 1
32 struct gpio_desc *txrx; member
45 ts_nbus->data = devm_gpiod_get_array(&pdev->dev, "ts,data", in ts_nbus_init_pdata()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/bus/
H A 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 …]
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/
H A 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 …]
/openbmc/linux/drivers/net/ethernet/mediatek/
H A 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)");
87 [1] = 0x2c00,
151 [1] = 0x4c00,
199 [1] = 0x4c00,
[all …]
H A 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>
55 #define NEXT_DESP_IDX(X, Y) (((X) + 1) & ((Y) - 1))
60 #define MTK_PP_MAX_BUF_SIZE (PAGE_SIZE - MTK_PP_PAD)
69 #define MTK_HW_LRO_TIMER_UNIT 1 /* 20 us */
70 #define MTK_HW_LRO_REFRESH_TIME 50000 /* 1 sec. */
72 #define MTK_HW_LRO_AGE_TIME 50 /* 1ms */
[all …]
/openbmc/linux/drivers/tty/serial/jsm/
H A Djsm_cls.c1 // SPDX-License-Identifier: GPL-2.0+
54 u8 lcrb = readb(&ch->ch_cls_uart->lcr); in cls_set_cts_flow_control()
55 u8 ier = readb(&ch->ch_cls_uart->ier); in cls_set_cts_flow_control()
62 writeb(UART_EXAR654_ENHANCED_REGISTER_SET, &ch->ch_cls_uart->lcr); in cls_set_cts_flow_control()
64 isr_fcr = readb(&ch->ch_cls_uart->isr_fcr); in cls_set_cts_flow_control()
70 writeb(isr_fcr, &ch->ch_cls_uart->isr_fcr); in cls_set_cts_flow_control()
73 writeb(lcrb, &ch->ch_cls_uart->lcr); in cls_set_cts_flow_control()
81 writeb(ier, &ch->ch_cls_uart->ier); in cls_set_cts_flow_control()
84 writeb((UART_FCR_ENABLE_FIFO), &ch->ch_cls_uart->isr_fcr); in cls_set_cts_flow_control()
88 &ch->ch_cls_uart->isr_fcr); in cls_set_cts_flow_control()
[all …]
H A 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 …]
H A 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 */
185 #define RQUEUESIZE (RQUEUEMASK + 1)
221 u8 *ch_rqueue; /* Our read queue buffer - malloc'ed */
[all …]
/openbmc/linux/drivers/net/ethernet/broadcom/
H A Dsb1250-mac.c1 // SPDX-License-Identifier: GPL-2.0-or-later
6 * This driver is designed for the Broadcom SiByte SOC built-in
48 /* A few user-configurable values which may be modified when a driver
51 /* 1 normal messages, 0 quiet .. 7 verbose. */
52 static int debug = 1;
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)
176 int sbdma_txdir; /* direction (1=transmit) */
187 void __iomem *sbdma_config1; /* DMA config register 1 */
[all …]
/openbmc/linux/samples/pktgen/
H A Dfunctions.sh3 # - Depending on bash 3 (or higher) syntax
8 set -o errexit
10 ## -- General shell logging cmds --
12 local exitcode=$1
23 if [[ -n "$VERBOSE" ]]; then
28 ## -- Pktgen proc config commands -- ##
45 local thread=$1
52 local dev=$1
62 local proc_file=$1
67 if [[ ! -e "$proc_ctrl" ]]; then
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dptp.h1 /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
9 #include "en/txrx.h"
17 #define MLX5E_PTP_TS_CQE_UNDELIVERED_TIMEOUT (1 * NSEC_PER_SEC)
61 /* data path - accessed per napi poll */
75 if (!(skb_shinfo(skb)->tx_flags & SKBTX_HW_TSTAMP)) in mlx5e_use_ptpsq()
94 fifo->data[fifo->mask & fifo->pc++] = metadata; in mlx5e_ptp_metadata_fifo_push()
100 return fifo->data[fifo->mask & fifo->cc]; in mlx5e_ptp_metadata_fifo_peek()
106 fifo->cc++; in mlx5e_ptp_metadata_fifo_pop()
113 WARN_ON_ONCE(map->data[metadata]); in mlx5e_ptp_metadata_map_put()
114 map->data[metadata] = skb; in mlx5e_ptp_metadata_map_put()
[all …]
/openbmc/linux/drivers/spi/
H A Dspi-gpio.c1 // SPDX-License-Identifier: GPL-2.0-or-later
25 * platform_device->driver_data ... points to spi_gpio
27 * spi->controller_state ... reserved for bitbang framework code
29 * spi->controller->dev.driver_data ... points to spi_gpio->bitbang
40 /*----------------------------------------------------------------------*/
47 * - The slow generic way: set up platform_data to hold the GPIO
51 * - The quicker inlined way: only helps with platform GPIO code
62 * #include "spi-gpio.c"
72 /*----------------------------------------------------------------------*/
80 bang = spi_controller_get_devdata(spi->controller); in spi_to_spi_gpio()
[all …]
H A Dspi-sh-sci.c1 // SPDX-License-Identifier: GPL-2.0-only
33 #define SCSPTR(sp) (sp->membase + 0x1c)
34 #define PIN_SCK (1 << 2)
35 #define PIN_TXD (1 << 0)
37 #define PIN_INIT ((1 << 1) | (1 << 3) | PIN_SCK | PIN_TXD)
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()
[all …]
H A 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
54 #define TXRX_WRITE (1<<0) /* This is a write */
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()
[all …]
H A Dspi-butterfly.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * parport-to-butterfly adapter
31 #define butterfly_nreset (1 << 1) /* pin 3 */
33 #define spi_sck_bit (1 << 0) /* pin 2 */
34 #define spi_mosi_bit (1 << 7) /* pin 9 */
36 #define vcc_bits ((1 << 6) | (1 << 5)) /* pins 7, 8 */
46 return spi->controller_data; in spidev_to_pp()
64 /*----------------------------------------------------------------------*/
70 u8 bit, byte = pp->lastbyte; in setsck()
78 parport_write_data(pp->port, byte); in setsck()
[all …]
/openbmc/linux/drivers/net/wireless/st/cw1200/
H A 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"
38 #define CW1200_LINK_ID_AFTER_DTIM (CW1200_MAX_STA_IN_AP_MODE + 1)
48 #define CW1200_BLOCK_ACK_INTERVAL (1 * HZ / CW1200_BLOCK_ACK_HIST)
50 #define CW1200_JOIN_TIMEOUT (1 * HZ)
206 /* Keep cw1200 awake (WUP = 1) 1 second after each scan to avoid
240 struct wsm_add_key keys[WSM_KEY_MAX_INDEX + 1];
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Den_accel.h14 * - 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()
104 int payload_len = skb_shinfo(skb)->gso_size + sizeof(struct udphdr); in mlx5e_udp_gso_handle_tx_skb()
[all …]
/openbmc/linux/drivers/net/wireless/ath/wcn36xx/
H A Dwcn36xx.h28 #include "txrx.h"
76 DUMP_PREFIX_OFFSET, 32, 1, \
91 HW_VALUE_CHANNEL(__wcn->hw->conf.chandef.chan->hw_value)
92 #define WCN36XX_BAND(__wcn) (__wcn->hw->conf.chandef.chan->band)
93 #define WCN36XX_CENTER_FREQ(__wcn) (__wcn->hw->conf.chandef.chan->center_freq)
94 #define WCN36XX_LISTEN_INTERVAL(__wcn) (__wcn->hw->conf.listen_interval)
95 #define WCN36XX_FLAGS(__wcn) (__wcn->hw->flags)
96 #define WCN36XX_MAX_POWER(__wcn) (__wcn->hw->conf.chandef.chan->max_power)
116 * struct wcn36xx_vif - holds VIF related fields
159 * struct wcn36xx_sta - holds STA related fields
[all …]
/openbmc/linux/drivers/net/wireless/ath/wil6210/
H A Dtrace.h1 /* SPDX-License-Identifier: ISC */
3 * Copyright (c) 2013-2016 Qualcomm Atheros, Inc.
14 #include "txrx.h"
43 __entry->mid = wmi->mid;
44 __entry->command_id = le16_to_cpu(wmi->command_id);
45 __entry->fw_timestamp = le32_to_cpu(wmi->fw_timestamp);
46 __entry->buf_len = buf_len;
52 __entry->mid, __entry->command_id, __entry->buf_len,
53 __entry->fw_timestamp
73 __vstring(msg, vaf->fmt, vaf->va)
[all …]
/openbmc/linux/drivers/net/can/
H A 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 */
96 #define GRCAN_CONF_RSJ_MIN 1
98 #define GRCAN_CONF_PS1_MIN 1
104 #define GRCAN_CONF_SCALER_INC 1
[all …]
/openbmc/linux/drivers/net/wireless/ath/ath10k/
H A Dtxrx.c1 // SPDX-License-Identifier: ISC
3 * Copyright (c) 2005-2011 Atheros Communications Inc.
4 * Copyright (c) 2011-2016 Qualcomm Atheros, Inc.
9 #include "txrx.h"
18 if (likely(!(info->flags & IEEE80211_TX_CTL_TX_OFFCHAN))) in ath10k_report_offchan_tx()
29 spin_lock_bh(&ar->data_lock); in ath10k_report_offchan_tx()
30 if (ar->offchan_tx_skb != skb) { in ath10k_report_offchan_tx()
35 complete(&ar->offchan_tx_completed); in ath10k_report_offchan_tx()
36 ar->offchan_tx_skb = NULL; /* just for sanity */ in ath10k_report_offchan_tx()
40 spin_unlock_bh(&ar->data_lock); in ath10k_report_offchan_tx()
[all …]
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7921/
H A 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 …]

1234