Searched refs:best_idx (Results 1 – 5 of 5) sorted by relevance
/drivers/power/supply/ |
D | ingenic-battery.c | 64 int scale_len, scale_type, best_idx = -1, best_mV, max_raw, i, ret; in ingenic_battery_set_scale() local 91 if (best_idx >= 0 && scale_mV > best_mV) in ingenic_battery_set_scale() 95 best_idx = i; in ingenic_battery_set_scale() 98 if (best_idx < 0) { in ingenic_battery_set_scale() 106 scale_raw[best_idx], in ingenic_battery_set_scale() 107 scale_raw[best_idx + 1], in ingenic_battery_set_scale()
|
/drivers/clk/ |
D | clk-tps68470.c | 132 unsigned int i, best_idx = 0; in tps68470_clk_cfg_lookup() local 142 best_idx = i; in tps68470_clk_cfg_lookup() 146 return best_idx; in tps68470_clk_cfg_lookup()
|
/drivers/gpu/drm/ |
D | drm_suballoc.c | 229 unsigned int i, best_idx; in drm_suballoc_next_hole() local 274 best_idx = i; in drm_suballoc_next_hole() 280 ++tries[best_idx]; in drm_suballoc_next_hole()
|
/drivers/clk/bcm/ |
D | clk-iproc-pll.c | 504 unsigned int best_idx = 0; in iproc_pll_determine_rate() local 530 best_idx = i; in iproc_pll_determine_rate() 537 req->rate = pll->vco_param[best_idx].rate; in iproc_pll_determine_rate()
|
/drivers/video/fbdev/omap2/omapfb/ |
D | omapfb-main.c | 2232 int r, i, best_idx, len; in omapfb_find_best_mode() local 2254 best_idx = -1; in omapfb_find_best_mode() 2277 best_idx = i; in omapfb_find_best_mode() 2282 if (best_idx == -1) { in omapfb_find_best_mode() 2287 fb_videomode_to_omap_timings(&specs->modedb[best_idx], display, in omapfb_find_best_mode()
|