Home
last modified time | relevance | path

Searched +full:precondition +full:- +full:timeout (Results 1 – 25 of 28) sorted by relevance

12

/kernel/linux/linux-5.10/Documentation/devicetree/bindings/power/supply/
Dact8945a-charger.txt1 Device-Tree bindings for charger of Active-semi ACT8945A Multi-Function Device
4 - compatible: "active-semi,act8945a-charger".
5 - active-semi,chglev-gpios: charge current level phandle with args
7 - active-semi,lbo-gpios: specify the low battery voltage detect phandle
9 - interrupts: <a b> where a is the interrupt number and b is a
14 - active-semi,input-voltage-threshold-microvolt: unit: mV;
15 Specifies the charger's input over-voltage threshold value;
17 - active-semi,precondition-timeout: unit: minutes;
18 Specifies the charger's PRECONDITION safety timer setting value;
21 - active-semi,total-timeout: unit: hours;
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/power/supply/
Dactive-semi,act8945a-charger.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/power/supply/active-semi,act8945a-charger.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Active-semi ACT8945A Charger Function
10 - Sebastian Reichel <sre@kernel.org>
13 - $ref: power-supply.yaml#
17 const: active-semi,act8945a-charger
22 active-semi,chglev-gpios:
26 active-semi,lbo-gpios:
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/regulator/
Dactive-semi,act8945a.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/regulator/active-semi,act8945a.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Active-semi ACT8945a regulator
10 - Paul Cercueil <paul@crapouillou.net>
14 const: active-semi,act8945a
19 system-power-controller:
25 active-semi,vsel-high:
42 vp1-supply:
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/mfd/
Dact8945a.txt1 Device-Tree bindings for Active-semi ACT8945A MFD driver
4 - compatible: "active-semi,act8945a".
5 - reg: the I2C slave address for the ACT8945A chip
8 - a regulators: see ../regulator/act8945a-regulator.txt
9 - a charger: see ../power/act8945a-charger.txt
13 compatible = "active-semi,act8945a";
16 active-semi,vsel-high;
20 regulator-name = "VDD_1V35";
21 regulator-min-microvolt = <1350000>;
22 regulator-max-microvolt = <1350000>;
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/mfd/
Dact8945a.txt1 Device-Tree bindings for Active-semi ACT8945A MFD driver
4 - compatible: "active-semi,act8945a".
5 - reg: the I2C slave address for the ACT8945A chip
8 - a regulators: see ../regulator/act8945a-regulator.txt
9 - a charger: see ../power/act8945a-charger.txt
13 compatible = "active-semi,act8945a";
16 active-semi,vsel-high;
20 regulator-name = "VDD_1V35";
21 regulator-min-microvolt = <1350000>;
22 regulator-max-microvolt = <1350000>;
[all …]
/kernel/linux/linux-5.10/drivers/i2c/busses/
Di2c-aspeed.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2012-2017 ASPEED Technology Inc.
165 /* Multi-master */
181 spin_lock_irqsave(&bus->lock, flags); in aspeed_i2c_recover_bus()
182 command = readl(bus->base + ASPEED_I2C_CMD_REG); in aspeed_i2c_recover_bus()
188 dev_dbg(bus->dev, "SCL hung (state %x), attempting recovery\n", in aspeed_i2c_recover_bus()
191 reinit_completion(&bus->cmd_complete); in aspeed_i2c_recover_bus()
192 writel(ASPEED_I2CD_M_STOP_CMD, bus->base + ASPEED_I2C_CMD_REG); in aspeed_i2c_recover_bus()
193 spin_unlock_irqrestore(&bus->lock, flags); in aspeed_i2c_recover_bus()
196 &bus->cmd_complete, bus->adap.timeout); in aspeed_i2c_recover_bus()
[all …]
/kernel/linux/linux-6.6/drivers/i2c/busses/
Di2c-aspeed.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2012-2017 ASPEED Technology Inc.
163 /* Multi-master */
173 /* precondition: bus.lock has been acquired. */
176 bus->master_state = ASPEED_I2C_MASTER_STOP; in aspeed_i2c_do_stop()
177 writel(ASPEED_I2CD_M_STOP_CMD, bus->base + ASPEED_I2C_CMD_REG); in aspeed_i2c_do_stop()
186 spin_lock_irqsave(&bus->lock, flags); in aspeed_i2c_recover_bus()
187 command = readl(bus->base + ASPEED_I2C_CMD_REG); in aspeed_i2c_recover_bus()
193 dev_dbg(bus->dev, "SCL hung (state %x), attempting recovery\n", in aspeed_i2c_recover_bus()
196 reinit_completion(&bus->cmd_complete); in aspeed_i2c_recover_bus()
[all …]
/kernel/linux/linux-5.10/drivers/power/supply/
Dact8945a_charger.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Power supply driver for the Active-semi ACT8945A PMIC
19 static const char *act8945a_charger_manufacturer = "Active-semi";
214 int lbo_level = gpiod_get_value(charger->lbo_gpio); in act8945a_get_capacity_level()
268 * Riset(K) = 2336 * (1V/Ichg(mA)) - 0.205
282 int chgin_level = gpiod_get_value(charger->chglev_gpio); in act8945a_get_current_max()
347 struct regmap *regmap = charger->regmap; in act8945a_charger_get_property()
352 ret = act8945a_get_charger_state(regmap, &val->intval); in act8945a_charger_get_property()
355 ret = act8945a_get_charge_type(regmap, &val->intval); in act8945a_charger_get_property()
358 val->intval = POWER_SUPPLY_TECHNOLOGY_LION; in act8945a_charger_get_property()
[all …]
/kernel/linux/linux-6.6/drivers/power/supply/
Dact8945a_charger.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Power supply driver for the Active-semi ACT8945A PMIC
19 static const char *act8945a_charger_manufacturer = "Active-semi";
214 int lbo_level = gpiod_get_value(charger->lbo_gpio); in act8945a_get_capacity_level()
268 * Riset(K) = 2336 * (1V/Ichg(mA)) - 0.205
282 int chgin_level = gpiod_get_value(charger->chglev_gpio); in act8945a_get_current_max()
347 struct regmap *regmap = charger->regmap; in act8945a_charger_get_property()
352 ret = act8945a_get_charger_state(regmap, &val->intval); in act8945a_charger_get_property()
355 ret = act8945a_get_charge_type(regmap, &val->intval); in act8945a_charger_get_property()
358 val->intval = POWER_SUPPLY_TECHNOLOGY_LION; in act8945a_charger_get_property()
[all …]
/kernel/linux/linux-6.6/arch/arm/boot/dts/microchip/
Dat91-sama5d2_xplained.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * at91-sama5d2_xplained.dts - Device Tree file for SAMA5D2 Xplained board
8 /dts-v1/;
10 #include "sama5d2-pinfunc.h"
11 #include <dt-bindings/mfd/atmel-flexcom.h>
12 #include <dt-bindings/gpio/gpio.h>
13 #include <dt-bindings/input/input.h>
14 #include <dt-bindings/regulator/active-semi,8945a-regulator.h>
18 compatible = "atmel,sama5d2-xplained", "atmel,sama5d2", "atmel,sama5";
28 stdout-path = "serial0:115200n8";
[all …]
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Dat91-sama5d2_xplained.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * at91-sama5d2_xplained.dts - Device Tree file for SAMA5D2 Xplained board
8 /dts-v1/;
10 #include "sama5d2-pinfunc.h"
11 #include <dt-bindings/mfd/atmel-flexcom.h>
12 #include <dt-bindings/gpio/gpio.h>
13 #include <dt-bindings/input/input.h>
14 #include <dt-bindings/regulator/active-semi,8945a-regulator.h>
18 compatible = "atmel,sama5d2-xplained", "atmel,sama5d2", "atmel,sama5";
28 stdout-path = "serial0:115200n8";
[all …]
/kernel/linux/linux-5.10/kernel/kcsan/
Dreport.c1 // SPDX-License-Identifier: GPL-2.0
64 static struct other_info other_infos[CONFIG_KCSAN_NUM_WATCHPOINTS + NUM_SLOTS-1];
88 * Therefore, we use a fixed-size array, which at most will occupy a page. This
102 * it could make sense to have a finer-grained locking story for @other_infos,
109 * been reported since (now - KCSAN_REPORT_ONCE_IN_MS).
122 invalid_before = jiffies - msecs_to_jiffies(CONFIG_KCSAN_REPORT_ONCE_IN_MS); in rate_limit_report()
134 if (time_before(rt->time, use_entry->time)) in rate_limit_report()
141 if (rt->time == 0) in rate_limit_report()
145 if (time_before(rt->time, invalid_before)) in rate_limit_report()
149 if ((rt->frame1 == frame1 && rt->frame2 == frame2) || in rate_limit_report()
[all …]
/kernel/linux/linux-6.6/kernel/kcsan/
Dreport.c1 // SPDX-License-Identifier: GPL-2.0
71 static struct other_info other_infos[CONFIG_KCSAN_NUM_WATCHPOINTS + NUM_SLOTS-1];
95 * Therefore, we use a fixed-size array, which at most will occupy a page. This
109 * it could make sense to have a finer-grained locking story for @other_infos,
116 * been reported since (now - KCSAN_REPORT_ONCE_IN_MS).
129 invalid_before = jiffies - msecs_to_jiffies(CONFIG_KCSAN_REPORT_ONCE_IN_MS); in rate_limit_report()
141 if (time_before(rt->time, use_entry->time)) in rate_limit_report()
148 if (rt->time == 0) in rate_limit_report()
152 if (time_before(rt->time, invalid_before)) in rate_limit_report()
156 if ((rt->frame1 == frame1 && rt->frame2 == frame2) || in rate_limit_report()
[all …]
/kernel/linux/linux-5.10/drivers/media/pci/cx18/
Dcx18-driver.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Derived from ivtv-driver.c
11 #include "cx18-driver.h"
12 #include "cx18-io.h"
13 #include "cx18-version.h"
14 #include "cx18-cards.h"
15 #include "cx18-i2c.h"
16 #include "cx18-irq.h"
17 #include "cx18-gpio.h"
18 #include "cx18-firmware.h"
[all …]
/kernel/linux/linux-6.6/drivers/media/pci/cx18/
Dcx18-driver.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Derived from ivtv-driver.c
11 #include "cx18-driver.h"
12 #include "cx18-io.h"
13 #include "cx18-version.h"
14 #include "cx18-cards.h"
15 #include "cx18-i2c.h"
16 #include "cx18-irq.h"
17 #include "cx18-gpio.h"
18 #include "cx18-firmware.h"
[all …]
/kernel/linux/linux-6.6/drivers/media/pci/ivtv/
Divtv-driver.c3 Copyright (C) 2003-2004 Kevin Thayer <nufan_wfk at yahoo.com>
5 Copyright (C) 2005-2007 Hans Verkuil <hverkuil@xs4all.nl>
19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
27 * -----
28 * MPG600/MPG160 support by T.Adachi <tadachi@tadachi-net.com>
32 * using information provided by Jiun-Kuei Jung @ AVerMedia.
34 * Kurouto Sikou CX23416GYC-STVLP tested by K.Ohta <alpha292@bremen.or.jp>
35 * using information from T.Adachi,Takeru KOMORIYA and others :-)
37 * Nagase TRANSGEAR 5000TV, Aopen VA2000MAX-STN6 and I/O data GV-MVP/RX
41 #include "ivtv-driver.h"
[all …]
/kernel/linux/linux-5.10/drivers/media/pci/ivtv/
Divtv-driver.c3 Copyright (C) 2003-2004 Kevin Thayer <nufan_wfk at yahoo.com>
5 Copyright (C) 2005-2007 Hans Verkuil <hverkuil@xs4all.nl>
19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
27 * -----
28 * MPG600/MPG160 support by T.Adachi <tadachi@tadachi-net.com>
32 * using information provided by Jiun-Kuei Jung @ AVerMedia.
34 * Kurouto Sikou CX23416GYC-STVLP tested by K.Ohta <alpha292@bremen.or.jp>
35 * using information from T.Adachi,Takeru KOMORIYA and others :-)
37 * Nagase TRANSGEAR 5000TV, Aopen VA2000MAX-STN6 and I/O data GV-MVP/RX
41 #include "ivtv-driver.h"
[all …]
/kernel/linux/linux-5.10/drivers/staging/gasket/
Dgasket_core.c1 // SPDX-License-Identifier: GPL-2.0
4 * for the Gasket generic driver framework - the functionality that is common
41 * Contains internal per-device type tracking data, i.e., data not appropriate
45 /* Device-specific-driver-provided configuration information. */
48 /* Protects access to per-driver data (i.e. this structure). */
51 /* Kernel-internal device class. */
71 /* Mutex - only for framework-wide data. Other data should be protected by
72 * finer-grained locks.
79 /* Mapping of statuses to human-readable strings. Must end with {0,NULL}. */
113 mutex_lock(&gasket_dev->mutex); in check_and_invoke_callback()
[all …]
/kernel/linux/linux-6.6/drivers/infiniband/hw/hfi1/
Dpio.c1 // SPDX-License-Identifier: GPL-2.0 or BSD-3-Clause
3 * Copyright(c) 2015-2018 Intel Corporation.
38 int flush = 0; /* re-read sendctrl to make sure it is flushed */ in pio_send_control()
41 spin_lock_irqsave(&dd->sendctrl_lock, flags); in pio_send_control()
50 for (i = 0; i < ARRAY_SIZE(dd->vld); i++) in pio_send_control()
51 if (!dd->vld[i].mtu) in pio_send_control()
86 spin_unlock_irqrestore(&dd->sendctrl_lock, flags); in pio_send_control()
93 #define SCS_POOL_0 -1
94 #define SCS_POOL_1 -2
97 #define SCC_PER_VL -1
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dsdio.c1 // SPDX-License-Identifier: ISC
72 __le32 buf; /* Can't be pointer on (64-bit) hosts */
117 #define TXHI (TXQLEN - 256) /* turn on flow control above TXHI */
118 #define TXLOW (TXHI - 256) /* turn off flow control below TXLOW */
148 /* 1: isolate internal sdio signals, put external pads in tri-state; requires
153 /* Force SD->SB reset mapping (rev 11) */
249 #define SFC_ABORTALL (1 << 3) /* Abort all in-progress frames */
288 * Software-defined protocol header
419 uint fc_rcvd; /* Number of flow-control events received */
420 uint fc_xoff; /* Number which turned on flow-control */
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/
Dpio.c2 * Copyright(c) 2015-2018 Intel Corporation.
24 * - Redistributions of source code must retain the above copyright
26 * - Redistributions in binary form must reproduce the above copyright
30 * - Neither the name of Intel Corporation nor the names of its
80 int flush = 0; /* re-read sendctrl to make sure it is flushed */ in pio_send_control()
83 spin_lock_irqsave(&dd->sendctrl_lock, flags); in pio_send_control()
92 for (i = 0; i < ARRAY_SIZE(dd->vld); i++) in pio_send_control()
93 if (!dd->vld[i].mtu) in pio_send_control()
128 spin_unlock_irqrestore(&dd->sendctrl_lock, flags); in pio_send_control()
135 #define SCS_POOL_0 -1
[all …]
/kernel/linux/linux-6.6/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dsdio.c1 // SPDX-License-Identifier: ISC
72 __le32 buf; /* Can't be pointer on (64-bit) hosts */
117 #define TXHI (TXQLEN - 256) /* turn on flow control above TXHI */
118 #define TXLOW (TXHI - 256) /* turn off flow control below TXLOW */
146 /* 1: isolate internal sdio signals, put external pads in tri-state; requires
151 /* Force SD->SB reset mapping (rev 11) */
247 #define SFC_ABORTALL (1 << 3) /* Abort all in-progress frames */
286 * Software-defined protocol header
417 uint fc_rcvd; /* Number of flow-control events received */
418 uint fc_xoff; /* Number which turned on flow-control */
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/
Dice_main.c1 // SPDX-License-Identifier: GPL-2.0
31 static int debug = -1;
49 * ice_get_tx_pending - returns number of Tx descriptors not processed
56 head = ring->next_to_clean; in ice_get_tx_pending()
57 tail = ring->next_to_use; in ice_get_tx_pending()
61 tail - head : (tail + ring->count - head); in ice_get_tx_pending()
66 * ice_check_for_hang_subtask - check for and recover hung queues
78 if (pf->vsi[v] && pf->vsi[v]->type == ICE_VSI_PF) { in ice_check_for_hang_subtask()
79 vsi = pf->vsi[v]; in ice_check_for_hang_subtask()
83 if (!vsi || test_bit(__ICE_DOWN, vsi->state)) in ice_check_for_hang_subtask()
[all …]
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/ice/
Dice_main.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright (c) 2018-2023, Intel Corporation. */
41 static int debug = -1;
53 * ice_hw_to_dev - Get device pointer from the hardware structure
64 return &pf->pdev->dev; in ice_hw_to_dev()
87 return dev && (dev->netdev_ops == &ice_netdev_ops || in netif_is_ice()
88 dev->netdev_ops == &ice_netdev_safe_mode_ops); in netif_is_ice()
92 * ice_get_tx_pending - returns number of Tx descriptors not processed
99 head = ring->next_to_clean; in ice_get_tx_pending()
100 tail = ring->next_to_use; in ice_get_tx_pending()
[all …]
/kernel/linux/linux-6.6/drivers/media/dvb-frontends/drx39xyj/
Ddrxj.c2 Copyright (c), 2004-2005,2007-2010 Trident Microsystems, Inc.
52 /*-----------------------------------------------------------------------------
54 ----------------------------------------------------------------------------*/
74 #define DRX39XX_MAIN_FIRMWARE "dvb-fe-drxj-mc-1.0.8.fw"
200 /*-----------------------------------------------------------------------------
202 ----------------------------------------------------------------------------*/
204 /*-----------------------------------------------------------------------------
206 ----------------------------------------------------------------------------*/
208 #define DRXJ_WAKE_UP_KEY (demod->my_i2c_dev_addr->i2c_addr)
225 * \brief Timeout value for waiting on demod lock during channel scan (millisec).
[all …]

12