Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/drivers/power/supply/
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 …]
Dmax77693_charger.c1 // SPDX-License-Identifier: GPL-2.0+
3 // max77693_charger.c - Battery charger driver for the Maxim 77693
13 #include <linux/mfd/max77693-common.h>
14 #include <linux/mfd/max77693-private.h>
16 #define MAX77693_CHARGER_NAME "max77693-charger"
32 static int max77693_get_charger_state(struct regmap *regmap, int *val) in max77693_get_charger_state()
34 int ret; in max77693_get_charger_state()
35 unsigned int data; in max77693_get_charger_state()
73 static int max77693_get_charge_type(struct regmap *regmap, int *val) in max77693_get_charge_type()
75 int ret; in max77693_get_charge_type()
[all …]
Dmax14577_charger.c1 // SPDX-License-Identifier: GPL-2.0+
3 // max14577_charger.c - Battery charger driver for the Maxim 14577/77836
11 #include <linux/mfd/max14577-private.h>
47 static int max14577_get_charger_state(struct max14577_charger *chg, int *val) in max14577_get_charger_state() argument
49 struct regmap *rmap = chg->max14577->regmap; in max14577_get_charger_state()
50 int ret; in max14577_get_charger_state()
55 * - CHGCTRL2/MBCHOSTEN == 1 in max14577_get_charger_state()
56 * - STATUS2/CGMBC == 1 in max14577_get_charger_state()
59 * - handle FULL after Top-off timer (EOC register may be off in max14577_get_charger_state()
61 * - handle properly dead-battery charging (respect timer) in max14577_get_charger_state()
[all …]
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. */
46 /* Charger is suspended due to a fast-charge timer fault. */
80 static const unsigned int max77650_charger_vchgin_min_table[] = {
[all …]
Dmax8903_charger.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * max8903_charger.c - Maxim 8903 USB/Adapter Charger Driver
36 static int max8903_get_property(struct power_supply *psy, in max8903_get_property()
44 val->intval = POWER_SUPPLY_STATUS_UNKNOWN; in max8903_get_property()
45 if (gpio_is_valid(data->pdata->chg)) { in max8903_get_property()
46 if (gpio_get_value(data->pdata->chg) == 0) in max8903_get_property()
47 val->intval = POWER_SUPPLY_STATUS_CHARGING; in max8903_get_property()
48 else if (data->usb_in || data->ta_in) in max8903_get_property()
49 val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; in max8903_get_property()
51 val->intval = POWER_SUPPLY_STATUS_DISCHARGING; in max8903_get_property()
[all …]
Dtwl4030_madc_battery.c1 // SPDX-License-Identifier: GPL-2.0-only
45 static int madc_read(struct iio_channel *channel) in madc_read()
47 int val, err; in madc_read()
55 static int twl4030_madc_bat_get_charging_status(struct twl4030_madc_battery *bt) in twl4030_madc_bat_get_charging_status()
57 return (madc_read(bt->channel_ichg) > 0) ? 1 : 0; in twl4030_madc_bat_get_charging_status()
60 static int twl4030_madc_bat_get_voltage(struct twl4030_madc_battery *bt) in twl4030_madc_bat_get_voltage()
62 return madc_read(bt->channel_vbat); in twl4030_madc_bat_get_voltage()
65 static int twl4030_madc_bat_get_current(struct twl4030_madc_battery *bt) in twl4030_madc_bat_get_current()
67 return madc_read(bt->channel_ichg) * 1000; in twl4030_madc_bat_get_current()
70 static int twl4030_madc_bat_get_temp(struct twl4030_madc_battery *bt) in twl4030_madc_bat_get_temp()
[all …]
Dab8500_bmdata.c1 // SPDX-License-Identifier: GPL-2.0
7 #include <linux/mfd/abx500/ab8500-bm.h>
16 {-5, 53407},
34 const int ab8500_temp_tbl_a_size = ARRAY_SIZE(ab8500_temp_tbl_a_thermistor);
38 {-5, 200000},
56 const int ab8500_temp_tbl_b_size = ARRAY_SIZE(ab8500_temp_tbl_b_thermistor);
137 {-5, 214834},
164 {-10, 445},
165 {-20, 595},
178 {-10, 300},
[all …]
/kernel/linux/linux-5.10/tools/gpio/
Dgpio-watch.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * gpio-watch - monitor unrequested lines for property changes using the
23 int main(int argc, char **argv) in main()
25 struct gpio_v2_line_info_changed chg; in main() local
28 int fd, i, j, ret; in main()
41 for (i = 0, j = 2; i < argc - 2; i++, j++) { in main()
64 memset(&chg, 0, sizeof(chg)); in main()
65 rd = read(pfd.fd, &chg, sizeof(chg)); in main()
66 if (rd < 0 || rd != sizeof(chg)) { in main()
67 if (rd != sizeof(chg)) in main()
[all …]
/kernel/linux/linux-5.10/drivers/net/fddi/skfp/
Dess.c1 // SPDX-License-Identifier: GPL-2.0-or-later
27 * FDDI sub-system supporting the SBA application.
51 -------------------------------------------------------------
53 -------------------------------------------------------------
67 -------------------------------------------------------------
69 -------------------------------------------------------------
74 -------------------------------------------------------------
76 -------------------------------------------------------------
80 int sba_cmd);
86 -------------------------------------------------------------
[all …]
/kernel/linux/linux-5.10/fs/xfs/
Dxfs_trans.h1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2000-2002,2005 Silicon Graphics, Inc.
33 xfs_lsn_t li_lsn; /* last on-disk lsn */
67 void (*iop_size)(struct xfs_log_item *, int *, int *);
70 void (*iop_unpin)(struct xfs_log_item *, int remove);
75 int (*iop_recover)(struct xfs_log_item *lip,
86 return lip->li_ops->iop_recover != NULL && in xlog_item_is_intent()
87 lip->li_ops->iop_match != NULL; in xlog_item_is_intent()
90 /* Is this a log intent-done item? */
94 return lip->li_ops->iop_unpin == NULL && in xlog_item_is_intent_done()
[all …]
/kernel/linux/linux-5.10/include/linux/power/
Dmax8903_charger.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * max8903_charger.h - Maxim 8903 USB/Adapter Charger Driver
15 * cen, chg, flt, dcm and usus are optional.
19 int cen; /* Charger Enable input */
20 int dok; /* DC(Adapter) Power OK output */
21 int uok; /* USB Power OK output */
22 int chg; /* Charger status output */ member
23 int flt; /* Fault output */
24 int dcm; /* Current-Limit Mode input (1: DC, 2: USB) */
25 int usus; /* USB Suspend Input (1: suspended) */
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/
Dice_flex_pipe.c1 // SPDX-License-Identifier: GPL-2.0
85 * ice_sect_id - returns section ID
109 hdr = (struct ice_buf_hdr *)buf->buf; in ice_pkg_val_buf()
111 section_count = le16_to_cpu(hdr->section_count); in ice_pkg_val_buf()
115 data_end = le16_to_cpu(hdr->data_end); in ice_pkg_val_buf()
133 (ice_seg->device_table + in ice_find_buf_table()
134 le32_to_cpu(ice_seg->device_table_count)); in ice_find_buf_table()
137 (nvms->vers + le32_to_cpu(nvms->table_count)); in ice_find_buf_table()
146 * call is made with the ice_seg parameter non-NULL; on subsequent calls,
156 state->buf_table = ice_find_buf_table(ice_seg); in ice_pkg_enum_buf()
[all …]
/kernel/linux/linux-5.10/drivers/usb/gadget/udc/aspeed-vhub/
Dhub.c1 // SPDX-License-Identifier: GPL-2.0+
3 * aspeed-vhub -- Driver for Aspeed SoC "vHub" USB gadget
5 * hub.c - virtual hub handling
31 #include <linux/dma-mapping.h>
43 * - We may need to indicate TT support
44 * - We may need a device qualifier descriptor
46 * - Make vid/did overridable
47 * - make it look like usb1 if usb1 mode forced
138 * These strings converted to UTF-16 must be smaller than
162 static int ast_vhub_hub_dev_status(struct ast_vhub_ep *ep, in ast_vhub_hub_dev_status()
[all …]
/kernel/linux/linux-5.10/drivers/usb/serial/
Dio_edgeport.h1 /* SPDX-License-Identifier: GPL-2.0+ */
14 #define MAX_RS232_PORTS 8 /* Max # of RS-232 ports per device */
38 int numPorts; /* Number of ports */
39 int Original[MAX_RS232_PORTS]; /* Port numbers set by IOCTL */
40 int Port[MAX_RS232_PORTS]; /* Actual used port numbers */
68 int Command;
71 int ComMappingBasedOnUSBPort; /* Boolean value */
84 __u32 IsRS232 :1; /* Set if RS-232 ports exist */
85 __u32 IsRS422 :1; /* Set if RS-422 ports exist */
86 __u32 IsRS485 :1; /* Set if RS-485 ports exist */
[all …]
/kernel/linux/linux-5.10/mm/
Dhugetlb.c1 // SPDX-License-Identifier: GPL-2.0-only
46 int hugetlb_max_hstate __read_mostly;
47 unsigned int default_hstate_idx;
59 static unsigned int minimum_order __read_mostly = UINT_MAX;
79 static int num_fault_mutexes;
84 return page_private(head + 4) == -1UL; in PageHugeFreed()
89 set_page_private(head + 4, -1UL); in SetPageHugeFreed()
98 static int hugetlb_acct_memory(struct hstate *h, long delta);
102 bool free = (spool->count == 0) && (spool->used_hpages == 0); in unlock_or_release_subpool()
104 spin_unlock(&spool->lock); in unlock_or_release_subpool()
[all …]
/kernel/linux/linux-5.10/arch/arm/mach-s3c/
Dhardware-s3c24xx.h1 /* SPDX-License-Identifier: GPL-2.0 */
6 * S3C2410 - hardware
12 extern unsigned int s3c2410_modify_misccr(unsigned int clr, unsigned int chg);
/kernel/linux/linux-5.10/include/linux/platform_data/
Dclk-s3c2410.h1 /* SPDX-License-Identifier: GPL-2.0 */
10 * struct s3c2410_clk_platform_data - platform data for S3C2410 clock driver
15 unsigned int (*modify_misccr)(unsigned int clr, unsigned int chg);
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/gpio/
Dgpio-pca95xx.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/gpio/gpio-pca95xx.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Krzysztof Kozlowski <krzk@kernel.org>
19 - exar,xra1202
20 - maxim,max7310
21 - maxim,max7312
22 - maxim,max7313
23 - maxim,max7315
[all …]
/kernel/linux/linux-5.10/drivers/clk/mediatek/
Dclk-pll.c1 // SPDX-License-Identifier: GPL-2.0-only
14 #include "clk-mtk.h"
35 * have a 3 bit power-of-two post divider.
55 static int mtk_pll_is_prepared(struct clk_hw *hw) in mtk_pll_is_prepared()
59 return (readl(pll->base_addr + REG_CON0) & CON0_BASE_EN) != 0; in mtk_pll_is_prepared()
63 u32 pcw, int postdiv) in __mtk_pll_recalc_rate()
65 int pcwbits = pll->data->pcwbits; in __mtk_pll_recalc_rate()
66 int pcwfbits = 0; in __mtk_pll_recalc_rate()
67 int ibits; in __mtk_pll_recalc_rate()
72 ibits = pll->data->pcwibits ? pll->data->pcwibits : INTEGER_BITS; in __mtk_pll_recalc_rate()
[all …]
/kernel/linux/linux-5.10/include/linux/mfd/
Drt5033.h1 /* SPDX-License-Identifier: GPL-2.0-only */
31 int irq;
44 unsigned int pre_uamp;
45 unsigned int pre_uvolt;
46 unsigned int const_uvolt;
47 unsigned int eoc_uamp;
48 unsigned int fast_uamp;
56 struct rt5033_charger_data *chg; member
/kernel/linux/linux-5.10/drivers/mfd/
Dmax8907.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * max8907.c - mfd driver for MAX8907
5 * Copyright (C) 2010 Gyungoh Yoo <jack.yoo@maxim-ic.com>
6 * Copyright (C) 2010-2012, NVIDIA CORPORATION. All rights reserved.
23 { .name = "max8907-regulator", },
24 { .name = "max8907-rtc", },
27 static bool max8907_gen_is_volatile_reg(struct device *dev, unsigned int reg) in max8907_gen_is_volatile_reg()
42 static bool max8907_gen_is_precious_reg(struct device *dev, unsigned int reg) in max8907_gen_is_precious_reg()
55 static bool max8907_gen_is_writeable_reg(struct device *dev, unsigned int reg) in max8907_gen_is_writeable_reg()
70 static bool max8907_rtc_is_volatile_reg(struct device *dev, unsigned int reg) in max8907_rtc_is_volatile_reg()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/hdmi/
Dhdmi_connector.c1 // SPDX-License-Identifier: GPL-2.0-only
23 unsigned int val; in msm_hdmi_phy_reset()
70 static int gpio_config(struct hdmi *hdmi, bool on) in gpio_config()
72 const struct hdmi_platform_config *config = hdmi->config; in gpio_config()
73 int i; in gpio_config()
77 struct hdmi_gpio_data gpio = config->gpios[i]; in gpio_config()
94 struct hdmi_gpio_data gpio = config->gpios[i]; in gpio_config()
100 int value = gpio.value ? 0 : 1; in gpio_config()
114 const struct hdmi_platform_config *config = hdmi->config; in enable_hpd_clocks()
115 struct device *dev = &hdmi->pdev->dev; in enable_hpd_clocks()
[all …]
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Drk3188-bqedison2qc.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
7 /dts-v1/;
8 #include <dt-bindings/i2c/i2c.h>
9 #include <dt-bindings/input/input.h>
13 model = "BQ Edison2 Quad-Core";
14 compatible = "mundoreader,bq-edison2qc", "rockchip,rk3188";
22 compatible = "pwm-backlight";
23 power-supply = <&vsys>;
27 gpio-keys {
28 compatible = "gpio-keys";
[all …]
/kernel/linux/linux-5.10/drivers/iio/adc/
Dqcom-vadc-common.h1 /* SPDX-License-Identifier: GPL-2.0 */
14 /* Max ADC code represents full-scale range of 1.8V */
32 /* Default decimation - 1024 for rev2, 840 for pmic5 */
45 #define PMI_CHG_SCALE_1 -138890
55 #define DIE_TEMP_ADC7_SCALE_1 -60000
61 * struct vadc_map_pt - Map the graph representation for ADC channel
82 * struct vadc_linear_graph - Represent ADC characteristics.
97 * struct vadc_prescale_ratio - Represent scaling ratio for ADC input.
107 * enum vadc_scale_fn_type - Scaling function to convert ADC code to
114 * SCALE_PMI_CHG_TEMP: Conversion for PMI CHG temp
[all …]
/kernel/linux/linux-5.10/scripts/
Dbloat-o-meter5 # inspired by perl Bloat-O-Meter (c) 1997 by Andi Kleen
18 sys.stderr.write("-c categorize output based on symbol type\n")
19 sys.stderr.write("-d Show delta of Data Section\n")
20 sys.stderr.write("-t Show delta of text Section\n")
21 sys.exit(-1)
23 re_NUMBER = re.compile(r'\.[0-9]+')
27 with os.popen("nm --size-sort " + file) as f:
41 sym[name] = sym.get(name, 0) + int(size, 16)
60 delta.append((-old[name], name))
70 d = new.get(name, 0) - old.get(name, 0)
[all …]

123