Home
last modified time | relevance | path

Searched +full:negative +full:- +full:phase (Results 1 – 25 of 253) sorted by relevance

1234567891011

/linux-6.14.4/drivers/hwmon/pmbus/
Dmp2856.c1 // 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 …]
Dmp2975.c1 // 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 …]
Dpmbus.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * pmbus.h - Common defines and structures for PMBus devices
146 * READ registers are read-only; writes are either ignored or return an error.
151 * driver code returns non-negative register values if a virtual register is
152 * supported, or a negative error code if not. The chip driver may return
153 * -ENODATA or any other error code in this case, though an error code other
154 * than -ENODATA is handled more efficiently and thus preferred. Either case,
203 * PMBUS_VIRT_PWM_[1-4] and PMBUS_VIRT_PWM_ENABLE_[1-4] in the
207 * PMBUS_VIRT_FAN_TARGET_[1-4].
441 u32 pfunc[PMBUS_PHASES];/* Functionality, per phase */
[all …]
Dzl6100.c1 // 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 …]
/linux-6.14.4/drivers/base/power/
Dcommon.c1 // 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-6.14.4/Documentation/ABI/testing/
Dsysfs-bus-iio-frequency-admv10131 What: /sys/bus/iio/devices/iio:deviceX/in_altvoltage0-1_i_calibphase
3 Contact: linux-[email protected]
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-[email protected]
11 Read/write unscaled value for the Local Oscillatior path quadrature Q phase shift.
15 Contact: linux-[email protected]
22 Contact: linux-[email protected]
28 Contact: linux-[email protected]
30 Read/write raw value for the Local Oscillatior Feedthrough Offset Calibration I Negative
[all …]
/linux-6.14.4/drivers/base/regmap/
Dregmap-sccb.c1 // 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-6.14.4/Documentation/devicetree/bindings/timer/
Drenesas,rz-mtu3.yaml1 # 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 <[email protected]>
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-6.14.4/Documentation/hwmon/
Dpmbus-core.rst9 power-management protocol with a fully defined command language that facilitates
11 protocol is implemented over the industry-standard SMBus serial interface and
12 enables programming, control, and real-time monitoring of compliant power
18 promoted by the PMBus Implementers Forum (PMBus-IF), comprising 30+ adopters
22 commands, and manufacturers can add as many non-standard commands as they like.
23 Also, different PMBUs devices act differently if non-supported commands are
43 PMBus device capabilities auto-detection
46 For generic PMBus devices, code in pmbus.c attempts to auto-detect all supported
47 PMBus commands. Auto-detection is somewhat limited, since there are simply too
50 pages (see the PMBus specification for details on multi-page PMBus devices).
[all …]
/linux-6.14.4/drivers/net/ethernet/amazon/ena/
Dena_com.h1 /* 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-6.14.4/drivers/staging/sm750fb/
Dddk750_mode.h1 /* SPDX-License-Identifier: GPL-2.0 */
9 NEG, /* negative */
32 /* Clock Phase. This clock phase only applies to Panel. */
/linux-6.14.4/drivers/net/ethernet/intel/ice/
Dice_dpll.c1 // 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-6.14.4/drivers/infiniband/hw/efa/
Defa_com.c1 // 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-6.14.4/include/linux/
Dptp_clock_kernel.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
19 * struct ptp_clock_request - request PTP clock event
47 * struct ptp_system_timestamp - system time corresponding to a PHC timestamp
50 * @clockid: clock-base used for capturing the system timestamps
59 * struct ptp_clock_info - describes a PTP hardware clock
83 * algorithm to correct the provided phase offset.
84 * parameter delta: PHC servo phase adjustment target
88 * to the hardware clock's phase control functionality
159 * scheduling time (>=0) or negative value in case further
165 * The callbacks must all return zero on success, non-zero otherwise.
[all …]
Dclk.h1 /* SPDX-License-Identifier: GPL-2.0-only */
7 * Copyright (C) 2011-2012 Linaro Ltd <[email protected]>
24 * PRE_RATE_CHANGE - called immediately before the clk rate is changed,
35 * POST_RATE_CHANGE - called after the clk rate change has successfully
44 * struct clk_notifier - associate a clk with a notifier
61 * struct clk_notifier_data - rate data to pass to the notifier callback
66 * For a pre-notifier, old_rate is the clk's rate before this rate
68 * post-notifier, old_rate and new_rate are both set to the clk's
78 * struct clk_bulk_data - Data used for bulk clk operations.
95 * clk_notifier_register - register a clock rate-change notifier callback
[all …]
Dtimex.h28 * Added defines for hybrid phase/frequency-lock loop.
32 * defines for PPS phase-lock loop.
46 * 1995-08-13 Torsten Duwe
47 * kernel PLL updated to 1994-12-13 specs (rfc-1589)
48 * 1997-08-30 Ulrich Windl
50 * 2004-08-12 Christoph Lameter
59 #define ADJ_OFFSET_SINGLESHOT 0x0001 /* old-fashioned adjtime */
60 #define ADJ_OFFSET_READONLY 0x2000 /* read-only adjtime */
73 * when an interrupt takes places versus a high speed, fine-grained
102 * https://lists.ntp.org/pipermail/hackers/2008-January/003487.html
[all …]
/linux-6.14.4/drivers/gpu/drm/i915/gvt/
Dedid.c2 * 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-6.14.4/Documentation/devicetree/bindings/iio/frequency/
Dadi,adf4350.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Michael Hennerich <[email protected]>
15 - adi,adf4350
16 - adi,adf4351
21 spi-max-frequency:
28 clock-names:
31 '#clock-cells':
34 clock-output-names:
[all …]
/linux-6.14.4/fs/ubifs/
Dlog.c1 // 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-6.14.4/include/uapi/linux/media/raspberrypi/
Dpisp_be_config.h1 /* 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-6.14.4/include/drm/
Ddrm_modeset_helper_vtables.h3 * 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-6.14.4/drivers/isdn/hardware/mISDN/
Disdnhdlc.h1 /* 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-6.14.4/Documentation/RCU/
DwhatisRCU.rst3 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-6.14.4/drivers/mmc/core/
Dhost.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * Copyright (C) 2007-2008 Pierre Ossman
23 #include <linux/mmc/slot-gpio.h>
28 #include "slot-gpio.h"
45 if (!host->bus_ops) in mmc_host_class_prepare()
49 if (host->bus_ops->pre_suspend) in mmc_host_class_prepare()
50 return host->bus_ops->pre_suspend(host); in mmc_host_class_prepare()
75 wakeup_source_unregister(host->ws); in mmc_host_classdev_release()
76 if (of_alias_get_id(host->parent->of_node, "mmc") < 0) in mmc_host_classdev_release()
77 ida_free(&mmc_host_ida, host->index); in mmc_host_classdev_release()
[all …]
/linux-6.14.4/tools/lib/bpf/
Dlibbpf.h1 /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
6 * Copyright (C) 2013-2015 Alexei Starovoitov <[email protected]>
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 …]

1234567891011