Lines Matching refs:clkout_nr

360 	uint8_t clkout_nr = lcko->id;  in litex_clk_get_clkout_divider()  local
363 ret = litex_clk_get_DO(drp_addr.clkout[clkout_nr].reg1, &div); in litex_clk_get_clkout_divider()
367 ret = litex_clk_get_DO(drp_addr.clkout[clkout_nr].reg2, &frac); in litex_clk_get_clkout_divider()
553 static int litex_clk_set_clock(uint8_t clkout_nr, uint16_t mask_reg1, in litex_clk_set_clock() argument
562 drp_addr.clkout[clkout_nr].reg2); in litex_clk_set_clock()
569 drp_addr.clkout[clkout_nr].reg1); in litex_clk_set_clock()
851 uint8_t clkout_nr, high_time, edge, no_cnt, frac_en, frac_cnt; in litex_clk_get_duty_cycle() local
853 clkout_nr = lcko->id; in litex_clk_get_duty_cycle()
855 ret = litex_clk_get_DO(drp_addr.clkout[clkout_nr].reg2, &clkout_reg2); in litex_clk_get_duty_cycle()
872 ret = litex_clk_get_DO(drp_addr.clkout[clkout_nr].reg1, &clkout_reg1); in litex_clk_get_duty_cycle()
978 uint8_t clkout_nr = lcko->id, in litex_clk_set_duty_cycle() local
991 clkout_nr, high_duty); in litex_clk_set_duty_cycle()
996 clkout_nr); in litex_clk_set_duty_cycle()
1007 ret = litex_clk_set_clock(clkout_nr, REG1_DUTY_MASK, bitset1, in litex_clk_set_duty_cycle()
1111 uint8_t clkout_nr = lcko->id; in litex_clk_get_phase_data() local
1113 ret = litex_clk_get_DO(drp_addr.clkout[clkout_nr].reg1, &r1); in litex_clk_get_phase_data()
1117 ret = litex_clk_get_DO(drp_addr.clkout[clkout_nr].reg2, &r2); in litex_clk_get_phase_data()
1185 clkout_nr = lcko->id; in litex_clk_set_phase() local
1194 clkout_nr, degrees); in litex_clk_set_phase()
1201 ret = litex_clk_set_clock(clkout_nr, REG1_PHASE_MASK, bitset1, in litex_clk_set_phase()
1498 static int litex_clk_set_def_clkout(int clkout_nr) in litex_clk_set_def_clkout() argument
1500 struct litex_clk_clkout *lcko = &ldev->clkouts[clkout_nr]; in litex_clk_set_def_clkout()
1541 lcko = &ldev->clkouts[setup->clkout_nr]; in litex_clk_get_subsys_rate()
1555 lcko = &ldev->clkouts[setup->clkout_nr]; in litex_clk_get_status()
1576 lcko = &ldev->clkouts[setup->clkout_nr]; in litex_clk_on()