Home
last modified time | relevance | path

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

12

/Linux-v6.1/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 …]
Dmax77976_charger.c124 static int max77976_get_status(struct max77976 *chg, int *val) in max77976_get_status() argument
129 err = regmap_field_read(chg->rfield[CHG_DTLS], &regval); in max77976_get_status()
162 static int max77976_get_charge_type(struct max77976 *chg, int *val) in max77976_get_charge_type() argument
167 err = regmap_field_read(chg->rfield[CHG_DTLS], &regval); in max77976_get_charge_type()
200 static int max77976_get_health(struct max77976 *chg, int *val) in max77976_get_health() argument
205 err = regmap_field_read(chg->rfield[BAT_DTLS], &regval); in max77976_get_health()
234 static int max77976_get_online(struct max77976 *chg, int *val) in max77976_get_online() argument
239 err = regmap_field_read(chg->rfield[CHGIN_OK], &regval); in max77976_get_online()
248 static int max77976_get_integer(struct max77976 *chg, enum max77976_field_idx fidx, in max77976_get_integer() argument
255 err = regmap_field_read(chg->rfield[fidx], &regval); in max77976_get_integer()
[all …]
Dmax8903_charger.c31 struct gpio_desc *chg; /* Charger status output */ member
55 if (data->chg) { in max8903_get_property()
56 if (gpiod_get_value(data->chg)) in max8903_get_property()
302 data->chg = devm_gpiod_get_optional(dev, "chg", GPIOD_IN); in max8903_setup_gpios()
303 if (IS_ERR(data->chg)) in max8903_setup_gpios()
304 return dev_err_probe(dev, PTR_ERR(data->chg), in max8903_setup_gpios()
306 gpiod_set_consumer_name(data->chg, data->psy_desc.name); in max8903_setup_gpios()
Dab8500_bmdata.c113 static const struct ab8500_bm_charger_parameters chg = { variable
136 .chg_params = &chg,
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()
/Linux-v6.1/tools/gpio/
Dgpio-watch.c25 struct gpio_v2_line_info_changed chg; in main() local
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()
74 switch (chg.event_type) { in main()
91 chg.info.offset, event, (uint64_t)chg.timestamp_ns); in main()
/Linux-v6.1/drivers/net/fddi/skfp/
Dess.c474 struct smt_sba_chg *chg ; in ess_send_response() local
492 chg = smtod(mb,struct smt_sba_chg *) ; in ess_send_response()
493 chg->smt.smt_tid = sm->smt_tid ; in ess_send_response()
494 chg->smt.smt_dest = sm->smt_source ; in ess_send_response()
497 chg->s_type.para.p_type = SMT_P0015 ; in ess_send_response()
498 chg->s_type.para.p_len = sizeof(struct smt_p_0015) - PARA_LEN ; in ess_send_response()
499 chg->s_type.res_type = SYNC_BW ; in ess_send_response()
502 chg->cmd.para.p_type = SMT_P0016 ; in ess_send_response()
503 chg->cmd.para.p_len = sizeof(struct smt_p_0016) - PARA_LEN ; in ess_send_response()
504 chg->cmd.sba_cmd = sba_cmd ; in ess_send_response()
[all …]
/Linux-v6.1/arch/arm/boot/dts/
Dqcom-pm8226.dtsi32 interrupt-names = "chg-done",
33 "chg-fast",
34 "chg-trkl",
37 "chg-gone",
Dqcom-pm8941.dtsi48 interrupt-names = "chg-done",
49 "chg-fast",
50 "chg-trkl",
53 "chg-gone",
Dqcom-pmx55.dtsi61 chg-temp@9 {
Drk3188-bqedison2qc.dts526 chg_ctl: chg-ctl {
531 chg_det: chg-det {
536 chg_en: chg-en {
/Linux-v6.1/drivers/net/ethernet/intel/ice/
Dice_flex_pipe.c5100 struct list_head *chg) in ice_rem_vsig() argument
5139 list_add(&p->list_entry, chg); in ice_rem_vsig()
5157 struct list_head *chg) in ice_rem_prof_id_vsig() argument
5169 return ice_rem_vsig(hw, blk, vsig, chg); in ice_rem_prof_id_vsig()
5191 struct list_head chg; in ice_rem_flow_all() local
5195 INIT_LIST_HEAD(&chg); in ice_rem_flow_all()
5201 &chg); in ice_rem_flow_all()
5207 status = ice_upd_prof_hw(hw, blk, &chg); in ice_rem_flow_all()
5210 list_for_each_entry_safe(del, tmp, &chg, list_entry) { in ice_rem_flow_all()
5266 struct list_head *chg) in ice_get_prof() argument
[all …]
/Linux-v6.1/drivers/usb/gadget/udc/aspeed-vhub/
Dhub.c511 u16 chg = p->status ^ prev; in ast_vhub_change_port_stat() local
514 chg &= USB_PORT_STAT_C_CONNECTION | in ast_vhub_change_port_stat()
526 chg &= ~USB_PORT_STAT_C_ENABLE; in ast_vhub_change_port_stat()
528 p->change = chg; in ast_vhub_change_port_stat()
745 u16 stat, chg; in ast_vhub_get_port_stat() local
752 chg = vhub->ports[port].change; in ast_vhub_get_port_stat()
757 EPDBG(ep, " port status=%04x change=%04x\n", stat, chg); in ast_vhub_get_port_stat()
762 chg & 0xff, in ast_vhub_get_port_stat()
763 chg >> 8); in ast_vhub_get_port_stat()
/Linux-v6.1/arch/arm/mach-s3c/
Dhardware-s3c24xx.h12 extern unsigned int s3c2410_modify_misccr(unsigned int clr, unsigned int chg);
/Linux-v6.1/include/linux/platform_data/
Dclk-s3c2410.h15 unsigned int (*modify_misccr)(unsigned int clr, unsigned int chg);
/Linux-v6.1/include/linux/mfd/
Drt5033.h56 struct rt5033_charger_data *chg; member
/Linux-v6.1/mm/
Dhugetlb.c600 long chg = 0; in region_chg() local
605 chg = add_reservation_in_range(resv, f, t, NULL, NULL, in region_chg()
617 return chg; in region_chg()
787 long chg = 0; in region_count() local
803 chg += seg_to - seg_from; in region_count()
807 return chg; in region_count()
1068 static bool vma_has_reserves(struct vm_area_struct *vma, long chg) in vma_has_reserves() argument
1080 if (vma->vm_flags & VM_MAYSHARE && chg == 0) in vma_has_reserves()
1095 if (chg) in vma_has_reserves()
1121 if (chg) in vma_has_reserves()
[all …]
/Linux-v6.1/drivers/clk/mediatek/
Dclk-pll.c123 u32 chg, val; in mtk_pll_set_rate_regs() local
144 chg = readl(pll->pcw_chg_addr) | PCW_CHG_MASK; in mtk_pll_set_rate_regs()
145 writel(chg, pll->pcw_chg_addr); in mtk_pll_set_rate_regs()
/Linux-v6.1/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-v6.1/drivers/usb/host/
Dmax3421-hcd.c1083 u32 old_port_status, chg; in max3421_detect_conn() local
1130 chg = (old_port_status ^ max3421_hcd->port_status); in max3421_detect_conn()
1131 max3421_hcd->port_status |= chg << 16; in max3421_detect_conn()
1196 u32 chg, old_port_status; in max3421_handle_irqs() local
1251 chg = (old_port_status ^ max3421_hcd->port_status); in max3421_handle_irqs()
1252 max3421_hcd->port_status |= chg << 16; in max3421_handle_irqs()
/Linux-v6.1/arch/arm64/boot/dts/qcom/
Dpm8150b.dtsi97 chg-temp@9 {
/Linux-v6.1/drivers/gpio/
Dgpiolib-cdev.c2383 struct gpio_v2_line_info_changed chg; in lineinfo_changed_notify() local
2390 memset(&chg, 0, sizeof(chg)); in lineinfo_changed_notify()
2391 chg.event_type = action; in lineinfo_changed_notify()
2392 chg.timestamp_ns = ktime_get_ns(); in lineinfo_changed_notify()
2393 gpio_desc_to_lineinfo(desc, &chg.info); in lineinfo_changed_notify()
2395 ret = kfifo_in_spinlocked(&cdev->events, &chg, 1, &cdev->wait.lock); in lineinfo_changed_notify()

12