Home
last modified time | relevance | path

Searched +full:chg +full:- +full:done (Results 1 – 25 of 30) sorted by relevance

12

/openbmc/linux/drivers/power/supply/
H A Dmax77650-charger.c1 // SPDX-License-Identifier: GPL-2.0
6 // Battery charger driver for MAXIM 77650/77651 charger/power-supply.
28 /* Charger is in fast-charge constant current mode. */
30 /* Charger is in JEITA modified fast-charge constant-current mode. */
32 /* Charger is in fast-charge constant-voltage mode. */
34 /* Charger is in JEITA modified fast-charge constant-voltage mode. */
36 /* Charger is in top-off mode. */
38 /* Charger is in JEITA modified top-off mode. */
40 /* Charger is done. */
42 /* Charger is JEITA modified done. */
[all …]
H A Dqcom_smbb.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * This driver is for the multi-block Switch-Mode Battery Charger and Boost
6 * integrated, single-cell lithium-ion battery charger.
8 * Sub-components:
9 * - Charger core
10 * - Buck
11 * - DC charge-path
12 * - USB charge-path
13 * - Battery interface
14 * - Boost (not implemented)
[all …]
H A Dmt6360_charger.c1 // SPDX-License-Identifier: GPL-2.0
6 #include <linux/devm-helpers.h>
170 ret = regmap_read(mci->regmap, MT6360_PMU_FOD_STAT, &regval); in mt6360_get_chrdet_ext_stat()
186 val->intval = pwr_rdy ? true : false; in mt6360_charger_get_online()
205 ret = regmap_read(mci->regmap, MT6360_PMU_CHG_STAT, &regval); in mt6360_charger_get_status()
221 ret = -EIO; in mt6360_charger_get_status()
225 val->intval = status; in mt6360_charger_get_status()
236 ret = regmap_read(mci->regmap, MT6360_PMU_CHG_STAT, &regval); in mt6360_charger_get_charge_type()
249 case 0x02: /* Charge Done */ in mt6360_charger_get_charge_type()
256 val->intval = type; in mt6360_charger_get_charge_type()
[all …]
H A Dab8500_chargalg.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) ST-Ericsson SA 2012
34 #include "ab8500-bm.h"
35 #include "ab8500-chargalg.h"
40 /* End-of-charge criteria counter */
169 * struct ab8500_charge_curr_maximization - Charger maximization parameters
197 * struct ab8500_chargalg - ab8500 Charging algorithm device information
200 * @eoc_cnt: counter used to determine end-of_charge
256 * ab8500_chargalg_safety_timer_expired() - Expiration of the safety timer
267 dev_err(di->dev, "Safety timer expired\n"); in ab8500_chargalg_safety_timer_expired()
[all …]
H A Dbq25890_charger.c1 // SPDX-License-Identifier: GPL-2.0-or-later
113 char name[28]; /* "bq25890-charger-%d" */
272 * Most of the val -> idx conversions can be computed, given the minimum,
322 0, -10, -20, -30, -40, -60, -70, -80,
323 -90, -10, -120, -140, -150, -170, -190, -210,
367 ret = regmap_field_read(bq->rmap_fields[field_id], &val); in bq25890_field_read()
377 return regmap_field_write(bq->rmap_fields[field_id], val); in bq25890_field_write()
394 rtbl_size = (rtbl->max - rtbl->min) / rtbl->step + 1; in bq25890_find_idx()
397 idx < rtbl_size && (idx * rtbl->step + rtbl->min <= value); in bq25890_find_idx()
402 return idx - 1; in bq25890_find_idx()
[all …]
H A D88pm860x_battery.c1 // SPDX-License-Identifier: GPL-2.0-only
68 /* OCV -- Open Circuit Voltage */
83 * corresponding resistor value -- Ohm / C degeree.
85 #define TBAT_NEG_25D 127773 /* -25 */
86 #define TBAT_NEG_10D 54564 /* -10 */
151 * register 1 bit[7:0] -- bit[11:4] of measured value of voltage
152 * register 0 bit[3:0] -- bit[3:0] of measured value of voltage
160 ret = pm860x_bulk_read(info->i2c, offset, 2, buf); in measure_12bit_voltage()
188 * bit[11:10] -- bit[7:6] of LDO9(0x18) in measure_vbatt()
189 * bit[9:8] -- bit[7:6] of LDO8(0x17) in measure_vbatt()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/power/supply/
H A Dqcom,pm8941-charger.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/power/supply/qcom,pm8941-charger.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Qualcomm Switch-Mode Battery Charger and Boost
10 - Sebastian Reichel <sre@kernel.org>
15 - qcom,pm8226-charger
16 - qcom,pm8941-charger
23 - description: charge done
24 - description: charge fast mode
[all …]
/openbmc/linux/arch/arm/boot/dts/qcom/
H A Dpm8226.dtsi1 // SPDX-License-Identifier: BSD-3-Clause
2 #include <dt-bindings/iio/qcom,spmi-vadc.h>
3 #include <dt-bindings/input/linux-event-codes.h>
4 #include <dt-bindings/interrupt-controller/irq.h>
5 #include <dt-bindings/spmi/spmi.h>
8 thermal-zones {
9 pm8226-thermal {
10 polling-delay-passive = <100>;
11 polling-delay = <0>;
12 thermal-sensors = <&pm8226_temp>;
[all …]
H A Dpm8941.dtsi1 // SPDX-License-Identifier: GPL-2.0
2 #include <dt-bindings/iio/qcom,spmi-vadc.h>
3 #include <dt-bindings/interrupt-controller/irq.h>
4 #include <dt-bindings/spmi/spmi.h>
8 thermal-zones {
9 pm8941-thermal {
10 polling-delay-passive = <100>;
11 polling-delay = <0>;
12 thermal-sensors = <&pm8941_temp>;
40 compatible = "qcom,pm8941", "qcom,spmi-pmic";
[all …]
/openbmc/linux/drivers/net/ethernet/intel/ice/
H A Dice_flex_pipe.c1 // SPDX-License-Identifier: GPL-2.0
77 * ice_sect_id - returns section ID
90 * ice_hw_ptype_ena - check if the PTYPE is enabled or not
97 test_bit(ptype, hw->hw_ptype); in ice_hw_ptype_ena()
112 * ice_gen_key_word - generate 16-bits of a key/mask word
120 * This function generates 16-bits from a 8-bit value, an 8-bit don't care mask
121 * and an 8-bit never match mask. The 16-bits of output are divided into 8 bits
133 * ------------------------------
145 return -EIO; in ice_gen_key_word()
150 /* encode the 8 bits into 8-bit key and 8-bit key invert */ in ice_gen_key_word()
[all …]
/openbmc/linux/mm/
H A Dhugetlb.c1 // SPDX-License-Identifier: GPL-2.0-only
60 return cma_pages_valid(hugetlb_cma[folio_nid(folio)], &folio->page, in hugetlb_cma_folio()
104 if (spool->count) in subpool_is_free()
106 if (spool->max_hpages != -1) in subpool_is_free()
107 return spool->used_hpages == 0; in subpool_is_free()
108 if (spool->min_hpages != -1) in subpool_is_free()
109 return spool->rsv_hpages == spool->min_hpages; in subpool_is_free()
117 spin_unlock_irqrestore(&spool->lock, irq_flags); in unlock_or_release_subpool()
123 if (spool->min_hpages != -1) in unlock_or_release_subpool()
124 hugetlb_acct_memory(spool->hstate, in unlock_or_release_subpool()
[all …]
/openbmc/linux/drivers/usb/host/
H A Dmax3421-hcd.c1 // SPDX-License-Identifier: GPL-2.0
5 * Author: David Mosberger-Tang <davidm@egauge.net>
7 * (C) Copyright 2014 David Mosberger-Tang <davidm@egauge.net>
9 * MAX3421 is a chip implementing a USB 2.0 Full-/Low-Speed host
16 * https://www.hdl.co.jp/ftpdata/utl-001/AN3785.pdf
24 * Important note on worst-case (full-speed) packet size constraints
27 * - control: 64 bytes
28 * - isochronous: 1023 bytes
29 * - interrupt: 64 bytes
30 * - bulk: 64 bytes
[all …]
/openbmc/linux/drivers/scsi/sym53c8xx_2/
H A Dsym_hipd.c1 // SPDX-License-Identifier: GPL-2.0-or-later
4 * of PCI-SCSI IO processors.
6 * Copyright (C) 1999-2001 Gerard Roudier <groudier@free.fr>
7 * Copyright (c) 2003-2005 Matthew Wilcox <matthew@wil.cx>
10 * Copyright (C) 1998-2000 Gerard Roudier
13 * a port of the FreeBSD ncr driver to Linux-1.2.13.
17 * Stefan Esser <se@mi.Uni-Koeln.de>
25 *-----------------------------------------------------------------------------
55 while (n-- > 0) in sym_printl_hex()
62 sym_print_addr(cp->cmd, "%s: ", label); in sym_print_msg()
[all …]
/openbmc/linux/drivers/gpio/
H A Dgpiolib-cdev.c1 // SPDX-License-Identifier: GPL-2.0
35 #include "gpiolib-cdev.h"
38 * Array sizes must ensure 64-bit alignment and not create holes in the
45 * Check that uAPI structs are 64-bit aligned for 32/64-bit compatibility
73 down_read(&gdev->sem); in call_poll_locked()
75 up_read(&gdev->sem); in call_poll_locked()
86 down_read(&gdev->sem); in call_ioctl_locked()
88 up_read(&gdev->sem); in call_ioctl_locked()
99 down_read(&gdev->sem); in call_read_locked()
101 up_read(&gdev->sem); in call_read_locked()
[all …]
/openbmc/linux/drivers/input/touchscreen/
H A Datmel_mxt_ts.c1 // SPDX-License-Identifier: GPL-2.0-or-later
6 * Copyright (C) 2011-2014 Atmel Corporation
30 #include <media/v4l2-device.h>
31 #include <media/v4l2-ioctl.h>
32 #include <media/videobuf2-v4l2.h>
33 #include <media/videobuf2-vmalloc.h>
34 #include <dt-bindings/input/atmel-maxtouch.h>
367 return obj->size_minus_one + 1; in mxt_obj_size()
372 return obj->instances_minus_one + 1; in mxt_obj_instances()
413 dev_dbg(&data->client->dev, "message: %*ph\n", in mxt_dump_message()
[all …]
/openbmc/linux/drivers/scsi/
H A Dncr53c8xx.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 ** Device driver for the PCI-SCSI NCR538XX controller family.
8 **-----------------------------------------------------------------------------
22 ** Stefan Esser <se@mi.Uni-Koeln.de>
27 **-----------------------------------------------------------------------------
38 ** Support for Fast-20 scsi.
42 ** Support for Fast-40 scsi.
43 ** Support for on-Board RAM.
46 ** Full support for scsi scripts instructions pre-fetching.
57 ** Low PCI traffic for command handling when on-chip RAM is present.
[all …]
H A Desp_scsi.h1 /* SPDX-License-Identifier: GPL-2.0 */
40 /* ESP config reg 1, read-write, found on all ESP chips */
48 /* ESP config reg 2, read-write, found only on esp100a+esp200+esp236 chips */
52 #define ESP_CONFIG2_SCSI2ENAB 0x08 /* Enable SCSI-2 features (tgtmode) */
55 #define ESP_CONFIG2_BCM 0x20 /* Enable byte-ctrl (236) */
58 #define ESP_CONFIG2_SPL 0x40 /* Enable status-phase latch (236) */
63 /* ESP config register 3 read-write, found only esp236+fas236+fas100a+hme chips */
65 #define ESP_CONFIG3_TEM 0x01 /* Enable thresh-8 mode (esp/fas236) */
67 #define ESP_CONFIG3_ADMA 0x02 /* Enable alternate-dma (esp/fas236) */
70 #define ESP_CONFIG3_TMS 0x08 /* Three-byte msg's ok (esp100a/hme) */
[all …]
H A Dnsp32.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * NinjaSCSI-32Bi Cardbus, NinjaSCSI-32UDE PCI/CardBus SCSI driver
28 #include <linux/dma-mapping.h>
60 MODULE_DESCRIPTION("Workbit NinjaSCSI-32Bi/UDE CardBus/PCI SCSI host bus adapter module");
130 static nsp32_hw_data nsp32_data_base; /* probe <-> detect glue */
264 .name = "Workbit NinjaSCSI-32Bi/UDE",
272 .dma_boundary = PAGE_SIZE - 1,
346 printk("nsp32-debug: 0x%x %s (%d): %s\n", mask, func, line, buf); in nsp32_dmessage()
364 nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; in nsp32_build_identify()
365 int pos = data->msgout_len; in nsp32_build_identify()
[all …]
/openbmc/linux/Documentation/mm/
H A Dhugetlbfs_reserv.rst8 Huge pages as described at Documentation/admin-guide/mm/hugetlbpage.rst are
16 done with a simple check in the code at mmap() time to determine if there
21 describe how huge page reserve processing is done in the v4.10 kernel.
34 This is a global (per-hstate) count of reserved huge pages. Reserved
37 as (``free_huge_pages - resv_huge_pages``).
89 - For private mappings, the reservation map hangs off the VMA structure.
90 Specifically, vma->vm_private_data. This reserve map is created at the
92 - For shared mappings, the reservation map hangs off the inode. Specifically,
93 inode->i_mapping->private_data. Since shared mappings are always backed
124 - For shared mappings, an entry in the reservation map indicates a reservation
[all …]
/openbmc/linux/drivers/mfd/
H A Dtps65010.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * tps65010 - driver for tps6501x power management chips
6 * Copyright (C) 2004-2005 David Brownell
27 /*-------------------------------------------------------------------------*/
37 /*-------------------------------------------------------------------------*/
47 * battery-insert != device-on.
84 /*-------------------------------------------------------------------------*/
95 (chgstatus & TPS_CHG_TERM) ? " done" : in dbg_chgstat()
184 struct tps65010 *tps = s->private; in dbg_show()
190 switch (tps->model) { in dbg_show()
[all …]
H A D88pm860x-core.c1 // SPDX-License-Identifier: GPL-2.0-only
25 #include <linux/power/charger-manager.h>
136 /* Hook-switch press or release */
141 {PM8607_IRQ_AUDIO_SHORT, PM8607_IRQ_AUDIO_SHORT, "audio-short",
152 {PM8607_IRQ_CHG_DONE, PM8607_IRQ_CHG_DONE, "charging done",
170 .name = "88pm860x-backlight",
175 .name = "88pm860x-backlight",
180 .name = "88pm860x-backlight",
189 .name = "88pm860x-led",
194 .name = "88pm860x-led",
[all …]
/openbmc/linux/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm.c167 switch (link->dpcd_caps.dongle_type) { in get_subconnector_type()
186 struct dc_link *link = aconnector->dc_link; in update_subconnector_property()
187 struct drm_connector *connector = &aconnector->base; in update_subconnector_property()
190 if (connector->connector_type != DRM_MODE_CONNECTOR_DisplayPort) in update_subconnector_property()
193 if (aconnector->dc_sink) in update_subconnector_property()
196 drm_object_property_set_value(&connector->base, in update_subconnector_property()
197 connector->dev->mode_config.dp_subconnector_property, in update_subconnector_property()
240 * struct amdgpu_device *adev - [in] desired amdgpu device
241 * int disp_idx - [in] which CRTC to get the counter from
250 if (crtc >= adev->mode_info.num_crtc) in dm_vblank_get_counter()
[all …]
/openbmc/linux/drivers/message/fusion/
H A Dmptbase.h8 * Copyright (c) 1999-2008 LSI Corporation
9 * (mailto:DL-MPTFusionLinux@lsi.com)
12 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
26 LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT,
45 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
50 /*{-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
69 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
76 #define COPYRIGHT "Copyright (c) 1999-2008 " MODULEAUTHOR
80 #define MPT_LINUX_PACKAGE_NAME "@(#)mptlinux-3.04.20"
86 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
[all …]
/openbmc/linux/drivers/media/platform/mediatek/vcodec/decoder/vdec/
H A Dvdec_vp9_if.c1 // SPDX-License-Identifier: GPL-2.0
5 * Kai-Sean Yang <kai-sean.yang@mediatek.com>
29 * struct vp9_dram_buf - contains buffer info for vpu
43 * struct vp9_fb_info - contains frame buffer info
53 * struct vp9_ref_cnt_buf - contains reference buffer information
64 * struct vp9_ref_buf - contains current frame's reference buffer information
76 * struct vp9_sf_ref_fb - contains frame buffer info
88 * struct vdec_vp9_vsi - shared buffer between host and VPU firmware
89 * AP-W/R : AP is writer/reader on this item
90 * VPU-W/R: VPU is write/reader on this item
[all …]
/openbmc/linux/drivers/hid/
H A Dwacom_wac.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * USB Wacom tablet support - Wacom specific code
25 * 2^14/pi is a good approximation on Intuos5 and 3rd-gen Bamboo
43 struct input_dev *input = wacom_wac->pen_input; in wacom_force_proxout()
45 wacom_wac->shared->stylus_in_proximity = 0; in wacom_force_proxout()
51 input_report_key(input, wacom_wac->tool[0], 0); in wacom_force_proxout()
52 if (wacom_wac->serial[0]) { in wacom_force_proxout()
57 wacom_wac->tool[0] = 0; in wacom_force_proxout()
58 wacom_wac->id[0] = 0; in wacom_force_proxout()
59 wacom_wac->serial[0] = 0; in wacom_force_proxout()
[all …]

12