| /linux/drivers/gpu/drm/radeon/ |
| H A D | dce3_1_afmt.c | 2 * Copyright 2013 Advanced Micro Devices, Inc. 34 struct radeon_device *rdev = encoder->dev->dev_private; in dce3_2_afmt_hdmi_write_speaker_allocation() 52 struct radeon_device *rdev = encoder->dev->dev_private; in dce3_2_afmt_dp_write_speaker_allocation() 71 struct radeon_device *rdev = encoder->dev->dev_private; in dce3_2_afmt_write_sad_regs() 90 int max_channels = -1; in dce3_2_afmt_write_sad_regs() 96 if (sad->format == eld_reg_to_type[i][1]) { in dce3_2_afmt_write_sad_regs() 97 if (sad->channels > max_channels) { in dce3_2_afmt_write_sad_regs() 98 value = MAX_CHANNELS(sad->channels) | in dce3_2_afmt_write_sad_regs() 99 DESCRIPTOR_BYTE_2(sad->byte2) | in dce3_2_afmt_write_sad_regs() 100 SUPPORTED_FREQUENCIES(sad->freq); in dce3_2_afmt_write_sad_regs() [all …]
|
| H A D | evergreen_hdmi.c | 2 * Copyright 2008 Advanced Micro Devices, Inc. 72 struct drm_device *dev = encoder->dev; in evergreen_hdmi_update_acr() 73 struct radeon_device *rdev = dev->dev_private; in evergreen_hdmi_update_acr() 76 if (encoder->crtc) { in evergreen_hdmi_update_acr() 77 struct radeon_crtc *radeon_crtc = to_radeon_crtc(encoder->crtc); in evergreen_hdmi_update_acr() 78 bpc = radeon_crtc->bpc; in evergreen_hdmi_update_acr() 89 WREG32(HDMI_ACR_32_0 + offset, HDMI_ACR_CTS_32(acr->cts_32khz)); in evergreen_hdmi_update_acr() 90 WREG32(HDMI_ACR_32_1 + offset, acr->n_32khz); in evergreen_hdmi_update_acr() 92 WREG32(HDMI_ACR_44_0 + offset, HDMI_ACR_CTS_44(acr->cts_44_1khz)); in evergreen_hdmi_update_acr() 93 WREG32(HDMI_ACR_44_1 + offset, acr->n_44_1khz); in evergreen_hdmi_update_acr() [all …]
|
| /linux/tools/usb/ |
| H A D | hcd-tests.sh | 2 # SPDX-License-Identifier: GPL-2.0 6 # - control: any device can do this 7 # - out, in: out needs 'bulk sink' firmware, in needs 'bulk src' 8 # - iso-out, iso-in: out needs 'iso sink' firmware, in needs 'iso src' 9 # - halt: needs bulk sink+src, tests halt set/clear from host 10 # - unlink: needs bulk sink and/or src, test HCD unlink processing 11 # - loop: needs firmware that will buffer N transfers 25 # - include unlink tests 26 # - add some ${RANDOM}ness 27 # - connect several devices concurrently (same HC) [all …]
|
| /linux/include/uapi/linux/can/ |
| H A D | isotp.h | 1 /* SPDX-License-Identifier: ((GPL-2.0-only WITH Linux-syscall-note) OR BSD-3-Clause) */ 5 * Definitions for ISO 15765-2 CAN transport protocol sockets 65 /* ignore received CF frames which */ 98 /* 0x00 - 0x7F : 0 - 127 ms */ 99 /* 0x80 - 0xF0 : reserved */ 100 /* 0xF1 - 0xF9 : 100 us - 900 us */ 101 /* 0xFA - 0xFF : reserved */ 111 /* CAN_MTU (16) -> standard CAN 2.0 */ 112 /* CANFD_MTU (72) -> CAN FD frame */ 138 #define CAN_ISOTP_SF_BROADCAST 0x0800 /* 1-to-N functional addressing */ [all …]
|
| /linux/drivers/accel/amdxdna/ |
| H A D | aie2_solver.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Copyright (C) 2023-2024, Advanced Micro Devices, Inc. 33 u32 fps; /* Frames per second */ 74 * Power levels 0 - n, is a step increase in system frequencies 118 * xrsm_init() - Register resource solver. Resource solver client needs 130 * xrs_allocate_resource() - Request to allocate resources for a given context 149 * xrs_release_resource() - Request to free resources for a given context.
|
| /linux/drivers/pci/controller/ |
| H A D | pci-xgene-msi.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * APM X-Gene MSI Driver 5 * Copyright (c) 2014, Applied Micro Circuits Corporation 16 #include <linux/irqchip/irq-msi-lib.h> 49 * X-Gene v1 has 16 frames of MSI termination registers MSInIRx, where n is 94 return readl_relaxed(msi->msi_regs + MSI_IR0 + in xgene_msi_ir_read() 102 return readl_relaxed(msi->msi_regs + MSI_INT0 + in xgene_msi_int_read() 109 * atomically), we statically partitions the MSI frames between CPUs. Given 110 * that XGene-1 has 8 CPUs, each CPU gets two frames assigned to it 118 * - hwirq[7]::cpu[2:0] is the target frame number (n in MSInIRx) [all …]
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | psp_gfx_if.h | 2 * Copyright 2017 Advanced Micro Devices, Inc. 46 GFX_CTRL_CMD_ID_ENABLE_INT = 0x00050000, /* enable PSP-to-Gfx interrupt */ 47 GFX_CTRL_CMD_ID_DISABLE_INT = 0x00060000, /* disable PSP-to-Gfx interrupt */ 57 /*----------------------------------------------------------------------------- 64 * SRBM-to-PSP mailbox registers (total 8 registers). 116 /* PSP boot config sub-commands */ 198 uint32_t sriov_enabled:1; /* whether the device runs under SR-IOV*/ 212 GFX_FW_TYPE_CP_ME = 1, /* CP-ME VG + RV */ 213 GFX_FW_TYPE_CP_PFP = 2, /* CP-PFP VG + RV */ 214 GFX_FW_TYPE_CP_CE = 3, /* CP-CE VG + RV */ [all …]
|
| /linux/drivers/net/wireless/morsemicro/mm81x/ |
| H A D | skbq.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2017-2026 Morse Micro 19 ((bytes) & 0x3 ? (4 - ((bytes) & 0x3)) : 0) 24 bytes - (4 - BYTES_NEEDED_TO_WORD_ALIGN(bytes)) : \ 31 /* Returns padding needed to align x up to a 4-byte boundary */ 32 #define MM81X_PAD4(x) (((x) & 0x3) ? (4 - ((x) & 0x3)) : 0) 49 sizeof(tx_info->status.status_driver_data)); in __mm81x_skbq_tx_status_priv() 50 return (struct mm81x_tx_status_priv *)&tx_info->status in __mm81x_skbq_tx_status_priv() 59 return time_is_before_jiffies(info->tx_status_expiry); in __mm81x_skbq_has_pending_tx_skb_timed_out() 64 return mq->skbq_size; in __mm81x_skbq_size() [all …]
|
| H A D | yaps.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2017-2026 Morse Micro 25 yaps->hw.to_chip_pkts = kzalloc_objs(*yaps->hw.to_chip_pkts, in mm81x_yaps_alloc_pkt_buffers() 27 if (!yaps->hw.to_chip_pkts) in mm81x_yaps_alloc_pkt_buffers() 28 return -ENOMEM; in mm81x_yaps_alloc_pkt_buffers() 30 yaps->hw.from_chip_pkts = kzalloc_objs(*yaps->hw.from_chip_pkts, in mm81x_yaps_alloc_pkt_buffers() 32 if (!yaps->hw.from_chip_pkts) { in mm81x_yaps_alloc_pkt_buffers() 33 kfree(yaps->hw.to_chip_pkts); in mm81x_yaps_alloc_pkt_buffers() 34 yaps->hw.to_chip_pkts = NULL; in mm81x_yaps_alloc_pkt_buffers() 35 return -ENOMEM; in mm81x_yaps_alloc_pkt_buffers() [all …]
|
| /linux/drivers/gpu/drm/amd/include/ivsrcid/dcn/ |
| H A D | irqsrcs_dcn_1_0.h | 2 * Copyright 2017 Advanced Micro Devices, Inc. 192 #define DCN_1_0__SRCID__DC_DAC_A_AUTO_DET 0xA // DAC A auto - detection DACA_AUTODETECT_GEN… 309 #define DCN_1_0__SRCID__DC_DIGA_FAST_TRAINING_COMPLETE_INT 0xF // DIGA - Fast Training Complete… 312 #define DCN_1_0__SRCID__DC_DIGB_FAST_TRAINING_COMPLETE_INT 0xF // DIGB - Fast Training Complete… 315 #define DCN_1_0__SRCID__DC_DIGC_FAST_TRAINING_COMPLETE_INT 0xF // DIGC - Fast Training Complete… 318 #define DCN_1_0__SRCID__DC_DIGD_FAST_TRAINING_COMPLETE_INT 0xF // DIGD - Fast Training Complete… 321 #define DCN_1_0__SRCID__DC_DIGE_FAST_TRAINING_COMPLETE_INT 0xF // DIGE - Fast Training Complete… 324 #define DCN_1_0__SRCID__DC_DIGF_FAST_TRAINING_COMPLETE_INT 0xF // DIGF - Fast Training Complete… 468 …gered when the time(number of refclk cycles) of a programmable number of frames is counted.The cou… 471 …gered when the time(number of refclk cycles) of a programmable number of frames is counted.The cou… [all …]
|
| /linux/drivers/usb/dwc2/ |
| H A D | hcd_ddma.c | 1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) 3 * hcd_ddma.c - DesignWare HS OTG Controller descriptor DMA routines 5 * Copyright (C) 2004-2013 Synopsys, Inc. 15 #include <linux/dma-mapping.h> 28 return frame & (FRLISTEN_64_SIZE - 1); in dwc2_frame_list_idx() 35 MAX_DMA_DESC_NUM_GENERIC) - 1); in dwc2_desclist_idx_inc() 40 return (idx - inc) & in dwc2_desclist_idx_dec() 42 MAX_DMA_DESC_NUM_GENERIC) - 1); in dwc2_desclist_idx_dec() 47 return (qh->ep_type == USB_ENDPOINT_XFER_ISOC && in dwc2_max_desc_num() 48 qh->dev_speed == USB_SPEED_HIGH) ? in dwc2_max_desc_num() [all …]
|
| H A D | hcd_queue.c | 1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) 3 * hcd_queue.c - DesignWare HS OTG Controller host queuing routines 5 * Copyright (C) 2004-2013 Synopsys, Inc. 17 #include <linux/dma-mapping.h> 36 * dwc2_periodic_channel_available() - Checks that a channel is available for a 48 * non-periodic transactions in dwc2_periodic_channel_available() 53 num_channels = hsotg->params.host_channels; in dwc2_periodic_channel_available() 54 if ((hsotg->periodic_channels + hsotg->non_periodic_channels < in dwc2_periodic_channel_available() 55 num_channels) && (hsotg->periodic_channels < num_channels - 1)) { in dwc2_periodic_channel_available() 58 dev_dbg(hsotg->dev, in dwc2_periodic_channel_available() [all …]
|
| H A D | core.h | 1 /* SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) */ 3 * core.h - DesignWare HS OTG Controller common declarations 5 * Copyright (C) 2004-2013 Synopsys, Inc. 12 #include <linux/device-id/pci.h> 22 * - no_printk: Disable tracing 23 * - pr_info: Print this info to the console 24 * - trace_printk: Print this info to trace buffer (good for verbose logging) 33 dev_name(hsotg->dev), ##__VA_ARGS__) 38 dev_name(hsotg->dev), ##__VA_ARGS__) 43 /* dwc2-hsotg declarations */ [all …]
|
| /linux/drivers/net/wireless/ath/ath12k/ |
| H A D | hal.h | 1 /* SPDX-License-Identifier: BSD-3-Clause-Clear */ 3 * Copyright (c) 2018-2021 The Linux Foundation. All rights reserved. 41 #define HAL_CE_REMAP_REG_BASE (ab->ce_remap_base_addr) 64 #define HAL_WBM_IDLE_SCATTER_BUF_SIZE (HAL_WBM_IDLE_SCATTER_BUF_SIZE_MAX - \ 220 #define HAL_SRNG_NUM_DMAC_RINGS (HAL_SRNG_RING_ID_DMAC_CMN_ID_END - \ 222 #define HAL_SRNG_RINGS_PER_PMAC (HAL_SRNG_RING_ID_PMAC1_ID_END - \ 325 * @HAL_REO_CMD_FLUSH_QUEUE: Flush all frames in REO queue 622 * Lower 32-bit physical address of the buffer pointer from the source ring. 624 * bit range 7-0 : upper 8 bit of the physical address. 625 * bit range 31-8 : reserved. [all …]
|
| H A D | wmi.h | 1 /* SPDX-License-Identifier: BSD-3-Clause-Clear */ 3 * Copyright (c) 2018-2021 The Linux Foundation. All rights reserved. 2387 * enum wmi_nss_ratio - NSS ratio received from FW during service ready ext event 2553 __le32 numss_m1; /** NSS - 1*/ 2679 * [7:0] - 2G band tx chain mask 2680 * [15:8] - 2G band rx chain mask 2681 * [23:16] - 5G band tx chain mask 2682 * [31:24] - 5G band rx chain mask 2689 #define WMI_SERVICE_BM_SIZE ((WMI_MAX_SERVICE + sizeof(u32) - 1) / sizeof(u32)) 2814 /* Used for EHT MCS-NSS array. Data at each array index follows the format given [all …]
|
| /linux/drivers/net/ethernet/cavium/liquidio/ |
| H A D | liquidio_common.h | 7 * Copyright (c) 2003-2016 Cavium, Inc. 14 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty 19 * \brief Common: Structures and macros used in PCI-NIC package by core and 37 u16 micro; member 50 /* pre-defined host->NIC tag values */ 60 /* Subcodes are used by host driver/apps to identify the sub-operation 85 #define VF_DRV_REMOVED -1 101 #define CVM_DRV_APP_END (CVM_DRV_INVALID_APP - 1) 123 index = index + count - max; in incr_index() 149 /*--------------------------- SCATTER GATHER ENTRY -----------------------*/ [all …]
|
| /linux/drivers/net/can/usb/ |
| H A D | esd_usb.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * CAN driver for esd electronics gmbh CAN-USB/2, CAN-USB/3 and CAN-USB/Micro 5 * Copyright (C) 2010-2012 esd electronic system design gmbh, Matthias Fuchs <socketcan@esd.eu> 6 * Copyright (C) 2022-2024 esd electronics gmbh, Frank Jungclaus <frank.jungclaus@esd.eu> 23 MODULE_DESCRIPTION("CAN driver for esd electronics gmbh CAN-USB/2, CAN-USB/3 and CAN-USB/Micro inte… 48 /* esd CAN message flags - dlc field */ 54 /* esd CAN message flags - id field */ 67 /* bit timing esd CAN-USB */ 100 /* Modes for CAN-USB/3, to be used for esd_usb_3_set_baudrate_msg_x.mode */ 108 /* Flags for CAN-USB/3, to be used for esd_usb_3_set_baudrate_msg_x.flags */ [all …]
|
| /linux/drivers/net/ethernet/amd/ |
| H A D | amd8111e.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 /* Advanced Micro Devices Inc. AMD8111E Linux Network Driver 4 * Copyright (C) 2004 Advanced Micro Devices 8 * Copyright 1996-1999 Thomas Bogendoerfer [ pcnet32.c ] 73 #include <linux/dma-mapping.h> 87 MODULE_AUTHOR("Advanced Micro Devices, Inc."); 101 void __iomem *mmio = lp->mmio; in amd8111e_read_phy() 114 } while (--repeat && (reg_val & PHY_CMD_ACTIVE)); in amd8111e_read_phy() 122 return -EINVAL; in amd8111e_read_phy() 131 void __iomem *mmio = lp->mmio; in amd8111e_write_phy() [all …]
|
| /linux/include/linux/ |
| H A D | usb.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 #include <linux/device-id/usb.h> 14 #include <linux/errno.h> /* for -ENODEV */ 30 /*-------------------------------------------------------------------------*/ 33 * Host-side wrappers for standard USB descriptors ... these are parsed 37 * - devices have one (usually) or more configs; 38 * - configs have one (often) or more interfaces; 39 * - interfaces have one (usually) or more settings; 40 * - each interface setting has zero or (usually) more endpoints. 41 * - a SuperSpeed endpoint has a companion descriptor [all …]
|
| /linux/drivers/usb/cdns3/ |
| H A D | cdnsp-mem.c | 1 // SPDX-License-Identifier: GPL-2.0 13 #include <linux/dma-mapping.h> 18 #include "cdnsp-gadget.h" 19 #include "cdnsp-trace.h" 42 seg->trbs = dma_pool_zalloc(pdev->segment_pool, flags, &dma); in cdnsp_segment_alloc() 43 if (!seg->trbs) { in cdnsp_segment_alloc() 49 seg->bounce_buf = kzalloc(max_packet, flags | GFP_DMA); in cdnsp_segment_alloc() 50 if (!seg->bounce_buf) in cdnsp_segment_alloc() 57 seg->trbs[i].link.control |= cpu_to_le32(TRB_CYCLE); in cdnsp_segment_alloc() 59 seg->dma = dma; in cdnsp_segment_alloc() [all …]
|
| /linux/drivers/dma/xilinx/ |
| H A D | xdma.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (C) 2017-2020 Xilinx, Inc. All rights reserved. 6 * Copyright (C) 2022, Advanced Micro Devices, Inc. 16 * or one AXI4-Stream interface for each channel enabled. Memory transfers are 17 * specified on a per-channel basis in descriptor linked lists, which the DMA 30 #include <linux/dma-mapping.h> 32 #include "../virt-dma.h" 33 #include "xdma-regs.h" 44 * struct xdma_desc_block - Descriptor block 54 * struct xdma_chan - Driver specific DMA channel structure [all …]
|
| /linux/drivers/net/can/usb/etas_es58x/ |
| H A D | es58x_core.c | 1 // SPDX-License-Identifier: GPL-2.0 3 /* Driver for ETAS GmbH ES58X USB CAN(-FD) Bus Interfaces. 10 * Copyright (c) 2020-2025 Vincent Mailhol <mailhol@kernel.org> 39 /* ETAS GmbH ES581.4 USB dual-channel CAN Bus Interface module. */ 43 /* ETAS GmbH ES582.1 USB dual-channel CAN FD Bus Interface module. */ 48 /* ETAS GmbH ES584.1 USB single-channel CAN FD Bus Interface module. */ 75 * es58x_calculate_crc() - Compute the crc16 of a given URB. 85 ssize_t len = urb_len - ES58X_CRC_CALC_OFFSET - sizeof(crc); in es58x_calculate_crc() 87 crc = crc16(0, &urb_cmd->raw_cmd[ES58X_CRC_CALC_OFFSET], len); in es58x_calculate_crc() 92 * es58x_get_crc() - Get the CRC value of a given URB. [all …]
|
| /linux/sound/soc/sof/ |
| H A D | ipc3-topology.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 12 #include "sof-priv.h" 13 #include "sof-audio.h" 14 #include "ipc3-priv.h" 359 * sof_comp_alloc - allocat [all...] |
| /linux/drivers/usb/storage/ |
| H A D | unusual_devs.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 7 * (c) 2000-2002 Matthew Dharm (mdharm-usb@one-eyed-alien.net) 26 * - a patch that adds the entry for your device, including your 29 * - a copy of /sys/kernel/debug/usb/devices with your device plugged in 31 * Send your submission to the USB development list <linux-usb@vger.kernel.org> 42 * In-kernel mode switching is deprecated. Do not add new devices to 71 "CD-Writer+", 74 /* Reported by Ben Efros <ben@pc-doctor.com> */ 82 * Reported by Grant Grundler <grundler@parisc-linux.org> 107 /* Patch submitted by Mihnea-Costin Grigore <mihnea@zulu.ro> */ [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dcn32/ |
| H A D | dcn32_resource.c | 1 // SPDX-License-Identifier: MIT 3 * Copyright 2022 Advanced Micro Devices, Inc. 122 #define BASE_INNER(seg) ctx->dcn_reg_offsets[seg] 144 REG_STRUCT[id-1].reg_name = BASE(reg##reg_name##_BASE_IDX) + reg##reg_name 147 REG_STRUCT[id-1].reg_name = BASE(reg ## block ## id ## _ ## reg_name ## _BASE_IDX) + \ 151 REG_STRUCT[id - offset].reg_name = BASE(reg ## block ## id ## _ ## reg_name ## _BASE_IDX) + \ 197 #define NBIO_BASE_INNER(seg) ctx->nbio_reg_offsets[seg] 212 (ctx->dcn_reg_offsets[reg ## reg_name ## _BASE_IDX] + reg ## reg_name) 763 .dwb_fi_phase = -1, // -1 = disable, 780 .using_dml21 = false, // TODO : Temporary for N-1 validation. Remove after N-1 is done. [all …]
|