Searched refs:DIV_ROUND_CLOSEST (Results 1 – 4 of 4) sorted by relevance
170 #define DIV_ROUND_CLOSEST(val, div) (((val) + ((div) / 2)) / (div)) macro202 uv = DIV_ROUND_CLOSEST(ent->c2 * sc->speedo_value, scale); in freq_to_voltage()203 uv = DIV_ROUND_CLOSEST((uv + ent->c1) * sc->speedo_value, scale) + in freq_to_voltage()
213 #define DIV_ROUND_CLOSEST(val, div) (((val) + ((div) / 2)) / (div)) macro244 uv = DIV_ROUND_CLOSEST(ent->c2 * sc->speedo_value, scale); in freq_to_voltage()245 uv = DIV_ROUND_CLOSEST((uv + ent->c1) * sc->speedo_value, scale) + in freq_to_voltage()
595 #define DIV_ROUND_CLOSEST(x, divisor) (((x) + ((divisor) / 2)) / (divisor)) macro
235 #define DIV_ROUND_CLOSEST(n,d) (((n) + (d) / 2) / (d)) macro