Lines Matching refs:valid_div
340 int valid_div = 0; in ti_clk_parse_divider_data() local
358 valid_div++; in ti_clk_parse_divider_data()
364 tmp = kcalloc(valid_div + 1, sizeof(*tmp), GFP_KERNEL); in ti_clk_parse_divider_data()
368 valid_div = 0; in ti_clk_parse_divider_data()
372 tmp[valid_div].div = div_table[i]; in ti_clk_parse_divider_data()
373 tmp[valid_div].val = i; in ti_clk_parse_divider_data()
374 valid_div++; in ti_clk_parse_divider_data()
396 u32 valid_div; in ti_clk_get_div_table() local
406 valid_div = 0; in ti_clk_get_div_table()
412 valid_div++; in ti_clk_get_div_table()
415 if (!valid_div) { in ti_clk_get_div_table()
420 table = kcalloc(valid_div + 1, sizeof(*table), GFP_KERNEL); in ti_clk_get_div_table()
424 valid_div = 0; in ti_clk_get_div_table()
429 table[valid_div].div = val; in ti_clk_get_div_table()
430 table[valid_div].val = i; in ti_clk_get_div_table()
431 valid_div++; in ti_clk_get_div_table()