Lines Matching refs:DIV_ROUND_CLOSEST
286 ret = DIV_ROUND_CLOSEST(ret * data->vout_scale[page], MP2891_VOUT_SCALE_DIV); in mp2891_read_word_data()
293 ret = DIV_ROUND_CLOSEST((ret & GENMASK(10, 0)) * data->iout_scale[page], in mp2891_read_word_data()
350 ret = DIV_ROUND_CLOSEST((ret & GENMASK(7, 0)) * data->iout_scale[page] * in mp2891_read_word_data()
363 ret = DIV_ROUND_CLOSEST((ret & GENMASK(9, 0)), 2); in mp2891_read_word_data()
400 DIV_ROUND_CLOSEST(word * MP2891_VOUT_SCALE_DIV, in mp2891_write_word_data()
416 DIV_ROUND_CLOSEST(word + in mp2891_write_word_data()
424 DIV_ROUND_CLOSEST(word, in mp2891_write_word_data()
440 DIV_ROUND_CLOSEST(word - in mp2891_write_word_data()
448 DIV_ROUND_CLOSEST(word, in mp2891_write_word_data()
465 DIV_ROUND_CLOSEST(word, 4))); in mp2891_write_word_data()
485 DIV_ROUND_CLOSEST(word * MP2891_IOUT_SCALE_DIV, in mp2891_write_word_data()
504 DIV_ROUND_CLOSEST(word, MP2891_PIN_LIMIT_UINT)); in mp2891_write_word_data()