Home
last modified time | relevance | path

Searched +full:disable +full:- +full:eop (Results 1 – 25 of 66) sorted by relevance

123

/linux/drivers/net/ethernet/amd/
H A Da2065.h4 * (C) Copyright 1995 by Geert Uytterhoeven <geert@linux-m68k.org>
6 * ---------------------------------------------------------------------------
15 * Written 1993-94 by Donald Becker.
17 * Am79C960: PCnet(tm)-ISA Single-Chip Ethernet Controller
21 * ---------------------------------------------------------------------------
27 * ---------------------------------------------------------------------------
29 * The A2065 is a Zorro-II board made by Commodore/Ameristar. It contains:
31 * - an Am7990 Local Area Network Controller for Ethernet (LANCE) with
32 * both 10BASE-2 (thin coax) and AUI (DB-15) connectors
62 #define LE_C0_CERR 0x2000 /* No Heartbeat (10BASE-T) */
[all …]
H A D7990.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * 7990.h -- LANCE ethernet IC generic routines.
11 * in particular a2065.[ch]. The AMD C-LANCE datasheet was also helpful.
32 * too long (and overflow the RAM on shared-memory cards like the HP LANCE.
41 #define TX_RING_MOD_MASK (TX_RING_SIZE - 1)
42 #define RX_RING_MOD_MASK (RX_RING_SIZE - 1)
74 volatile unsigned short mode; /* Pre-set mode (reg. 15) */
84 /* The Tx and Rx ring entries must be aligned on 8-byte boundaries.
85 * This will be true if this whole struct is 8-byte aligned.
114 int auto_select; /* cable-selection is by carrier */
[all …]
/linux/drivers/net/ethernet/asix/
H A Dax88796c_main.c1 // SPDX-License-Identifier: GPL-2.0-only
44 lockdep_assert_held(&ax_local->spi_lock); in ax88796c_soft_reset()
46 AX_WRITE(&ax_local->ax_spi, PSR_RESET, P0_PSR); in ax88796c_soft_reset()
47 AX_WRITE(&ax_local->ax_spi, PSR_RESET_CLR, P0_PSR); in ax88796c_soft_reset()
52 &ax_local->ax_spi, P0_PSR); in ax88796c_soft_reset()
56 temp = AX_READ(&ax_local->ax_spi, P4_SPICR); in ax88796c_soft_reset()
57 if (ax_local->priv_flags & AX_CAP_COMP) { in ax88796c_soft_reset()
58 AX_WRITE(&ax_local->ax_spi, in ax88796c_soft_reset()
60 ax_local->ax_spi.comp = 1; in ax88796c_soft_reset()
62 AX_WRITE(&ax_local->ax_spi, in ax88796c_soft_reset()
[all …]
/linux/sound/pci/cs5535audio/
H A Dcs5535audio.h1 /* SPDX-License-Identifier: GPL-2.0 */
5 #define cs_writel(cs5535au, reg, val) outl(val, (cs5535au)->port + reg)
6 #define cs_writeb(cs5535au, reg, val) outb(val, (cs5535au)->port + reg)
7 #define cs_readl(cs5535au, reg) inl((cs5535au)->port + reg)
8 #define cs_readw(cs5535au, reg) inw((cs5535au)->port + reg)
9 #define cs_readb(cs5535au, reg) inb((cs5535au)->port + reg)
34 #define EOP (1<<0) macro
118 /* disable Analog Input */ in olpc_capture_close()
120 /* disable the MIC Bias (so the recording LED turns off) */ in olpc_capture_close()
/linux/drivers/net/ethernet/xilinx/
H A Dll_temac.h1 /* SPDX-License-Identifier: GPL-2.0 */
13 #include <asm/dcr-regs.h>
125 * 29 2 EOP
191 * 29 2 EOP
241 #define XTE_RXC1_RXLT_MASK (1 << 25) /* Length/type check disable */
317 * struct cdmac_bd - LocalLink buffer descriptor format
324 * 4 SOP TX - marks first desc/ RX marks first desct
325 * 5 EOP TX marks last desc/RX marks last desc
347 /* For non-device-tree devices */
401 #define temac_ior(lp, o) ((lp)->temac_ior(lp, o))
[all …]
/linux/drivers/net/ethernet/altera/
H A Daltera_sgdma.c1 // SPDX-License-Identifier: GPL-2.0-only
56 priv->txctrlreg = SGDMA_CTRLREG_ILASTD | in sgdma_initialize()
59 priv->rxctrlreg = SGDMA_CTRLREG_IDESCRIP | in sgdma_initialize()
63 INIT_LIST_HEAD(&priv->txlisthd); in sgdma_initialize()
64 INIT_LIST_HEAD(&priv->rxlisthd); in sgdma_initialize()
66 priv->rxdescphys = (dma_addr_t) 0; in sgdma_initialize()
67 priv->txdescphys = (dma_addr_t) 0; in sgdma_initialize()
69 priv->rxdescphys = dma_map_single(priv->device, in sgdma_initialize()
70 (void __force *)priv->rx_dma_desc, in sgdma_initialize()
71 priv->rxdescmem, DMA_BIDIRECTIONAL); in sgdma_initialize()
[all …]
/linux/Documentation/devicetree/bindings/usb/
H A Dusb251xb.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Microchip USB 2.0 Hi-Speed Hub Controller
10 - Richard Leitner <richard.leitner@skidata.com>
15 - microchip,usb2422
16 - microchip,usb2512b
17 - microchip,usb2512bi
18 - microchip,usb2513b
19 - microchip,usb2513bi
[all …]
/linux/drivers/net/ethernet/apple/
H A Dbmac.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * mace.h - definitions for the registers in the "Big Mac"
17 #define XIFC 0x000 /* low-level interface control */
19 # define XIFLoopback 0x0002 /* Loopback-mode XIF enable */
20 # define MIILoopback 0x0004 /* Loopback-mode MII enable */
22 # define MIIBuffDisable 0x0008 /* MII receive buffer disable */
48 #define STATUS 0x200 /* status--reading this clears it */
49 #define INTDISABLE 0x210 /* interrupt enable/disable control */
53 # define RxAlignCntExp 0x00000004 /* Align-error counter expired */
54 # define RxCRCCntExp 0x00000008 /* CRC-error counter expired */
[all …]
/linux/drivers/net/ethernet/intel/e1000/
H A De1000_main.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 1999 - 2006 Intel Corporation. */
13 static const char e1000_copyright[] = "Copyright (c) 1999-2006 Intel Corporation.";
15 /* e1000_pci_tbl - PCI Device ID Table
194 static int debug = -1;
199 * e1000_get_hw_dev - helper function for getting netdev
207 struct e1000_adapter *adapter = hw->back; in e1000_get_hw_dev()
208 return adapter->netdev; in e1000_get_hw_dev()
212 * e1000_init_module - Driver Registration Routine
238 * e1000_exit_module - Driver Exit Cleanup Routine
[all …]
/linux/drivers/net/ethernet/sun/
H A Dsunhme.h1 /* SPDX-License-Identifier: GPL-2.0 */
38 #define GREG_STAT_ACNTEXP 0x00000004 /* Align-error counter expired */
39 #define GREG_STAT_CCNTEXP 0x00000008 /* CRC-error counter expired */
40 #define GREG_STAT_LCNTEXP 0x00000010 /* Length-error counter expired */
42 #define GREG_STAT_CVCNTEXP 0x00000040 /* Code-violation counter expired */
46 #define GREG_STAT_MAXPKTERR 0x00000400 /* Max-packet size error */
47 #define GREG_STAT_NCNTEXP 0x00000800 /* Normal-collision counter expired */
48 #define GREG_STAT_ECNTEXP 0x00001000 /* Excess-collision counter expired */
49 #define GREG_STAT_LCCNTEXP 0x00002000 /* Late-collision counter expired */
50 #define GREG_STAT_FCNTEXP 0x00004000 /* First-collision counter expired */
[all …]
/linux/drivers/net/ethernet/intel/e1000e/
H A Dnetdev.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 1999 - 2018 Intel Corporation. */
36 static int debug = -1;
112 * __ew32_prepare - prepare to write to MAC CSR register on certain parts
127 while ((er32(FWSM) & E1000_ICH_FWSM_PCIM2PCI) && --i) in __ew32_prepare()
133 if (hw->adapter->flags2 & FLAG2_PCIM2PCI_ARBITER_WA) in __ew32()
136 writel(val, hw->hw_addr + reg); in __ew32()
140 * e1000_regdump - register printout routine
150 switch (reginfo->ofs) { in e1000_regdump()
164 pr_info("%-15s %08x\n", in e1000_regdump()
[all …]
/linux/drivers/gpu/drm/amd/amdgpu/
H A Dmes_v11_0.c71 struct amdgpu_device *adev = ring->adev; in mes_v11_0_ring_set_wptr()
73 if (ring->use_doorbell) { in mes_v11_0_ring_set_wptr()
74 atomic64_set((atomic64_t *)ring->wptr_cpu_addr, in mes_v11_0_ring_set_wptr()
75 ring->wptr); in mes_v11_0_ring_set_wptr()
76 WDOORBELL64(ring->doorbell_index, ring->wptr); in mes_v11_0_ring_set_wptr()
84 return *ring->rptr_cpu_addr; in mes_v11_0_ring_get_rptr()
91 if (ring->use_doorbell) in mes_v11_0_ring_get_wptr()
92 wptr = atomic64_read((atomic64_t *)ring->wptr_cpu_addr); in mes_v11_0_ring_get_wptr()
145 if (x_pkt->header.opcode < ARRAY_SIZE(mes_v11_0_opcodes)) in mes_v11_0_get_op_string()
146 op_str = mes_v11_0_opcodes[x_pkt->header.opcode]; in mes_v11_0_get_op_string()
[all …]
H A Dmes_v12_0.c52 struct amdgpu_device *adev = ring->adev; in mes_v12_0_ring_set_wptr()
54 if (ring->use_doorbell) { in mes_v12_0_ring_set_wptr()
55 atomic64_set((atomic64_t *)ring->wptr_cpu_addr, in mes_v12_0_ring_set_wptr()
56 ring->wptr); in mes_v12_0_ring_set_wptr()
57 WDOORBELL64(ring->doorbell_index, ring->wptr); in mes_v12_0_ring_set_wptr()
65 return *ring->rptr_cpu_addr; in mes_v12_0_ring_get_rptr()
72 if (ring->use_doorbell) in mes_v12_0_ring_get_wptr()
73 wptr = atomic64_read((atomic64_t *)ring->wptr_cpu_addr); in mes_v12_0_ring_get_wptr()
128 if (x_pkt->header.opcode < ARRAY_SIZE(mes_v12_0_opcodes)) in mes_v12_0_get_op_string()
129 op_str = mes_v12_0_opcodes[x_pkt->header.opcode]; in mes_v12_0_get_op_string()
[all …]
/linux/drivers/tty/serial/
H A Daltera_uart.c1 // SPDX-License-Identifier: GPL-2.0+
3 * altera_uart.c -- Altera UART driver
5 * Based on mcf.c -- Freescale ColdFire UART driver
7 * (C) Copyright 2003-2007, Greg Ungerer <gerg@snapgear.com>
53 #define ALTERA_UART_STATUS_DCTS_MSK 0x0400 /* CTS logic-level change */
55 #define ALTERA_UART_STATUS_EOP_MSK 0x1000 /* EOP written/read */
71 #define ALTERA_UART_CONTROL_EOP_MSK 0x1000 /* Interrupt on EOP */
74 * Local per-uart structure.
85 return readl(port->membase + (reg << port->regshift)); in altera_uart_readl()
90 writel(dat, port->membase + (reg << port->regshift)); in altera_uart_writel()
[all …]
/linux/drivers/usb/gadget/udc/
H A Dgoku_udc.c1 // SPDX-License-Identifier: GPL-2.0
3 * Toshiba TC86C001 ("Goku-S") USB Device Controller driver
5 * Copyright (C) 2000-2002 Lineo
12 * This device has ep0 and three semi-configurable bulk/interrupt endpoints.
14 * - Endpoint numbering is fixed: ep{1,2,3}-bulk
15 * - Gadget drivers can choose ep maxpacket (8/16/32/64)
16 * - Gadget drivers can choose direction (IN, OUT)
17 * - DMA works with ep1 (OUT transfers) and ep2 (IN transfers).
21 // #define USB_TRACE /* packet-level success messages */
49 #define DRIVER_VERSION "30-Oct 2003"
[all …]
/linux/drivers/usb/host/
H A Duhci-hub.c1 // SPDX-License-Identifier: GPL-2.0
8 * (C) Copyright 1999-2002 Johannes Erdfelt, johannes@erdfelt.com
19 USB_DT_HUB, /* __u8 bDescriptorType; Hub-descriptor */
22 HUB_CHAR_INDV_PORT_OCPM, /* (per-port OC, no power switching) */
41 /* A port that either is connected or has a changed-bit set will prevent
48 for (port = 0; port < uhci->rh_numports; ++port) { in any_ports_active()
51 test_bit(port, &uhci->port_c_suspend)) in any_ports_active()
72 for (port = 0; port < uhci->rh_numports; ++port) { in get_hub_status_data()
74 test_bit(port, &uhci->port_c_suspend)) in get_hub_status_data()
104 if (test_bit(port, &uhci->resuming_ports)) in uhci_finish_suspend()
[all …]
/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_txrx.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 2013 - 2018 Intel Corporation. */
16 * i40e_fdir - Generate a Flow Director descriptor based on fdata
26 struct i40e_pf *pf = tx_ring->vsi->back; in i40e_fdir()
31 i = tx_ring->next_to_use; in i40e_fdir()
35 tx_ring->next_to_use = (i < tx_ring->count) ? i : 0; in i40e_fdir()
37 flex_ptype = FIELD_PREP(I40E_TXD_FLTR_QW0_QINDEX_MASK, fdata->q_index); in i40e_fdir()
40 fdata->flex_off); in i40e_fdir()
42 flex_ptype |= FIELD_PREP(I40E_TXD_FLTR_QW0_PCTYPE_MASK, fdata->pctype); in i40e_fdir()
45 vsi_id = fdata->dest_vsi ? : i40e_pf_get_main_vsi(pf)->id; in i40e_fdir()
[all …]
/linux/drivers/net/ethernet/wangxun/libwx/
H A Dwx_lib.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright (c) 2019 - 2022 Beijing WangXun Technology Co., Ltd. */
34 /* L3: ip non-tunnel */
50 /* IPv4 --> IPv4/IPv6 */
62 /* IPv4 --> GRE/NAT --> NONE/IPv4/IPv6 */
75 /* IPv4 --> GRE/NAT --> MAC --> NONE/IPv4/IPv6 */
88 /* IPv4 --> GRE/NAT --> MAC+VLAN --> NONE/IPv4/IPv6 */
101 /* IPv6 --> IPv4/IPv6 */
113 /* IPv6 --> GRE/NAT -> NONE/IPv4/IPv6 */
126 /* IPv6 --> GRE/NAT -> MAC -> NONE/IPv4/IPv6 */
[all …]
/linux/drivers/net/ethernet/chelsio/cxgb/
H A Despi.c1 // SPDX-License-Identifier: GPL-2.0-only
14 * Copyright (c) 2003 - 2005 Chelsio Communications, Inc. *
61 adapter->regs + A_ESPI_CMD_ADDR); in tricn_write()
62 writel(0, adapter->regs + A_ESPI_GOSTAT); in tricn_write()
65 busy = readl(adapter->regs + A_ESPI_GOSTAT) & F_ESPI_CMD_BUSY; in tricn_write()
66 } while (busy && --attempts); in tricn_write()
69 pr_err("%s: TRICN write timed out\n", adapter->name); in tricn_write()
78 if (!(readl(adapter->regs + A_ESPI_RX_RESET) & F_RX_CLK_STATUS)) { in tricn_init()
79 pr_err("%s: ESPI clock not ready\n", adapter->name); in tricn_init()
80 return -1; in tricn_init()
[all …]
H A Dsge.c1 // SPDX-License-Identifier: GPL-2.0-only
14 * Copyright (c) 2003 - 2005 Chelsio Communications, Inc. *
113 u32 Eop : 1; member
137 u32 Eop : 1; member
170 unsigned int in_use; /* # of in-use command descriptors */
218 unsigned int avail; /* available bits - quota */
255 unsigned int intrtimer_nres; /* no-resource interrupt timer */
256 unsigned int fixed_intrtimer;/* non-adaptive interrupt timer */
277 struct sched *s = sge->tx_sched; in tx_sched_stop()
280 tasklet_kill(&s->sched_tsk); in tx_sched_stop()
[all …]
/linux/drivers/net/ethernet/socionext/
H A Dnetsec.c1 // SPDX-License-Identifier: GPL-2.0+
247 #define NETSEC_RX_BUF_SIZE (PAGE_SIZE - NETSEC_RX_BUF_NON_DATA)
333 writel(val, priv->ioaddr + reg_addr); in netsec_write()
338 return readl(priv->ioaddr + reg_addr); in netsec_read()
366 while (--timeout && netsec_read(priv, addr) & mask) in netsec_wait_while_busy()
372 while (--timeout && netsec_read(priv, addr) & mask) in netsec_wait_while_busy()
378 netdev_WARN(priv->ndev, "%s: timeout\n", __func__); in netsec_wait_while_busy()
380 return -ETIMEDOUT; in netsec_wait_while_busy()
417 } while (--timeout && (data & mask)); in netsec_mac_wait_while_busy()
430 } while (--timeout && (data & mask)); in netsec_mac_wait_while_busy()
[all …]
/linux/drivers/net/ethernet/intel/ixgbevf/
H A Dixgbevf_main.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 1999 - 2024 Intel Corporation. */
5 Copyright (c)2006 - 2007 Myricom, Inc. for some LRO specific code
42 "Copyright (c) 2009 - 2024 Intel Corporation.";
58 /* ixgbevf_pci_tbl - PCI Device ID Table
88 static int debug = -1;
96 if (!test_bit(__IXGBEVF_DOWN, &adapter->state) && in ixgbevf_service_event_schedule()
97 !test_bit(__IXGBEVF_REMOVING, &adapter->state) && in ixgbevf_service_event_schedule()
98 !test_and_set_bit(__IXGBEVF_SERVICE_SCHED, &adapter->state)) in ixgbevf_service_event_schedule()
99 queue_work(ixgbevf_wq, &adapter->service_task); in ixgbevf_service_event_schedule()
[all …]
/linux/drivers/net/vmxnet3/
H A Dvmxnet3_drv.c4 * Copyright (C) 2008-2024, VMware, Inc. All Rights Reserved.
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
23 * Maintained by: pv-drivers@vmware.com
57 * Enable/Disable the given intr
74 * Enable/Disable all intrs used by the device
81 for (i = 0; i < adapter->intr.num_intrs; i++) in vmxnet3_enable_all_intrs()
84 !adapter->queuesExtEnabled) { in vmxnet3_enable_all_intrs()
85 adapter->shared->devRead.intrConf.intrCtrl &= in vmxnet3_enable_all_intrs()
88 adapter->shared->devReadExt.intrConfExt.intrCtrl &= in vmxnet3_enable_all_intrs()
100 !adapter->queuesExtEnabled) { in vmxnet3_disable_all_intrs()
[all …]
/linux/drivers/net/ethernet/intel/igc/
H A Digc_main.c1 // SPDX-License-Identifier: GPL-2.0
33 static int debug = -1;
81 struct net_device *dev = adapter->netdev; in igc_reset()
82 struct igc_hw *hw = &adapter->hw; in igc_reset()
83 struct igc_fc_info *fc = &hw->fc; in igc_reset()
95 * - the full Rx FIFO size minus one full Tx plus one full Rx frame in igc_reset()
97 hwm = (pba << 10) - (adapter->max_frame_size + MAX_JUMBO_FRAME_SIZE); in igc_reset()
99 fc->high_water = hwm & 0xFFFFFFF0; /* 16-byte granularity */ in igc_reset()
100 fc->low_water = fc->high_water - 16; in igc_reset()
101 fc->pause_time = 0xFFFF; in igc_reset()
[all …]
/linux/drivers/net/ethernet/chelsio/cxgb3/
H A Dsge.c2 * Copyright (c) 2005-2008 Chelsio, Inc. All rights reserved.
14 * - Redistributions of source code must retain the above
18 * - Redistributions in binary form must reproduce the above
38 #include <linux/dma-mapping.h>
111 u8 eop; /* set if last descriptor for packet */ member
137 * This structure lives at skb->head and must be allocated by callers.
148 * desc = 1 + (flits - 2) / (WR_FLITS - 1).
180 * refill_rspq - replenish an SGE response queue
193 V_RSPQ(q->cntxt_id) | V_CREDITS(credits)); in refill_rspq()
197 * need_skb_unmap - does the platform need unmapping of sk_buffs?
[all …]

123