Searched refs:best_idx (Results 1 – 8 of 8) sorted by relevance
/openbmc/linux/drivers/power/supply/ |
H A 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()
|
/openbmc/linux/drivers/clk/ |
H A 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()
|
/openbmc/linux/drivers/gpu/drm/ |
H A 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()
|
/openbmc/linux/fs/nfs/flexfilelayout/ |
H A D | flexfilelayout.c | 743 u32 start_idx, u32 *best_idx, in ff_layout_choose_ds_for_read() argument 762 *best_idx = idx; in ff_layout_choose_ds_for_read() 771 u32 start_idx, u32 *best_idx) in ff_layout_choose_any_ds_for_read() argument 778 u32 start_idx, u32 *best_idx) in ff_layout_choose_valid_ds_for_read() argument 780 return ff_layout_choose_ds_for_read(lseg, start_idx, best_idx, true); in ff_layout_choose_valid_ds_for_read() 785 u32 start_idx, u32 *best_idx) in ff_layout_choose_best_ds_for_read() argument 789 ds = ff_layout_choose_valid_ds_for_read(lseg, start_idx, best_idx); in ff_layout_choose_best_ds_for_read() 792 return ff_layout_choose_any_ds_for_read(lseg, start_idx, best_idx); in ff_layout_choose_best_ds_for_read() 797 u32 *best_idx) in ff_layout_get_ds_for_read() argument 803 best_idx); in ff_layout_get_ds_for_read() [all …]
|
/openbmc/linux/scripts/ |
H A D | kallsyms.c | 389 unsigned int best_idx[256]; in write_src() local 475 best_idx[i] = off; in write_src() 484 printf("\t.short\t%d\n", best_idx[i]); in write_src()
|
/openbmc/linux/arch/x86/kernel/apic/ |
H A D | io_apic.c | 1139 int irq, i, best_ioapic = -1, best_idx = -1; in IO_APIC_get_PCI_irq_vector() local 1173 best_idx = i; in IO_APIC_get_PCI_irq_vector() 1182 if (best_idx < 0) { in IO_APIC_get_PCI_irq_vector() 1183 best_idx = i; in IO_APIC_get_PCI_irq_vector() 1187 if (best_idx < 0) in IO_APIC_get_PCI_irq_vector() 1191 return pin_2_irq(best_idx, best_ioapic, mp_irqs[best_idx].dstirq, in IO_APIC_get_PCI_irq_vector()
|
/openbmc/linux/drivers/clk/bcm/ |
H A 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()
|
/openbmc/linux/drivers/video/fbdev/omap2/omapfb/ |
H A 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()
|