Lines Matching refs:index
193 int index; in adp5061_set_input_current_limit() local
197 index = adp5061_get_array_index(adp5061_in_current_lim, in adp5061_set_input_current_limit()
200 if (index < 0) in adp5061_set_input_current_limit()
201 return index; in adp5061_set_input_current_limit()
205 ADP5061_VINX_SET_ILIM_MODE(index)); in adp5061_set_input_current_limit()
210 int index; in adp5061_set_min_voltage() local
214 index = adp5061_get_array_index(adp5061_vmin, in adp5061_set_min_voltage()
217 if (index < 0) in adp5061_set_min_voltage()
218 return index; in adp5061_set_min_voltage()
222 ADP5061_VOLTAGE_TH_VTRK_DEAD_MODE(index)); in adp5061_set_min_voltage()
299 int index; in adp5061_set_const_chg_vmax() local
303 index = adp5061_get_array_index(adp5061_const_chg_vmax, in adp5061_set_const_chg_vmax()
306 if (index < 0) in adp5061_set_const_chg_vmax()
307 return index; in adp5061_set_const_chg_vmax()
311 ADP5061_TERM_SET_CHG_VLIM_MODE(index)); in adp5061_set_const_chg_vmax()
317 int index; in adp5061_set_const_chg_current() local
324 index = adp5061_get_array_index(adp5061_const_ichg, in adp5061_set_const_chg_current()
327 if (index < 0) in adp5061_set_const_chg_current()
328 return index; in adp5061_set_const_chg_current()
332 ADP5061_CHG_CURR_ICHG_MODE(index)); in adp5061_set_const_chg_current()
372 int index; in adp5061_set_prechg_current() local
376 index = adp5061_get_array_index(adp5061_prechg_current, in adp5061_set_prechg_current()
379 if (index < 0) in adp5061_set_prechg_current()
380 return index; in adp5061_set_prechg_current()
384 ADP5061_CHG_CURR_ITRK_DEAD_MODE(index)); in adp5061_set_prechg_current()
405 int index; in adp5061_set_vweak_th() local
409 index = adp5061_get_array_index(adp5061_vweak_th, in adp5061_set_vweak_th()
412 if (index < 0) in adp5061_set_vweak_th()
413 return index; in adp5061_set_vweak_th()
417 ADP5061_VOLTAGE_TH_VWEAK_MODE(index)); in adp5061_set_vweak_th()
519 int index; in adp5061_set_termination_current() local
521 index = adp5061_get_array_index(adp5061_iend, in adp5061_set_termination_current()
524 if (index < 0) in adp5061_set_termination_current()
525 return index; in adp5061_set_termination_current()
529 ADP5061_IEND_IEND_MODE(index)); in adp5061_set_termination_current()