Home
last modified time | relevance | path

Searched full:best (Results 1 – 25 of 1113) sorted by relevance

12345678910>>...45

/linux/lib/raid6/
H A Dalgos.c137 const struct raid6_recov_calls *best; in raid6_choose_recov() local
139 for (best = NULL, algo = raid6_recov_algos; *algo; algo++) in raid6_choose_recov()
140 if (!best || (*algo)->priority > best->priority) in raid6_choose_recov()
142 best = *algo; in raid6_choose_recov()
144 if (best) { in raid6_choose_recov()
145 raid6_2data_recov = best->data2; in raid6_choose_recov()
146 raid6_datap_recov = best->datap; in raid6_choose_recov()
148 pr_info("raid6: using %s recovery algorithm\n", best->name); in raid6_choose_recov()
152 return best; in raid6_choose_recov()
161 const struct raid6_calls *best; in raid6_choose_gen() local
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
H A Dshadow.c186 }, *mthd, *best = NULL; in nvbios_shadow() local
199 best = mthd; in nvbios_shadow()
206 if (!best && (best = mthd)) { in nvbios_shadow()
212 if (!best->score) { in nvbios_shadow()
219 /* scan all potential bios sources, looking for best image */ in nvbios_shadow()
220 if (!best || !best->score) { in nvbios_shadow()
221 for (mthd = mthds, best = mthd; mthd->func; mthd++) { in nvbios_shadow()
222 if (!mthd->skip || best->score < mthd->skip) { in nvbios_shadow()
224 if (mthd->score > best->score) in nvbios_shadow()
225 best = mthd; in nvbios_shadow()
[all …]
/linux/sound/pci/emu10k1/
H A Demu10k1_callback.c27 struct best_voice *best, int active_only);
84 struct best_voice best[V_END]; in snd_emu10k1_synth_get_voice() local
89 lookup_voices(emu, hw, best, 1); /* no OFF voices */ in snd_emu10k1_synth_get_voice()
91 if (best[i].voice >= 0) { in snd_emu10k1_synth_get_voice()
93 vp = &emu->voices[best[i].voice]; in snd_emu10k1_synth_get_voice()
206 * look up voice table - get the best voice in order of preference
211 struct best_voice *best, int active_only) in lookup_voices() argument
218 best[i].time = (unsigned int)-1; /* XXX MAX_?INT really */ in lookup_voices()
219 best[i].voice = -1; in lookup_voices()
223 * Go through them all and get a best one to use. in lookup_voices()
[all …]
/linux/arch/x86/kvm/
H A Dcpuid.h140 struct kvm_cpuid_entry2 *best; in guest_cpuid_family() local
142 best = kvm_find_cpuid_entry(vcpu, 0x1); in guest_cpuid_family()
143 if (!best) in guest_cpuid_family()
146 return x86_family(best->eax); in guest_cpuid_family()
151 struct kvm_cpuid_entry2 *best; in guest_cpuid_model() local
153 best = kvm_find_cpuid_entry(vcpu, 0x1); in guest_cpuid_model()
154 if (!best) in guest_cpuid_model()
157 return x86_model(best->eax); in guest_cpuid_model()
167 struct kvm_cpuid_entry2 *best; in guest_cpuid_stepping() local
169 best = kvm_find_cpuid_entry(vcpu, 0x1); in guest_cpuid_stepping()
[all …]
/linux/fs/jffs2/
H A Dcompr.c35 struct jffs2_compressor *best, uint32_t size, uint32_t bestsize) in jffs2_is_best_compression() argument
45 if ((best->compr != JFFS2_COMPR_LZO) && (bestsize > size)) in jffs2_is_best_compression()
154 struct jffs2_compressor *this, *best=NULL; in jffs2_compress() local
210 if (((!best_dlen) || jffs2_is_best_compression(this, best, *cdatalen, best_dlen)) in jffs2_compress()
214 best = this; in jffs2_compress()
221 output_buf = best->compr_buf; in jffs2_compress()
222 best->compr_buf = NULL; in jffs2_compress()
223 best->compr_buf_size = 0; in jffs2_compress()
224 best->stat_compr_blocks++; in jffs2_compress()
225 best->stat_compr_orig_size += best_slen; in jffs2_compress()
[all …]
/linux/include/linux/
H A Dcpufreq.h807 int idx, best = -1; in cpufreq_table_find_index_al() local
815 best = idx; in cpufreq_table_find_index_al()
818 return best; in cpufreq_table_find_index_al()
829 int idx, best = -1; in cpufreq_table_find_index_dl() local
838 best = idx; in cpufreq_table_find_index_dl()
843 if (best == -1) in cpufreq_table_find_index_dl()
846 return best; in cpufreq_table_find_index_dl()
849 return best; in cpufreq_table_find_index_dl()
883 int idx, best = -1; in cpufreq_table_find_index_ah() local
892 best = idx; in cpufreq_table_find_index_ah()
[all …]
/linux/sound/isa/sb/
H A Demu8000_callback.c156 struct best { in get_voice() struct
159 } best[END]; in get_voice() local
160 struct best *bp; in get_voice()
165 best[i].time = (unsigned int)(-1); /* XXX MAX_?INT really */ in get_voice()
166 best[i].voice = -1; in get_voice()
170 * Go through them all and get a best one to use. in get_voice()
179 bp = best + OFF; in get_voice()
182 bp = best + RELEASED; in get_voice()
185 bp = best + OFF; in get_voice()
188 bp = best + PLAYING; in get_voice()
[all …]
/linux/drivers/md/
H A Ddm-ps-queue-length.c194 struct path_info *pi = NULL, *best = NULL; in ql_select_path() local
203 if (!best || in ql_select_path()
204 (atomic_read(&pi->qlen) < atomic_read(&best->qlen))) in ql_select_path()
205 best = pi; in ql_select_path()
207 if (!atomic_read(&best->qlen)) in ql_select_path()
211 if (!best) in ql_select_path()
215 list_move_tail(&best->list, &s->valid_paths); in ql_select_path()
217 ret = best->path; in ql_select_path()
H A Ddm-ps-service-time.c280 struct path_info *pi = NULL, *best = NULL; in st_select_path() local
289 if (!best || (st_compare_load(pi, best, nr_bytes) < 0)) in st_select_path()
290 best = pi; in st_select_path()
292 if (!best) in st_select_path()
296 list_move_tail(&best->list, &s->valid_paths); in st_select_path()
298 ret = best->path; in st_select_path()
H A Ddm-ps-historical-service-time.c13 * will never have the best estimated service time, or if the entire
434 struct path_info *pi = NULL, *best = NULL; in hst_select_path() local
444 if (!best || (hst_compare(pi, best, time_now, ps) < 0)) in hst_select_path()
445 best = pi; in hst_select_path()
448 if (!best) in hst_select_path()
452 list_move_tail(&best->list, &s->valid_paths); in hst_select_path()
454 ret = best->path; in hst_select_path()
/linux/arch/sh/kernel/
H A Dunwinder.c59 * select_unwinder - Select the best registered stack unwinder.
63 * Select the stack unwinder with the best rating. This is useful for
68 struct unwinder *best; in select_unwinder() local
73 best = list_entry(unwinder_list.next, struct unwinder, list); in select_unwinder()
74 if (best == curr_unwinder) in select_unwinder()
77 return best; in select_unwinder()
/linux/net/dccp/
H A Dqpolicy.c
/linux/drivers/clk/rockchip/
H A Dclk-half-divider.c14 unsigned long best, unsigned long flags) in _is_best_half_div() argument
17 return abs(rate - now) < abs(rate - best); in _is_best_half_div()
19 return now <= rate && now > best; in _is_best_half_div()
40 unsigned long parent_rate, best = 0, now, maxdiv; in clk_half_divider_bestdiv() local
80 if (_is_best_half_div(rate, now, best, flags)) { in clk_half_divider_bestdiv()
82 best = now; in clk_half_divider_bestdiv()
/linux/drivers/crypto/intel/qat/qat_common/
H A Dqat_crypto.c55 unsigned long best = ~0; in qat_crypto_get_instance_node() local
65 if (best > ctr) { in qat_crypto_get_instance_node()
67 best = ctr; in qat_crypto_get_instance_node()
87 best = ~0; in qat_crypto_get_instance_node()
92 if (best > ctr) { in qat_crypto_get_instance_node()
94 best = ctr; in qat_crypto_get_instance_node()
/linux/drivers/acpi/numa/
H A Dhmat.c45 * selecting the best performing node.
683 static bool hmat_update_best(u8 type, u32 value, u32 *best) in hmat_update_best() argument
694 if (!*best || *best > value) { in hmat_update_best()
695 *best = value; in hmat_update_best()
702 if (!*best || *best < value) { in hmat_update_best()
703 *best = value; in hmat_update_best()
743 u32 best = 0; in hmat_update_target_attrs() local
755 * only that one. Otherwise, find the best performance attributes and in hmat_update_target_attrs()
785 best = 0; in hmat_update_target_attrs()
799 if (hmat_update_best(loc->hmat_loc->data_type, value, &best)) in hmat_update_target_attrs()
[all …]
/linux/drivers/clk/sophgo/
H A Dclk-sg2042-pll.c246 * @best: output to hold calculated combination of REFDIV/FBDIV/PSTDIV1/POSTDIV2
252 static int sg2042_get_pll_ctl_setting(struct sg2042_pll_ctrl *best, in sg2042_get_pll_ctl_setting() argument
272 memset(best, 0, sizeof(struct sg2042_pll_ctrl)); in sg2042_get_pll_ctl_setting()
305 if (abs_diff(foutpostdiv, req_rate) < abs_diff(best->freq, req_rate)) { in sg2042_get_pll_ctl_setting()
306 best->freq = foutpostdiv; in sg2042_get_pll_ctl_setting()
307 best->refdiv = refdiv; in sg2042_get_pll_ctl_setting()
308 best->fbdiv = fbdiv; in sg2042_get_pll_ctl_setting()
309 best->postdiv1 = postdiv1; in sg2042_get_pll_ctl_setting()
310 best->postdiv2 = postdiv2; in sg2042_get_pll_ctl_setting()
318 if (best->freq == 0) in sg2042_get_pll_ctl_setting()
/linux/Documentation/userspace-api/gpio/
H A Dgpio-get-linehandle-ioctl.rst90 - treat the feature as best effort
100 Bias best effort
105 Bias is treated as best effort to allow userspace to apply the same
116 emulated, or is best effort.
H A Dgpio-v2-get-line-ioctl.rst107 - treat the feature as best effort
117 Bias best effort
124 Bias is treated as best effort to allow userspace to apply the same
143 emulated, or is best effort.
/linux/drivers/clk/
H A Dclk-multiplier.c57 unsigned long best, unsigned long flags) in __is_best_rate() argument
60 return abs(rate - new) < abs(rate - best); in __is_best_rate()
62 return new >= rate && new < best; in __is_best_rate()
93 * This is the best case for us if we have a in __bestmult()
/linux/drivers/leds/
H A Dleds-tca6507.c231 /* Best yet */ in choose_times()
395 * bank. If none perfect, choose best. Count in led_prepare()
399 int best = -1;/* full-on */ in led_prepare() local
411 best = i; in led_prepare()
417 best = i; in led_prepare()
420 if (best == -1) { in led_prepare()
421 /* Best brightness is full-on */ in led_prepare()
427 if (!tca->bank[best].level_use) in led_prepare()
428 set_level(tca, best, level); in led_prepare()
430 tca->bank[best].level_use++; in led_prepare()
[all …]
/linux/arch/parisc/
H A DKconfig286 This lets you select the page size of the kernel. For best
287 performance, a page size of 16KB is recommended. For best
292 4KB For best 32bit compatibility
293 16KB For best performance
294 64KB For best performance, might give more overhead.
/linux/drivers/clk/renesas/
H A Drzv2h-cpg.c220 * rzv2h_get_pll_pars - Finds the best combination of PLL parameters
224 * @pars: Pointer to the structure where the best calculated PLL parameters values
228 * This function calculates the best set of PLL parameters (M, K, P, S) to achieve
232 * determine the best solution. The best solution is one that minimizes the error
242 struct rzv2h_pll_pars p, best; in rzv2h_get_pll_pars() local
248 /* Initialize best error to maximum possible value */ in rzv2h_get_pll_pars()
249 best.error_millihz = S64_MAX; in rzv2h_get_pll_pars()
354 /* Update best match if error is smaller */ in rzv2h_get_pll_pars()
355 if (abs(best.error_millihz) > abs(p.error_millihz)) in rzv2h_get_pll_pars()
356 best = p; in rzv2h_get_pll_pars()
[all …]
/linux/kernel/bpf/
H A Drange_tree.c14 * __find_range() performs binary search and best fit algorithm to find the
54 /* Find range that fits best to requested size */
58 struct range_node *best = NULL; in __find_range()
64 best = rn; in __find_range()
71 return best; in __find_range()
59 struct range_node *best = NULL; __find_range() local
/linux/drivers/clk/versatile/
H A Dicst.c51 unsigned int i = 0, rd, best = (unsigned int)-1; in icst_hz_to_vco() local
90 if ((unsigned)f_diff < best) { in icst_hz_to_vco()
95 best = f_diff; in icst_hz_to_vco()
/linux/sound/soc/codecs/
H A Dwm8731.c71 int val, i, best; in wm8731_set_deemph() local
77 best = 1; in wm8731_set_deemph()
80 abs(wm8731_deemph[best] - wm8731->playback_fs)) in wm8731_set_deemph()
81 best = i; in wm8731_set_deemph()
84 val = best << 1; in wm8731_set_deemph()
86 best = 0; in wm8731_set_deemph()
91 best, wm8731_deemph[best]); in wm8731_set_deemph()

12345678910>>...45