Lines Matching refs:uart_clock
1093 #define to_uart_clock_base(uart_clock) container_of(uart_clock, \ argument
1094 struct mvebu_uart_clock_base, clocks[uart_clock->clock_idx])
1098 struct mvebu_uart_clock *uart_clock = to_uart_clock(hw); in mvebu_uart_clock_prepare() local
1100 to_uart_clock_base(uart_clock); in mvebu_uart_clock_prepare()
1206 struct mvebu_uart_clock *uart_clock = to_uart_clock(hw); in mvebu_uart_clock_enable() local
1208 to_uart_clock_base(uart_clock); in mvebu_uart_clock_enable()
1216 if (uart_clock->clock_idx == 0) in mvebu_uart_clock_enable()
1230 struct mvebu_uart_clock *uart_clock = to_uart_clock(hw); in mvebu_uart_clock_disable() local
1232 to_uart_clock_base(uart_clock); in mvebu_uart_clock_disable()
1240 if (uart_clock->clock_idx == 0) in mvebu_uart_clock_disable()
1252 struct mvebu_uart_clock *uart_clock = to_uart_clock(hw); in mvebu_uart_clock_is_enabled() local
1254 to_uart_clock_base(uart_clock); in mvebu_uart_clock_is_enabled()
1259 if (uart_clock->clock_idx == 0) in mvebu_uart_clock_is_enabled()
1267 struct mvebu_uart_clock *uart_clock = to_uart_clock(hw); in mvebu_uart_clock_save_context() local
1269 to_uart_clock_base(uart_clock); in mvebu_uart_clock_save_context()
1273 uart_clock->pm_context_reg1 = readl(uart_clock_base->reg1); in mvebu_uart_clock_save_context()
1274 uart_clock->pm_context_reg2 = readl(uart_clock_base->reg2); in mvebu_uart_clock_save_context()
1282 struct mvebu_uart_clock *uart_clock = to_uart_clock(hw); in mvebu_uart_clock_restore_context() local
1284 to_uart_clock_base(uart_clock); in mvebu_uart_clock_restore_context()
1288 writel(uart_clock->pm_context_reg1, uart_clock_base->reg1); in mvebu_uart_clock_restore_context()
1289 writel(uart_clock->pm_context_reg2, uart_clock_base->reg2); in mvebu_uart_clock_restore_context()
1296 struct mvebu_uart_clock *uart_clock = to_uart_clock(hw); in mvebu_uart_clock_recalc_rate() local
1298 to_uart_clock_base(uart_clock); in mvebu_uart_clock_recalc_rate()
1306 struct mvebu_uart_clock *uart_clock = to_uart_clock(hw); in mvebu_uart_clock_round_rate() local
1308 to_uart_clock_base(uart_clock); in mvebu_uart_clock_round_rate()
1338 struct mvebu_uart_clock *uart_clock, in mvebu_uart_clock_register() argument
1344 uart_clock->clk_hw.init = &init; in mvebu_uart_clock_register()
1352 return devm_clk_hw_register(dev, &uart_clock->clk_hw); in mvebu_uart_clock_register()