Home
last modified time | relevance | path

Searched refs:best_idx (Results 1 – 8 of 8) sorted by relevance

/openbmc/linux/drivers/power/supply/
H A Dingenic-battery.c64 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 Dclk-tps68470.c132 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 Ddrm_suballoc.c229 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 Dflexfilelayout.c743 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 Dkallsyms.c389 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 Dio_apic.c1139 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 Dclk-iproc-pll.c504 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 Domapfb-main.c2232 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()