/linux/drivers/hwmon/pmbus/ |
H A D | mp2856.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 79 bool negative = false; in val2linear11() local 85 negative = true; in val2linear11() 86 val = -val; in val2linear11() 95 while (val < MIN_LIN_MANTISSA && exponent > -15) { in val2linear11() 96 exponent--; in val2linear11() 100 /* Convert mantissa from milli-units to units */ in val2linear11() 104 if (negative) in val2linear11() 105 mantissa = -mantissa; in val2linear11() 112 mp2856_read_word_helper(struct i2c_client *client, int page, int phase, u8 reg, in mp2856_read_word_helper() argument [all …]
|
H A D | mp2975.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Hardware monitoring driver for MPS Multi-phase Digital VR Controllers 138 return -ENODATA; in mp2975_read_byte_data() 143 mp2975_read_word_helper(struct i2c_client *client, int page, int phase, u8 reg, in mp2975_read_word_helper() argument 146 int ret = pmbus_read_word_data(client, page, phase, reg); in mp2975_read_word_helper() 157 return 250 + (val - 1) * 5; in mp2975_vid2direct() 161 return 500 + (val - 1) * 10; in mp2975_vid2direct() 165 return 200 + (val - 1) * 10; in mp2975_vid2direct() 168 return -EINVAL; in mp2975_vid2direct() 176 /* Converts a milli-unit DIRECT value to LINEAR11 format */ [all …]
|
H A D | zl6100.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 57 /* Convert linear sensor value to milli-units */ 69 /* scale result to milli-units */ in zl6100_l2d() 75 val >>= -exponent; in zl6100_l2d() 86 bool negative = false; in zl6100_d2l() local 93 negative = true; in zl6100_d2l() 94 val = -val; in zl6100_d2l() 103 while (val < MIN_MANTISSA && exponent > -15) { in zl6100_d2l() 104 exponent--; in zl6100_d2l() 108 /* Convert mantissa from milli-units to units */ in zl6100_d2l() [all …]
|
H A D | pmbus_core.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 19 #include <linux/hwmon-sysfs.h> 34 static int wp = -1; 42 u8 phase; /* phase number, 0xff for all phases */ member 48 Negative if there was a read error */ 112 s16 currpage; /* current page, -1 for unknown/unset */ 113 s16 currphase; /* current phase, 0xff for all, -1 for unknown/unset */ 153 for (sensor = data->sensors; sensor; sensor = sensor->next) in pmbus_clear_cache() 154 sensor->data = -ENODATA; in pmbus_clear_cache() 163 for (sensor = data->sensors; sensor; sensor = sensor->next) in pmbus_set_update() [all …]
|
/linux/drivers/base/power/ |
H A D | common.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * drivers/base/power/common.c - Common device power management code. 19 * dev_pm_get_subsys_data - Create or refcount power.subsys_data for device. 24 * increased, otherwise negative error code. 32 return -ENOMEM; in dev_pm_get_subsys_data() 34 spin_lock_irq(&dev->power.lock); in dev_pm_get_subsys_data() 36 if (dev->power.subsys_data) { in dev_pm_get_subsys_data() 37 dev->power.subsys_data->refcount++; in dev_pm_get_subsys_data() 39 spin_lock_init(&psd->lock); in dev_pm_get_subsys_data() 40 psd->refcount = 1; in dev_pm_get_subsys_data() [all …]
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-bus-iio-frequency-admv1013 | 1 What: /sys/bus/iio/devices/iio:deviceX/in_altvoltage0-1_i_calibphase 3 Contact: linux-iio@vger.kernel.org 5 Read/write unscaled value for the Local Oscillatior path quadrature I phase shift. 7 What: /sys/bus/iio/devices/iio:deviceX/in_altvoltage0-1_q_calibphase 9 Contact: linux-iio@vger.kernel.org 11 Read/write unscaled value for the Local Oscillatior path quadrature Q phase shift. 15 Contact: linux-iio@vger.kernel.org 22 Contact: linux-iio@vger.kernel.org 28 Contact: linux-iio@vger.kernel.org 30 Read/write raw value for the Local Oscillatior Feedthrough Offset Calibration I Negative [all …]
|
/linux/Documentation/devicetree/bindings/timer/ |
H A D | renesas,rz-mtu3.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/timer/renesas,rz-mtu3.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Renesas RZ/G2L Multi-Function Timer Pulse Unit 3 (MTU3a) 10 - Biju Das <biju.das.jz@bp.renesas.com> 13 This hardware block consists of eight 16-bit timer channels and one 14 32-bit timer channel. It supports the following specifications: 15 - Pulse input/output: 28 lines max 16 - Pulse input 3 lines [all …]
|
/linux/drivers/base/regmap/ |
H A D | regmap-sccb.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // Register map access API - SCCB support 11 * sccb_is_available - Check if the adapter supports SCCB protocol 31 * regmap_sccb_read - Read data from SCCB slave device 36 * This executes the 2-phase write transmission cycle that is followed by a 37 * 2-phase read transmission cycle, returning negative errno else zero on 47 i2c_lock_bus(i2c->adapter, I2C_LOCK_SEGMENT); in regmap_sccb_read() 49 ret = __i2c_smbus_xfer(i2c->adapter, i2c->addr, i2c->flags, in regmap_sccb_read() 54 ret = __i2c_smbus_xfer(i2c->adapter, i2c->addr, i2c->flags, in regmap_sccb_read() 61 i2c_unlock_bus(i2c->adapter, I2C_LOCK_SEGMENT); in regmap_sccb_read() [all …]
|
/linux/drivers/net/ethernet/amazon/ena/ |
H A D | ena_com.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ 3 * Copyright 2015-2020 Amazon.com, Inc. or its affiliates. All rights reserved. 11 #include <linux/dma-mapping.h> 136 u8 phase; member 179 u8 phase; member 190 u8 phase; member 201 u8 phase; member 244 u8 phase; member 374 /* ena_com_mmio_reg_read_request_init - Init the mmio reg read mechanism 381 * @return - 0 on success, negative value on failure. [all …]
|
/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_dpll.c | 1 // SPDX-License-Identifier: GPL-2.0 16 * enum ice_dpll_pin_type - enumerate ice pin types: 32 [ICE_DPLL_PIN_TYPE_RCLK_INPUT] = "rclk-input", 40 * ice_dpll_is_reset - check if reset is in progress 47 * * false - no reset in progress 48 * * true - reset in progress 52 if (ice_is_reset_in_progress(pf->state)) { in ice_dpll_is_reset() 60 * ice_dpll_pin_freq_set - set pin's frequency 69 * Context: Called under pf->dplls.lock 71 * * 0 - success [all …]
|
/linux/drivers/staging/sm750fb/ |
H A D | ddk750_mode.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 9 NEG, /* negative */ 32 /* Clock Phase. This clock phase only applies to Panel. */
|
/linux/drivers/infiniband/hw/efa/ |
H A D | efa_com.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause 3 * Copyright 2018-2024 Amazon.com, Inc. or its affiliates. All rights reserved. 74 struct efa_com_mmio_read *mmio_read = &edev->mmio_read; in efa_com_reg_read32() 80 read_resp = mmio_read->read_resp; in efa_com_reg_read32() 82 spin_lock(&mmio_read->lock); in efa_com_reg_read32() 83 mmio_read->seq_num++; in efa_com_reg_read32() 86 read_resp->req_id = mmio_read->seq_num + 0x9aL; in efa_com_reg_read32() 89 mmio_read->seq_num); in efa_com_reg_read32() 91 writel(mmio_read_reg, edev->reg_bar + EFA_REGS_MMIO_REG_READ_OFF); in efa_com_reg_read32() 93 exp_time = jiffies + usecs_to_jiffies(mmio_read->mmio_read_timeout); in efa_com_reg_read32() [all …]
|
/linux/drivers/gpu/drm/i915/gvt/ |
H A D | edid.c | 2 * Copyright(c) 2011-2016 Intel Corporation. All rights reserved. 56 struct intel_vgpu_i2c_edid *edid = &vgpu->display.i2c_edid; in edid_get_byte() 59 if (edid->state == I2C_NOT_SPECIFIED || !edid->target_selected) { in edid_get_byte() 63 if (edid->current_edid_read >= EDID_SIZE) { in edid_get_byte() 68 if (!edid->edid_available) { in edid_get_byte() 73 if (intel_vgpu_has_monitor_on_port(vgpu, edid->port)) { in edid_get_byte() 75 intel_vgpu_port(vgpu, edid->port)->edid; in edid_get_byte() 77 chr = edid_data->edid_block[edid->current_edid_read]; in edid_get_byte() 78 edid->current_edid_read++; in edid_get_byte() 88 int port = -EINVAL; in cnp_get_port_from_gmbus0() [all …]
|
/linux/Documentation/devicetree/bindings/iio/frequency/ |
H A D | adi,adf4350.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Michael Hennerich <michael.hennerich@analog.com> 15 - adi,adf4350 16 - adi,adf4351 21 spi-max-frequency: 28 clock-names: 31 '#clock-cells': 34 clock-output-names: [all …]
|
H A D | adi,admv1013.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Antoniu Miclaus <antoniu.miclaus@analog.com> 21 - adi,admv1013 26 spi-max-frequency: 34 clock-names: 36 - const: lo_in 38 vcm-supply: 42 vcc-drv-supply: [all …]
|
H A D | adi,admv1014.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Antoniu Miclaus <antoniu.miclaus@analog.com> 21 - adi,admv1014 26 spi-max-frequency: 32 clock-names: 34 - const: lo_in 38 vcm-supply: 40 Common-mode voltage regulator. [all …]
|
/linux/fs/ubifs/ |
H A D | log.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2006-2008 Nokia Corporation. 23 * ubifs_search_bud - search bud LEB. 24 * @c: UBIFS file-system description object 35 spin_lock(&c->buds_lock); in ubifs_search_bud() 36 p = c->buds.rb_node; in ubifs_search_bud() 39 if (lnum < bud->lnum) in ubifs_search_bud() 40 p = p->rb_left; in ubifs_search_bud() 41 else if (lnum > bud->lnum) in ubifs_search_bud() 42 p = p->rb_right; in ubifs_search_bud() [all …]
|
/linux/include/uapi/linux/media/raspberrypi/ |
H A D | pisp_be_config.h | 1 /* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */ 5 * Copyright (C) 2021 - Raspberry Pi Ltd 97 * struct pisp_be_global_config - PiSP global enable bitmaps 111 * struct pisp_be_input_buffer_config - PiSP Back End input buffer 120 * struct pisp_be_dpc_config - PiSP Back End DPC config 138 * struct pisp_be_geq_config - PiSP Back End GEQ config 150 #define PISP_BE_GEQ_SLOPE ((1 << 10) - 1) 158 * struct pisp_be_tdn_input_buffer_config - PiSP Back End TDN input buffer 167 * struct pisp_be_tdn_config - PiSP Back End TDN config 190 * struct pisp_be_tdn_output_buffer_config - PiSP Back End TDN output buffer [all …]
|
/linux/include/drm/ |
H A D | drm_modeset_helper_vtables.h | 3 * Copyright © 2007-2008 Dave Airlie 4 * Copyright © 2007-2008 Intel Corporation 6 * Copyright © 2011-2013 Intel Corporation 61 * struct drm_crtc_helper_funcs - helper operations for CRTCs 135 * Since this function is both called from the check phase of an atomic 137 * to look at anything else but the passed-in mode, and validate it 138 * against configuration-invariant hardware constraints. Any further 165 * This function is called in the check phase of atomic modesets, which 209 * 0 on success or a negative error code on failure. 241 * optimized fast-path instead of a full mode set operation with all the [all …]
|
/linux/Documentation/RCU/ |
H A D | whatisRCU.rst | 3 What is RCU? -- "Read, Copy, Update" 21 …ries: Fundamentals https://www.linuxfoundation.org/webinars/unraveling-rcu-usage-mysteries 22 …Cases https://www.linuxfoundation.org/webinars/unraveling-rcu-usage-mysteries-additional-use-cases 28 during the 2.5 development effort that is optimized for read-mostly 47 :ref:`6. ANALOGY WITH READER-WRITER LOCKING <6_whatisRCU>` 67 everything, feel free to read the whole thing -- but if you are really 69 never need this document anyway. ;-) 74 ---------------- 77 "reclamation" phases. The removal phase removes references to data items 80 The reason that it is safe to run the removal phase concurrently with [all …]
|
/linux/drivers/isdn/hardware/mISDN/ |
H A D | isdnhdlc.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * hdlc.h -- General purpose ISDN HDLC decoder. 10 * 2009 Karsten Keil <keil@b1-systems.de> 11 * 2002 Wolfgang Mües <wolfgang@iksw-muees.de> 39 /* set if in closing phase (need to send CRC + flag) */ 53 or a negative error number
|
/linux/tools/lib/bpf/ |
H A D | libbpf.h | 1 /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */ 6 * Copyright (C) 2013-2015 Alexei Starovoitov <ast@kernel.org> 100 * @brief **libbpf_set_print()** sets user-provided log callback function to 108 * This function is thread-safe. 119 * - for object open from file, this will override setting object 121 * - for object open from memory buffer, this will specify an object 122 * name and will override default "<addr>-<buf-size>" name; 125 /* parse map definitions non-strictly, allowing extra attributes/data */ 129 * auto-pinned to that path on load; defaults to "/sys/fs/bpf". 139 /* Path to the custom BTF to be used for BPF CO-RE relocations. [all …]
|
/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_tv_regs.h | 1 /* SPDX-License-Identifier: MIT */ 41 /* Sets the colorburst to PAL mode. Required for non-M PAL modes. */ 56 /* Read-only state that reports all features enabled */ 58 /* Read-only state that reports that Macrovision is disabled in hardware*/ 60 /* Read-only state that reports that TV-out is disabled in hardware. */ 64 /* Encoder test pattern 1 - combo pattern */ 66 /* Encoder test pattern 2 - full screen vertical 75% color bars */ 68 /* Encoder test pattern 3 - full screen horizontal 75% color bars */ 70 /* Encoder test pattern 4 - random noise */ 72 /* Encoder test pattern 5 - linear color ramps */ [all …]
|
/linux/Documentation/driver-api/ |
H A D | dpll.rst | 1 .. SPDX-License-Identifier: GPL-2.0 10 PLL - Phase Locked Loop is an electronic circuit which syntonizes clock 14 DPLL - Digital Phase Locked Loop is an integrated circuit which in 15 addition to plain PLL behavior incorporates a digital phase detector 82 - ``DPLL_PIN_STATE_CONNECTED`` - the pin is used to drive dpll device 83 - ``DPLL_PIN_STATE_DISCONNECTED`` - the pin is not used to drive dpll 89 - ``DPLL_PIN_STATE_SELECTABLE`` - the pin shall be considered as valid 91 - ``DPLL_PIN_STATE_DISCONNECTED`` - the pin shall be not considered as 104 1) Set on a pin - the configuration affects all dpll devices pin is 106 2) Set on a pin-dpll tuple - the configuration affects only selected [all …]
|
/linux/include/uapi/linux/ |
H A D | input.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 3 * Copyright (c) 1999-2002 Vojtech Pavlik 20 #include "input-event-codes.h" 56 * IOCTLs (0x00 - 0x7f) 67 * struct input_absinfo - used by EVIOCGABS/EVIOCSABS ioctls 103 * struct input_keymap_entry - used by EVIOCGKEYCODE/EVIOCSKEYCODE ioctls 104 * @scancode: scancode represented in machine-endian form. 148 * EVIOCGMTSLOTS(len) - get MT slot values 169 * If the request code is not an ABS_MT value, -EINVAL is returned. 190 * EVIOCGMASK - Retrieve current event mask [all …]
|