Lines Matching refs:DIV_ROUND_CLOSEST
226 return DIV_ROUND_CLOSEST(avg * INA226_TOTAL_CONV_TIME_DEFAULT, 1000);
243 avg = DIV_ROUND_CLOSEST(interval * 1000,
259 val = DIV_ROUND_CLOSEST((s16)regval, data->config->shunt_div);
264 val = DIV_ROUND_CLOSEST(val, 1000);
272 val = DIV_ROUND_CLOSEST(val, 1000);
369 val = DIV_ROUND_CLOSEST(val, data->config->bus_voltage_lsb);
373 val = DIV_ROUND_CLOSEST(val, data->power_lsb_uW);
378 val = DIV_ROUND_CLOSEST(val * 1000, data->current_lsb_uA);
542 *val = DIV_ROUND_CLOSEST(accumulator_24, sample_count) * data->power_lsb_uW;
829 unsigned int dividend = DIV_ROUND_CLOSEST(1000000000,
835 data->current_lsb_uA = DIV_ROUND_CLOSEST(dividend, val);