Home
last modified time | relevance | path

Searched refs:new_setting (Results 1 – 5 of 5) sorted by relevance

/drivers/power/supply/
Dds2781_battery.c469 u8 control_reg, new_setting; in ds2781_set_pmod_enabled() local
478 ret = kstrtou8(buf, 0, &new_setting); in ds2781_set_pmod_enabled()
482 if ((new_setting != 0) && (new_setting != 1)) { in ds2781_set_pmod_enabled()
487 if (new_setting) in ds2781_set_pmod_enabled()
522 u8 new_setting; in ds2781_set_sense_resistor_value() local
526 ret = kstrtou8(buf, 0, &new_setting); in ds2781_set_sense_resistor_value()
530 ret = ds2781_set_sense_register(dev_info, new_setting); in ds2781_set_sense_resistor_value()
559 u16 new_setting; in ds2781_set_rsgain_setting() local
563 ret = kstrtou16(buf, 0, &new_setting); in ds2781_set_rsgain_setting()
568 if (new_setting > 1999) { in ds2781_set_rsgain_setting()
[all …]
Dds2780_battery.c467 u8 control_reg, new_setting; in ds2780_set_pmod_enabled() local
476 ret = kstrtou8(buf, 0, &new_setting); in ds2780_set_pmod_enabled()
480 if ((new_setting != 0) && (new_setting != 1)) { in ds2780_set_pmod_enabled()
485 if (new_setting) in ds2780_set_pmod_enabled()
520 u8 new_setting; in ds2780_set_sense_resistor_value() local
524 ret = kstrtou8(buf, 0, &new_setting); in ds2780_set_sense_resistor_value()
528 ret = ds2780_set_sense_register(dev_info, new_setting); in ds2780_set_sense_resistor_value()
557 u16 new_setting; in ds2780_set_rsgain_setting() local
561 ret = kstrtou16(buf, 0, &new_setting); in ds2780_set_rsgain_setting()
566 if (new_setting > 1999) { in ds2780_set_rsgain_setting()
[all …]
/drivers/platform/x86/
Dthink-lmi.c555 char *set_str = NULL, *new_setting = NULL; in current_value_store() local
563 new_setting = kstrdup(buf, GFP_KERNEL); in current_value_store()
564 if (!new_setting) in current_value_store()
568 p = strchrnul(new_setting, '\n'); in current_value_store()
584 new_setting, auth_str); in current_value_store()
587 new_setting); in current_value_store()
610 kfree(new_setting); in current_value_store()
711 char *set_str = NULL, *new_setting = NULL; in debug_cmd_store() local
719 new_setting = kstrdup(buf, GFP_KERNEL); in debug_cmd_store()
720 if (!new_setting) in debug_cmd_store()
[all …]
/drivers/staging/media/ipu3/
Dipu3-css-params.c2696 void *new_setting, *old_setting; in imgu_css_cfg_copy() local
2698 new_setting = imgu_css_fw_pipeline_params(css, pipe, c, m, par, in imgu_css_cfg_copy()
2700 if (!new_setting) in imgu_css_cfg_copy()
2705 memcpy(new_setting, user_setting, par_size); in imgu_css_cfg_copy()
2713 memcpy(new_setting, old_setting, par_size); in imgu_css_cfg_copy()
2715 return new_setting; /* Need to calculate */ in imgu_css_cfg_copy()
/drivers/net/ethernet/natsemi/
Dnatsemi.c682 int new_setting; in natsemi_set_dspcfg_workaround() local
687 new_setting = 1; in natsemi_set_dspcfg_workaround()
690 new_setting = 0; in natsemi_set_dspcfg_workaround()
696 np->dspcfg_workaround = new_setting; in natsemi_set_dspcfg_workaround()