/linux/tools/perf/util/ |
H A D | setup.py | 7 # Check if CC has options, as is the case in yocto, where it uses CC="cc --sysroot..." 15 cc_is_clang = b"clang version" in Popen([cc, "-v"], stderr=PIPE).stderr.readline() 19 …cc_output = Popen([cc, cc_options + option, path.join(src_feature_tests, "test-hello.c") ], stderr… 26 vars[var] = sub("-specs=[^ ]+", "", vars[var]) 27 if not clang_has_option("-mcet"): 28 vars[var] = sub("-mcet", "", vars[var]) 29 if not clang_has_option("-fcf-protection"): 30 vars[var] = sub("-fcf-protection", "", vars[var]) 31 if not clang_has_option("-fstack-clash-protection"): 32 vars[var] = sub("-fstack-clash-protection", "", vars[var]) [all …]
|
/linux/drivers/staging/gpib/include/ |
H A D | gpib_types.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 12 * between the board-specific details dealt with in the drivers 13 * and generic interface provided by gpib-common. 33 /* IO base address to use for non-pnp cards (set by core, driver should make local copy) */ 36 /* IRQ to use for non-pnp cards (set by core, driver should make local copy) */ 38 /* dma channel to use for non-pnp cards (set by core, driver should make local copy) */ 92 /* De-assert ATN. Returns zero on success, nonzer on error. 97 /* Asserts or de-asserts 'interface clear' (IFC) depending on 132 /* Sets primary address 0-30 for gpib interface card. 135 /* Sets and enables, or disables secondary address 0-30 [all …]
|
/linux/drivers/gpu/drm/panel/ |
H A D | panel-samsung-s6d16d0.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * MIPI-DSI Samsung s6d16d0 panel driver. This is a 864x480 4 * AMOLED panel with a command-only DSI interface. 51 struct mipi_dsi_device *dsi = to_mipi_dsi_device(s6->dev); in s6d16d0_unprepare() 57 dev_err(s6->dev, "failed to enter sleep mode (%d)\n", ret); in s6d16d0_unprepare() 62 gpiod_set_value_cansleep(s6->reset_gpio, 1); in s6d16d0_unprepare() 63 regulator_disable(s6->supply); in s6d16d0_unprepare() 71 struct mipi_dsi_device *dsi = to_mipi_dsi_device(s6->dev); in s6d16d0_prepare() 74 ret = regulator_enable(s6->supply); in s6d16d0_prepare() 76 dev_err(s6->dev, "failed to enable supply (%d)\n", ret); in s6d16d0_prepare() [all …]
|
H A D | panel-tpo-tpg110.c | 1 // SPDX-License-Identifier: GPL-2.0 41 * struct tpg110_panel_mode - lookup struct for the supported modes 63 * struct tpg110 - state container for the TPG110 panel 223 * The last bit/clock is Hi-Z turnaround cycle, so we need in tpg110_readwrite_reg() 225 * turn-around cycle. in tpg110_readwrite_reg() 238 ret = spi_sync(tpg->spi, &m); in tpg110_readwrite_reg() 240 dev_err(tpg->dev, "SPI message error %d\n", ret); in tpg110_readwrite_reg() 264 /* De-assert the reset signal */ in tpg110_startup() 265 gpiod_set_value_cansleep(tpg->grestb, 0); in tpg110_startup() 267 dev_dbg(tpg->dev, "de-asserted GRESTB\n"); in tpg110_startup() [all …]
|
H A D | panel-novatek-nt35560.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * MIPI-DSI Novatek NT35560-based panel controller. 6 * Sony ACX424AKM - a 480x854 AMOLED DSI panel 7 * Sony ACX424AKP - a 480x864 AMOLED DSI panel 9 * Copyright (C) Linaro Ltd. 2019-2021 11 * Based on code and know-how from Marcus Lorentzon 12 * Copyright (C) ST-Ericsson SA 2010 13 * Based on code and know-how from Johan Olson and Joakim Wesslen 151 struct mipi_dsi_device *dsi = to_mipi_dsi_device(nt->dev); in nt35560_set_brightness() 153 int duty_ns = bl->props.brightness; in nt35560_set_brightness() [all …]
|
/linux/arch/arm/boot/dts/allwinner/ |
H A D | sun8i-a83t-bananapi-m3.dts | 2 * Copyright 2017 Chen-Yu Tsai 4 * Chen-Yu Tsai <wens@csie.org> 6 * This file is dual-licensed: you can use it either under the terms 45 /dts-v1/; 46 #include "sun8i-a83t.dtsi" 48 #include <dt-bindings/gpio/gpio.h> 51 model = "Banana Pi BPI-M3"; 52 compatible = "sinovoip,bpi-m3", "allwinner,sun8i-a83t"; 60 stdout-path = "serial0:115200n8"; 64 compatible = "hdmi-connector"; [all …]
|
H A D | sun8i-a83t-cubietruck-plus.dts | 2 * Copyright 2015 Chen-Yu Tsai 4 * Chen-Yu Tsai <wens@csie.org> 6 * This file is dual-licensed: you can use it either under the terms 45 /dts-v1/; 46 #include "sun8i-a83t.dtsi" 48 #include <dt-bindings/gpio/gpio.h> 52 compatible = "cubietech,cubietruck-plus", "allwinner,sun8i-a83t"; 60 stdout-path = "serial0:115200n8"; 63 hdmi-connector { 64 compatible = "hdmi-connector"; [all …]
|
H A D | sun9i-a80-optimus.dts | 2 * Copyright 2014 Chen-Yu Tsai 4 * Chen-Yu Tsai <wens@csie.org> 6 * This file is dual-licensed: you can use it either under the terms 45 /dts-v1/; 46 #include "sun9i-a80.dtsi" 48 #include <dt-bindings/gpio/gpio.h> 52 compatible = "merrii,a80-optimus", "allwinner,sun9i-a80"; 60 stdout-path = "serial0:115200n8"; 64 compatible = "gpio-leds"; 83 reg_usb1_vbus: usb1-vbus { [all …]
|
/linux/drivers/reset/ |
H A D | reset-ti-syscon.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2015-2016 Texas Instruments Incorporated - https://www.ti.com/ 15 #include <linux/reset-controller.h> 17 #include <dt-bindings/reset/ti-syscon.h> 20 * struct ti_syscon_reset_control - reset control structure 27 * @flags: reset flag indicating how the (de)assert and status are handled 40 * struct ti_syscon_reset_data - reset controller information structure 42 * @regmap: regmap handle containing the memory-mapped reset registers 57 * ti_syscon_reset_assert() - assert device reset 62 * This asserts the reset in a manner prescribed by the reset flags. [all …]
|
H A D | core.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 22 #include <linux/reset-controller.h> 37 * struct reset_control - a reset control 65 * struct reset_control_array - an array of reset controls 77 * struct reset_gpio_lookup - lookup key for ad-hoc created reset-gpio devices 88 if (rcdev->dev) in rcdev_name() 89 return dev_name(rcdev->dev); in rcdev_name() 91 if (rcdev->of_node) in rcdev_name() 92 return rcdev->of_node->full_name; in rcdev_name() 94 if (rcdev->of_args) in rcdev_name() [all …]
|
/linux/drivers/input/touchscreen/ |
H A D | cy8ctmg110_ts.c | 1 // SPDX-License-Identifier: GPL-2.0-only 52 * is being powered off or on. When powering on this routine de-asserts 57 if (ts->reset_gpio) in cy8ctmg110_power() 58 gpiod_set_value_cansleep(ts->reset_gpio, !poweron); in cy8ctmg110_power() 64 struct i2c_client *client = tsc->client; in cy8ctmg110_write_regs() 75 dev_err(&client->dev, "i2c write data cmd failed\n"); in cy8ctmg110_write_regs() 76 return ret < 0 ? ret : -EIO; in cy8ctmg110_write_regs() 85 struct i2c_client *client = tsc->client; in cy8ctmg110_read_regs() 90 .addr = client->addr, in cy8ctmg110_read_regs() 96 .addr = client->addr, in cy8ctmg110_read_regs() [all …]
|
/linux/arch/arm/mach-sunxi/ |
H A D | mc_smp.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2018 Chen-Yu Tsai 5 * Chen-Yu Tsai <wens@csie.org> 7 * arch/arm/mach-sunxi/mc_smp.c 9 * Based on Allwinner code, arch/arm/mach-exynos/mcpm-exynos.c, and 10 * arch/arm/mach-hisi/platmcpm.c 14 #include <linux/arm-cci.h> 19 #include <linux/irqchip/arm-gic.h> 70 /* R_CPUCFG registers, specific to sun8i-a83t */ 110 is_compatible = of_device_is_compatible(node, "arm,cortex-a15"); in sunxi_core_is_cortex_a15() [all …]
|
/linux/Documentation/devicetree/bindings/iio/addac/ |
H A D | adi,ad74115.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Cosmin Tanislav <cosmin.tanislav@analog.com> 13 The AD74115H is a single-channel software configurable input/output 17 chip solution with an SPI interface. The device features a 16-bit ADC and a 18 14-bit DAC. 25 - adi,ad74115h 30 spi-max-frequency: 33 spi-cpol: true [all …]
|
/linux/arch/arm/mach-omap2/ |
H A D | pdata-quirks.c | 1 // SPDX-License-Identifier: GPL-2.0-only 20 #include <linux/platform_data/pinctrl-single.h> 21 #include <linux/platform_data/hsmmc-omap.h> 22 #include <linux/platform_data/iommu-omap.h> 23 #include <linux/platform_data/ti-sysc.h> 25 #include <linux/platform_data/asoc-ti-mcbsp.h> 26 #include <linux/platform_data/ti-prm.h> 30 #include "common-board-devices.h" 33 #include "omap-secure.h" 58 * Note that if the pins are used for MMC1, pbias-regulator [all …]
|
/linux/drivers/spi/ |
H A D | spi-dw-core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 #include <linux/dma-mapping.h> 18 #include <linux/spi/spi-mem.h> 23 #include "spi-dw.h" 66 snprintf(name, 32, "dw_spi%d", dws->host->bus_num); in dw_spi_debugfs_init() 67 dws->debugfs = debugfs_create_dir(name, NULL); in dw_spi_debugfs_init() 69 dws->regset.regs = dw_spi_dbgfs_regs; in dw_spi_debugfs_init() 70 dws->regset.nregs = ARRAY_SIZE(dw_spi_dbgfs_regs); in dw_spi_debugfs_init() 71 dws->regset.base = dws->regs; in dw_spi_debugfs_init() 72 debugfs_create_regset32("registers", 0400, dws->debugfs, &dws->regset); in dw_spi_debugfs_init() [all …]
|
H A D | spi-ppc4xx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2007 Gary Jennejohn <garyj@denx.de> 6 * Copyright 2008 Stefan Roese <sr@denx.de>, DENX Software Engineering 39 #include <asm/dcr-regs.h> 41 /* bits in mode register - bit 0 is MSb */ 54 * SPI_PPC4XX_MODE_RD = 0 means "MSB first" - this is the normal mode 55 * SPI_PPC4XX_MODE_RD = 1 means "LSB first" - this is bit-reversed mode 103 * CDM = (OPBCLK/4*SCPClkOut) - 1 143 dev_dbg(&spi->dev, "txrx: tx %p, rx %p, len %d\n", in spi_ppc4xx_txrx() 144 t->tx_buf, t->rx_buf, t->len); in spi_ppc4xx_txrx() [all …]
|
/linux/arch/arc/kernel/ |
H A D | entry-arcv2.S | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * ARCv2 ISA based core Low Level Intr/Traps/Exceptions(non-TLB) Handling 58 .rept NR_CPU_IRQS - 8 77 # trips genirq interrupt handling asserts. 81 # Note this disable is only for consistent book-keeping as further interrupts 84 # unless this one returns (or higher prio becomes pending in 2-prio scheme) 118 ; --------------------------------------------- 120 ; - Unlike ARCompact, handles Bus errors for both User/Kernel mode, 122 ; --------------------------------------------- 141 ; TBD: optimize - do this only if a callee reg was involved [all …]
|
/linux/drivers/clk/qcom/ |
H A D | gdsc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2015, 2017-2018, 2022, The Linux Foundation. All rights reserved. 16 #include <linux/reset-controller.h> 66 if (sc->flags & POLL_CFG_GDSCR) in gdsc_check_status() 67 reg = sc->gdscr + CFG_GDSCR_OFFSET; in gdsc_check_status() 68 else if (sc->gds_hw_ctrl) in gdsc_check_status() 69 reg = sc->gds_hw_ctrl; in gdsc_check_status() 71 reg = sc->gdscr; in gdsc_check_status() 73 ret = regmap_read(sc->regmap, reg, &val); in gdsc_check_status() 77 if (sc->flags & POLL_CFG_GDSCR) { in gdsc_check_status() [all …]
|
/linux/drivers/memory/ |
H A D | jz4780-nemc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Author: Alex Smith <alex@alex-smith.me.uk> 20 #include <linux/jz4780-nemc.h> 22 #define NEMC_SMCRn(n) (0x14 + (((n) - 1) * 4)) 42 #define NEMC_NFCSR_NFEn(n) BIT(((n) - 1) << 1) 43 #define NEMC_NFCSR_NFCEn(n) BIT((((n) - 1) << 1) + 1) 44 #define NEMC_NFCSR_TNFEn(n) BIT(16 + (n) - 1) 61 * jz4780_nemc_num_banks() - count the number of banks referenced by a device 75 while ((prop = of_get_address(dev->of_node, i++, NULL, NULL))) { in jz4780_nemc_num_banks() 88 * jz4780_nemc_set_type() - set the type of device connected to a bank [all …]
|
/linux/virt/kvm/ |
H A D | eventfd.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * kvm eventfd support - use eventfd objects to signal various KVM events 46 struct kvm *kvm = irqfd->kvm; in irqfd_inject() 48 if (!irqfd->resampler) { in irqfd_inject() 49 kvm_set_irq(kvm, KVM_USERSPACE_IRQ_SOURCE_ID, irqfd->gsi, 1, in irqfd_inject() 51 kvm_set_irq(kvm, KVM_USERSPACE_IRQ_SOURCE_ID, irqfd->gsi, 0, in irqfd_inject() 55 irqfd->gsi, 1, false); in irqfd_inject() 62 list_for_each_entry_srcu(irqfd, &resampler->list, resampler_link, in irqfd_resampler_notify() 63 srcu_read_lock_held(&resampler->kvm->irq_srcu)) in irqfd_resampler_notify() 64 eventfd_signal(irqfd->resamplefd); in irqfd_resampler_notify() [all …]
|
/linux/Documentation/networking/device_drivers/hamradio/ |
H A D | z8530drv.rst | 1 .. SPDX-License-Identifier: GPL-2.0 5 SCC.C - Linux driver for Z8530 based HDLC cards for AX.25 14 1. ftp://ftp.ccac.rwth-aachen.de/pub/jr/z8530drv-utils_3.0-3.tar.gz 16 2. ftp://ftp.pspt.fi/pub/ham/linux/ax25/z8530drv-utils_3.0-3.tar.gz 21 http://yaina.de/jreuter 23 Copyright |copy| 1993,2000 by Joerg Reuter DL1BKE <jreuter@yaina.de> 41 AX.25-HOWTO on how to emulate a KISS TNC on network device drivers. 54 please read 'man insmod' that comes with module-init-tools. 64 of your rc.*-files. This has to be done BEFORE you can 92 - this is just a delimiter to make sccinit a bit simpler to [all …]
|
/linux/drivers/video/fbdev/omap/ |
H A D | lcd_mipid.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * LCD driver for MIPI DBI-C / DCS compatible LCDs 16 #include <linux/platform_data/lcd-mipid.h> 64 BUG_ON(md->spi == NULL); in mipid_transfer() 72 x->tx_buf = &cmd; in mipid_transfer() 73 x->bits_per_word = 9; in mipid_transfer() 74 x->len = 2; in mipid_transfer() 79 x->tx_buf = wbuf; in mipid_transfer() 80 x->len = wlen; in mipid_transfer() 81 x->bits_per_word = 9; in mipid_transfer() [all …]
|
/linux/arch/mips/sgi-ip22/ |
H A D | ip28-berr.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * ip28-berr.c: Bus error handling. 5 * Copyright (C) 2002, 2003 Ladislav Michl (ladis@linux-mips.org) 6 * Copyright (C) 2005 Peter Fuerst (pf@net.alphadv.de) - IP28 69 * Starting with a bus-address, save secondary cache (indexed by in save_cache_tags() 84 * might fit to this bus-address, knowing that VA[11:0] == PA[11:0]. in save_cache_tags() 89 addr &= (0xffL << 56) | ((1 << 12) - 1); in save_cache_tags() 105 addr &= (0xffL << 56) | ((1 << 12) - 1); in save_cache_tags() 126 cpu_err_addr = sgimc->cerr; in save_and_clear_buserr() 127 cpu_err_stat = sgimc->cstat; in save_and_clear_buserr() [all …]
|
/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_display_power_well.c | 1 // SPDX-License-Identifier: MIT 53 * interrupts located on the well). Called after the 0->1 refcount 60 * the 1->0 refcount transition. 72 return &power_well->desc->instances->list[power_well->instance_idx]; in i915_power_well_instance() 82 if (i915_power_well_instance(power_well)->id == power_well_id) in lookup_power_well() 92 drm_WARN(&i915->drm, 1, in lookup_power_well() 95 return &i915->display.power.domains.power_wells[0]; in lookup_power_well() 101 drm_dbg_kms(&i915->drm, "enabling %s\n", intel_power_well_name(power_well)); in intel_power_well_enable() 102 power_well->desc->ops->enable(i915, power_well); in intel_power_well_enable() 103 power_well->hw_enabled = true; in intel_power_well_enable() [all …]
|
/linux/drivers/usb/dwc3/ |
H A D | core.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * core.h - DesignWare USB3 DRD Core Header 5 * Copyright (C) 2010-2011 Texas Instruments Incorporated - https://www.ti.com 8 * Sebastian Andrzej Siewior <bigeasy@linutronix.de> 20 #include <linux/dma-mapping.h> 37 * DWC3 Multiport controllers support up to 15 High-Speed PHYs 197 /* Global SoC Bus Configuration Register: AHB-prot/AXI-cache/OCP-ReqInfo */ 683 * struct dwc3_event_buffer - Software event buffer representation 717 * struct dwc3_ep - device side endpoint representation 730 * @number: endpoint number (1 - 15) [all …]
|