Lines Matching refs:sys
49 struct clk_system *sys = to_clk_system(clk); in clk_system_enable() local
51 pmc_write(sys->base, AT91_PMC_SCER, 1 << sys->id); in clk_system_enable()
53 if (!is_pck(sys->id)) in clk_system_enable()
56 while (!clk_system_ready(sys->base, sys->id)) { in clk_system_enable()
57 debug("waiting for pck%u\n", sys->id); in clk_system_enable()
66 struct clk_system *sys = to_clk_system(clk); in clk_system_disable() local
68 pmc_write(sys->base, AT91_PMC_SCDR, 1 << sys->id); in clk_system_disable()
82 struct clk_system *sys; in at91_clk_register_system() local
89 sys = kzalloc(sizeof(*sys), GFP_KERNEL); in at91_clk_register_system()
90 if (!sys) in at91_clk_register_system()
93 sys->id = id; in at91_clk_register_system()
94 sys->base = base; in at91_clk_register_system()
96 clk = &sys->clk; in at91_clk_register_system()
100 kfree(sys); in at91_clk_register_system()