/linux/Documentation/devicetree/bindings/pci/ |
H A D | host-generic-pci.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/pci/host-generic-pci.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Will Deacon <will@kernel.org> 13 Firmware-initialised PCI host controllers and PCI emulations, such as the 14 virtio-pci implementations found in kvmtool and other para-virtualised 21 Configuration Space is assumed to be memory-mapped (as opposed to being 26 For CAM, this 24-bit offset is: 41 - description: [all …]
|
/linux/drivers/misc/genwqe/ |
H A D | card_ddcb.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 11 * Author: Joerg-Stephan Vogt <jsvogt@de.ibm.com> 23 * struct ddcb - Device Driver Control Block DDCB 39 #define ASIV_LENGTH 104 /* Old specification without ATS field */ 40 #define ASIV_LENGTH_ATS 96 /* New specification with ATS field */ 120 * Accessing HSI/SHI is done 32-bit wide 121 * Normally 16-bit access would work too, but on some platforms the 122 * 16 compare and swap operation is not supported. Therefore 123 * switching to 32-bit such that those platforms will work too. 151 * 0b0010 First entry of a descriptor list. Start from a Buffer-Empty [all …]
|
H A D | card_base.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 11 * Author: Joerg-Stephan Vogt <jsvogt@de.ibm.com> 35 #define GENWQE_MSI_IRQS 4 /* Just one supported, no MSIx */ 42 #define GENWQE_DDCB_MAX 32 /* DDCBs on the work-queue */ 62 #define PCI_SUBSYSTEM_ID_GENWQE5 0x035f /* Genwqe A5 Subsystem-ID */ 63 #define PCI_SUBSYSTEM_ID_GENWQE5_NEW 0x044b /* Genwqe A5 Subsystem-ID */ 67 #define PCI_SUBSYSTEM_ID_GENWQE5_SRIOV 0x0000 /* Genwqe A5 Subsystem-ID */ 73 * struct genwqe_reg - Genwqe data dump functionality 82 * enum genwqe_dbg_type - Specify chip unit to dump/debug 99 #define GENWQE_INJECT_HARDWARE_FAILURE 0x00000001 /* injects -1 reg reads */ [all …]
|
/linux/sound/soc/codecs/ |
H A D | ak4458.c | 1 // SPDX-License-Identifier: GPL-2.0 20 #include <sound/soc-dapm.h> 84 * from -127 to 0 dB in 0.5 dB steps (mute instead of -127.5 dB) 86 static DECLARE_TLV_DB_SCALE(dac_tlv, -12750, 50, 1); 101 * 0, 0, 0 : Sharp Roll-Off Filter 102 * 0, 0, 1 : Slow Roll-Off Filter 103 * 0, 1, 0 : Short delay Sharp Roll-Off Filter 104 * 0, 1, 1 : Short delay Slow Roll-Off Filter 105 * 1, *, * : Super Slow Roll-Off Filter 108 "Sharp Roll-Off Filter", [all …]
|
/linux/drivers/iommu/arm/arm-smmu-v3/ |
H A D | arm-smmu-v3.c | 1 // SPDX-License-Identifier: GPL-2.0 19 #include <linux/io-pgtable.h> 27 #include <linux/pci-ats.h> 33 #include "arm-smmu-v3.h" 34 #include "../../dma-iommu.h" 39 "Disable MSI-based polling for CMD_SYNC completion."); 82 { ARM_SMMU_OPT_SKIP_PREFETCH, "hisilicon,broken-prefetch-cmd" }, 83 { ARM_SMMU_OPT_PAGE0_REGS_ONLY, "cavium,cn9900-broken-page1-regspace"}, 116 if (of_property_read_bool(smmu->dev->of_node, in parse_driver_options() 118 smmu->options |= arm_smmu_options[i].opt; in parse_driver_options() [all …]
|
/linux/drivers/gpu/drm/radeon/ |
H A D | btc_dpm.c | 1149 if ((table == NULL) || (table->count == 0)) { in btc_get_max_clock_from_voltage_dependency_table() 1154 for (i = 0; i < table->count; i++) { in btc_get_max_clock_from_voltage_dependency_table() 1155 if (clock < table->entries[i].clk) in btc_get_max_clock_from_voltage_dependency_table() 1156 clock = table->entries[i].clk; in btc_get_max_clock_from_voltage_dependency_table() 1166 if ((table == NULL) || (table->count == 0)) in btc_apply_voltage_dependency_rules() 1169 for (i = 0; i < table->count; i++) { in btc_apply_voltage_dependency_rules() 1170 if (clock <= table->entries[i].clk) { in btc_apply_voltage_dependency_rules() 1171 if (*voltage < table->entries[i].v) in btc_apply_voltage_dependency_rules() 1172 *voltage = (u16)((table->entries[i].v < max_voltage) ? in btc_apply_voltage_dependency_rules() 1173 table->entries[i].v : max_voltage); in btc_apply_voltage_dependency_rules() [all …]
|
/linux/drivers/iommu/ |
H A D | of_iommu.c | 1 // SPDX-License-Identifier: GPL-2.0-only 20 #include "iommu-priv.h" 28 if (!of_device_is_available(iommu_spec->np)) in of_iommu_xlate() 29 return -ENODEV; in of_iommu_xlate() 31 ret = iommu_fwspec_init(dev, of_fwnode_handle(iommu_spec->np)); in of_iommu_xlate() 35 ops = iommu_ops_from_fwnode(&iommu_spec->np->fwnode); in of_iommu_xlate() 36 if (!ops->of_xlate || !try_module_get(ops->owner)) in of_iommu_xlate() 37 return -ENODEV; in of_iommu_xlate() 39 ret = ops->of_xlate(dev, iommu_spec); in of_iommu_xlate() 40 module_put(ops->owner); in of_iommu_xlate() [all …]
|
/linux/include/uapi/linux/ |
H A D | pci_regs.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 5 * Copyright 1997--1999 Martin Mares <mj@ucw.cz> 25 * Conventional PCI and PCI-X Mode 1 devices have 256 bytes of 26 * configuration space. PCI-X Mode 2 and PCIe devices have 4096 bytes of 50 #define PCI_COMMAND_FAST_BACK 0x200 /* Enable back-to-back writes */ 59 #define PCI_STATUS_FAST_BACK 0x80 /* Accept fast-back to back */ 83 #define PCI_HEADER_TYPE_MFD 0x80 /* Multi-Function Device (possible) */ 124 /* 0x35-0x3b are reserved */ 130 /* Header type 1 (PCI-to-PCI bridges) */ 158 /* 0x35-0x3b is reserved */ [all …]
|
/linux/drivers/net/ethernet/stmicro/stmmac/ |
H A D | hwif.h | 1 /* SPDX-License-Identifier: (GPL-2.0 OR MIT) */ 14 int __result = -EINVAL; \ 15 if ((__priv)->hw->__module && (__priv)->hw->__module->__cname) { \ 16 (__priv)->hw->__module->__cname((__arg0), ##__args); \ 23 int __result = -EINVAL; \ 24 if ((__priv)->hw->__module && (__priv)->hw->__module->__cname) \ 25 __result = (__priv)->hw->__module->__cname((__arg0), ##__args); \ 85 void (*get_timestamp)(void *desc, u32 ats, u64 *ts); 87 int (*get_rx_timestamp_status)(void *desc, void *next_desc, u32 ats); 200 /* To track extra statistic (if supported) */ [all …]
|
/linux/drivers/gpu/drm/amd/pm/legacy-dpm/ |
H A D | si_dpm.h | 330 bool supported; member 679 struct at ats[2]; member 820 …NISLANDS_SMC_HW_PERFORMANCE_LEVEL dpmLevels[NISLANDS_MAX_SMC_PERFORMANCE_LEVELS_PER_SWSTATE - 1]; 957 bool supported; member
|
/linux/arch/arm64/boot/dts/arm/ |
H A D | fvp-base-revc.dts | 1 // SPDX-License-Identifier: GPL-2.0 5 * Architecture Envelope Model (AEM) ARMv8-A 11 /dts-v1/; 13 #include <dt-bindings/interrupt-controller/arm-gic.h> 17 #include "rtsm_ve-motherboard.dtsi" 18 #include "rtsm_ve-motherboard-rs2.dtsi" 22 compatible = "arm,fvp-base-revc", "arm,vexpress"; 23 interrupt-parent = <&gic>; 24 #address-cells = <2>; 25 #size-cells = <2>; [all …]
|
/linux/drivers/iommu/intel/ |
H A D | perfmon.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 PMU_FORMAT_ATTR(event, "config:0-27"); /* ES: Events Select */ 14 PMU_FORMAT_ATTR(event_group, "config:28-31"); /* EGI: Event Group Index */ 68 return (iommu_pmu->filter & _filter) ? attr->mode : 0; \ 82 IOMMU_PMU_ATTR(filter_requester_id, "config1:16-31", IOMMU_PMU_FILTER_REQUESTER_ID); 83 IOMMU_PMU_ATTR(filter_domain, "config1:32-47", IOMMU_PMU_FILTER_DOMAIN); 84 IOMMU_PMU_ATTR(filter_pasid, "config2:0-21", IOMMU_PMU_FILTER_PASID); 85 IOMMU_PMU_ATTR(filter_ats, "config2:24-28", IOMMU_PMU_FILTER_ATS); 86 IOMMU_PMU_ATTR(filter_page_table, "config2:32-36", IOMMU_PMU_FILTER_PAGE_TABLE); 101 if ((iommu_pmu->filter & _filter) && iommu_pmu_en_##_name(_econfig)) { \ [all …]
|
H A D | pasid.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * intel-pasid.c - PASID idr, table and entry manipulation 18 #include <linux/pci-ats.h> 23 #include "../iommu-pages.h" 36 * single-thread context. 49 return -ENODEV; in intel_pasid_alloc_table() 50 if (WARN_ON(info->pasid_table)) in intel_pasid_alloc_table() 51 return -EEXIST; in intel_pasid_alloc_table() 55 return -ENOMEM; in intel_pasid_alloc_table() 57 if (info->pasid_supported) in intel_pasid_alloc_table() [all …]
|
/linux/net/nfc/ |
H A D | digital_technology.c | 1 // SPDX-License-Identifier: GPL-2.0-only 173 if (skb->len < 1) in digital_in_iso_dep_pull_sod() 174 return -EIO; in digital_in_iso_dep_pull_sod() 176 pcb = *skb->data; in digital_in_iso_dep_pull_sod() 179 /* No support fo R-block nor S-block */ in digital_in_iso_dep_pull_sod() 181 pr_err("ISO_DEP R-block and S-block not supported\n"); in digital_in_iso_dep_pull_sod() 182 return -EIO; in digital_in_iso_dep_pull_sod() 186 pr_err("DID field in ISO_DEP PCB not supported\n"); in digital_in_iso_dep_pull_sod() 187 return -EIO; in digital_in_iso_dep_pull_sod() 199 * Chaining not supported so skb->len + 1 PCB byte + 2 CRC bytes must in digital_in_iso_dep_push_sod() [all …]
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_irq.c | 89 "ATS", 118 * amdgpu_irq_disable_all - disable *all* interrupts 130 spin_lock_irqsave(&adev->irq.lock, irqflags); in amdgpu_irq_disable_all() 132 if (!adev->irq.client[i].sources) in amdgpu_irq_disable_all() 136 struct amdgpu_irq_src *src = adev->irq.client[i].sources[j]; in amdgpu_irq_disable_all() 138 if (!src || !src->funcs->set || !src->num_types) in amdgpu_irq_disable_all() 141 for (k = 0; k < src->num_types; ++k) { in amdgpu_irq_disable_all() 142 r = src->funcs->set(adev, src, k, in amdgpu_irq_disable_all() 145 dev_err(adev->dev, in amdgpu_irq_disable_all() 151 spin_unlock_irqrestore(&adev->irq.lock, irqflags); in amdgpu_irq_disable_all() [all …]
|
/linux/drivers/nfc/st95hf/ |
H A D | core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * -------------------------------------------------------------------- 5 * -------------------------------------------------------------------- 26 /* supported protocols */ 100 * List of top-level cmds to be used internally by the driver. 250 struct device *dev = &st95context->spicontext.spidev->dev; in st95hf_send_recv_cmd() 253 return -EINVAL; in st95hf_send_recv_cmd() 255 return -EINVAL; in st95hf_send_recv_cmd() 257 return -EINVAL; in st95hf_send_recv_cmd() 268 return -EINVAL; in st95hf_send_recv_cmd() [all …]
|
/linux/include/uapi/drm/ |
H A D | i915_drm.h | 19 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. 37 * subject to backwards-compatibility constraints. 43 * I915_L3_PARITY_UEVENT - Generated when the driver receives a parity mismatch 46 * track of these events, and if a specific cache-line seems to have a 48 * intel-gpu-tools. The value supplied with the event is always 1. 50 * I915_ERROR_UEVENT - Generated upon error detection, currently only via 57 * I915_RESET_UEVENT - Event is generated just before an attempt to reset the 66 * struct i915_user_extension - Base class for defining a chain of extensions 82 * .. code-block:: C 158 * enum drm_i915_gem_engine_class - uapi engine type enumeration [all …]
|
/linux/tools/include/uapi/drm/ |
H A D | i915_drm.h | 19 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. 37 * subject to backwards-compatibility constraints. 43 * I915_L3_PARITY_UEVENT - Generated when the driver receives a parity mismatch 46 * track of these events, and if a specific cache-line seems to have a 48 * intel-gpu-tools. The value supplied with the event is always 1. 50 * I915_ERROR_UEVENT - Generated upon error detection, currently only via 57 * I915_RESET_UEVENT - Event is generated just before an attempt to reset the 66 * struct i915_user_extension - Base class for defining a chain of extensions 82 * .. code-block:: C 158 * enum drm_i915_gem_engine_class - uapi engine type enumeration [all …]
|
/linux/drivers/pci/ |
H A D | quirks.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * This file contains work-arounds for many known PCI hardware bugs. 5 * should be handled in arch-specific code. 22 #include <linux/isa-dma.h> /* isa_dma_bridge_buggy */ 41 if (test_bit(PCI_LINK_LBMS_SEEN, &dev->priv_flags)) in pcie_lbms_seen() 102 int ret = -ENOTTY; in pcie_failed_link_retrain() 105 !pcie_cap_has_lnkctl2(dev) || !dev->link_active_reporting) in pcie_failed_link_retrain() 112 pci_info(dev, "broken device, retraining non-functional downstream link at 2.5GT/s\n"); in pcie_failed_link_retrain() 173 if ((f->class == (u32) (dev->class >> f->class_shift) || in pci_do_fixups() 174 f->class == (u32) PCI_ANY_ID) && in pci_do_fixups() [all …]
|
H A D | pci.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright 1993 -- 1997 Drew Eckhardt, Frederic Potter, 6 * David Mosberger-Tang 8 * Copyright 1997 -- 2000 Martin Mares <mj@ucw.cz> 82 unsigned int delay_ms = max(dev->d3hot_delay, pci_pm_d3hot_delay); in pci_dev_d3_sleep() 95 return dev->reset_methods[0] != 0; in pci_reset_supported() 114 * pci=hpmmiosize=nnM overrides non-prefetchable MMIO size, 125 /* PCIe MPS/MRRS strategy; can be overridden by kernel command-line param */ 142 * measured in 32-bit words, not bytes. 156 /* If set, the PCIe ATS capability will not be used. */ [all …]
|
/linux/include/linux/ |
H A D | pci.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 7 * Copyright 1997--1999 Martin Mares <mj@ucw.cz> 60 * The PCI interface treats multi-function devices as independent 68 * In the interest of not exposing interfaces to user-space unnecessarily, 69 * the following kernel-only defines are being added here. 80 unsigned char number; /* PCI_SLOT(pci_dev->devfn) */ 86 return kobject_name(&slot->kobj); in pci_slot_name() 97 /* #0-5: standard PCI resources */ 99 PCI_STD_RESOURCE_END = PCI_STD_RESOURCES + PCI_STD_NUM_BARS - 1, 104 /* Device-specific resources */ [all …]
|
/linux/drivers/clk/sunxi-ng/ |
H A D | ccu-sun8i-a23.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 #include <linux/clk-provider.h> 25 #include "ccu-sun8i-a23-a33.h" 39 .hw.init = CLK_HW_INIT("pll-cpux", "osc24M", 50 * With sigma-delta modulation for fractional-N on the audio PLL, 64 static SUNXI_CCU_NM_WITH_SDM_GATE_LOCK(pll_audio_base_clk, "pll-audio-base", 74 static SUNXI_CCU_NM_WITH_FRAC_GATE_LOCK(pll_video_clk, "pll-video", 86 static SUNXI_CCU_NM_WITH_FRAC_GATE_LOCK(pll_ve_clk, "pll-ve", 98 static SUNXI_CCU_NKM_WITH_GATE_LOCK(pll_ddr_clk, "pll-ddr", 107 static SUNXI_CCU_NK_WITH_GATE_LOCK_POSTDIV(pll_periph_clk, "pll-periph", [all …]
|
H A D | ccu-sun8i-a33.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 #include <linux/clk-provider.h> 24 #include "ccu-sun8i-a23-a33.h" 37 .hw.init = CLK_HW_INIT("pll-cpux", "osc24M", 48 * With sigma-delta modulation for fractional-N on the audio PLL, 62 static SUNXI_CCU_NM_WITH_SDM_GATE_LOCK(pll_audio_base_clk, "pll-audio-base", 72 static SUNXI_CCU_NM_WITH_FRAC_GATE_LOCK(pll_video_clk, "pll-video", 84 static SUNXI_CCU_NM_WITH_FRAC_GATE_LOCK(pll_ve_clk, "pll-ve", 96 static SUNXI_CCU_NKM_WITH_GATE_LOCK(pll_ddr0_clk, "pll-ddr0", 105 static SUNXI_CCU_NK_WITH_GATE_LOCK_POSTDIV(pll_periph_clk, "pll-periph", [all …]
|
H A D | ccu-sun6i-a31.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2016 Chen-Yu Tsai 5 * Chen-Yu Tsai <wens@csie.org> 7 * Based on ccu-sun8i-h3.c by Maxime Ripard. 10 #include <linux/clk-provider.h> 30 #include "ccu-sun6i-a31.h" 32 static SUNXI_CCU_NKM_WITH_GATE_LOCK(pll_cpu_clk, "pll-cpu", 46 * With sigma-delta modulation for fractional-N on the audio PLL, 60 static SUNXI_CCU_NM_WITH_SDM_GATE_LOCK(pll_audio_base_clk, "pll-audio-base", 70 static SUNXI_CCU_NM_WITH_FRAC_GATE_LOCK(pll_video0_clk, "pll-video0", [all …]
|
/linux/net/nfc/nci/ |
H A D | core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 48 list_for_each_entry(conn_info, &ndev->conn_info_list, list) { in nci_get_conn_info_by_conn_id() 49 if (conn_info->conn_id == conn_id) in nci_get_conn_info_by_conn_id() 61 list_for_each_entry(conn_info, &ndev->conn_info_list, list) { in nci_get_conn_info_by_dest_type_params() 62 if (conn_info->dest_type == dest_type) { in nci_get_conn_info_by_dest_type_params() 64 return conn_info->conn_id; in nci_get_conn_info_by_dest_type_params() 66 if (params->id == conn_info->dest_params->id && in nci_get_conn_info_by_dest_type_params() 67 params->protocol == conn_info->dest_params->protocol) in nci_get_conn_info_by_dest_type_params() 68 return conn_info->conn_id; in nci_get_conn_info_by_dest_type_params() 72 return -EINVAL; in nci_get_conn_info_by_dest_type_params() [all …]
|