Lines Matching refs:num_clks
415 int num_clks = 0; in ti_sci_scan_clocks_from_fw() local
450 if (num_clks == max_clks) { in ti_sci_scan_clocks_from_fw()
469 clks[num_clks] = sci_clk; in ti_sci_scan_clocks_from_fw()
472 num_clks++; in ti_sci_scan_clocks_from_fw()
475 provider->clocks = devm_kmalloc_array(dev, num_clks, sizeof(sci_clk), in ti_sci_scan_clocks_from_fw()
480 memcpy(provider->clocks, clks, num_clks * sizeof(sci_clk)); in ti_sci_scan_clocks_from_fw()
482 provider->num_clocks = num_clks; in ti_sci_scan_clocks_from_fw()
509 int num_clks = 0; in ti_sci_scan_clocks_from_dt() local
555 num_clks++; in ti_sci_scan_clocks_from_dt()
591 num_clks++; in ti_sci_scan_clocks_from_dt()
601 provider->clocks = devm_kmalloc_array(dev, num_clks, sizeof(sci_clk), in ti_sci_scan_clocks_from_dt()
606 num_clks = 0; in ti_sci_scan_clocks_from_dt()
614 provider->clocks[num_clks++] = sci_clk; in ti_sci_scan_clocks_from_dt()
618 provider->num_clocks = num_clks; in ti_sci_scan_clocks_from_dt()