Lines Matching refs:uart_clock
1057 #define to_uart_clock_base(uart_clock) container_of(uart_clock, \ argument
1058 struct mvebu_uart_clock_base, clocks[uart_clock->clock_idx])
1062 struct mvebu_uart_clock *uart_clock = to_uart_clock(hw); in mvebu_uart_clock_prepare() local
1064 to_uart_clock_base(uart_clock); in mvebu_uart_clock_prepare()
1170 struct mvebu_uart_clock *uart_clock = to_uart_clock(hw); in mvebu_uart_clock_enable() local
1172 to_uart_clock_base(uart_clock); in mvebu_uart_clock_enable()
1180 if (uart_clock->clock_idx == 0) in mvebu_uart_clock_enable()
1194 struct mvebu_uart_clock *uart_clock = to_uart_clock(hw); in mvebu_uart_clock_disable() local
1196 to_uart_clock_base(uart_clock); in mvebu_uart_clock_disable()
1204 if (uart_clock->clock_idx == 0) in mvebu_uart_clock_disable()
1216 struct mvebu_uart_clock *uart_clock = to_uart_clock(hw); in mvebu_uart_clock_is_enabled() local
1218 to_uart_clock_base(uart_clock); in mvebu_uart_clock_is_enabled()
1223 if (uart_clock->clock_idx == 0) in mvebu_uart_clock_is_enabled()
1231 struct mvebu_uart_clock *uart_clock = to_uart_clock(hw); in mvebu_uart_clock_save_context() local
1233 to_uart_clock_base(uart_clock); in mvebu_uart_clock_save_context()
1237 uart_clock->pm_context_reg1 = readl(uart_clock_base->reg1); in mvebu_uart_clock_save_context()
1238 uart_clock->pm_context_reg2 = readl(uart_clock_base->reg2); in mvebu_uart_clock_save_context()
1246 struct mvebu_uart_clock *uart_clock = to_uart_clock(hw); in mvebu_uart_clock_restore_context() local
1248 to_uart_clock_base(uart_clock); in mvebu_uart_clock_restore_context()
1252 writel(uart_clock->pm_context_reg1, uart_clock_base->reg1); in mvebu_uart_clock_restore_context()
1253 writel(uart_clock->pm_context_reg2, uart_clock_base->reg2); in mvebu_uart_clock_restore_context()
1260 struct mvebu_uart_clock *uart_clock = to_uart_clock(hw); in mvebu_uart_clock_recalc_rate() local
1262 to_uart_clock_base(uart_clock); in mvebu_uart_clock_recalc_rate()
1270 struct mvebu_uart_clock *uart_clock = to_uart_clock(hw); in mvebu_uart_clock_round_rate() local
1272 to_uart_clock_base(uart_clock); in mvebu_uart_clock_round_rate()
1302 struct mvebu_uart_clock *uart_clock, in mvebu_uart_clock_register() argument
1308 uart_clock->clk_hw.init = &init; in mvebu_uart_clock_register()
1316 return devm_clk_hw_register(dev, &uart_clock->clk_hw); in mvebu_uart_clock_register()