/linux/Documentation/devicetree/bindings/phy/ |
H A D | phy-miphy28lp.txt | 1 STMicroelectronics STi MIPHY28LP PHY binding 4 This binding describes a miphy device that is used to control PHY hardware 8 - compatible : Should be "st,miphy28lp-phy". 9 - st,syscfg : Should be a phandle of the system configuration register group 12 Required nodes : A sub-node is required for each channel the controller 14 'reg' and 'reg-names' properties are used inside these 19 - #phy-cells : Should be 1 (See second example) 21 - PHY_TYPE_SATA 22 - PHY_TYPE_PCI 23 - PHY_TYPE_USB3 [all …]
|
/linux/drivers/soc/qcom/ |
H A D | ice.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (c) 2013-2019, The Linux Foundation. All rights reserved. 83 writel((val), (engine)->base + (reg)) 86 readl((engine)->base + (reg)) 105 struct device *dev = ice->dev; in qcom_ice_check_supported() 130 * Check for HWKM support and decide whether to use it or not. ICE in qcom_ice_check_supported() 140 * ICE-capable storage driver(s) need to know early on whether to in qcom_ice_check_supported() 149 ice->use_hwkm = true; in qcom_ice_check_supported() 186 * Wait until the ICE BIST (built-in self-test) has completed. 195 * and not relying on hardware-level self-tests. [all …]
|
/linux/Documentation/arch/arm64/ |
H A D | arm-acpi.rst | 23 industry-standard Arm systems, they also apply to more than one operating 25 ACPI and Linux only, on an Arm system -- that is, what Linux expects of 30 ---------------- 33 exist in Linux for describing non-enumerable hardware, after all. In this 40 - ACPI’s byte code (AML) allows the platform to encode hardware behavior, 41 while DT explicitly does not support this. For hardware vendors, being 45 - ACPI’s OSPM defines a power management model that constrains what the 49 - In the enterprise server environment, ACPI has established bindings (such 50 as for RAS) which are currently used in production systems. DT does not. 51 Such bindings could be defined in DT at some point, but doing so means Arm [all …]
|
/linux/drivers/irqchip/ |
H A D | irq-apple-aic.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Based on irq-lpc32xx: 6 * Copyright 2015-2016 Vladimir Zapolskiy <vz@mleia.com> 7 * Based on irq-bcm2836: 14 * - 896 level-triggered hardware IRQs 15 * - Single mask bit per IRQ 16 * - Per-IRQ affinity setting 17 * - Automatic masking on event delivery (auto-ack) 18 * - Software triggering (ORed with hw line) 19 * - 2 per-CPU IPIs (meant as "self" and "other", but they are [all …]
|
/linux/drivers/edac/ |
H A D | synopsys_edac.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Copyright (C) 2012 - 2014 Xilinx, Inc. 268 * struct ecc_error_info - ECC error log information. 288 * struct synps_ecc_status - ECC status information to report. 302 * struct synps_edac_priv - DDR memory controller private instance data. 342 * struct synps_platform_data - synps platform data structure. 362 * zynq_get_error_info - Get the current ECC error info. 373 base = priv->baseaddr; in zynq_get_error_info() 374 p = &priv->stat; in zynq_get_error_info() 380 p->ce_cnt = (regval & STAT_CECNT_MASK) >> STAT_CECNT_SHIFT; in zynq_get_error_info() [all …]
|
/linux/drivers/spi/ |
H A D | spi-davinci.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 16 #include <linux/dma-mapping.h> 22 #include <linux/platform_data/spi-davinci.h> 136 if (dspi->rx) { in davinci_spi_rx_buf_u8() 137 u8 *rx = dspi->rx; in davinci_spi_rx_buf_u8() 139 dspi->rx = rx; in davinci_spi_rx_buf_u8() 145 if (dspi->rx) { in davinci_spi_rx_buf_u16() 146 u16 *rx = dspi->rx; in davinci_spi_rx_buf_u16() 148 dspi->rx = rx; in davinci_spi_rx_buf_u16() 156 if (dspi->tx) { in davinci_spi_tx_buf_u8() [all …]
|
/linux/drivers/gpu/drm/sun4i/ |
H A D | sun4i_tcon.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Maxime Ripard <maxime.ripard@free-electrons.com> 11 #include <linux/media-bus-format.h> 48 drm_connector_list_iter_begin(encoder->dev, &iter); in sun4i_tcon_get_connector() 50 if (connector->encoder == encoder) { in sun4i_tcon_get_connector() 66 return -EINVAL; in sun4i_tcon_get_pixel_depth() 68 info = &connector->display_info; in sun4i_tcon_get_pixel_depth() 69 if (info->num_bus_formats != 1) in sun4i_tcon_get_pixel_depth() 70 return -EINVAL; in sun4i_tcon_get_pixel_depth() 72 switch (info->bus_formats[0]) { in sun4i_tcon_get_pixel_depth() [all …]
|
/linux/Documentation/scsi/ |
H A D | ChangeLog.lpfc | 2 * Please read the associated RELEASE-NOTES file !!! 8 * Fixed build warning for 2.6.12-rc2 kernels: mempool_alloc now 19 * Removed FC_TRANSPORT_PATCHESxxx defines. They're in 2.6.12-rc1. 26 * Added PCI ID for LP10000-S. 31 * Zero-out response sense length in lpfc_scsi_prep_cmnd to prevent 33 - was causing spurious 0710 messages. 55 - stop using volatile. if you need special ordering use memory 57 - switch lpfc_sli_pcimem_bcopy to take void * arguments. 58 - remove typecast for constants - a U postfix marks them 60 - add a MAILBOX_CMD_SIZE macro, as most users of [all …]
|
/linux/drivers/mfd/ |
H A D | arizona-core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 40 mutex_lock(&arizona->clk_lock); in arizona_clk32k_enable() 42 arizona->clk32k_ref++; in arizona_clk32k_enable() 44 if (arizona->clk32k_ref == 1) { in arizona_clk32k_enable() 45 switch (arizona->pdata.clk32k_src) { in arizona_clk32k_enable() 47 ret = pm_runtime_resume_and_get(arizona->dev); in arizona_clk32k_enable() 50 ret = clk_prepare_enable(arizona->mclk[ARIZONA_MCLK1]); in arizona_clk32k_enable() 52 pm_runtime_put_sync(arizona->dev); in arizona_clk32k_enable() 57 ret = clk_prepare_enable(arizona->mclk[ARIZONA_MCLK2]); in arizona_clk32k_enable() 63 ret = regmap_update_bits(arizona->regmap, ARIZONA_CLOCK_32K_1, in arizona_clk32k_enable() [all …]
|
/linux/drivers/pinctrl/freescale/ |
H A D | pinctrl-imx1-core.c | 1 // SPDX-License-Identifier: GPL-2.0+ 8 // Based on pinctrl-imx.c: 29 #include "pinctrl-imx1.h" 81 return ipctl->base + port * MX1_PORT_STRIDE; in imx1_mem() 101 dev_dbg(ipctl->dev, "write: register 0x%p offset %d value 0x%x\n", in imx1_write_2bit() 164 for (i = 0; i < info->ngroups; i++) { in imx1_pinctrl_find_group_by_name() 165 if (!strcmp(info->groups[i].name, name)) { in imx1_pinctrl_find_group_by_name() 166 grp = &info->groups[i]; in imx1_pinctrl_find_group_by_name() 177 const struct imx1_pinctrl_soc_info *info = ipctl->info; in imx1_get_groups_count() 179 return info->ngroups; in imx1_get_groups_count() [all …]
|
/linux/drivers/net/dsa/qca/ |
H A D | qca8k-8xxx.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Copyright (C) 2011-2012 Gabor Juhos <juhosg@openwrt.org> 47 ret = bus->write(bus, phy_id, regnum, lo); in qca8k_mii_write_lo() 49 dev_err_ratelimited(&bus->dev, in qca8k_mii_write_lo() 62 ret = bus->write(bus, phy_id, regnum, hi); in qca8k_mii_write_hi() 64 dev_err_ratelimited(&bus->dev, in qca8k_mii_write_hi() 75 ret = bus->read(bus, phy_id, regnum); in qca8k_mii_read_lo() 83 dev_err_ratelimited(&bus->dev, in qca8k_mii_read_lo() 95 ret = bus->read(bus, phy_id, regnum); in qca8k_mii_read_hi() 103 dev_err_ratelimited(&bus->dev, in qca8k_mii_read_hi() [all …]
|
/linux/drivers/input/touchscreen/ |
H A D | ads7846.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 * - corgi_ts.c 11 * Copyright (C) 2004-2005 Richard Purdie 12 * - omap_ts.[hc], ads7846.h, ts_osk.c 39 * Support for ads7843 tested on Atmel at91sam926x-EK. 53 * note. The strength of filtering can be set in the board-* specific 76 * driver is used with DMA-based SPI controllers (like atmel_spi) on 77 * systems where main memory is not DMA-coherent (most non-x86 boards). 152 /* leave chip selected when we're done, for quicker re-select? */ 159 /*--------------------------------------------------------------------------*/ [all …]
|
/linux/Documentation/dev-tools/ |
H A D | checkpatch.rst | 1 .. SPDX-License-Identifier: GPL-2.0-only 27 - -q, --quiet 31 - -v, --verbose 35 - --no-tree 39 - --no-signoff 41 Disable the 'Signed-off-by' line check. The sign-off is a simple line at 43 or otherwise have the right to pass it on as an open-source patch. 47 Signed-off-by: Random J Developer <random@developer.example.org> 49 Setting this flag effectively stops a message for a missing signed-off-by 52 - --patch [all …]
|
/linux/arch/riscv/kernel/ |
H A D | cpufeature.c | 1 // SPDX-License-Identifier: GPL-2.0-only 24 #include <asm/text-patching.h> 32 #define NUM_ALPHA_EXTS ('z' - 'a' + 1) 43 /* Per-cpu ISA extensions. */ 49 * riscv_isa_extension_base() - Get base extension word 63 * __riscv_isa_extension_available() - Check whether given extension 89 return -EPROBE_DEFER; in riscv_ext_f_depends() 96 pr_err("Zicbom detected in ISA string, disabling as no cbom-block-size found\n"); in riscv_ext_zicbom_validate() 97 return -EINVAL; in riscv_ext_zicbom_validate() 100 pr_err("Zicbom disabled as cbom-block-size present, but is not a power-of-2\n"); in riscv_ext_zicbom_validate() [all …]
|
/linux/drivers/pinctrl/ |
H A D | pinctrl-at91.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2011-2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> 29 #include "pinctrl-at91.h" 88 * These defines will translated the dt binding settings to our internal 94 * strength when there is no dt config for it. 114 * struct at91_pmx_func - describes AT91 pinmux functions 134 * struct at91_pmx_pin - describes an At91 pin mux 148 * struct at91_pin_group - describes an At91 pin group 153 * from the driver-local pin enumeration space 165 * struct at91_pinctrl_mux_ops - describes an AT91 mux ops group [all …]
|
/linux/drivers/remoteproc/ |
H A D | xlnx_r5_remoteproc.c | 1 // SPDX-License-Identifier: GPL-2.0 7 #include <dt-bindings/power/xlnx-zynqmp-power.h> 8 #include <linux/dma-mapping.h> 9 #include <linux/firmware/xlnx-zynqmp.h> 12 #include <linux/mailbox/zynqmp-ipi-message.h> 34 * reflects possible values of xlnx,cluster-mode dt-property 38 LOCKSTEP_MODE = 1, /* cores execute same code in lockstep,clk-for-clk */ 43 * struct mem_bank_data - Memory Bank description 48 * @pm_domain_id: Power-domains id of memory bank for firmware to turn on/off 60 * struct zynqmp_sram_bank - sram bank description [all …]
|
/linux/drivers/pinctrl/renesas/ |
H A D | pinctrl-rzn1.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2014-2018 Renesas Electronics Europe Limited 9 #include <dt-bindings/pinctrl/rzn1-pinctrl.h> 19 #include <linux/pinctrl/pinconf-generic.h> 26 #include "../pinctrl-utils.h" 83 * struct rzn1_pmx_func - describes rzn1 pinmux functions 95 * struct rzn1_pin_group - describes an rzn1 pin group 187 u32 val = ipctl->lev1_protect_phys | !(value & LOCK_LEVEL1); in rzn1_hw_set_lock() 189 writel(val, &ipctl->lev1->status_protect); in rzn1_hw_set_lock() 193 u32 val = ipctl->lev2_protect_phys | !(value & LOCK_LEVEL2); in rzn1_hw_set_lock() [all …]
|
/linux/ |
H A D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0 5 EXTRAVERSION = -rc2 14 ifeq ($(filter output-sync,$(.FEATURES)),) 28 # Most importantly: sub-Makefiles should only ever modify files in 31 # unavoidable when linking the built-in.a targets which finally 41 this-makefile := $(lastword $(MAKEFILE_LIST)) 42 abs_srctree := $(realpath $(dir $(this-makefile))) 47 # Do not use make's built-in rules and variables 48 # (this increases performance and avoids hard-to-debug behaviour) 49 MAKEFLAGS += -rR [all …]
|
/linux/scripts/ |
H A D | checkpatch.pl | 2 # SPDX-License-Identifier: GPL-2.0 7 # (c) 2008-2010 Andy Whitcroft <apw@canonical.com> 8 # (c) 2010-2018 Joe Perches <joe@perches.com> 40 my $check = 0; 69 my $docsfile = "$D/../Documentation/dev-tools/checkpatch.rst"; 72 my $allow_c99_comments = 1; # Can be overridden by --ignore C99_COMMENT_TOLERANCE 74 my $git_command ='export LANGUAGE=en_US.UTF-8; git'; 88 -q, --quiet quiet 89 -v, --verbose verbose mode 90 --no-tree run without a kernel tree [all …]
|
/linux/Documentation/driver-api/ |
H A D | uio-howto.rst | 5 :Author: Hans-Jürgen Koch Linux developer, Linutronix 6 :Date: 2006-12-11 12 ------------ 18 ------- 39 - The device has memory that can be mapped. The device can be 42 - The device usually generates interrupts. 44 - The device does not fit into one of the standard kernel subsystems. 47 --------------- 54 -------- 64 - only one small kernel module to write and maintain. [all …]
|
/linux/drivers/pci/controller/ |
H A D | pci-tegra.c | 1 // SPDX-License-Identifier: GPL-2.0+ 9 * Copyright (c) 2008-2009, NVIDIA Corporation. 11 * Bits taken from arch/arm/mach-dove/pcie.c 26 #include <linux/irqchip/irq-msi-lib.h> 258 * Fields in PADS_REFCLK_CFG*. Those registers form an array of 16-bit 380 writel(value, pcie->afi + offset); in afi_writel() 385 return readl(pcie->afi + offset); in afi_readl() 391 writel(value, pcie->pads + offset); in pads_writel() 396 return readl(pcie->pads + offset); in pads_readl() 431 struct tegra_pcie *pcie = bus->sysdata; in tegra_pcie_map_bus() [all …]
|
/linux/sound/soc/fsl/ |
H A D | fsl_sai.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 // Copyright 2012-2015 Freescale Semiconductor, Inc. 22 #include <linux/mfd/syscon/imx6q-iomuxc-gpr.h> 26 #include "imx-pcm.h" 44 * fsl_sai_dir_is_synced - Check if stream is synced by the opposite stream 47 * or Receiver's for both streams. This function is used to check i [all...] |
H A D | imx-card.c | 1 // SPDX-License-Identifier: GPL-2.0+ 2 // Copyright 2017-2021 NXP 14 #include <sound/soc-dapm.h> 56 * struct imx_card_plat_data - specific info for codecs 90 * struct dai_link_data - specific info for dai link 105 * struct imx_card_data - platform device data 144 * Table 13 - Audio Interface Format 155 * Table 7 - mapping multiplier and speed mode 156 * Tables 8 & 9 - mapping speed mode and LRCK fs 262 if (link_data->slots > 2) in format_is_tdm() [all …]
|
/linux/drivers/base/ |
H A D | core.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * drivers/base/core.c - core driver model code (device registration, etc) 5 * Copyright (c) 2002-3 Patrick Mochel 6 * Copyright (c) 2002-3 Open Source Development Labs 7 * Copyright (c) 2006 Greg Kroah-Hartman <gregkh@suse.de> 16 #include <linux/dma-map-ops.h> /* for dma_default_coherent */ 51 * __fwnode_link_add - Create a link between two fwnode_handles. 73 list_for_each_entry(link, &sup->consumers, s_hook) in __fwnode_link_add() 74 if (link->consumer == con) { in __fwnode_link_add() 75 link->flags |= flags; in __fwnode_link_add() [all …]
|
/linux/drivers/video/backlight/ |
H A D | qcom-wled.c | 1 // SPDX-License-Identifier: GPL-2.0-only 16 /* From DT binding */ 61 /* WLED3 specific per-'string' registers below */ 93 /* WLED4 specific per-'string' registers below */ 140 /* WLED5 specific per-'string' registers below */ 238 for (i = 0; i < wled->cfg.num_strings; ++i) { in wled3_set_brightness() 239 rc = regmap_bulk_write(wled->regmap, wled->ctrl_addr + in wled3_set_brightness() 240 WLED3_SINK_REG_BRIGHT(wled->cfg.enabled_strings[i]), in wled3_set_brightness() 252 u16 low_limit = wled->max_brightness * 4 / 1000; in wled4_set_brightness() 261 for (i = 0; i < wled->cfg.num_strings; ++i) { in wled4_set_brightness() [all …]
|