Home
last modified time | relevance | path

Searched refs:chg (Results 1 – 17 of 17) 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 …]
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()
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.c432 static const struct ab8500_bm_charger_parameters chg = { variable
485 .chg_params = &chg,
/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.c4417 struct list_head *chg) in ice_rem_vsig() argument
4456 list_add(&p->list_entry, chg); in ice_rem_vsig()
4474 struct list_head *chg) in ice_rem_prof_id_vsig() argument
4486 return ice_rem_vsig(hw, blk, vsig, chg); in ice_rem_prof_id_vsig()
4510 struct list_head chg; in ice_rem_flow_all() local
4513 INIT_LIST_HEAD(&chg); in ice_rem_flow_all()
4519 &chg); in ice_rem_flow_all()
4525 status = ice_upd_prof_hw(hw, blk, &chg); in ice_rem_flow_all()
4528 list_for_each_entry_safe(del, tmp, &chg, list_entry) { in ice_rem_flow_all()
4584 struct list_head *chg) in ice_get_prof() argument
[all …]
/drivers/usb/gadget/udc/aspeed-vhub/
Dhub.c480 u16 chg = p->status ^ prev; in ast_vhub_change_port_stat() local
483 chg &= USB_PORT_STAT_C_CONNECTION | in ast_vhub_change_port_stat()
495 chg &= ~USB_PORT_STAT_C_ENABLE; in ast_vhub_change_port_stat()
497 p->change = chg; in ast_vhub_change_port_stat()
714 u16 stat, chg; in ast_vhub_get_port_stat() local
721 chg = vhub->ports[port].change; in ast_vhub_get_port_stat()
726 EPDBG(ep, " port status=%04x change=%04x\n", stat, chg); in ast_vhub_get_port_stat()
731 chg & 0xff, in ast_vhub_get_port_stat()
732 chg >> 8); in ast_vhub_get_port_stat()
/drivers/clk/mediatek/
Dclk-pll.c120 u32 chg, val; in mtk_pll_set_rate_regs() local
141 chg = readl(pll->pcw_chg_addr) | PCW_CHG_MASK; in mtk_pll_set_rate_regs()
142 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.c2293 struct gpio_v2_line_info_changed chg; in lineinfo_changed_notify() local
2300 memset(&chg, 0, sizeof(chg)); in lineinfo_changed_notify()
2301 chg.event_type = action; in lineinfo_changed_notify()
2302 chg.timestamp_ns = ktime_get_ns(); in lineinfo_changed_notify()
2303 gpio_desc_to_lineinfo(desc, &chg.info); in lineinfo_changed_notify()
2305 ret = kfifo_in_spinlocked(&cdev->events, &chg, 1, &cdev->wait.lock); in lineinfo_changed_notify()
/drivers/scsi/
Dncr53c8xx.c6521 u_char chg, ofs, per, fak, wide; in ncr_int_sir() local
6707 chg = 0; in ncr_int_sir()
6725 {chg = 1; per = np->minsync;} in ncr_int_sir()
6727 {chg = 1; per = tp->minsync;} in ncr_int_sir()
6729 {chg = 1; ofs = tp->maxoffs;} in ncr_int_sir()
6739 chg = 1; in ncr_int_sir()
6752 "fak=%d chg=%d.\n", per, scntl3, ofs, fak, chg); in ncr_int_sir()
6761 if (chg) { in ncr_int_sir()
6819 chg = 0; in ncr_int_sir()
6835 {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.c1545 bool chg = data[284] & 0x80; in wacom_intuos_pro2_bt_battery() local
1549 battery_status, chg, 1, chg); in wacom_intuos_pro2_bt_battery()
1572 bool chg = data[45] & 0x80; in wacom_intuos_gen3_bt_battery() local
1576 battery_status, chg, 1, chg); in wacom_intuos_gen3_bt_battery()