Searched refs:litex_round (Results 1 – 1 of 1) sorted by relevance
831 static inline uint32_t litex_round(uint32_t val, uint32_t mod) in litex_round() function897 return (uint8_t)litex_round(duty_ratio, 100); in litex_clk_calc_duty_percent()969 return litex_round(high_duty, 100); in litex_clk_calc_duty_high_time()1041 *period_off = litex_round(clkout_period * (*period_off), 10000); in litex_clk_calc_phase_normal()1151 pm = litex_round(pm, 1000); in litex_clk_get_phase()1158 return litex_round(period, 1000); in litex_clk_get_phase()1174 buff = litex_round(buff, 1000); in litex_clk_get_phase_deg()