Lines Matching refs:setup
1538 struct litex_clk_setup *setup = sys; in litex_clk_get_subsys_rate() local
1541 lcko = &ldev->clkouts[setup->clkout_nr]; in litex_clk_get_subsys_rate()
1550 struct litex_clk_setup *setup = sys; in litex_clk_get_status() local
1555 lcko = &ldev->clkouts[setup->clkout_nr]; in litex_clk_get_status()
1557 setup->rate = litex_clk_calc_rate(lcko); in litex_clk_get_status()
1562 setup->duty = litex_clk_calc_duty_percent(&duty); in litex_clk_get_status()
1563 setup->phase = litex_clk_get_phase(lcko); in litex_clk_get_status()
1570 struct litex_clk_setup *setup = sys; in litex_clk_on() local
1576 lcko = &ldev->clkouts[setup->clkout_nr]; in litex_clk_on()
1578 if (lcko->config.freq != setup->rate) { in litex_clk_on()
1579 ret = litex_clk_set_rate(lcko, setup->rate); in litex_clk_on()
1584 if (lcko->config.phase != setup->phase) { in litex_clk_on()
1585 ret = litex_clk_set_phase(lcko, setup->phase); in litex_clk_on()
1591 if (duty_perc != setup->duty) { in litex_clk_on()
1592 duty.num = setup->duty; in litex_clk_on()