Lines Matching refs:uart_clock

1059 #define to_uart_clock_base(uart_clock) container_of(uart_clock, \  argument
1060 struct mvebu_uart_clock_base, clocks[uart_clock->clock_idx])
1064 struct mvebu_uart_clock *uart_clock = to_uart_clock(hw); in mvebu_uart_clock_prepare() local
1066 to_uart_clock_base(uart_clock); in mvebu_uart_clock_prepare()
1172 struct mvebu_uart_clock *uart_clock = to_uart_clock(hw); in mvebu_uart_clock_enable() local
1174 to_uart_clock_base(uart_clock); in mvebu_uart_clock_enable()
1182 if (uart_clock->clock_idx == 0) in mvebu_uart_clock_enable()
1196 struct mvebu_uart_clock *uart_clock = to_uart_clock(hw); in mvebu_uart_clock_disable() local
1198 to_uart_clock_base(uart_clock); in mvebu_uart_clock_disable()
1206 if (uart_clock->clock_idx == 0) in mvebu_uart_clock_disable()
1218 struct mvebu_uart_clock *uart_clock = to_uart_clock(hw); in mvebu_uart_clock_is_enabled() local
1220 to_uart_clock_base(uart_clock); in mvebu_uart_clock_is_enabled()
1225 if (uart_clock->clock_idx == 0) in mvebu_uart_clock_is_enabled()
1233 struct mvebu_uart_clock *uart_clock = to_uart_clock(hw); in mvebu_uart_clock_save_context() local
1235 to_uart_clock_base(uart_clock); in mvebu_uart_clock_save_context()
1239 uart_clock->pm_context_reg1 = readl(uart_clock_base->reg1); in mvebu_uart_clock_save_context()
1240 uart_clock->pm_context_reg2 = readl(uart_clock_base->reg2); in mvebu_uart_clock_save_context()
1248 struct mvebu_uart_clock *uart_clock = to_uart_clock(hw); in mvebu_uart_clock_restore_context() local
1250 to_uart_clock_base(uart_clock); in mvebu_uart_clock_restore_context()
1254 writel(uart_clock->pm_context_reg1, uart_clock_base->reg1); in mvebu_uart_clock_restore_context()
1255 writel(uart_clock->pm_context_reg2, uart_clock_base->reg2); in mvebu_uart_clock_restore_context()
1262 struct mvebu_uart_clock *uart_clock = to_uart_clock(hw); in mvebu_uart_clock_recalc_rate() local
1264 to_uart_clock_base(uart_clock); in mvebu_uart_clock_recalc_rate()
1272 struct mvebu_uart_clock *uart_clock = to_uart_clock(hw); in mvebu_uart_clock_round_rate() local
1274 to_uart_clock_base(uart_clock); in mvebu_uart_clock_round_rate()
1304 struct mvebu_uart_clock *uart_clock, in mvebu_uart_clock_register() argument
1310 uart_clock->clk_hw.init = &init; in mvebu_uart_clock_register()
1318 return devm_clk_hw_register(dev, &uart_clock->clk_hw); in mvebu_uart_clock_register()