Searched refs:AVERAGE (Results 1 – 1 of 1) sorted by relevance
22 #define AVERAGE(a, b) (min(a, b) + abs((b) - (a)) / 2) macro245 tmp = AVERAGE(range[L], range[H]); in dphy_timing_config()246 val[CLK] = DIV_ROUND_UP(AVERAGE(range[L], range[H]), t_half_byteck) - 1; in dphy_timing_config()249 tmp |= AVERAGE(range[L], range[H]) << 16; in dphy_timing_config()250 val[DATA] = DIV_ROUND_UP(AVERAGE(range[L], range[H]), t_half_byteck) - 1; in dphy_timing_config()