Home
last modified time | relevance | path

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

/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()
/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 …]
/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 …]
/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()
/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()
/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 …]
/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()
/drivers/gpio/
Dgpiolib-cdev.c2513 struct gpio_v2_line_info_changed chg; in lineinfo_changed_notify() local
2520 memset(&chg, 0, sizeof(chg)); in lineinfo_changed_notify()
2521 chg.event_type = action; in lineinfo_changed_notify()
2522 chg.timestamp_ns = ktime_get_ns(); in lineinfo_changed_notify()
2523 gpio_desc_to_lineinfo(desc, &chg.info); in lineinfo_changed_notify()
2525 ret = kfifo_in_spinlocked(&cdev->events, &chg, 1, &cdev->wait.lock); in lineinfo_changed_notify()
/drivers/scsi/
Dncr53c8xx.c6520 u_char chg, ofs, per, fak, wide; in ncr_int_sir() local
6706 chg = 0; in ncr_int_sir()
6724 {chg = 1; per = np->minsync;} in ncr_int_sir()
6726 {chg = 1; per = tp->minsync;} in ncr_int_sir()
6728 {chg = 1; ofs = tp->maxoffs;} in ncr_int_sir()
6738 chg = 1; in ncr_int_sir()
6751 "fak=%d chg=%d.\n", per, scntl3, ofs, fak, chg); in ncr_int_sir()
6760 if (chg) { in ncr_int_sir()
6818 chg = 0; in ncr_int_sir()
6834 {chg = 1; wide = tp->usrwide;} in ncr_int_sir()
[all …]
/drivers/clk/samsung/
Dclk-s3c2410-dclk.c52 unsigned int (*modify_misccr)(unsigned int clr, unsigned int chg);
/drivers/hid/
Dwacom_wac.c1540 bool chg = data[284] & 0x80; in wacom_intuos_pro2_bt_battery() local
1544 battery_status, chg, 1, chg); in wacom_intuos_pro2_bt_battery()
1567 bool chg = data[45] & 0x80; in wacom_intuos_gen3_bt_battery() local
1571 battery_status, chg, 1, chg); in wacom_intuos_gen3_bt_battery()