| /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 */ 64 /*----- [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-byt [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) - in dwc2_desclist_idx_inc() [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_inf [all...] |
| /linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
| H A D | amdgpu_dm_crtc.c | 1 // SPDX-License-Identifier: MIT 3 * Copyright 2022 Advanced Micro Devices, Inc. 46 struct drm_crtc *crtc = &acrtc->base; in amdgpu_dm_crtc_handle_vblank() 47 struct drm_device *dev = crtc->dev; in amdgpu_dm_crtc_handle_vblank() 52 spin_lock_irqsave(&dev->event_lock, flags); in amdgpu_dm_crtc_handle_vblank() 54 /* Send completion event for cursor-only commits */ in amdgpu_dm_crtc_handle_vblank() 55 if (acrtc->event && acrtc->pflip_status != AMDGPU_FLIP_SUBMITTED) { in amdgpu_dm_crtc_handle_vblank() 56 drm_crtc_send_vblank_event(crtc, acrtc->even in amdgpu_dm_crtc_handle_vblank() [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/usb/ |
| H A D | cdc_mbim.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2012 Smith Micro Software, Inc. 7 * Copyright (C) ST-Ericsson 2010-2012 19 #include <linux/usb/cdc-wdm.h> 28 /* driver specific data - must match cdc_ncm usage */ 45 struct cdc_mbim_state *info = (void *)&dev->data; in cdc_mbim_manage_power() 48 dev_dbg(&dev->intf->dev, "%s() pmcount=%d, on=%d\n", __func__, atomic_read(&info->pmcount), on); in cdc_mbim_manage_power() 50 …if ((on && atomic_add_return(1, &info->pmcount) == 1) || (!on && atomic_dec_and_test(&info->pmcoun… in cdc_mbim_manage_power() 52 rv = usb_autopm_get_interface(dev->intf); in cdc_mbim_manage_power() 53 dev->intf->needs_remote_wakeup = on; in cdc_mbim_manage_power() [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/gpu/drm/amd/display/dc/hwss/dcn60/ |
| H A D | dcn60_hwseq.c | 1 // SPDX-License-Identifier: MIT 3 // Copyright 2024 Advanced Micro Devices, Inc. 46 hws->ctx 48 hws->regs->reg 50 dc->ctx->logger 54 hws->shifts->field_nam [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/drivers/net/ethernet/amd/xgbe/ |
| H A D | xgbe-dev.c | 1 // SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-3-Clause) 3 * Copyright (c) 2014-2025, Advanced Micro Devices, Inc. 17 #include "xgbe-common.h" 18 #include "xgbe-smn.h" 22 return pdata->netdev->mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; in xgbe_get_max_frame() 31 DBGPR("-->xgbe_usec_to_riwt\n"); in xgbe_usec_to_riwt() 33 rate = pdata->sysclk_rate; in xgbe_usec_to_riwt() 43 DBGPR("<--xgbe_usec_to_riwt\n"); in xgbe_usec_to_riwt() 54 DBGPR("-->xgbe_riwt_to_usec\n"); in xgbe_riwt_to_usec() 56 rate = pdata->sysclk_rate; in xgbe_riwt_to_usec() [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 /*----- [all...] |
| /linux/drivers/usb/host/ |
| H A D | octeon-hcd.c | 1 // SPDX-License-Identifier: GPL-2.0 11 * Copyright (c) 2003-2010 Cavium Networks (support@cavium.com). All rights 54 #include <linux/dma-mapping.h> 60 #include "octeon-hcd.h" 63 * enum cvmx_usb_speed - the possible USB device speeds 76 * enum cvmx_usb_transfer - the possible USB transfer types 95 * enum cvmx_usb_direction - the transfer directions 106 * enum cvmx_usb_status - possibl [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 …]
|