Searched refs:divround (Results 1 – 2 of 2) sorted by relevance
68 #define divround(n, d) (((n) + (d) / 2) / (d)) macro376 sample = (divround(bus->bus_cmd_skew, period) << in octmmc_acquire()379 sample |= (divround(bus->bus_dat_skew, period) << in octmmc_acquire()404 period = divround(octeon_ioclock_speed(), init_freq * 1000 * 2); in octmmc_init_bus()537 period = divround(ioclock, freq * 1000 * 2); in octmmc_bus_clock()
1939 #define divround(a, b) (((a) + (b) - 1) / (b)) in athn_txtime() macro1949 txtime = divround(8 + 4 * len + 3, athn_rates[ridx].rate); in athn_txtime()1953 txtime = divround(16 * len, athn_rates[ridx].rate); in athn_txtime()1961 #undef divround in athn_txtime()