Home
last modified time | relevance | path

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

1234567891011

/openbmc/linux/drivers/hwmon/pmbus/
H A Dmp2856.c1 // SPDX-License-Identifier: GPL-2.0-or-later
80 bool negative = false; in val2linear11() local
86 negative = true; in val2linear11()
87 val = -val; in val2linear11()
96 while (val < MIN_LIN_MANTISSA && exponent > -15) { in val2linear11()
97 exponent--; in val2linear11()
101 /* Convert mantissa from milli-units to units */ in val2linear11()
105 if (negative) in val2linear11()
106 mantissa = -mantissa; in val2linear11()
113 mp2856_read_word_helper(struct i2c_client *client, int page, int phase, u8 reg, in mp2856_read_word_helper() argument
[all …]
H A Dmp2975.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Hardware monitoring driver for MPS Multi-phase Digital VR Controllers
130 mp2975_read_word_helper(struct i2c_client *client, int page, int phase, u8 reg, in mp2975_read_word_helper() argument
133 int ret = pmbus_read_word_data(client, page, phase, reg); in mp2975_read_word_helper()
144 return 250 + (val - 1) * 5; in mp2975_vid2direct()
148 return 500 + (val - 1) * 10; in mp2975_vid2direct()
152 return 200 + (val - 1) * 10; in mp2975_vid2direct()
155 return -EINVAL; in mp2975_vid2direct()
163 /* Converts a milli-unit DIRECT value to LINEAR11 format */
167 bool negative = false; in mp2975_data2reg_linear11() local
[all …]
H A 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].
432 u32 pfunc[PMBUS_PHASES];/* Functionality, per phase */
[all …]
H A Dzl6100.c1 // SPDX-License-Identifier: GPL-2.0-or-later
59 /* Convert linear sensor value to milli-units */
71 /* scale result to milli-units */ in zl6100_l2d()
77 val >>= -exponent; in zl6100_l2d()
88 bool negative = false; in zl6100_d2l() local
95 negative = true; in zl6100_d2l()
96 val = -val; in zl6100_d2l()
105 while (val < MIN_MANTISSA && exponent > -15) { in zl6100_d2l()
106 exponent--; in zl6100_d2l()
110 /* Convert mantissa from milli-units to units */ in zl6100_d2l()
[all …]
/openbmc/linux/Documentation/ABI/testing/
H A Dsysfs-bus-iio-frequency-admv10131 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 …]
/openbmc/linux/Documentation/hwmon/
H A 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 …]
/openbmc/linux/drivers/base/regmap/
H A 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 …]
/openbmc/linux/Documentation/devicetree/bindings/timer/
H A 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 <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 …]
/openbmc/linux/drivers/base/power/
H A Dcommon.c1 // SPDX-License-Identifier: GPL-2.0
3 * drivers/base/power/common.c - Common device power management code.
18 * dev_pm_get_subsys_data - Create or refcount power.subsys_data for device.
23 * increased, otherwise negative error code.
31 return -ENOMEM; in dev_pm_get_subsys_data()
33 spin_lock_irq(&dev->power.lock); in dev_pm_get_subsys_data()
35 if (dev->power.subsys_data) { in dev_pm_get_subsys_data()
36 dev->power.subsys_data->refcount++; in dev_pm_get_subsys_data()
38 spin_lock_init(&psd->lock); in dev_pm_get_subsys_data()
39 psd->refcount = 1; in dev_pm_get_subsys_data()
[all …]
/openbmc/linux/drivers/net/ethernet/amazon/ena/
H A 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>
138 u8 phase; member
182 u8 phase; member
193 u8 phase; member
204 u8 phase; member
250 u8 phase; member
368 /* ena_com_mmio_reg_read_request_init - Init the mmio reg read mechanism
375 * @return - 0 on success, negative value on failure.
[all …]
/openbmc/linux/drivers/staging/sm750fb/
H A Dddk750_mode.h1 /* SPDX-License-Identifier: GPL-2.0 */
9 NEG, /* negative */
32 /* Clock Phase. This clock phase only applies to Panel. */
/openbmc/linux/include/linux/
H A 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
57 * struct ptp_clock_info - describes a PTP hardware clock
81 * algorithm to correct the provided phase offset.
82 * parameter delta: PHC servo phase adjustment target
86 * to the hardware clock's phase control functionality
157 * scheduling time (>=0) or negative value in case further
163 * The callbacks must all return zero on success, non-zero otherwise.
177 int (*adjphase)(struct ptp_clock_info *ptp, s32 phase);
[all …]
H A Dclk.h1 /* SPDX-License-Identifier: GPL-2.0-only */
7 * Copyright (C) 2011-2012 Linaro Ltd <mturquette@linaro.org>
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 …]
H A 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 …]
/openbmc/linux/drivers/infiniband/hw/efa/
H A 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 …]
/openbmc/linux/drivers/gpu/drm/i915/gvt/
H A Dedid.c2 * Copyright(c) 2011-2016 Intel Corporation. All rights reserved.
54 struct intel_vgpu_i2c_edid *edid = &vgpu->display.i2c_edid; in edid_get_byte()
57 if (edid->state == I2C_NOT_SPECIFIED || !edid->slave_selected) { in edid_get_byte()
61 if (edid->current_edid_read >= EDID_SIZE) { in edid_get_byte()
66 if (!edid->edid_available) { in edid_get_byte()
71 if (intel_vgpu_has_monitor_on_port(vgpu, edid->port)) { in edid_get_byte()
73 intel_vgpu_port(vgpu, edid->port)->edid; in edid_get_byte()
75 chr = edid_data->edid_block[edid->current_edid_read]; in edid_get_byte()
76 edid->current_edid_read++; in edid_get_byte()
86 int port = -EINVAL; in cnp_get_port_from_gmbus0()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/iio/frequency/
H A 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 <michael.hennerich@analog.com>
15 - adi,adf4350
16 - adi,adf4351
21 spi-max-frequency:
28 clock-names:
35 adi,channel-spacing:
40 adi,power-up-frequency:
[all …]
/openbmc/u-boot/fs/ubifs/
H A Dlog.c1 // SPDX-License-Identifier: GPL-2.0+
5 * Copyright (C) 2006-2008 Nokia Corporation.
26 * ubifs_search_bud - search bud LEB.
27 * @c: UBIFS file-system description object
38 spin_lock(&c->buds_lock); in ubifs_search_bud()
39 p = c->buds.rb_node; in ubifs_search_bud()
42 if (lnum < bud->lnum) in ubifs_search_bud()
43 p = p->rb_left; in ubifs_search_bud()
44 else if (lnum > bud->lnum) in ubifs_search_bud()
45 p = p->rb_right; in ubifs_search_bud()
[all …]
/openbmc/bmcweb/redfish-core/schema/dmtf/installed/
H A DSensor_v1.xml1 <?xml version="1.0" encoding="UTF-8"?>
2 <!---->
3 <!--################################################################################ -->
4 <!--# Redfish Schema: Sensor v1.10.1 -->
5 <!--# -->
6 <!--# For a detailed change log, see the README file contained in the DSP8010 bundle, -->
7 <!--# available at http://www.dmtf.org/standards/redfish -->
8 <!--# Copyright 2014-2024 DMTF. -->
9 <!--# For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright -->
10 <!--################################################################################ -->
[all …]
/openbmc/bmcweb/redfish-core/schema/dmtf/csdl/
H A DSensor_v1.xml1 <?xml version="1.0" encoding="UTF-8"?>
2 <!---->
3 <!--################################################################################ -->
4 <!--# Redfish Schema: Sensor v1.10.1 -->
5 <!--# -->
6 <!--# For a detailed change log, see the README file contained in the DSP8010 bundle, -->
7 <!--# available at http://www.dmtf.org/standards/redfish -->
8 <!--# Copyright 2014-2024 DMTF. -->
9 <!--# For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright -->
10 <!--################################################################################ -->
[all …]
/openbmc/linux/fs/ubifs/
H A 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 …]
/openbmc/qemu/include/migration/
H A Dregister.h10 * the COPYING file in the top-level directory.
17 #include "hw/vmstate-if.h"
51 * Returns zero to indicate success and negative for error
65 * Returns zero to indicate success and negative for error
86 * Returns zero to indicate success and negative for error
94 * remaining data at the end of a precopy phase. When postcopy is
102 * Returns zero to indicate success and negative for error
136 * For example, it is needed for only-postcopy-states, which needs
165 * negative to indicate an error.
187 * (block-dirty-bitmap)
[all …]
/openbmc/linux/drivers/isdn/hardware/mISDN/
H A 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
/openbmc/linux/Documentation/RCU/
H A 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 …]
/openbmc/linux/drivers/mmc/core/
H A Dhost.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * Copyright (C) 2007-2008 Pierre Ossman
25 #include <linux/mmc/slot-gpio.h>
30 #include "slot-gpio.h"
47 if (!host->bus_ops) in mmc_host_class_prepare()
51 if (host->bus_ops->pre_suspend) in mmc_host_class_prepare()
52 return host->bus_ops->pre_suspend(host); in mmc_host_class_prepare()
77 wakeup_source_unregister(host->ws); in mmc_host_classdev_release()
78 if (of_alias_get_id(host->parent->of_node, "mmc") < 0) in mmc_host_classdev_release()
79 ida_simple_remove(&mmc_host_ida, host->index); in mmc_host_classdev_release()
[all …]

1234567891011