Lines Matching refs:clock
58 struct mstp_clock *clock = to_mstp_clock(hw); in cpg_mstp_clock_endisable() local
59 struct mstp_clock_group *group = clock->group; in cpg_mstp_clock_endisable()
60 u32 bitmask = BIT(clock->bit_index); in cpg_mstp_clock_endisable()
87 group->smstpcr, clock->bit_index); in cpg_mstp_clock_endisable()
106 struct mstp_clock *clock = to_mstp_clock(hw); in cpg_mstp_clock_is_enabled() local
107 struct mstp_clock_group *group = clock->group; in cpg_mstp_clock_is_enabled()
115 return !(value & BIT(clock->bit_index)); in cpg_mstp_clock_is_enabled()
129 struct mstp_clock *clock; in cpg_mstp_clock_register() local
132 clock = kzalloc(sizeof(*clock), GFP_KERNEL); in cpg_mstp_clock_register()
133 if (!clock) { in cpg_mstp_clock_register()
144 clock->bit_index = index; in cpg_mstp_clock_register()
145 clock->group = group; in cpg_mstp_clock_register()
146 clock->hw.init = &init; in cpg_mstp_clock_register()
148 clk = clk_register(NULL, &clock->hw); in cpg_mstp_clock_register()
151 kfree(clock); in cpg_mstp_clock_register()