Lines Matching full:tuples
631 void rpi_pico_clkid_tuple_reorder_by_dependencies(struct rpi_pico_clkid_tuple *tuples, size_t len) in rpi_pico_clkid_tuple_reorder_by_dependencies() argument
639 if (tuples[i].parent == target) { in rpi_pico_clkid_tuple_reorder_by_dependencies()
640 rpi_pico_clkid_tuple_swap(&tuples[sorted_idx], &tuples[i]); in rpi_pico_clkid_tuple_reorder_by_dependencies()
644 target = tuples[checked_idx++].clk; in rpi_pico_clkid_tuple_reorder_by_dependencies()
656 struct rpi_pico_clkid_tuple tuples[] = { in clock_control_rpi_pico_init() local
708 rpi_pico_clkid_tuple_reorder_by_dependencies(tuples, ARRAY_SIZE(tuples)); in clock_control_rpi_pico_init()
709 for (uint32_t i = 0; i < ARRAY_SIZE(tuples); i++) { in clock_control_rpi_pico_init()
710 if (tuples[i].clk < 0 || tuples[i].clk >= RPI_PICO_CLOCK_COUNT) { in clock_control_rpi_pico_init()
714 if (!(clock_configure(tuples[i].clk, config->clocks_data[tuples[i].clk].source, in clock_control_rpi_pico_init()
715 config->clocks_data[tuples[i].clk].aux_source, in clock_control_rpi_pico_init()
716 config->clocks_data[tuples[i].clk].source_rate, in clock_control_rpi_pico_init()
717 config->clocks_data[tuples[i].clk].rate))) { in clock_control_rpi_pico_init()