Home
last modified time | relevance | path

Searched refs:chg (Results 1 – 25 of 38) sorted by relevance

12

/Linux-v5.10/drivers/power/supply/
Dqcom_smbb.c256 static int smbb_charger_attr_write(struct smbb_charger *chg, in smbb_charger_attr_write() argument
267 dev_err(chg->dev, "value out of range for %s [%u:%u]\n", in smbb_charger_attr_write()
273 rc = regmap_read(chg->regmap, in smbb_charger_attr_write()
274 chg->addr + prop->safe_reg, &wval); in smbb_charger_attr_write()
276 dev_err(chg->dev, in smbb_charger_attr_write()
285 dev_warn(chg->dev, in smbb_charger_attr_write()
294 rc = regmap_write(chg->regmap, chg->addr + prop->reg, wval); in smbb_charger_attr_write()
296 dev_err(chg->dev, "unable to update %s", prop->name); in smbb_charger_attr_write()
301 dev_warn(chg->dev, in smbb_charger_attr_write()
306 dev_dbg(chg->dev, "%s <= %d\n", prop->name, out); in smbb_charger_attr_write()
[all …]
Dmax77693_charger.c214 struct max77693_charger *chg = power_supply_get_drvdata(psy); in max77693_charger_get_property() local
215 struct regmap *regmap = chg->max77693->regmap; in max77693_charger_get_property()
259 struct max77693_charger *chg = dev_get_drvdata(dev); in device_attr_store() local
267 ret = fn(chg, val); in device_attr_store()
277 struct max77693_charger *chg = dev_get_drvdata(dev); in fast_charge_timer_show() local
281 ret = regmap_read(chg->max77693->regmap, MAX77693_CHG_REG_CHG_CNFG_01, in fast_charge_timer_show()
302 static int max77693_set_fast_charge_timer(struct max77693_charger *chg, in max77693_set_fast_charge_timer() argument
328 return regmap_update_bits(chg->max77693->regmap, in max77693_set_fast_charge_timer()
343 struct max77693_charger *chg = dev_get_drvdata(dev); in top_off_threshold_current_show() local
347 ret = regmap_read(chg->max77693->regmap, MAX77693_CHG_REG_CHG_CNFG_03, in top_off_threshold_current_show()
[all …]
Dmax14577_charger.c47 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()
97 static int max14577_get_charge_type(struct max14577_charger *chg, int *val) in max14577_get_charge_type() argument
109 ret = max14577_get_charger_state(chg, &charging); in max14577_get_charge_type()
121 static int max14577_get_online(struct max14577_charger *chg, int *val) in max14577_get_online() argument
123 struct regmap *rmap = chg->max14577->regmap; in max14577_get_online()
133 chg_type = maxim_get_charger_type(chg->max14577->dev_type, reg_data); in max14577_get_online()
160 static int max14577_get_battery_health(struct max14577_charger *chg, int *val) in max14577_get_battery_health() argument
162 struct regmap *rmap = chg->max14577->regmap; in max14577_get_battery_health()
172 chg_type = maxim_get_charger_type(chg->max14577->dev_type, reg_data); in max14577_get_battery_health()
[all …]
Dmax77650-charger.c88 static int max77650_charger_set_vchgin_min(struct max77650_charger_data *chg, in max77650_charger_set_vchgin_min() argument
95 rv = regmap_update_bits(chg->map, in max77650_charger_set_vchgin_min()
109 static int max77650_charger_set_ichgin_lim(struct max77650_charger_data *chg, in max77650_charger_set_ichgin_lim() argument
116 rv = regmap_update_bits(chg->map, in max77650_charger_set_ichgin_lim()
130 static int max77650_charger_enable(struct max77650_charger_data *chg) in max77650_charger_enable() argument
134 rv = regmap_update_bits(chg->map, in max77650_charger_enable()
139 dev_err(chg->dev, "unable to enable the charger: %d\n", rv); in max77650_charger_enable()
144 static int max77650_charger_disable(struct max77650_charger_data *chg) in max77650_charger_disable() argument
148 rv = regmap_update_bits(chg->map, in max77650_charger_disable()
153 dev_err(chg->dev, "unable to disable the charger: %d\n", rv); in max77650_charger_disable()
[all …]
Dmax8903_charger.c45 if (gpio_is_valid(data->pdata->chg)) { in max8903_get_property()
46 if (gpio_get_value(data->pdata->chg) == 0) in max8903_get_property()
191 pdata->chg = of_get_named_gpio(np, "chg-gpios", 0); in max8903_parse_dt_data()
192 if (!gpio_is_valid(pdata->chg)) in max8903_parse_dt_data()
193 pdata->chg = -EINVAL; in max8903_parse_dt_data()
296 if (gpio_is_valid(pdata->chg)) { in max8903_setup_gpios()
297 ret = devm_gpio_request(dev, pdata->chg, data->psy_desc.name); in max8903_setup_gpios()
301 pdata->chg, ret); in max8903_setup_gpios()
Dtwl4030_madc_battery.c158 int chg = (percent * (bat->pdata->capacity/1000))/100; in twl4030_madc_bat_get_property() local
161 val->intval = (3600l * chg) / 400; in twl4030_madc_bat_get_property()
Dab8500_bmdata.c433 static const struct abx500_bm_charger_parameters chg = { variable
486 .chg_params = &chg,
/Linux-v5.10/tools/gpio/
Dgpio-watch.c24 struct gpio_v2_line_info_changed chg; in main() local
63 memset(&chg, 0, sizeof(chg)); in main()
64 rd = read(pfd.fd, &chg, sizeof(chg)); in main()
65 if (rd < 0 || rd != sizeof(chg)) { in main()
66 if (rd != sizeof(chg)) in main()
73 switch (chg.event_type) { in main()
90 chg.info.offset, event, chg.timestamp_ns); in main()
/Linux-v5.10/drivers/net/fddi/skfp/
Dess.c475 struct smt_sba_chg *chg ; in ess_send_response() local
493 chg = smtod(mb,struct smt_sba_chg *) ; in ess_send_response()
494 chg->smt.smt_tid = sm->smt_tid ; in ess_send_response()
495 chg->smt.smt_dest = sm->smt_source ; in ess_send_response()
498 chg->s_type.para.p_type = SMT_P0015 ; in ess_send_response()
499 chg->s_type.para.p_len = sizeof(struct smt_p_0015) - PARA_LEN ; in ess_send_response()
500 chg->s_type.res_type = SYNC_BW ; in ess_send_response()
503 chg->cmd.para.p_type = SMT_P0016 ; in ess_send_response()
504 chg->cmd.para.p_len = sizeof(struct smt_p_0016) - PARA_LEN ; in ess_send_response()
505 chg->cmd.sba_cmd = sba_cmd ; in ess_send_response()
[all …]
/Linux-v5.10/Documentation/devicetree/bindings/power/supply/
Dqcom_smbb.txt34 "chg-done",
35 "chg-fast",
36 "chg-trkl",
39 "chg-gone",
136 interrupt-names = "chg-done",
137 "chg-fast",
138 "chg-trkl",
141 "chg-gone",
Dmax8903-charger.txt10 - chg-gpios: Charger status pin (active low, input)
22 chg-gpios = <&gpio3 15 GPIO_ACTIVE_LOW>;
Dcharger-manager.txt47 chg-reg-supply = <&charger_regulator>;
76 cm-regulator-name = "chg-reg";
/Linux-v5.10/drivers/net/ethernet/intel/ice/
Dice_flex_pipe.c3945 struct list_head *chg) in ice_rem_vsig() argument
3984 list_add(&p->list_entry, chg); in ice_rem_vsig()
4002 struct list_head *chg) in ice_rem_prof_id_vsig() argument
4014 return ice_rem_vsig(hw, blk, vsig, chg); in ice_rem_prof_id_vsig()
4038 struct list_head chg; in ice_rem_flow_all() local
4041 INIT_LIST_HEAD(&chg); in ice_rem_flow_all()
4047 &chg); in ice_rem_flow_all()
4053 status = ice_upd_prof_hw(hw, blk, &chg); in ice_rem_flow_all()
4056 list_for_each_entry_safe(del, tmp, &chg, list_entry) { in ice_rem_flow_all()
4112 struct list_head *chg) in ice_get_prof() argument
[all …]
/Linux-v5.10/arch/arm/boot/dts/
Dqcom-pm8941.dtsi48 interrupt-names = "chg-done",
49 "chg-fast",
50 "chg-trkl",
53 "chg-gone",
Drk3188-bqedison2qc.dts519 chg_ctl: chg-ctl {
524 chg_det: chg-det {
529 chg_en: chg-en {
/Linux-v5.10/drivers/usb/gadget/udc/aspeed-vhub/
Dhub.c485 u16 chg = p->status ^ prev; in ast_vhub_change_port_stat() local
488 chg &= USB_PORT_STAT_C_CONNECTION | in ast_vhub_change_port_stat()
500 chg &= ~USB_PORT_STAT_C_ENABLE; in ast_vhub_change_port_stat()
502 p->change = chg; in ast_vhub_change_port_stat()
719 u16 stat, chg; in ast_vhub_get_port_stat() local
726 chg = vhub->ports[port].change; in ast_vhub_get_port_stat()
731 EPDBG(ep, " port status=%04x change=%04x\n", stat, chg); in ast_vhub_get_port_stat()
736 chg & 0xff, in ast_vhub_get_port_stat()
737 chg >> 8); in ast_vhub_get_port_stat()
/Linux-v5.10/arch/arm/mach-s3c/
Dhardware-s3c24xx.h12 extern unsigned int s3c2410_modify_misccr(unsigned int clr, unsigned int chg);
/Linux-v5.10/include/linux/platform_data/
Dclk-s3c2410.h15 unsigned int (*modify_misccr)(unsigned int clr, unsigned int chg);
/Linux-v5.10/mm/
Dhugetlb.c549 long chg = 0; in region_chg() local
554 chg = add_reservation_in_range(resv, f, t, NULL, NULL, in region_chg()
566 return chg; in region_chg()
729 long chg = 0; in region_count() local
745 chg += seg_to - seg_from; in region_count()
749 return chg; in region_count()
963 static bool vma_has_reserves(struct vm_area_struct *vma, long chg) in vma_has_reserves() argument
975 if (vma->vm_flags & VM_MAYSHARE && chg == 0) in vma_has_reserves()
990 if (chg) in vma_has_reserves()
1016 if (chg) in vma_has_reserves()
[all …]
/Linux-v5.10/include/linux/power/
Dmax8903_charger.h22 int chg; /* Charger status output */ member
/Linux-v5.10/include/linux/mfd/
Drt5033.h56 struct rt5033_charger_data *chg; member
/Linux-v5.10/drivers/clk/mediatek/
Dclk-pll.c118 u32 chg, val; in mtk_pll_set_rate_regs() local
139 chg = readl(pll->pcw_chg_addr) | PCW_CHG_MASK; in mtk_pll_set_rate_regs()
140 writel(chg, pll->pcw_chg_addr); in mtk_pll_set_rate_regs()
/Linux-v5.10/arch/arm64/boot/dts/qcom/
Dpm8150b.dtsi91 chg-temp@9 {
/Linux-v5.10/drivers/scsi/sym53c8xx_2/
Dsym_hipd.c3948 u_char chg, ofs, per, fak, div; local
3957 chg = 0;
3966 {chg = 1; ofs = np->maxoffs;}
3971 {chg = 1; per = np->minsync;}
3984 ofs, per, div, fak, chg);
3991 if (!req && chg)
4064 int dt, chg = 0; local
4079 chg = 1;
4086 chg = 1;
4093 chg = 1;
[all …]
/Linux-v5.10/drivers/usb/host/
Dmax3421-hcd.c1113 u32 old_port_status, chg; in max3421_detect_conn() local
1160 chg = (old_port_status ^ max3421_hcd->port_status); in max3421_detect_conn()
1161 max3421_hcd->port_status |= chg << 16; in max3421_detect_conn()
1227 u32 chg, old_port_status; in max3421_handle_irqs() local
1282 chg = (old_port_status ^ max3421_hcd->port_status); in max3421_handle_irqs()
1283 max3421_hcd->port_status |= chg << 16; in max3421_handle_irqs()

12