Lines Matching refs:valid_div
365 int valid_div = 0; in ti_clk_parse_divider_data() local
399 valid_div++; in ti_clk_parse_divider_data()
405 tmp = kcalloc(valid_div + 1, sizeof(*tmp), GFP_KERNEL); in ti_clk_parse_divider_data()
411 valid_div = 0; in ti_clk_parse_divider_data()
416 tmp[valid_div].div = div_table[i]; in ti_clk_parse_divider_data()
417 tmp[valid_div].val = i; in ti_clk_parse_divider_data()
418 valid_div++; in ti_clk_parse_divider_data()
435 u32 valid_div; in ti_clk_get_div_table() local
445 valid_div = 0; in ti_clk_get_div_table()
451 valid_div++; in ti_clk_get_div_table()
454 if (!valid_div) { in ti_clk_get_div_table()
459 table = kcalloc(valid_div + 1, sizeof(*table), GFP_KERNEL); in ti_clk_get_div_table()
464 valid_div = 0; in ti_clk_get_div_table()
469 table[valid_div].div = val; in ti_clk_get_div_table()
470 table[valid_div].val = i; in ti_clk_get_div_table()
471 valid_div++; in ti_clk_get_div_table()