/linux/arch/arm/boot/dts/nvidia/ |
H A D | tegra20-paz00.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include <dt-bindings/input/input.h> 5 #include <dt-bindings/thermal/thermal.h> 8 #include "tegra20-cpu-opp.dtsi" 9 #include "tegra20-cpu-opp-microvolt.dtsi" 25 stdout-path = "serial0:115200n8"; 44 vdd-supply = <&hdmi_vdd_reg>; 45 pll-supply = <&hdmi_pll_reg>; 47 nvidia,ddc-i2c-bus = <&hdmi_ddc>; [all …]
|
H A D | tegra30-lg-x3.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 3 #include <dt-bindings/input/gpio-keys.h> 4 #include <dt-bindings/input/input.h> 5 #include <dt-bindings/leds/common.h> 6 #include <dt-bindings/mfd/max77620.h> 7 #include <dt-bindings/thermal/thermal.h> 10 #include "tegra30-cpu-opp.dtsi" 11 #include "tegra30-cpu-opp-microvolt.dtsi" 14 chassis-type = "handset"; 30 * pre-existing /chosen node to be available to insert the [all …]
|
/linux/drivers/net/wireless/intel/iwlegacy/ |
H A D | 4965.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 4 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved. 8 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 79 * Acquire il->lock before calling this function ! 83 * il4965_tx_queue_set_status - (optionally) start Tx/Cmd queue 84 * @tx_fifo_id: Tx DMA/FIFO channel (range 0-7) that the queue will feed 87 * NOTE: Acquire il->lock before calling this function ! 181 * The first queue used for block-ack aggregation is #7 (4965 only). 182 * All block-ack aggregation queues should map to Tx DMA/FIFO channel 7. 194 #define IL49_RTC_INST_SIZE (IL49_RTC_INST_UPPER_BOUND - \ [all …]
|
H A D | 4965.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright(c) 2003 - 2011 Intel Corporation. All rights reserved. 8 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 15 #include <linux/dma-mapping.h> 29 * il_verify_inst_sparse - verify runtime uCode image in card vs. host, 41 D_INFO("ucode inst image size is %u\n", len); in il4965_verify_inst_sparse() 44 /* read data comes through single port, auto-incr addr */ in il4965_verify_inst_sparse() 50 ret = -EIO; in il4965_verify_inst_sparse() 61 * il4965_verify_inst_full - verify runtime uCode image in card vs. host, 72 D_INFO("ucode inst image size is %u\n", len); in il4965_verify_inst_full() [all …]
|
H A D | commands.h | 8 * Copyright(c) 2005 - 2011 Intel Corporation. All rights reserved. 29 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 33 * Copyright(c) 2005 - 2011 Intel Corporation. All rights reserved. 92 /* Multi-Station support */ 138 /* RF-KILL commands and notifications */ 184 * when sending the response to each driver-originated command, so 196 * 0:7 tfd idx - position within TX queue 199 * 14 huge - driver sets this to indicate command is in the 201 * 15 unsolicited RX or uCode-originated notification 212 * 1) DSP gain (or sometimes called DSP attenuation). This is a fine-grained [all …]
|
/linux/drivers/nvmem/ |
H A D | qfprom.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 #include <linux/nvmem-provider.h> 23 /* Amount of time required to hold charge to blow fuse in micro-seconds */ 44 * struct qfprom_soc_data - config that varies from SoC to SoC. 60 * struct qfprom_priv - structure holding qfprom attributes 62 * @qfpraw: iomapped memory space for qfprom-efuse raw address space. 63 * @qfpconf: iomapped memory space for qfprom-efuse configuration address 68 * @secclk: Clock supply. 69 * @vcc: Regulator supply. 84 * struct qfprom_touched_values - saved values to restore after blowing [all …]
|
/linux/drivers/net/vxlan/ |
H A D | vxlan_core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (c) 2012-2013 Vyatta Inc. 68 static inline bool vxlan_collect_metadata(struct vxlan_sock *vs) in vxlan_collect_metadata() argument 70 return vs->flags & VXLAN_F_COLLECT_METADATA || in vxlan_collect_metadata() 76 * non-default VRF). 81 struct vxlan_sock *vs; in vxlan_find_sock() local 85 hlist_for_each_entry_rcu(vs, vs_head(net, port), hlist) { in vxlan_find_sock() 86 if (inet_sk(vs->sock->sk)->inet_sport == port && in vxlan_find_sock() 87 vxlan_get_sk_family(vs) == family && in vxlan_find_sock() 88 vs->flags == flags && in vxlan_find_sock() [all …]
|
/linux/drivers/media/i2c/ |
H A D | max9271.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright (C) 2017-2020 Jacopo Mondi 4 * Copyright (C) 2017-2020 Kieran Bingham 5 * Copyright (C) 2017-2020 Laurent Pinchart 6 * Copyright (C) 2017-2020 Niklas Söderlund 11 * chip. This is not a self-contained driver, as MAX9271 is usually embedded in 16 * functions exported from this library driver to maximize code re-use. 29 dev_dbg(&dev->client->dev, "%s(0x%02x)\n", __func__, reg); in max9271_read() 31 ret = i2c_smbus_read_byte_data(dev->client, reg); in max9271_read() 33 dev_dbg(&dev->client->dev, in max9271_read() [all …]
|
H A D | tda1997x.c | 1 // SPDX-License-Identifier: GPL-2.0 16 #include <linux/v4l2-dv-timings.h> 19 #include <media/v4l2-ctrls.h> 20 #include <media/v4l2-device.h> 21 #include <media/v4l2-dv-timings.h> 22 #include <media/v4l2-event.h> 23 #include <media/v4l2-fwnode.h> 31 #include <dt-bindings/media/tda1997x.h> 40 MODULE_PARM_DESC(debug, "debug level (0-2)"); 46 "OBA", /* One-Bit Audio */ [all …]
|
/linux/drivers/iio/adc/ |
H A D | ti-ads1100.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * ADS1100 - Texas Instruments Analog-to-Digital Converter 8 * IIO driver for ADS1100 and ADS1000 ADC 16-bit I2C 73 u8 config = (data->config & ~mask) | (value & mask); in ads1100_set_config_bits() 75 if (data->config == config) in ads1100_set_config_bits() 78 ret = i2c_master_send(data->client, &config, 1); in ads1100_set_config_bits() 82 data->config = config; in ads1100_set_config_bits() 89 return ads1100_data_rate_bits[FIELD_GET(ADS1100_DR_MASK, data->config)]; in ads1100_data_bits() 99 return -EINVAL; in ads1100_get_adc_result() 101 ret = pm_runtime_resume_and_get(&data->client->dev); in ads1100_get_adc_result() [all …]
|
/linux/drivers/gpu/drm/bridge/ |
H A D | tc358775.c | 1 // SPDX-License-Identifier: GPL-2.0 16 #include <linux/media-bus-format.h> 36 /* DSI D-PHY Layer Registers */ 52 #define PPI_STARTPPI 0x0104 /* START control bit of PPI-TX function. */ 93 #define DSI_STARTDSI 0x0204 /* START control bit of DSI-TX function */ 173 #define SYS_RST_I2CS BIT(0) /* Reset I2C-Slave controller */ 174 #define SYS_RST_I2CM BIT(1) /* Reset I2C-Master controller */ 177 #define SYS_RST_DSIRX BIT(4) /* Reset DSI-RX and App controller */ 279 u8 lvds_link; /* single-link or dual-link */ 293 struct device *dev = &tc->dsi->dev; in tc_bridge_pre_enable() [all …]
|
H A D | samsung-dsim.c | 1 // SPDX-License-Identifier: GPL-2.0-only 18 #include <linux/media-bus-format.h> 25 #include <drm/bridge/samsung-dsim.h> 112 #define DSIM_MAIN_VRESOL(x, num_bits) (((x) & ((1 << (num_bits)) - 1)) << 16) 113 #define DSIM_MAIN_HRESOL(x, num_bits) (((x) & ((1 << (num_bits)) - 1)) << 0) 501 * downstream driver - drivers/gpu/drm/bridge/sec-dsim.c 536 writel(val, dsi->reg_base + dsi->driver_data->reg_ofs[idx]); in samsung_dsim_write() 541 return readl(dsi->reg_base + dsi->driver_data->reg_ofs[idx]); in samsung_dsim_read() 546 if (wait_for_completion_timeout(&dsi->completed, msecs_to_jiffies(300))) in samsung_dsim_wait_for_reset() 549 dev_err(dsi->dev, "timeout waiting for reset\n"); in samsung_dsim_wait_for_reset() [all …]
|
/linux/drivers/net/wireless/silabs/wfx/ |
H A D | hif_rx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Handling of the chip-to-host events (aka indications) of the hardware API. 5 * Copyright (c) 2017-2020, Silicon Laboratories, Inc. 6 * Copyright (c) 2010, ST-Ericsson 24 int cmd = hif->id; in wfx_hif_generic_confirm() 25 int len = le16_to_cpu(hif->len) - 4; /* drop header */ in wfx_hif_generic_confirm() 27 WARN(!mutex_is_locked(&wdev->hif_cmd.lock), "data locking error"); in wfx_hif_generic_confirm() 29 if (!wdev->hif_cmd.buf_send) { in wfx_hif_generic_confirm() 30 dev_warn(wdev->dev, "unexpected confirmation: 0x%.2x\n", cmd); in wfx_hif_generic_confirm() 31 return -EINVAL; in wfx_hif_generic_confirm() [all …]
|
/linux/Documentation/hwmon/ |
H A D | it87.rst | 174 - Christophe Gauthron 175 - Jean Delvare <jdelvare@suse.de> 179 ----------------- 184 by either the battery or the onboard power supply. Only the first reading 192 misconfigured by BIOS - PWM values would be inverted. This option tries 209 Provided since there are reports that system-wide acpi_enfore_resources=lax 217 ------------------- 219 All the chips supported by this driver are LPC Super-I/O chips, accessed 220 through the LPC bus (ISA-like I/O ports). The IT8712F additionally has an 228 ----------- [all …]
|
/linux/drivers/gpu/drm/tegra/ |
H A D | sor.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 #include <linux/clk-provider.h> 488 u32 value = readl(sor->regs + (offset << 2)); in tegra_sor_readl() 490 trace_sor_readl(sor->dev, offset, value); in tegra_sor_readl() 498 trace_sor_writel(sor->dev, offset, value); in tegra_sor_writel() 499 writel(value, sor->regs + (offset << 2)); in tegra_sor_writel() 506 clk_disable_unprepare(sor->clk); in tegra_sor_set_parent_clock() 508 err = clk_set_parent(sor->clk_out, parent); in tegra_sor_set_parent_clock() 512 err = clk_prepare_enable(sor->clk); in tegra_sor_set_parent_clock() 535 * Implementing ->set_parent() here isn't really required because the parent [all …]
|
/linux/drivers/usb/misc/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 13 Technologies USS-720 chip. These cables are plugged into your USB 19 printers may be connected to the USS-720 in this mode. The generic 21 that mode, and you can say N here if you want to use the chip only 30 Say Y here if you own an USS-720 USB->Parport cable and intend to 72 tristate "USB 7-Segment LED Display" 74 Say Y here if you have a USB 7-Segment Display by Delcom 107 driver supports the pre-programmed devices (incl. firmware) 108 by AK Modul-Bus Computer GmbH. 110 Please see: https://www.ak-modul-bus.de/stat/mikrocontroller.html [all …]
|
/linux/sound/soc/codecs/ |
H A D | cs4270.c | 6 * Copyright 2007-2009 Freescale Semiconductor, Inc. This file is licensed 15 * - Software mode is supported. Stand-alone mode is not supported. 16 * - Only I2C is supported, not SPI 17 * - Support for master and slave mode 18 * - The machine driver's 'startup' function must call 20 * - Only I2S and left-justified modes are supported 21 * - Power management is supported 51 #define CS4270_NUMREGS (CS4270_LASTREG - CS4270_FIRSTREG + 1) 101 /* Power-on default values for the registers 103 * This array contains the power-on default values of the registers, with the [all …]
|
H A D | rt5682s.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 // rt5682s.c -- RT5682I-VS ALSA SoC audio component driver 25 #include <sound/soc-dapm.h> 38 .dai_clk_names[RT5682S_DAI_WCLK_IDX] = "rt5682-dai-wclk", 39 .dai_clk_names[RT5682S_DAI_BCLK_IDX] = "rt5682-dai-bclk", 46 [RT5682S_SUPPLY_LDO1_IN] = "LDO1-IN", 69 ret = regmap_multi_reg_write(rt5682s->regmap, patch_list, ARRAY_SIZE(patch_list)); in rt5682s_apply_patch_list() 71 dev_warn(dev, "Failed to apply regmap patch: %d\n", ret); in rt5682s_apply_patch_list() 624 regmap_write(rt5682s->regmap, RT5682S_RESET, 0); in rt5682s_reset() 634 dev_dbg(component->dev, "%s btn_type=%x\n", __func__, btn_type); in rt5682s_button_detect() [all …]
|
/linux/drivers/power/supply/ |
H A D | ucs1002_power.c | 1 // SPDX-License-Identifier: GPL-2.0+ 28 * charge delivered from the VS source to a portable device. The total 129 ret = regmap_read(info->regmap, UCS1002_REG_OTHER_STATUS, ®); in ucs1002_get_online() 133 val->intval = !!(reg & F_CHG_ACT); in ucs1002_get_online() 186 ret = regmap_bulk_read(info->regmap, UCS1002_REG_TOTAL_ACC_CHARGE, in ucs1002_get_charge() 192 val->intval = 0; in ucs1002_get_charge() 195 val->intval += bit_weights_uAh[i]; in ucs1002_get_charge() 215 ret = regmap_read(info->regmap, UCS1002_REG_CURRENT_MEASUREMENT, ®); in ucs1002_get_current() 220 val->intval = 0; in ucs1002_get_current() 223 val->intval += bit_weights_uA[i]; in ucs1002_get_current() [all …]
|
/linux/arch/arm64/boot/dts/freescale/ |
H A D | imx8mp-verdin.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 6 #include <dt-bindings/phy/phy-imx8-pcie.h> 7 #include <dt-bindings/pwm/pwm.h> 12 stdout-path = &uart3; 24 compatible = "pwm-backlight"; 25 brightness-levels = <0 45 63 88 119 158 203 255>; 26 default-brightness-level = <4>; 28 enable-gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>; 29 pinctrl-names = "default"; 30 pinctrl-0 = <&pinctrl_i2s_2_d_out_dsi_1_bkl_en>; [all …]
|
/linux/drivers/iio/accel/ |
H A D | bmc150-accel-core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * 3-axis accelerometer driver supporting many Bosch-Sensortec chips 26 #include "bmc150-accel.h" 212 struct device *dev = regmap_get_device(data->regmap); in bmc150_accel_set_mode() 216 int dur_val = -1; in bmc150_accel_set_mode() 231 return -EINVAL; in bmc150_accel_set_mode() 236 dev_dbg(dev, "Set Mode bits %x\n", lpw_bits); in bmc150_accel_set_mode() 238 ret = regmap_write(data->regmap, BMC150_ACCEL_REG_PMU_LPW, lpw_bits); in bmc150_accel_set_mode() 240 dev_err(dev, "Error writing reg_pmu_lpw\n"); in bmc150_accel_set_mode() 256 ret = regmap_write(data->regmap, in bmc150_accel_set_bw() [all …]
|
/linux/Documentation/admin-guide/pm/ |
H A D | amd-pstate.rst | 1 .. SPDX-License-Identifier: GPL-2.0 5 ``amd-pstate`` CPU Performance Scaling Driver 16 ``amd-pstate`` is the AMD CPU performance scaling driver that introduces a 20 than legacy ACPI hardware P-States. Current AMD CPU/APU platforms are using 21 the ACPI P-states driver to manage CPU frequency and clocks with switching 22 only in 3 P-states. CPPC replaces the ACPI P-states controls and allows a 23 flexible, low-latency interface for the Linux kernel to directly 26 ``amd-pstate`` leverages the Linux kernel governors such as ``schedutil``, 30 Volume 2: System Programming [1]_). Currently, ``amd-pstate`` supports basic 40 continuous, abstract, and unit-less performance value in a scale that is [all …]
|
/linux/drivers/regulator/ |
H A D | qcom_spmi-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2012-2015, The Linux Foundation. All rights reserved. 8 #include <linux/devm-helpers.h> 57 * struct spmi_regulator_init_data - spmi-regulator initialization data 303 /* VS regulator over current protection control register layout */ 307 /* VS regulator soft start control register layout */ 365 * struct spmi_voltage_range - regulator set point voltage mapping description 380 * (max_uV - min_uV) % step_uV == 0 381 * (set_point_min_uV - min_uV) % step_uV == 0* 382 * (set_point_max_uV - min_uV) % step_uV == 0* [all …]
|
/linux/drivers/mtd/chips/ |
H A D | cfi_cmdset_0020.c | 1 // SPDX-License-Identifier: GPL-2.0 9 * - completely revamped method functions so they are aware and 11 * - scalability vs code size is completely set at compile-time 13 * - optimized write buffer method 14 * 06/21/2002 Joern Engel <joern@wh.fh-wedel.de> and others 15 * - modified Intel Command Set 0x0001 to support ST Advanced Architecture 17 * - added a writev function 18 * 07/13/2005 Joern Engel <joern@wh.fh-wedel.de> 19 * - Plugged memory leak in cfi_staa_writev(). 69 printk(" Feature/Command Support: %4.4X\n", extp->FeatureSupport); in cfi_tell_features() [all …]
|
/linux/kernel/time/ |
H A D | clocksource.c | 1 // SPDX-License-Identifier: GPL-2.0+ 20 #include "tick-internal.h" 27 u64 delta = clocksource_delta(end, start, cs->mask, cs->max_raw_delta); in cycles_to_nsec_safe() 29 if (likely(delta < cs->max_cycles)) in cycles_to_nsec_safe() 30 return clocksource_cyc2ns(delta, cs->mult, cs->shift); in cycles_to_nsec_safe() 32 return mul_u64_u32_shr(delta, cs->mult, cs->shift); in cycles_to_nsec_safe() 36 * clocks_calc_mult_shift - calculate mult/shift factors for scaled math of clocks 71 sftacc--; in clocks_calc_mult_shift() 78 for (sft = 32; sft > 0; sft--) { in clocks_calc_mult_shift() 90 /*[Clocksource internal variables]--------- [all …]
|