Lines Matching refs:edge
456 lcko->div.edge, lcko->div.high_time, in litex_clk_print_params()
582 uint8_t no_cnt = 0, edge = 0, ht = 0, lt = 0, in litex_clk_set_divreg() local
591 edge = div % 2; in litex_clk_set_divreg()
592 if (edge) { in litex_clk_set_divreg()
593 lt += edge; in litex_clk_set_divreg()
597 bitset = (edge << EDGE_DIVREG_POS) | in litex_clk_set_divreg()
617 uint8_t no_cnt = 0, edge = 0, ht = 0, lt = 0, in litex_clk_set_mulreg() local
626 edge = mul % 2; in litex_clk_set_mulreg()
627 if (edge) { in litex_clk_set_mulreg()
628 lt += edge; in litex_clk_set_mulreg()
640 if (edge || no_cnt) { in litex_clk_set_mulreg()
641 uint16_t bitset2 = (edge << EDGE_POS) | in litex_clk_set_mulreg()
851 uint8_t clkout_nr, high_time, edge, no_cnt, frac_en, frac_cnt; in litex_clk_get_duty_cycle() local
860 edge = (clkout_reg2 >> EDGE_POS) & EDGE_MASK; in litex_clk_get_duty_cycle()
882 duty->num = high_time * 10 + edge * 5; in litex_clk_get_duty_cycle()
883 duty->den = (divider + edge) * 10; in litex_clk_get_duty_cycle()
944 lcko->div.edge = edge_it; in litex_clk_calc_duty_normal()
979 *edge = &lcko->div.edge, in litex_clk_set_duty_cycle() local
1002 bitset2 = (*edge << EDGE_POS); in litex_clk_set_duty_cycle()
1005 *edge, *high_time, *low_time, bitset1, bitset2); in litex_clk_set_duty_cycle()
1404 *edge = &lcko->div.edge, in litex_clk_write_rate() local
1418 (*edge << EDGE_POS) | in litex_clk_write_rate()
1423 *no_cnt, *edge, *high_time, *low_time, bitset1, bitset2); in litex_clk_write_rate()