/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 …]
|
/linux/drivers/net/ethernet/asix/ |
H A D | ax88796c_main.c | 1 // 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 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-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 D | usb251xb.yaml | 1 # 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 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/net/ethernet/intel/e1000e/ |
H A D | netdev.c | 1 // 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 D | mes_v11_0.c | 68 struct amdgpu_device *adev = ring->adev; in mes_v11_0_ring_set_wptr() 70 if (ring->use_doorbell) { in mes_v11_0_ring_set_wptr() 71 atomic64_set((atomic64_t *)ring->wptr_cpu_addr, in mes_v11_0_ring_set_wptr() 72 ring->wptr); in mes_v11_0_ring_set_wptr() 73 WDOORBELL64(ring->doorbell_index, ring->wptr); in mes_v11_0_ring_set_wptr() 81 return *ring->rptr_cpu_addr; in mes_v11_0_ring_get_rptr() 88 if (ring->use_doorbell) in mes_v11_0_ring_get_wptr() 89 wptr = atomic64_read((atomic64_t *)ring->wptr_cpu_addr); in mes_v11_0_ring_get_wptr() 142 if (x_pkt->header.opcode < ARRAY_SIZE(mes_v11_0_opcodes)) in mes_v11_0_get_op_string() 143 op_str = mes_v11_0_opcodes[x_pkt->header.opcode]; in mes_v11_0_get_op_string() [all …]
|
H A D | mes_v12_0.c | 52 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 …]
|
H A D | gfx_v7_0.c | 889 amdgpu_ucode_release(&adev->gfx.pfp_fw); in gfx_v7_0_free_microcode() 890 amdgpu_ucode_release(&adev->gfx.me_fw); in gfx_v7_0_free_microcode() 891 amdgpu_ucode_release(&adev->gfx.ce_fw); in gfx_v7_0_free_microcode() 892 amdgpu_ucode_release(&adev->gfx.mec_fw); in gfx_v7_0_free_microcode() 893 amdgpu_ucode_release(&adev->gfx.mec2_fw); in gfx_v7_0_free_microcode() 894 amdgpu_ucode_release(&adev->gfx.rlc_fw); in gfx_v7_0_free_microcode() 901 * gfx_v7_0_init_microcode - load ucode images from disk 916 switch (adev->asic_type) { in gfx_v7_0_init_microcode() 936 err = amdgpu_ucode_request(adev, &adev->gfx.pfp_fw, in gfx_v7_0_init_microcode() 942 err = amdgpu_ucode_request(adev, &adev->gfx.me_fw, in gfx_v7_0_init_microcode() [all …]
|
H A D | gfx_v8_0.c | 91 BPM_REG_CGLS_EN = 0, /* Enable/Disable CGLS */ 740 switch (adev->asic_type) { in gfx_v8_0_init_golden_registers() 803 if ((adev->pdev->device == 0x67DF) && (adev->pdev->revision == 0xc7) && in gfx_v8_0_init_golden_registers() 804 ((adev->pdev->subsystem_device == 0xb37 && adev->pdev->subsystem_vendor == 0x1002) || in gfx_v8_0_init_golden_registers() 805 (adev->pdev->subsystem_device == 0x4a8 && adev->pdev->subsystem_vendor == 0x1043) || in gfx_v8_0_init_golden_registers() 806 (adev->pdev->subsystem_device == 0x9480 && adev->pdev->subsystem_vendor == 0x1680))) { in gfx_v8_0_init_golden_registers() 840 struct amdgpu_device *adev = ring->adev; in gfx_v8_0_ring_test_ring() 851 amdgpu_ring_write(ring, mmSCRATCH_REG0 - PACKET3_SET_UCONFIG_REG_START); in gfx_v8_0_ring_test_ring() 855 for (i = 0; i < adev->usec_timeout; i++) { in gfx_v8_0_ring_test_ring() 862 if (i >= adev->usec_timeout) in gfx_v8_0_ring_test_ring() [all …]
|
H A D | gfx_v9_4_3.c | 173 struct amdgpu_device *adev = kiq_ring->adev; in gfx_v9_4_3_kiq_set_resources() 177 shader_mc_addr = adev->gfx.cleaner_shader_gpu_addr >> 8; in gfx_v9_4_3_kiq_set_resources() 197 struct amdgpu_device *adev = kiq_ring->adev; in gfx_v9_4_3_kiq_map_queues() 198 uint64_t mqd_addr = amdgpu_bo_gpu_offset(ring->mqd_obj); in gfx_v9_4_3_kiq_map_queues() 199 uint64_t wptr_addr = adev->wb.gpu_addr + (ring->wptr_offs * 4); in gfx_v9_4_3_kiq_map_queues() 200 uint32_t eng_sel = ring->funcs->type == AMDGPU_RING_TYPE_GFX ? 4 : 0; in gfx_v9_4_3_kiq_map_queues() 207 PACKET3_MAP_QUEUES_QUEUE(ring->queue) | in gfx_v9_4_3_kiq_map_queues() 208 PACKET3_MAP_QUEUES_PIPE(ring->pipe) | in gfx_v9_4_3_kiq_map_queues() 209 PACKET3_MAP_QUEUES_ME((ring->me == 1 ? 0 : 1)) | in gfx_v9_4_3_kiq_map_queues() 218 PACKET3_MAP_QUEUES_DOORBELL_OFFSET(ring->doorbell_index)); in gfx_v9_4_3_kiq_map_queues() [all …]
|
H A D | gfx_v12_0.c | 262 uint64_t mqd_addr = amdgpu_bo_gpu_offset(ring->mqd_obj); in gfx_v12_0_kiq_map_queues() 263 uint64_t wptr_addr = ring->wptr_gpu_addr; in gfx_v12_0_kiq_map_queues() 266 switch (ring->funcs->type) { in gfx_v12_0_kiq_map_queues() 288 PACKET3_MAP_QUEUES_QUEUE(ring->queue) | in gfx_v12_0_kiq_map_queues() 289 PACKET3_MAP_QUEUES_PIPE(ring->pipe) | in gfx_v12_0_kiq_map_queues() 295 amdgpu_ring_write(kiq_ring, PACKET3_MAP_QUEUES_DOORBELL_OFFSET(ring->doorbell_index)); in gfx_v12_0_kiq_map_queues() 307 struct amdgpu_device *adev = kiq_ring->adev; in gfx_v12_0_kiq_unmap_queues() 308 uint32_t eng_sel = ring->funcs->type == AMDGPU_RING_TYPE_GFX ? 4 : 0; in gfx_v12_0_kiq_unmap_queues() 310 if (adev->enable_mes && !adev->gfx.kiq[0].ring.sched.ready) { in gfx_v12_0_kiq_unmap_queues() 322 PACKET3_UNMAP_QUEUES_DOORBELL_OFFSET0(ring->doorbell_index)); in gfx_v12_0_kiq_unmap_queues() [all …]
|
/linux/drivers/usb/gadget/udc/ |
H A D | goku_udc.c | 1 // 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 D | uhci-hub.c | 1 // 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 D | i40e_txrx.c | 1 // 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/chelsio/cxgb/ |
H A D | espi.c | 1 // 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 D | sge.c | 1 // 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/wangxun/libwx/ |
H A D | wx_lib.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright (c) 2019 - 2022 Beijing WangXun Technology Co., Ltd. */ 32 /* L3: ip non-tunnel */ 48 /* IPv4 --> IPv4/IPv6 */ 60 /* IPv4 --> GRE/NAT --> NONE/IPv4/IPv6 */ 73 /* IPv4 --> GRE/NAT --> MAC --> NONE/IPv4/IPv6 */ 86 /* IPv4 --> GRE/NAT --> MAC+VLAN --> NONE/IPv4/IPv6 */ 99 /* IPv6 --> IPv4/IPv6 */ 111 /* IPv6 --> GRE/NAT -> NONE/IPv4/IPv6 */ 124 /* IPv6 --> GRE/NAT -> MAC -> NONE/IPv4/IPv6 */ [all …]
|
/linux/drivers/usb/misc/ |
H A D | usb251xb.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Driver for Microchip USB251xB USB 2.0 Hi-Speed Hub Controller 9 * a not-accepted patch by Fabien Lahoudere, see: 110 #define DRIVER_DESC "Microchip USB 2.0 Hi-Speed Hub Controller" 234 if (dev->type == &i2c_adapter_type) { in usb251xb_check_dev_children() 244 struct gpio_chip *gc = gpiod_to_chip(hub->gpio_reset); in usb251x_check_gpio_chip() 245 struct i2c_adapter *adap = hub->i2c->adapter; in usb251x_check_gpio_chip() 248 if (!hub->gpio_reset) in usb251x_check_gpio_chip() 252 return -EINVAL; in usb251x_check_gpio_chip() 254 ret = usb251xb_check_dev_children(&adap->dev, gc->parent); in usb251x_check_gpio_chip() [all …]
|
/linux/drivers/gpu/drm/radeon/ |
H A D | cik.c | 144 * cik_get_allowed_info_register - fetch the register for the info ioctl 150 * Returns 0 for success or -EINVAL for an invalid register 172 return -EINVAL; in cik_get_allowed_info_register() 184 spin_lock_irqsave(&rdev->didt_idx_lock, flags); in cik_didt_rreg() 187 spin_unlock_irqrestore(&rdev->didt_idx_lock, flags); in cik_didt_rreg() 195 spin_lock_irqsave(&rdev->didt_idx_lock, flags); in cik_didt_wreg() 198 spin_unlock_irqrestore(&rdev->didt_idx_lock, flags); in cik_didt_wreg() 227 actual_temp = (temp / 8) - 49; in kv_get_temp() 242 spin_lock_irqsave(&rdev->pciep_idx_lock, flags); in cik_pciep_rreg() 246 spin_unlock_irqrestore(&rdev->pciep_idx_lock, flags); in cik_pciep_rreg() [all …]
|
/linux/drivers/net/ethernet/intel/igc/ |
H A D | igc_main.c | 1 // 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 …]
|