| /linux/drivers/net/ethernet/amd/ | 
| H A D | a2065.h | 4  * (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 D | 7990.h | 1 /* 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 …]
 
 | 
| H A D | declance.c | 1 // SPDX-License-Identifier: GPL-2.0-only12  *      - PMAD-AA TURBOchannel Ethernet Module Functional Specification,
 24  *      v0.004: lance-regs is pointing at the right addresses, added prom
 27  *      v0.005: started to play around with LANCE-DMA. This driver will not
 36  *              (long) word. So we have a 2-2 padding here. Changed
 37  *              lance_init_block accordingly. The 16-16 padding for the buffers
 80 MODULE_DESCRIPTION("DEC LANCE (DECstation onboard, PMAD-xx) driver");
 130 #define LE_R1_POK	0x0300	/* Packet is complete: SOP + EOP */
 140 #define LE_T1_POK	0x0300	/* Packet is complete: SOP + EOP */
 157 #define TX_RING_MOD_MASK		(TX_RING_SIZE - 1)
 [all …]
 
 | 
| /linux/drivers/net/ethernet/asix/ | 
| H A D | ax88796c_main.c | 1 // SPDX-License-Identifier: GPL-2.0-only44 	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 D | cs5535audio.h | 1 /* 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 D | ll_temac.h | 1 /* 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 D | altera_sgdma.c | 1 // SPDX-License-Identifier: GPL-2.0-only56 	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/drivers/net/ethernet/apple/ | 
| H A D | bmac.h | 1 /* 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/sun/ | 
| H A D | sunhme.h | 1 /* 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/tty/serial/ | 
| H A D | altera_uart.c | 1 // 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 …]
 
 | 
| H A D | fsl_lpuart.c | 1 // SPDX-License-Identifier: GPL-2.0+5  *  Copyright 2012-2014 Freescale Semiconductor, Inc.
 14 #include <linux/dma-mapping.h>
 30 /* All registers are 8-bit width */
 119 /* 32-bit global registers only for i.MX7ULP/i.MX8x
 124 /* 32-bit register definition */
 246 #define DRIVER_NAME	"fsl-lpuart"
 349 	{ .compatible = "fsl,vf610-lpuart",	.data = &vf_data, },
 350 	{ .compatible = "fsl,ls1021a-lpuart",	.data = &ls1021a_data, },
 351 	{ .compatible = "fsl,ls1028a-lpuart",	.data = &ls1028a_data, },
 [all …]
 
 | 
| /linux/drivers/usb/gadget/udc/ | 
| H A D | goku_udc.c | 1 // SPDX-License-Identifier: GPL-2.03  * 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 D | uhci-hub.c | 1 // SPDX-License-Identifier: GPL-2.08  * (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 D | i40e_txrx.c | 1 // SPDX-License-Identifier: GPL-2.02 /* Copyright(c) 2013 - 2018 Intel Corporation. */
 17  * i40e_fdir - Generate a Flow Director descriptor based on fdata
 27 	struct i40e_pf *pf = tx_ring->vsi->back;  in i40e_fdir()
 32 	i = tx_ring->next_to_use;  in i40e_fdir()
 36 	tx_ring->next_to_use = (i < tx_ring->count) ? i : 0;  in i40e_fdir()
 38 	flex_ptype = FIELD_PREP(I40E_TXD_FLTR_QW0_QINDEX_MASK, fdata->q_index);  in i40e_fdir()
 41 				 fdata->flex_off);  in i40e_fdir()
 43 	flex_ptype |= FIELD_PREP(I40E_TXD_FLTR_QW0_PCTYPE_MASK, fdata->pctype);  in i40e_fdir()
 46 	vsi_id = fdata->dest_vsi ? : i40e_pf_get_main_vsi(pf)->id;  in i40e_fdir()
 [all …]
 
 | 
| /linux/drivers/net/ethernet/chelsio/cxgb/ | 
| H A D | espi.c | 1 // SPDX-License-Identifier: GPL-2.0-only14  * 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 D | sge.c | 1 // SPDX-License-Identifier: GPL-2.0-only14  * 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 D | netsec.c | 1 // 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 D | ixgbevf_main.c | 1 // SPDX-License-Identifier: GPL-2.02 /* 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 D | vmxnet3_drv.c | 4  * 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 D | igc_main.c | 1 // SPDX-License-Identifier: GPL-2.033 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 D | sge.c | 2  * 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 …]
 
 | 
