Home
last modified time | relevance | path

Searched +full:termination +full:- +full:current (Results 1 – 25 of 224) sorted by relevance

123456789

/linux/Documentation/devicetree/bindings/power/supply/
H A Dbq24257.yaml1 # SPDX-License-Identifier: GPL-2.0
4 ---
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
8 title: Bq24250, bq24251 and bq24257 Li-Ion Charger
11 - Sebastian Reichel <sre@kernel.org>
14 - $ref: power-supply.yaml#
19 - ti,bq24250
20 - ti,bq24251
21 - ti,bq24257
29 ti,battery-regulation-voltage:
[all …]
H A Dbq2415x.yaml1 # SPDX-License-Identifier: GPL-2.0
4 ---
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
8 title: TI bq2415x Li-Ion Charger
11 - Sebastian Reichel <sre@kernel.org>
14 - $ref: power-supply.yaml#
19 - ti,bq24150
20 - ti,bq24150a
21 - ti,bq24151
22 - ti,bq24151a
[all …]
H A Dbq25890.yaml1 # SPDX-License-Identifier: GPL-2.0
4 ---
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
8 title: Bq25890, bq25892, bq25895 and bq25896 Li-Ion Charger
11 - Sebastian Reichel <sre@kernel.org>
14 - $ref: power-supply.yaml#
19 - enum:
20 - ti,bq25890
21 - items:
22 - enum:
[all …]
H A Dsc2731-charger.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/power/supply/sc2731-charger.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Sebastian Reichel <sre@kernel.org>
13 - $ref: power-supply.yaml#
17 const: sprd,sc2731-charger
26 monitored-battery:
29 - charge-term-current-microamp: current for charge termination phase.
30 - constant-charge-voltage-max-microvolt: maximum constant input voltage.
[all …]
H A Drichtek,rt9467.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - ChiYuan Huang <cy_huang@richtek.com>
11 - ChiaEn Wu <chiaen_wu@richtek.com>
14 RT9467 is a switch-mode single cell Li-Ion/Li-Polymer battery charger for
16 MOSFETs, input current sensing and regulation, high-accuracy voltage
17 regulation, and charge termination. The charge current is regulated through
20 The RT9467 also features USB On-The-Go (OTG) support. It also integrates
21 D+/D- pin for USB host/charging port detection.
[all …]
H A Drohm,bd99954.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Matti Vaittinen <mazziesaccount@gmail.com>
11 - Markus Laine <markus.laine@fi.rohmeurope.com>
12 - Mikko Mutanen <mikko.mutanen@fi.rohmeurope.com>
15 The ROHM BD99954 is a Battery Management LSI for 1-4 cell Lithium-Ion
16 secondary battery intended to be used in space-constraint equipment such
18 provides a Dual-source Battery Charger, two port BC1.2 detection and a
21 $ref: power-supply.yaml#
[all …]
H A Dbattery.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Sebastian Reichel <sre@kernel.org>
14 In smart batteries, these are typically stored in non-volatile memory
16 no appropriate non-volatile memory, or it is unprogrammed/incorrect.
27 Batteries must be referenced by chargers and/or fuel-gauges using a phandle.
28 The phandle's property should be named "monitored-battery".
32 const: simple-battery
34 device-chemistry:
[all …]
/linux/include/linux/power/
H A Dbq2415x_charger.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
5 * Copyright (C) 2011-2013 Pali Rohár <pali@kernel.org>
14 * value is -1 then default chip value (specified in datasheet) will be
18 * termination current. If it is less or equal to zero, configuring charge
19 * and termination current will not be possible.
23 * POWER_SUPPLY_PROP_CURRENT_MAX when current changed.
26 /* Supported modes with maximal current limit */
/linux/include/linux/
H A Dprime_numbers.h1 /* SPDX-License-Identifier: GPL-2.0 */
11 * for_each_prime_number - iterate over each prime upto a value
12 * @prime: the current prime number in this iteration
16 * the @max value. On each iteration, @prime is set to the current prime number.
17 * @max should be less than ULONG_MAX to ensure termination. To begin with
25 * for_each_prime_number_from - iterate over each prime upto a value
26 * @prime: the current prime number in this iteration
31 * @max value. On each iteration, @prime is set to the current prime number.
33 * termination.
H A Didr.h1 /* SPDX-License-Identifier: GPL-2.0-only */
5 * 2002-10-18 written by Jim Houston jim.houston@ccur.com
15 #include <linux/radix-tree.h>
42 * IDR_INIT() - Initialise an IDR.
45 * A freshly-initialised IDR contains no IDs.
50 * DEFINE_IDR() - Define a statically-allocated IDR.
59 * idr_get_cursor - Return the current position of the cyclic allocator
68 return READ_ONCE(idr->idr_next); in idr_get_cursor()
72 * idr_set_cursor - Set the current position of the cyclic allocator
81 WRITE_ONCE(idr->idr_next, val); in idr_set_cursor()
[all …]
H A Dscatterlist.h1 /* SPDX-License-Identifier: GPL-2.0 */
31 #define sg_dma_address(sg) ((sg)->dma_address)
34 #define sg_dma_len(sg) ((sg)->dma_length)
36 #define sg_dma_len(sg) ((sg)->length)
73 * Those low bits are there for everyone! (thanks mason :-)
79 return sg->page_link & SG_PAGE_LINK_MASK; in __sg_flags()
84 return (struct scatterlist *)(sg->page_link & ~SG_PAGE_LINK_MASK); in sg_chain_ptr()
98 * sg_assign_page - Assign a given page to an SG entry
109 unsigned long page_link = sg->page_link & (SG_CHAIN | SG_END); in sg_assign_page()
113 * must be aligned at a 32-bit boundary as a minimum. in sg_assign_page()
[all …]
/linux/drivers/power/supply/
H A Dsc2731_charger.c1 // SPDX-License-Identifier: GPL-2.0
46 /* Default current definition (unit is mA) */
69 regmap_update_bits(info->regmap, info->base + SC2731_CHG_CFG0, in sc2731_charger_stop_charge()
72 regmap_update_bits(info->regmap, info->base + SC2731_CHG_CFG0, in sc2731_charger_stop_charge()
80 /* Enable charger constant current mode */ in sc2731_charger_start_charge()
81 ret = regmap_update_bits(info->regmap, info->base + SC2731_CHG_CFG0, in sc2731_charger_start_charge()
87 return regmap_update_bits(info->regmap, info->base + SC2731_CHG_CFG0, in sc2731_charger_start_charge()
105 return regmap_update_bits(info->regmap, info->base + SC2731_CHG_CFG5, in sc2731_charger_set_current_limit()
121 val = (cur - SC2731_CURRENT_PRECHG) / SC2731_CURRENT_STEP; in sc2731_charger_set_current()
123 /* Set pre-charge current as 450 mA */ in sc2731_charger_set_current()
[all …]
H A Dbd99954-charger.c1 // SPDX-License-Identifier: GPL-2.0-only
16 * Curve (1) represents charging current.
20 * a) Trickle-charge with constant current (8).
21 * b) pre-charge with constant current (6)
22 * c) fast-charge, first with constant current (5) phase. After
24 * voltage phase until charging current has dropped to termination
30 *(4)` `.` ` ` ` ` ` ` ` ` ` ` ` ` ` ----------------------------.
32 * . o----+/:/ ` ` ` ` ` ` ` ` ` ` ` ` `.` ` (5)
34 * . + /- -- .
35 * . +`/- + .
[all …]
H A Dsmb347-charger.c1 // SPDX-License-Identifier: GPL-2.0-only
23 #include <dt-bindings/power/summit,smb347-charger.h>
26 #define SMB3XX_SOFT_TEMP_COMPENSATE_DEFAULT -1
29 #define SMB3XX_TEMP_USE_DEFAULT -273
34 * reloaded from non-volatile registers after POR.
136 * struct smb347_charger - smb347 charger instance
147 * @max_charge_current: maximum current (in uA) the battery can be charged
149 * @pre_charge_current: current (in uA) to use in pre-charging phase
150 * @termination_current: current (in uA) used to determine when the
153 * pre-charge to fast charge mode
[all …]
/linux/drivers/gpu/drm/i915/pxp/
H A Dintel_pxp_types.h1 /* SPDX-License-Identifier: MIT */
20 * struct intel_pxp - pxp state
40 * vs newer platforms where the KCR is inside the media-tile.
75 /** @ce: kernel-owned context used for PXP operations */
90 * to determine if an object was created using the current key or a
107 * re-initialize the session. We keep track of this state to make sure
108 * we only re-start the arb session when required.
115 * @termination: tracks the status of a pending termination. Only
116 * re-initialized under gt->irq_lock and completed in &session_work.
118 struct completion termination; member
[all …]
H A Dintel_pxp.c1 // SPDX-License-Identifier: MIT
29 * Objects can opt-in to PXP encryption at creation time via the
57 return IS_ENABLED(CONFIG_DRM_I915_PXP) && pxp && pxp->ce; in intel_pxp_is_enabled()
62 return IS_ENABLED(CONFIG_DRM_I915_PXP) && pxp && pxp->arb_is_valid; in intel_pxp_is_active()
70 intel_uncore_write(pxp->ctrl_gt->uncore, KCR_INIT(pxp->kcr_base), val); in kcr_pxp_set_status()
86 struct intel_gt *gt = pxp->ctrl_gt; in create_vcs_context()
96 engine = gt->engine_class[VIDEO_DECODE_CLASS][i]; in create_vcs_context()
98 GEM_BUG_ON(!engine || engine->class != VIDEO_DECODE_CLASS); in create_vcs_context()
100 ce = intel_engine_create_pinned_context(engine, engine->gt->vm, SZ_4K, in create_vcs_context()
104 drm_err(&gt->i915->drm, "failed to create VCS ctx for PXP\n"); in create_vcs_context()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Deswitch_offloads_termtbl.c1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB
26 hash = jhash_1word(flow_act->action, 0); in mlx5_eswitch_termtbl_hash()
27 hash = jhash((const void *)&flow_act->vlan, in mlx5_eswitch_termtbl_hash()
28 sizeof(flow_act->vlan), hash); in mlx5_eswitch_termtbl_hash()
29 hash = jhash((const void *)&dest->vport.num, in mlx5_eswitch_termtbl_hash()
30 sizeof(dest->vport.num), hash); in mlx5_eswitch_termtbl_hash()
31 hash = jhash((const void *)&dest->vport.vhca_id, in mlx5_eswitch_termtbl_hash()
32 sizeof(dest->vport.num), hash); in mlx5_eswitch_termtbl_hash()
33 if (flow_act->pkt_reformat) in mlx5_eswitch_termtbl_hash()
34 hash = jhash(flow_act->pkt_reformat, in mlx5_eswitch_termtbl_hash()
[all …]
/linux/Documentation/filesystems/
H A Dnetfs_library.rst1 .. SPDX-License-Identifier: GPL-2.0
9 - Overview.
10 - Per-inode context.
11 - Inode context helper functions.
12 - Buffered read helpers.
13 - Read helper functions.
14 - Read helper structures.
15 - Read helper operations.
16 - Read helper procedure.
17 - Read helper cache API.
[all …]
/linux/drivers/scsi/
H A Dadvansys.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * advansys.c - Linux Host Driver for AdvanSys SCSI Adapters
5 * Copyright (c) 1995-2000 Advanced System Products, Inc.
6 * Copyright (c) 2000-2001 ConnectCom Solutions, Inc.
34 #include <linux/dma-mapping.h>
109 #define ASC_CHIP_LATEST_VER_EISA ((ASC_CHIP_MIN_VER_EISA - 1) + 3)
125 * Narrow boards only support 12-byte commands, while wide boards
126 * extend to 16-byte commands.
391 #define ASC_IERR_BIST_PRE_TEST 0x0800 /* BIST pre-test error */
412 * is Ultra-capable or not. These tables let us convert from one to the other.
[all …]
/linux/Documentation/driver-api/dmaengine/
H A Dclient.rst8 ``Documentation/crypto/async-tx-api.rst``
11 Below is a guide to device driver writers on how to use the Slave-DMA API of the
19 - Allocate a DMA slave channel
21 - Set slave and controller specific parameters
23 - Get a descriptor for transaction
25 - Submit the transaction
27 - Issue pending requests and wait for callback notification
40 .. code-block:: c
66 .. code-block:: c
79 DMA-engine are:
[all …]
/linux/include/dt-bindings/usb/
H A Dpd.h1 /* SPDX-License-Identifier: GPL-2.0 */
64 #define PDO_APDO_TYPE_SHIFT 28 /* Only valid value currently is 0x0 - PPS */
89 * Based on "Table 6-14 Fixed Supply PDO - Sink" of "USB Power Delivery Specification Revision 3.0,
91 * Initial current capability of the new source when vSafe5V is applied.
99 * --------------------
107 * <15:0> :: USB-IF assigned VID for this cable vendor
139 * -------------
140 * <31:0> : USB-IF assigned XID for this cable
146 * -----------
154 * --------
[all …]
/linux/include/linux/usb/
H A Dpd_vdo.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright 2015-2017 Google, Inc
22 * ----------
27 * <10:8> :: object position (1-7 valid ... used for enter/exit mode only)
86 * SVDM Identity request -> response
112 * --------------------
120 * <15:0> :: USB-IF assigned VID for this cable vendor
163 * -------------
164 * <31:0> : USB-IF assigned XID for this cable
171 * -----------
[all …]
/linux/drivers/scsi/aic7xxx/
H A Daic79xx_pci.c5 * Copyright (c) 1994-2001 Justin T. Gibbs.
6 * Copyright (c) 2000-2002 Adaptec Inc.
20 * 3. Neither the names of the above-listed copyright holders nor the names
220 "PCI-X 101-133MHz",
221 "PCI-X 67-100MHz",
222 "PCI-X 50-66MHz",
278 if (entry->full_id == (full_id & entry->id_mask)) { in ahd_find_pci_device()
280 if (entry->name == NULL) in ahd_find_pci_device()
296 ahd->description = entry->name; in ahd_pci_config()
300 subvendor = ahd_pci_read_config(ahd->dev_softc, in ahd_pci_config()
[all …]
H A Daic7xxx.h4 * Copyright (c) 1994-2001 Justin T. Gibbs.
5 * Copyright (c) 2000-2001 Adaptec Inc.
19 * 3. Neither the names of the above-listed copyright holders nor the names
69 (((scsiid) & ((((ahc)->features & AHC_TWIN) != 0) ? TWIN_TID : TID)) \
74 ((((ahc)->features & AHC_TWIN) != 0) \
78 (SCSIID_CHANNEL(ahc, (scb)->hscb->scsiid) == 'B')
80 SCSIID_OUR_ID((scb)->hscb->scsiid)
82 SCSIID_TARGET((ahc), (scb)->hscb->scsiid)
84 SCSIID_CHANNEL(ahc, (scb)->hscb->scsiid)
86 ((scb)->hscb->lun & LID)
[all …]
/linux/drivers/i2c/busses/
H A Di2c-cht-wc.c1 // SPDX-License-Identifier: GPL-2.0-or-later
7 * Copyright (C) 2011 - 2014 Intel Corporation. All rights reserved.
62 mutex_lock(&adap->adap_lock); in cht_wc_i2c_adap_thread_handler()
65 ret = regmap_read(adap->regmap, CHT_WC_EXTCHGRIRQ, &reg); in cht_wc_i2c_adap_thread_handler()
67 dev_err(&adap->adapter.dev, "Error reading extchgrirq reg\n"); in cht_wc_i2c_adap_thread_handler()
68 mutex_unlock(&adap->adap_lock); in cht_wc_i2c_adap_thread_handler()
72 reg &= ~adap->irq_mask; in cht_wc_i2c_adap_thread_handler()
75 ret = regmap_read(adap->regmap, CHT_WC_I2C_RDDATA, &adap->read_data); in cht_wc_i2c_adap_thread_handler()
77 adap->io_error = true; in cht_wc_i2c_adap_thread_handler()
81 * handling the previous ones our irq will re-trigger when we're done. in cht_wc_i2c_adap_thread_handler()
[all …]

123456789