Searched refs:periph_clk_to_bit (Results 1 – 1 of 1) sorted by relevance
44 #define periph_clk_to_bit(gate) (1 << (gate->clk_num % 32)) macro54 if (!(read_enb(gate) & periph_clk_to_bit(gate))) in clk_periph_is_enabled()58 if (read_rst(gate) & periph_clk_to_bit(gate)) in clk_periph_is_enabled()77 write_enb_set(periph_clk_to_bit(gate), gate); in clk_periph_enable()82 if (read_rst(gate) & periph_clk_to_bit(gate)) { in clk_periph_enable()84 write_rst_clr(periph_clk_to_bit(gate), gate); in clk_periph_enable()121 write_enb_clr(periph_clk_to_bit(gate), gate); in clk_periph_disable()140 write_rst_set(periph_clk_to_bit(gate), gate); in tegra_periph_reset()142 write_rst_clr(periph_clk_to_bit(gate), gate); in tegra_periph_reset()