| /linux/drivers/net/ethernet/intel/idpf/ | 
| H A D | idpf_txrx.c | 1 // SPDX-License-Identifier: GPL-2.0-only10 #define idpf_tx_buf_next(buf)		(*(u32 *)&(buf)->priv)
 14  * idpf_chk_linearize - Check if skb exceeds max descriptors per packet
 37  * idpf_tx_timeout - Respond to a Tx Hang
 45 	adapter->tx_timeout_count++;  in idpf_tx_timeout()
 48 		   adapter->tx_timeout_count, txqueue);  in idpf_tx_timeout()
 50 		set_bit(IDPF_HR_FUNC_RESET, adapter->flags);  in idpf_tx_timeout()
 51 		queue_delayed_work(adapter->vc_event_wq,  in idpf_tx_timeout()
 52 				   &adapter->vc_event_task,  in idpf_tx_timeout()
 62 		.dev	= txq->dev,  in idpf_tx_buf_clean()
 [all …]
 
 | 
| /linux/drivers/gpu/drm/radeon/ | 
| H A D | r600.c | 105 	AVIVO_D2CRTC_H_TOTAL - AVIVO_D1CRTC_H_TOTAL125 	spin_lock_irqsave(&rdev->rcu_idx_lock, flags);  in r600_rcu_rreg()
 128 	spin_unlock_irqrestore(&rdev->rcu_idx_lock, flags);  in r600_rcu_rreg()
 136 	spin_lock_irqsave(&rdev->rcu_idx_lock, flags);  in r600_rcu_wreg()
 139 	spin_unlock_irqrestore(&rdev->rcu_idx_lock, flags);  in r600_rcu_wreg()
 147 	spin_lock_irqsave(&rdev->uvd_idx_lock, flags);  in r600_uvd_ctx_rreg()
 150 	spin_unlock_irqrestore(&rdev->uvd_idx_lock, flags);  in r600_uvd_ctx_rreg()
 158 	spin_lock_irqsave(&rdev->uvd_idx_lock, flags);  in r600_uvd_ctx_wreg()
 161 	spin_unlock_irqrestore(&rdev->uvd_idx_lock, flags);  in r600_uvd_ctx_wreg()
 165  * r600_get_allowed_info_register - fetch the register for the info ioctl
 [all …]
 
 | 
| /linux/drivers/usb/mtu3/ | 
| H A D | mtu3_gadget_ep0.c | 1 // SPDX-License-Identifier: GPL-2.03  * mtu3_gadget_ep0.c - MediaTek USB3 DRD peripheral driver ep0 handling
 17 /* ep0 is always mtu3->in_eps[0] */
 18 #define	next_ep0_request(mtu)	next_request((mtu)->ep0)
 36 	/* implicit CRC16 then EOP to end */
 41 	switch (mtu->ep0_state) {  in decode_ep0_state()
 49 		return "TX-END";  in decode_ep0_state()
 59 	mtu3_req_complete(mtu->ep0, req, 0);  in ep0_req_giveback()
 64 __releases(mtu->lock)  in forward_to_driver()
 65 __acquires(mtu->lock)  in forward_to_driver()
 [all …]
 
 | 
| /linux/drivers/net/ethernet/intel/igb/ | 
| H A D | igb_main.c | 1 // SPDX-License-Identifier: GPL-2.02 /* Copyright(c) 2007 - 2018 Intel Corporation. */
 56 				"Copyright (c) 2007-2014 Intel Corporation.";
 208 static int debug = -1;
 253 /* igb_regdump - register printout routine */
 260 	switch (reginfo->ofs) {  in igb_regdump()
 310 		pr_info("%-15s %08x\n", reginfo->name, rd32(reginfo->ofs));  in igb_regdump()
 314 	snprintf(rname, 16, "%s%s", reginfo->name, "[0-3]");  in igb_regdump()
 315 	pr_info("%-15s %08x %08x %08x %08x\n", rname, regs[0], regs[1],  in igb_regdump()
 319 /* igb_dump - Print registers, Tx-rings and Rx-rings */
 [all …]
 
 |