Lines Matching refs:uart_clock
1064 #define to_uart_clock_base(uart_clock) container_of(uart_clock, \ argument
1065 struct mvebu_uart_clock_base, clocks[uart_clock->clock_idx])
1069 struct mvebu_uart_clock *uart_clock = to_uart_clock(hw); in mvebu_uart_clock_prepare() local
1071 to_uart_clock_base(uart_clock); in mvebu_uart_clock_prepare()
1177 struct mvebu_uart_clock *uart_clock = to_uart_clock(hw); in mvebu_uart_clock_enable() local
1179 to_uart_clock_base(uart_clock); in mvebu_uart_clock_enable()
1187 if (uart_clock->clock_idx == 0) in mvebu_uart_clock_enable()
1201 struct mvebu_uart_clock *uart_clock = to_uart_clock(hw); in mvebu_uart_clock_disable() local
1203 to_uart_clock_base(uart_clock); in mvebu_uart_clock_disable()
1211 if (uart_clock->clock_idx == 0) in mvebu_uart_clock_disable()
1223 struct mvebu_uart_clock *uart_clock = to_uart_clock(hw); in mvebu_uart_clock_is_enabled() local
1225 to_uart_clock_base(uart_clock); in mvebu_uart_clock_is_enabled()
1230 if (uart_clock->clock_idx == 0) in mvebu_uart_clock_is_enabled()
1238 struct mvebu_uart_clock *uart_clock = to_uart_clock(hw); in mvebu_uart_clock_save_context() local
1240 to_uart_clock_base(uart_clock); in mvebu_uart_clock_save_context()
1244 uart_clock->pm_context_reg1 = readl(uart_clock_base->reg1); in mvebu_uart_clock_save_context()
1245 uart_clock->pm_context_reg2 = readl(uart_clock_base->reg2); in mvebu_uart_clock_save_context()
1253 struct mvebu_uart_clock *uart_clock = to_uart_clock(hw); in mvebu_uart_clock_restore_context() local
1255 to_uart_clock_base(uart_clock); in mvebu_uart_clock_restore_context()
1259 writel(uart_clock->pm_context_reg1, uart_clock_base->reg1); in mvebu_uart_clock_restore_context()
1260 writel(uart_clock->pm_context_reg2, uart_clock_base->reg2); in mvebu_uart_clock_restore_context()
1267 struct mvebu_uart_clock *uart_clock = to_uart_clock(hw); in mvebu_uart_clock_recalc_rate() local
1269 to_uart_clock_base(uart_clock); in mvebu_uart_clock_recalc_rate()
1277 struct mvebu_uart_clock *uart_clock = to_uart_clock(hw); in mvebu_uart_clock_round_rate() local
1279 to_uart_clock_base(uart_clock); in mvebu_uart_clock_round_rate()
1309 struct mvebu_uart_clock *uart_clock, in mvebu_uart_clock_register() argument
1315 uart_clock->clk_hw.init = &init; in mvebu_uart_clock_register()
1323 return devm_clk_hw_register(dev, &uart_clock->clk_hw); in mvebu_uart_clock_register()