Lines Matching refs:clock
78 struct mstp_clock *clock = to_mstp_clock(hw); in cpg_mstp_clock_endisable() local
79 struct mstp_clock_group *group = clock->group; in cpg_mstp_clock_endisable()
80 u32 bitmask = BIT(clock->bit_index); in cpg_mstp_clock_endisable()
113 group->smstpcr, clock->bit_index); in cpg_mstp_clock_endisable()
132 struct mstp_clock *clock = to_mstp_clock(hw); in cpg_mstp_clock_is_enabled() local
133 struct mstp_clock_group *group = clock->group; in cpg_mstp_clock_is_enabled()
141 return !(value & BIT(clock->bit_index)); in cpg_mstp_clock_is_enabled()
155 struct mstp_clock *clock; in cpg_mstp_clock_register() local
158 clock = kzalloc(sizeof(*clock), GFP_KERNEL); in cpg_mstp_clock_register()
159 if (!clock) { in cpg_mstp_clock_register()
175 clock->bit_index = index; in cpg_mstp_clock_register()
176 clock->group = group; in cpg_mstp_clock_register()
177 clock->hw.init = &init; in cpg_mstp_clock_register()
179 clk = clk_register(NULL, &clock->hw); in cpg_mstp_clock_register()
182 kfree(clock); in cpg_mstp_clock_register()