Home
last modified time | relevance | path

Searched refs:best (Results 1 – 200 of 298) sorted by relevance

12

/linux-4.4.14/arch/x86/kvm/
Dcpuid.h32 struct kvm_cpuid_entry2 *best; in guest_cpuid_has_xsave() local
37 best = kvm_find_cpuid_entry(vcpu, 1, 0); in guest_cpuid_has_xsave()
38 return best && (best->ecx & bit(X86_FEATURE_XSAVE)); in guest_cpuid_has_xsave()
43 struct kvm_cpuid_entry2 *best; in guest_cpuid_has_mtrr() local
45 best = kvm_find_cpuid_entry(vcpu, 1, 0); in guest_cpuid_has_mtrr()
46 return best && (best->edx & bit(X86_FEATURE_MTRR)); in guest_cpuid_has_mtrr()
51 struct kvm_cpuid_entry2 *best; in guest_cpuid_has_tsc_adjust() local
53 best = kvm_find_cpuid_entry(vcpu, 7, 0); in guest_cpuid_has_tsc_adjust()
54 return best && (best->ebx & bit(X86_FEATURE_TSC_ADJUST)); in guest_cpuid_has_tsc_adjust()
59 struct kvm_cpuid_entry2 *best; in guest_cpuid_has_smep() local
[all …]
Dcpuid.c63 struct kvm_cpuid_entry2 *best; in kvm_update_cpuid() local
66 best = kvm_find_cpuid_entry(vcpu, 1, 0); in kvm_update_cpuid()
67 if (!best) in kvm_update_cpuid()
71 if (cpu_has_xsave && best->function == 0x1) { in kvm_update_cpuid()
72 best->ecx &= ~F(OSXSAVE); in kvm_update_cpuid()
74 best->ecx |= F(OSXSAVE); in kvm_update_cpuid()
78 if (best->ecx & F(TSC_DEADLINE_TIMER)) in kvm_update_cpuid()
84 best = kvm_find_cpuid_entry(vcpu, 0xD, 0); in kvm_update_cpuid()
85 if (!best) { in kvm_update_cpuid()
90 (best->eax | ((u64)best->edx << 32)) & in kvm_update_cpuid()
[all …]
Dvmx.c2467 struct kvm_cpuid_entry2 *best = kvm_find_cpuid_entry(vcpu, 1, 0); in guest_cpuid_has_vmx() local
2468 return best && (best->ecx & (1 << (X86_FEATURE_VMX & 31))); in guest_cpuid_has_vmx()
8940 struct kvm_cpuid_entry2 *best; in vmx_cpuid_update() local
8960 best = kvm_find_cpuid_entry(vcpu, 0x7, 0); in vmx_cpuid_update()
8962 (!best || !(best->ebx & bit(X86_FEATURE_INVPCID)) || in vmx_cpuid_update()
8966 if (best) in vmx_cpuid_update()
8967 best->ebx &= ~bit(X86_FEATURE_INVPCID); in vmx_cpuid_update()
/linux-4.4.14/lib/raid6/
Dalgos.c113 const struct raid6_recov_calls *best; in raid6_choose_recov() local
115 for (best = NULL, algo = raid6_recov_algos; *algo; algo++) in raid6_choose_recov()
116 if (!best || (*algo)->priority > best->priority) in raid6_choose_recov()
118 best = *algo; in raid6_choose_recov()
120 if (best) { in raid6_choose_recov()
121 raid6_2data_recov = best->data2; in raid6_choose_recov()
122 raid6_datap_recov = best->datap; in raid6_choose_recov()
124 pr_info("raid6: using %s recovery algorithm\n", best->name); in raid6_choose_recov()
128 return best; in raid6_choose_recov()
137 const struct raid6_calls *best; in raid6_choose_gen() local
[all …]
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
Dshadow.c177 }, *mthd, *best = NULL; in nvbios_shadow() local
190 best = mthd; in nvbios_shadow()
197 if (!best && (best = mthd)) { in nvbios_shadow()
203 if (!best->score) { in nvbios_shadow()
211 if (!best || !best->score) { in nvbios_shadow()
212 for (mthd = mthds, best = mthd; mthd->func; mthd++) { in nvbios_shadow()
213 if (!mthd->skip || best->score < mthd->skip) { in nvbios_shadow()
215 if (mthd->score > best->score) in nvbios_shadow()
216 best = mthd; in nvbios_shadow()
224 if (mthd != best) in nvbios_shadow()
[all …]
/linux-4.4.14/drivers/usb/core/
Dgeneric.c48 struct usb_host_config *c, *best; in usb_choose_configuration() local
53 best = NULL; in usb_choose_configuration()
118 best = c; in usb_choose_configuration()
130 best = c; in usb_choose_configuration()
136 else if (!best) in usb_choose_configuration()
137 best = c; in usb_choose_configuration()
145 if (best) { in usb_choose_configuration()
146 i = best->desc.bConfigurationValue; in usb_choose_configuration()
/linux-4.4.14/fs/jffs2/
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-4.4.14/sound/pci/emu10k1/
Demu10k1_callback.c40 struct best_voice *best, int active_only);
96 struct best_voice best[V_END]; in snd_emu10k1_synth_get_voice() local
101 lookup_voices(emu, hw, best, 1); /* no OFF voices */ in snd_emu10k1_synth_get_voice()
103 if (best[i].voice >= 0) { in snd_emu10k1_synth_get_voice()
105 vp = &emu->voices[best[i].voice]; in snd_emu10k1_synth_get_voice()
222 struct best_voice *best, int active_only) in lookup_voices() argument
229 best[i].time = (unsigned int)-1; /* XXX MAX_?INT really */ in lookup_voices()
230 best[i].voice = -1; in lookup_voices()
246 bp = best + V_FREE; in lookup_voices()
248 bp = best + V_OFF; in lookup_voices()
[all …]
/linux-4.4.14/drivers/gpu/drm/omapdrm/
Dtcm-sita.c62 struct score *best);
280 struct score best = {{0}, {0}, {0}, 0}; in scan_r2l_t2b() local
312 CR_R2L_T2B, &best)) in scan_r2l_t2b()
329 if (!best.a.tcm) in scan_r2l_t2b()
332 assign(area, best.a.p0.x, best.a.p0.y, best.a.p1.x, best.a.p1.y); in scan_r2l_t2b()
354 struct score best = {{0}, {0}, {0}, 0}; in scan_l2r_t2b() local
388 CR_L2R_T2B, &best)) in scan_l2r_t2b()
405 if (!best.a.tcm) in scan_l2r_t2b()
408 assign(area, best.a.p0.x, best.a.p0.y, best.a.p1.x, best.a.p1.y); in scan_l2r_t2b()
604 struct score *best) in update_candidate() argument
[all …]
/linux-4.4.14/drivers/md/
Ddm-queue-length.c175 struct path_info *pi = NULL, *best = NULL; in ql_select_path() local
184 if (!best || in ql_select_path()
185 (atomic_read(&pi->qlen) < atomic_read(&best->qlen))) in ql_select_path()
186 best = pi; in ql_select_path()
188 if (!atomic_read(&best->qlen)) in ql_select_path()
192 if (!best) in ql_select_path()
195 *repeat_count = best->repeat_count; in ql_select_path()
197 return best->path; in ql_select_path()
Ddm-service-time.c262 struct path_info *pi = NULL, *best = NULL; in st_select_path() local
271 if (!best || (st_compare_load(pi, best, nr_bytes) < 0)) in st_select_path()
272 best = pi; in st_select_path()
274 if (!best) in st_select_path()
277 *repeat_count = best->repeat_count; in st_select_path()
279 return best->path; in st_select_path()
/linux-4.4.14/drivers/video/fbdev/core/
Dmodedb.c702 u32 best, diff, tdiff; in fb_find_mode() local
817 best = -1; in fb_find_mode()
827 best = i; in fb_find_mode()
831 if (best != -1) { in fb_find_mode()
832 fb_try_mode(var, info, &db[best], bpp); in fb_find_mode()
837 best = -1; in fb_find_mode()
854 best = i; in fb_find_mode()
858 if (best != -1) { in fb_find_mode()
859 fb_try_mode(var, info, &db[best], bpp); in fb_find_mode()
992 struct fb_videomode *mode, *best = NULL; in fb_find_best_mode() local
[all …]
/linux-4.4.14/drivers/gpu/drm/
Ddrm_vma_manager.c145 struct drm_vma_offset_node *node, *best; in drm_vma_offset_lookup_locked() local
150 best = NULL; in drm_vma_offset_lookup_locked()
157 best = node; in drm_vma_offset_lookup_locked()
166 if (best) { in drm_vma_offset_lookup_locked()
167 offset = best->vm_node.start + best->vm_node.size; in drm_vma_offset_lookup_locked()
169 best = NULL; in drm_vma_offset_lookup_locked()
172 return best; in drm_vma_offset_lookup_locked()
Ddrm_mm.c420 struct drm_mm_node *best; in drm_mm_search_free_generic() local
427 best = NULL; in drm_mm_search_free_generic()
447 best = entry; in drm_mm_search_free_generic()
452 return best; in drm_mm_search_free_generic()
464 struct drm_mm_node *best; in drm_mm_search_free_in_range_generic() local
471 best = NULL; in drm_mm_search_free_in_range_generic()
496 best = entry; in drm_mm_search_free_in_range_generic()
501 return best; in drm_mm_search_free_in_range_generic()
/linux-4.4.14/kernel/debug/kdb/
Dkdb_support.c748 struct debug_alloc_header *best, *bestprev, *prev, *h; in debug_kmalloc() local
760 prev = best = bestprev = NULL; in debug_kmalloc()
762 if (h->size >= size && (!best || h->size < best->size)) { in debug_kmalloc()
763 best = h; in debug_kmalloc()
773 if (!best) in debug_kmalloc()
775 rem = best->size - size; in debug_kmalloc()
777 if (best->next == 0 && bestprev == NULL && rem < dah_overhead) in debug_kmalloc()
780 best->size = size; in debug_kmalloc()
781 h_offset = ((char *)best - debug_alloc_pool) + in debug_kmalloc()
782 dah_overhead + best->size; in debug_kmalloc()
[all …]
/linux-4.4.14/drivers/net/bonding/
Dbond_3ad.c1472 static struct aggregator *ad_agg_selection_test(struct aggregator *best, in ad_agg_selection_test() argument
1499 if (!best) in ad_agg_selection_test()
1502 if (!curr->is_individual && best->is_individual) in ad_agg_selection_test()
1505 if (curr->is_individual && !best->is_individual) in ad_agg_selection_test()
1506 return best; in ad_agg_selection_test()
1508 if (__agg_has_partner(curr) && !__agg_has_partner(best)) in ad_agg_selection_test()
1511 if (!__agg_has_partner(curr) && __agg_has_partner(best)) in ad_agg_selection_test()
1512 return best; in ad_agg_selection_test()
1516 if (curr->num_of_ports > best->num_of_ports) in ad_agg_selection_test()
1519 if (curr->num_of_ports < best->num_of_ports) in ad_agg_selection_test()
[all …]
/linux-4.4.14/net/dccp/
Dqpolicy.c41 struct sk_buff *skb, *best = NULL; in qpolicy_prio_best_skb() local
44 if (best == NULL || skb->priority > best->priority) in qpolicy_prio_best_skb()
45 best = skb; in qpolicy_prio_best_skb()
46 return best; in qpolicy_prio_best_skb()
/linux-4.4.14/arch/sh/kernel/
Dunwinder.c67 struct unwinder *best; in select_unwinder() local
72 best = list_entry(unwinder_list.next, struct unwinder, list); in select_unwinder()
73 if (best == curr_unwinder) in select_unwinder()
76 return best; in select_unwinder()
/linux-4.4.14/sound/isa/sb/
Demu8000_callback.c169 struct best { in get_voice() struct
172 } best[END]; in get_voice() local
173 struct best *bp; in get_voice()
178 best[i].time = (unsigned int)(-1); /* XXX MAX_?INT really */ in get_voice()
179 best[i].voice = -1; in get_voice()
192 bp = best + OFF; in get_voice()
195 bp = best + RELEASED; in get_voice()
198 bp = best + OFF; in get_voice()
201 bp = best + PLAYING; in get_voice()
210 bp = best + OFF; in get_voice()
[all …]
/linux-4.4.14/drivers/crypto/qat/qat_common/
Dqat_crypto.c102 unsigned long best = ~0; in qat_crypto_get_instance_node() local
115 if (best > ctr) { in qat_crypto_get_instance_node()
117 best = ctr; in qat_crypto_get_instance_node()
140 best = ~0; in qat_crypto_get_instance_node()
147 if (best > ctr) { in qat_crypto_get_instance_node()
149 best = ctr; in qat_crypto_get_instance_node()
/linux-4.4.14/sound/soc/codecs/
Dwm9081.c1000 int ret, i, best, best_val, cur_val; in wm9081_hw_params() local
1057 best = 0; in wm9081_hw_params()
1064 best = i; in wm9081_hw_params()
1069 clk_sys_rates[best].ratio); in wm9081_hw_params()
1070 clk_ctrl2 |= (clk_sys_rates[best].clk_sys_rate in wm9081_hw_params()
1074 best = 0; in wm9081_hw_params()
1080 best = i; in wm9081_hw_params()
1085 sample_rates[best].rate); in wm9081_hw_params()
1086 clk_ctrl2 |= (sample_rates[best].sample_rate in wm9081_hw_params()
1090 best = 0; in wm9081_hw_params()
[all …]
Dwm8904.c426 int best, best_val, save, i, cfg; in wm8904_set_retune_mobile() local
434 best = 0; in wm8904_set_retune_mobile()
441 best = i; in wm8904_set_retune_mobile()
448 pdata->retune_mobile_cfgs[best].name, in wm8904_set_retune_mobile()
449 pdata->retune_mobile_cfgs[best].rate, in wm8904_set_retune_mobile()
459 pdata->retune_mobile_cfgs[best].regs[i]); in wm8904_set_retune_mobile()
498 int val, i, best; in wm8904_set_deemph() local
504 best = 1; in wm8904_set_deemph()
507 abs(deemph_settings[best] - wm8904->fs)) in wm8904_set_deemph()
508 best = i; in wm8904_set_deemph()
[all …]
Dwm8993.c1191 int ret, i, best, best_val, cur_val; in wm8993_hw_params() local
1242 best = 0; in wm8993_hw_params()
1249 best = i; in wm8993_hw_params()
1254 clk_sys_rates[best].ratio); in wm8993_hw_params()
1255 clocking3 |= (clk_sys_rates[best].clk_sys_rate in wm8993_hw_params()
1259 best = 0; in wm8993_hw_params()
1265 best = i; in wm8993_hw_params()
1270 sample_rates[best].rate); in wm8993_hw_params()
1271 clocking3 |= (sample_rates[best].sample_rate in wm8993_hw_params()
1275 best = 0; in wm8993_hw_params()
[all …]
Dwm8731.c94 int val, i, best; in wm8731_set_deemph() local
100 best = 1; in wm8731_set_deemph()
103 abs(wm8731_deemph[best] - wm8731->playback_fs)) in wm8731_set_deemph()
104 best = i; in wm8731_set_deemph()
107 val = best << 1; in wm8731_set_deemph()
109 best = 0; in wm8731_set_deemph()
114 best, wm8731_deemph[best]); in wm8731_set_deemph()
Dak4641.c56 int i, best = 0; in ak4641_set_deemph() local
62 abs(deemph_settings[best] - ak4641->playback_fs)) in ak4641_set_deemph()
63 best = i; in ak4641_set_deemph()
66 best = i; in ak4641_set_deemph()
69 dev_dbg(codec->dev, "Set deemphasis %d\n", best); in ak4641_set_deemph()
71 return snd_soc_update_bits(codec, AK4641_DAC, 0x3, best); in ak4641_set_deemph()
Dwm8978.c733 int i, best = 0; in wm8978_hw_params() local
802 best = i; in wm8978_hw_params()
810 best = wm8978->mclk_idx; in wm8978_hw_params()
816 f_sel * mclk_denominator[best] / mclk_numerator[best] / 256, in wm8978_hw_params()
821 params_width(params), params_rate(params), best); in wm8978_hw_params()
824 snd_soc_update_bits(codec, WM8978_CLOCKING, 0xe0, best << 5); in wm8978_hw_params()
Des8328.c101 int val, i, best; in es8328_set_deemph() local
108 best = 0; in es8328_set_deemph()
111 abs(deemph_settings[best].rate - es8328->playback_fs)) in es8328_set_deemph()
112 best = i; in es8328_set_deemph()
115 val = deemph_settings[best].val; in es8328_set_deemph()
Dmax98088.c1401 int best, best_val, save, i, sel, fs; in max98088_setup_eq1() local
1413 best = 0; in max98088_setup_eq1()
1418 best = i; in max98088_setup_eq1()
1424 pdata->eq_cfg[best].name, in max98088_setup_eq1()
1425 pdata->eq_cfg[best].rate, fs); in max98088_setup_eq1()
1448 int best, best_val, save, i, sel, fs; in max98088_setup_eq2() local
1460 best = 0; in max98088_setup_eq2()
1465 best = i; in max98088_setup_eq2()
1471 pdata->eq_cfg[best].name, in max98088_setup_eq2()
1472 pdata->eq_cfg[best].rate, fs); in max98088_setup_eq2()
Dwm8961.c510 int i, best, target, fs; in wm8961_hw_params() local
521 best = 0; in wm8961_hw_params()
524 abs(wm8961_srate[best].rate - fs)) in wm8961_hw_params()
525 best = i; in wm8961_hw_params()
529 reg |= wm8961_srate[best].val; in wm8961_hw_params()
532 wm8961_srate[best].rate, fs); in wm8961_hw_params()
Dmax98095.c1504 int fs, best, best_val, i; in max98095_put_eq_enum() local
1521 best = 0; in max98095_put_eq_enum()
1526 best = i; in max98095_put_eq_enum()
1532 pdata->eq_cfg[best].name, in max98095_put_eq_enum()
1533 pdata->eq_cfg[best].rate, fs); in max98095_put_eq_enum()
1535 coef_set = &pdata->eq_cfg[best]; in max98095_put_eq_enum()
1658 int fs, best, best_val, i; in max98095_put_bq_enum() local
1675 best = 0; in max98095_put_bq_enum()
1680 best = i; in max98095_put_bq_enum()
1686 pdata->bq_cfg[best].name, in max98095_put_bq_enum()
[all …]
Dwm8996.c341 int base, best, best_val, save, i, cfg, iface; in wm8996_set_retune_mobile() local
370 best = 0; in wm8996_set_retune_mobile()
377 best = i; in wm8996_set_retune_mobile()
385 pdata->retune_mobile_cfgs[best].name, in wm8996_set_retune_mobile()
386 pdata->retune_mobile_cfgs[best].rate, in wm8996_set_retune_mobile()
395 for (i = 0; i < ARRAY_SIZE(pdata->retune_mobile_cfgs[best].regs); i++) in wm8996_set_retune_mobile()
397 pdata->retune_mobile_cfgs[best].regs[i]); in wm8996_set_retune_mobile()
1538 int aif, best, cur_val, bclk_rate, bclk_reg, i; in wm8996_update_bclk() local
1559 best = 0; in wm8996_update_bclk()
1564 best = i; in wm8996_update_bclk()
[all …]
Dwm8994.c113 int best, i, sysclk, val; in wm8958_micd_set_rate() local
137 best = 0; in wm8958_micd_set_rate()
142 abs(rates[best].sysclk - sysclk)) in wm8958_micd_set_rate()
143 best = i; in wm8958_micd_set_rate()
144 else if (rates[best].idle != idle) in wm8958_micd_set_rate()
145 best = i; in wm8958_micd_set_rate()
148 val = rates[best].start << WM8958_MICD_BIAS_STARTTIME_SHIFT in wm8958_micd_set_rate()
149 | rates[best].rate << WM8958_MICD_RATE_SHIFT; in wm8958_micd_set_rate()
152 rates[best].start, rates[best].rate, sysclk, in wm8958_micd_set_rate()
400 int iface, best, best_val, save, i, cfg; in wm8994_set_retune_mobile() local
[all …]
Dwm8955.c366 int val, i, best; in wm8955_set_deemph() local
372 best = 1; in wm8955_set_deemph()
375 abs(deemph_settings[best] - wm8955->fs)) in wm8955_set_deemph()
376 best = i; in wm8955_set_deemph()
379 val = best << WM8955_DEEMPH_SHIFT; in wm8955_set_deemph()
Dwm8995.c1558 int i, rate_val, best, best_val, cur_val; in wm8995_hw_params() local
1631 best = 1; in wm8995_hw_params()
1639 best = i; in wm8995_hw_params()
1642 rate_val |= best; in wm8995_hw_params()
1645 dai->id + 1, fs_ratios[best]); in wm8995_hw_params()
1653 best = 0; in wm8995_hw_params()
1659 best = i; in wm8995_hw_params()
1661 bclk |= best << WM8995_AIF1_BCLK_DIV_SHIFT; in wm8995_hw_params()
1663 bclk_rate = wm8995->aifclk[dai->id] * 10 / bclk_divs[best]; in wm8995_hw_params()
1665 bclk_divs[best], bclk_rate); in wm8995_hw_params()
Dwm8903.c413 int val, i, best; in wm8903_set_deemph() local
419 best = 1; in wm8903_set_deemph()
422 abs(wm8903_deemph[best] - wm8903->fs)) in wm8903_set_deemph()
423 best = i; in wm8903_set_deemph()
426 val = best << WM8903_DEEMPH_SHIFT; in wm8903_set_deemph()
428 best = 0; in wm8903_set_deemph()
433 best, wm8903_deemph[best]); in wm8903_set_deemph()
Dwm8960.c165 int val, i, best; in wm8960_set_deemph() local
171 best = 1; in wm8960_set_deemph()
174 abs(deemph_settings[best] - wm8960->lrclk)) in wm8960_set_deemph()
175 best = i; in wm8960_set_deemph()
178 val = best << 1; in wm8960_set_deemph()
Dcs42l52.c909 int best = 0; in cs42l52_beep_work() local
914 abs(cs42l52->beep_rate - beep_rates[best])) in cs42l52_beep_work()
915 best = i; in cs42l52_beep_work()
919 beep_rates[best], cs42l52->beep_rate); in cs42l52_beep_work()
921 val = (best << CS42L52_BEEP_RATE_SHIFT); in cs42l52_beep_work()
Dcs42l56.c983 int best = 0; in cs42l56_beep_work() local
988 abs(cs42l56->beep_rate - beep_freq[best])) in cs42l56_beep_work()
989 best = i; in cs42l56_beep_work()
993 beep_freq[best], cs42l56->beep_rate); in cs42l56_beep_work()
995 val = (best << CS42L56_BEEP_RATE_SHIFT); in cs42l56_beep_work()
Dwm8962.c3165 int best = 0; in wm8962_beep_work() local
3170 abs(wm8962->beep_rate - beep_rates[best])) in wm8962_beep_work()
3171 best = i; in wm8962_beep_work()
3175 beep_rates[best], wm8962->beep_rate); in wm8962_beep_work()
3177 reg = WM8962_BEEP_ENA | (best << WM8962_BEEP_RATE_SHIFT); in wm8962_beep_work()
/linux-4.4.14/arch/arm/common/
Dicst.c54 unsigned int i = 0, rd, best = (unsigned int)-1; in icst_hz_to_vco() local
93 if ((unsigned)f_diff < best) { in icst_hz_to_vco()
98 best = f_diff; in icst_hz_to_vco()
/linux-4.4.14/scripts/
Dkallsyms.c517 int i, best, bestprofit; in find_best_token() local
520 best = 0; in find_best_token()
524 best = i; in find_best_token()
528 return best; in find_best_token()
534 int i, best; in optimize_result() local
545 best = find_best_token(); in optimize_result()
546 if (token_profit[best] == 0) in optimize_result()
551 best_table[i][0] = best & 0xFF; in optimize_result()
552 best_table[i][1] = (best >> 8) & 0xFF; in optimize_result()
/linux-4.4.14/drivers/clk/
Dclk-multiplier.c45 unsigned long best, unsigned long flags) in __is_best_rate() argument
48 return abs(rate - new) < abs(rate - best); in __is_best_rate()
50 return new >= rate && new < best; in __is_best_rate()
Dclk-divider.c258 unsigned long best, unsigned long flags) in _is_best_div() argument
261 return abs(rate - now) < abs(rate - best); in _is_best_div()
263 return now <= rate && now > best; in _is_best_div()
285 unsigned long parent_rate, best = 0, now, maxdiv; in clk_divider_bestdiv() local
322 if (_is_best_div(rate, now, best, flags)) { in clk_divider_bestdiv()
324 best = now; in clk_divider_bestdiv()
Dclk-wm831x.c147 int best = 0; in wm831x_fll_round_rate() local
152 abs(wm831x_fll_auto_rates[best] - rate)) in wm831x_fll_round_rate()
153 best = i; in wm831x_fll_round_rate()
155 return wm831x_fll_auto_rates[best]; in wm831x_fll_round_rate()
Dclk.c445 unsigned long best, unsigned long flags) in mux_is_better_rate() argument
448 return abs(now - rate) < abs(best - rate); in mux_is_better_rate()
450 return now <= rate && now > best; in mux_is_better_rate()
459 unsigned long best = 0; in clk_mux_determine_rate_flags() local
471 best = parent_req.rate; in clk_mux_determine_rate_flags()
473 best = clk_core_get_rate_nolock(parent); in clk_mux_determine_rate_flags()
475 best = clk_core_get_rate_nolock(core); in clk_mux_determine_rate_flags()
498 best, flags)) { in clk_mux_determine_rate_flags()
500 best = parent_req.rate; in clk_mux_determine_rate_flags()
510 req->best_parent_rate = best; in clk_mux_determine_rate_flags()
[all …]
DKconfig117 divider to best approximate the desired output.
/linux-4.4.14/drivers/leds/
Dleds-tca6507.c411 int best = -1;/* full-on */ in led_prepare() local
423 best = i; in led_prepare()
429 best = i; in led_prepare()
432 if (best == -1) { in led_prepare()
439 if (!tca->bank[best].level_use) in led_prepare()
440 set_level(tca, best, level); in led_prepare()
442 tca->bank[best].level_use++; in led_prepare()
443 led->bank = best; in led_prepare()
444 set_select(tca, led->num, bank_source[best]); in led_prepare()
445 led->led_cdev.brightness = TO_BRIGHT(tca->bank[best].level); in led_prepare()
/linux-4.4.14/sound/soc/atmel/
Datmel-classd.c381 int i, best, best_val, cur_val, ret; in atmel_classd_codec_dai_hw_params() local
386 best = 0; in atmel_classd_codec_dai_hw_params()
392 best = i; in atmel_classd_codec_dai_hw_params()
399 sample_rates[best].rate, sample_rates[best].aclk_rate); in atmel_classd_codec_dai_hw_params()
404 ret = clk_set_rate(dd->aclk, sample_rates[best].aclk_rate); in atmel_classd_codec_dai_hw_params()
409 val = (sample_rates[best].dsp_clk << CLASSD_INTPMR_DSP_CLK_FREQ_SHIFT) in atmel_classd_codec_dai_hw_params()
410 | (sample_rates[best].sample_rate << CLASSD_INTPMR_FRAME_SHIFT); in atmel_classd_codec_dai_hw_params()
/linux-4.4.14/sound/drivers/opl3/
Dopl3_midi.c161 struct best { in opl3_get_voice() struct
164 } best[END]; in opl3_get_voice() local
165 struct best *bp; in opl3_get_voice()
168 best[i].time = (unsigned int)(-1); /* XXX MAX_?INT really */ in opl3_get_voice()
169 best[i].voice = -1; in opl3_get_voice()
182 bp = best; in opl3_get_voice()
223 if (best[i].voice >= 0) { in opl3_get_voice()
227 best[i].voice); in opl3_get_voice()
229 return best[i].voice; in opl3_get_voice()
/linux-4.4.14/kernel/time/
Dclocksource.c553 struct clocksource *best, *cs; in __clocksource_select() local
556 best = clocksource_find_best(oneshot, skipcur); in __clocksource_select()
557 if (!best) in __clocksource_select()
578 best = cs; in __clocksource_select()
582 if (curr_clocksource != best && !timekeeping_notify(best)) { in __clocksource_select()
583 pr_info("Switched to clocksource %s\n", best->name); in __clocksource_select()
584 curr_clocksource = best; in __clocksource_select()
/linux-4.4.14/drivers/media/platform/
Dsh_vou.c525 unsigned int best_err = UINT_MAX, best = 0, img_height_max; in vou_adjust_input() local
553 best = found; in vou_adjust_input()
559 geo->in_width = best; in vou_adjust_input()
578 best = found; in vou_adjust_input()
584 geo->in_height = best; in vou_adjust_input()
594 unsigned int best_err = UINT_MAX, best = geo->in_width, in vou_adjust_output() local
622 best = found; in vou_adjust_output()
628 geo->output.width = best; in vou_adjust_output()
630 if (geo->output.left + best > width_max) in vou_adjust_output()
631 geo->output.left = width_max - best; in vou_adjust_output()
[all …]
/linux-4.4.14/drivers/base/
Dmap.c99 unsigned long best = ~0UL; in kobj_lookup() local
110 if (p->range - 1 >= best) in kobj_lookup()
117 best = p->range - 1; in kobj_lookup()
/linux-4.4.14/drivers/video/fbdev/via/
Dviamode.c357 const struct fb_videomode *best = NULL; in get_best_mode() local
364 if (!best || abs(modes[i].refresh - refresh) < in get_best_mode()
365 abs(best->refresh - refresh)) in get_best_mode()
366 best = &modes[i]; in get_best_mode()
369 return best; in get_best_mode()
Dhw.c1391 struct via_pll_config cur, up, down, best = {0, 1, 0}; in get_pll_config() local
1414 if (f < abs(get_pll_output_frequency(f0, best) - clk)) in get_pll_config()
1415 best = cur; in get_pll_config()
1418 return best; in get_pll_config()
2015 const struct fb_videomode *best; in viafb_get_refresh() local
2017 best = viafb_get_best_mode(hres, vres, long_refresh); in viafb_get_refresh()
2018 if (!best) in viafb_get_refresh()
2021 if (abs(best->refresh - long_refresh) > 3) { in viafb_get_refresh()
2028 return best->refresh; in viafb_get_refresh()
/linux-4.4.14/drivers/gpu/drm/i915/
Dintel_ddi.c885 struct hsw_wrpll_rnp *best) in hsw_wrpll_update_rnp() argument
890 if (best->p == 0) { in hsw_wrpll_update_rnp()
891 best->p = p; in hsw_wrpll_update_rnp()
892 best->n2 = n2; in hsw_wrpll_update_rnp()
893 best->r2 = r2; in hsw_wrpll_update_rnp()
912 b = freq2k * budget * best->p * best->r2; in hsw_wrpll_update_rnp()
914 diff_best = abs_diff(freq2k * best->p * best->r2, in hsw_wrpll_update_rnp()
915 LC_FREQ_2K * best->n2); in hsw_wrpll_update_rnp()
921 if (best->p * best->r2 * diff < p * r2 * diff_best) { in hsw_wrpll_update_rnp()
922 best->p = p; in hsw_wrpll_update_rnp()
[all …]
/linux-4.4.14/drivers/sh/clk/
Dcore.c562 struct cpufreq_frequency_table *freq, *best = NULL; in clk_round_parent() local
579 best = freq; in clk_round_parent()
599 best = freq; in clk_round_parent()
619 best = freq; in clk_round_parent()
626 best = freq; in clk_round_parent()
633 *best_freq, best->frequency); in clk_round_parent()
640 *parent_freq = best->frequency; in clk_round_parent()
/linux-4.4.14/drivers/mtd/
Dftl.c610 uint32_t best; in reclaim_block() local
616 best = 0xffffffff; xfer = 0xffff; in reclaim_block()
639 if (part->XferInfo[i].EraseCount <= best) { in reclaim_block()
640 best = part->XferInfo[i].EraseCount; in reclaim_block()
670 best = 0xffffffff; in reclaim_block()
672 if (part->EUNInfo[i].EraseCount <= best) { in reclaim_block()
673 best = part->EUNInfo[i].EraseCount; in reclaim_block()
677 best = 0; in reclaim_block()
679 if (part->EUNInfo[i].Deleted >= best) { in reclaim_block()
680 best = part->EUNInfo[i].Deleted; in reclaim_block()
[all …]
/linux-4.4.14/drivers/media/v4l2-core/
Dv4l2-common.c380 const struct v4l2_frmsize_discrete *size, *best = NULL; in v4l2_find_nearest_format() local
383 return best; in v4l2_find_nearest_format()
389 best = size; in v4l2_find_nearest_format()
395 return best; in v4l2_find_nearest_format()
/linux-4.4.14/drivers/block/paride/
Dparide.c277 int best, range; in pi_probe_mode() local
290 best = -1; in pi_probe_mode()
299 best = pi->mode; in pi_probe_mode()
301 pi->mode = best; in pi_probe_mode()
302 return (best > -1); in pi_probe_mode()
/linux-4.4.14/drivers/gpu/drm/radeon/
Dradeon_sa.c252 unsigned i, soffset, best, tmp; in radeon_sa_bo_next_hole() local
263 best = sa_manager->size * 2; in radeon_sa_bo_next_hole()
293 if (tmp < best) { in radeon_sa_bo_next_hole()
295 best = tmp; in radeon_sa_bo_next_hole()
Dradeon_vm.c180 struct radeon_fence *best[RADEON_NUM_RINGS] = {}; in radeon_vm_grab_id() local
205 if (radeon_fence_is_earlier(fence, best[fence->ring])) { in radeon_vm_grab_id()
206 best[fence->ring] = fence; in radeon_vm_grab_id()
/linux-4.4.14/drivers/clk/sunxi/
Dclk-factors.c87 unsigned long parent_rate, best = 0, child_rate, best_child_rate = 0; in clk_factors_determine_rate() local
105 best = parent_rate; in clk_factors_determine_rate()
114 req->best_parent_rate = best; in clk_factors_determine_rate()
Dclk-sunxi.c128 unsigned long parent_rate, best = 0, child_rate, best_child_rate = 0; in sun6i_ahb1_clk_determine_rate() local
146 best = parent_rate; in sun6i_ahb1_clk_determine_rate()
155 req->best_parent_rate = best; in sun6i_ahb1_clk_determine_rate()
/linux-4.4.14/net/batman-adv/
Doriginator.c878 struct batadv_neigh_node *best = NULL, *neigh; in batadv_find_best_neighbor() local
883 if (best && (bao->bat_neigh_cmp(neigh, if_outgoing, in batadv_find_best_neighbor()
884 best, if_outgoing) <= 0)) in batadv_find_best_neighbor()
890 if (best) in batadv_find_best_neighbor()
891 batadv_neigh_node_free_ref(best); in batadv_find_best_neighbor()
893 best = neigh; in batadv_find_best_neighbor()
897 return best; in batadv_find_best_neighbor()
/linux-4.4.14/Documentation/
DCodeOfConflict9 because everyone involved wants to see the best possible solution for
19 will work to resolve the issue to the best of their ability. For more
Dbad_memory.txt12 2) Buy new modules (best!) or try to exchange the memory
DManagementStyle113 they usually already think they have the answer to everything. The best
140 However, in order to prepare yourself as a kernel manager, it's best to
212 best way of taking the blame: do it for another guy. You'll feel good
DHOWTO49 been created over time based on what they have found to work best for
350 One of the best ways to put into practice your hacking skills is by fixing
354 bugs is one of the best ways to get merits among other developers, because
422 The goal of the kernel community is to provide the best possible kernel
445 In a community that is looking for the best technical solution possible,
Dadding-syscalls.txt15 kernel, there are other possibilities -- choose what fits best for your
38 this option is best for when the new function is closely analogous to
43 fcntl(2), this system call is a complicated multiplexor so is best reserved
169 To make new system calls easy to review, it's best to divide up the patchset
Dpi-futex.txt23 user-space applications. In the best-case, it can help achieve
DSubmittingDrivers57 It's best if the submitter and copyright owner
Dmagic-number.txt3 file, since it is best if the magic numbers used by various structures
Dpadata.txt159 might be best not to call it while there is work outstanding. Shutting
DSubmittingPatches252 looks better with a violation then its probably best left alone.
289 Linus directly, so typically you should do your best to -avoid-
430 (b) The contribution is based upon previous work that, to the best
728 best to avoid using In-Reply-To: to link to older versions of the
Dcrc32.txt25 the best error-detecting properties, this should correspond to the
Djava.txt365 To add a Java program to your path best put a symbolic link to the main
Demail-clients.txt44 xcutsel may work, but it's best to test this for yourself or just avoid
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/
Damdgpu_sa.c253 unsigned i, soffset, best, tmp; in amdgpu_sa_bo_next_hole() local
264 best = sa_manager->size * 2; in amdgpu_sa_bo_next_hole()
294 if (tmp < best) { in amdgpu_sa_bo_next_hole()
296 best = tmp; in amdgpu_sa_bo_next_hole()
Damdgpu_vm.c138 struct fence *best[AMDGPU_MAX_RINGS] = {}; in amdgpu_vm_grab_id() local
173 if (best[fring->idx] == NULL || in amdgpu_vm_grab_id()
174 fence_is_later(best[fring->idx], fence)) { in amdgpu_vm_grab_id()
175 best[fring->idx] = fence; in amdgpu_vm_grab_id()
/linux-4.4.14/sound/oss/
Dopl3.c1000 int i, p, best, first, avail, best_time = 0x7fffffff; in opl3_alloc_voice() local
1036 best = first; in opl3_alloc_voice()
1047 best = p; in opl3_alloc_voice()
1056 if (best < 0) in opl3_alloc_voice()
1057 best = 0; in opl3_alloc_voice()
1058 if (best > devc->nr_voice) in opl3_alloc_voice()
1059 best -= devc->nr_voice; in opl3_alloc_voice()
1061 return best; /* All devc->voc in use. Select the first one. */ in opl3_alloc_voice()
Dsequencer.c994 int i, best; in sequencer_open() local
996 best = -1; in sequencer_open()
998 if (sound_timer_devs[i] && sound_timer_devs[i]->priority > best) in sequencer_open()
1001 best = sound_timer_devs[i]->priority; in sequencer_open()
/linux-4.4.14/arch/parisc/
DKconfig215 This lets you select the page size of the kernel. For best
216 performance, a page size of 16KB is recommended. For best
221 4KB For best 32bit compatibility
222 16KB For best performance
223 64KB For best performance, might give more overhead.
/linux-4.4.14/drivers/md/bcache/
Djournal.c372 struct btree *b, *best; in btree_flush_write() local
375 best = NULL; in btree_flush_write()
379 if (!best) in btree_flush_write()
380 best = b; in btree_flush_write()
382 btree_current_write(best)->journal, in btree_flush_write()
384 best = b; in btree_flush_write()
388 b = best; in btree_flush_write()
/linux-4.4.14/drivers/net/wan/
Dixp4xx_hss.c1189 u32 *best, u32 *best_diff, u32 *reg) in check_clock() argument
1200 *best = new_rate; in check_clock()
1207 static void find_best_clock(u32 rate, u32 *best, u32 *reg) in find_best_clock() argument
1214 check_clock(rate, 0x3FF, 1, 1, best, &diff, reg); in find_best_clock()
1223 check_clock(rate, a - 1, 1, 1, best, &diff, reg); in find_best_clock()
1233 !check_clock(rate, a - 1, 1, 1, best, &diff, reg)) in find_best_clock()
1235 check_clock(rate, a, b, 0xFFF, best, &diff, reg); in find_best_clock()
1238 if (!check_clock(rate, a, b, c, best, &diff, reg)) in find_best_clock()
1240 if (!check_clock(rate, a, b, c + 1, best, &diff, reg)) in find_best_clock()
/linux-4.4.14/arch/powerpc/boot/dts/fsl/
Dqoriq-fman3-0-10g-0-best-effort.dtsi41 fsl,fman-best-effort-port;
49 fsl,fman-best-effort-port;
Dqoriq-fman3-0-10g-1-best-effort.dtsi41 fsl,fman-best-effort-port;
49 fsl,fman-best-effort-port;
Dt1023si-post.dtsi332 /include/ "qoriq-fman3-0-10g-0-best-effort.dtsi"
/linux-4.4.14/Documentation/block/
Dioprio.txt29 IOPRIO_CLASS_BE: This is the best-effort scheduling class, which is the default
53 will run ls at the best-effort scheduling class at the highest priority.
114 const char *to_prio[] = { "none", "realtime", "best-effort", "idle", };
/linux-4.4.14/drivers/video/fbdev/
Dtmiofb.c561 struct fb_videomode *best = NULL; in tmiofb_find_mode() local
568 && (!best || (mode->xres < best->xres in tmiofb_find_mode()
569 && mode->yres < best->yres))) in tmiofb_find_mode()
570 best = mode; in tmiofb_find_mode()
573 return best; in tmiofb_find_mode()
Dvga16fb.c254 } *ptr, *best, vgaclocks[] = { in vga16fb_clock_chip() local
263 best = vgaclocks; in vga16fb_clock_chip()
264 err = pixclock - best->pixclock; in vga16fb_clock_chip()
273 best = ptr; in vga16fb_clock_chip()
276 par->misc |= best->misc; in vga16fb_clock_chip()
277 par->clkdiv = best->seq_clock_mode; in vga16fb_clock_chip()
278 pixclock = (best->pixclock * div) / mul; in vga16fb_clock_chip()
/linux-4.4.14/drivers/mmc/host/
Dsdhci-s3c.c159 unsigned int best = UINT_MAX; in sdhci_s3c_set_clock() local
175 if (delta < best) { in sdhci_s3c_set_clock()
176 best = delta; in sdhci_s3c_set_clock()
183 best_src, clock, best); in sdhci_s3c_set_clock()
/linux-4.4.14/fs/reiserfs/
DREADME40 fair, ask. (Last I spoke with him Richard was contemplating how best
71 vendors. Select from the best in the world, not the best in your
89 writing the cleanest code. He always made the effort to be the best he
90 could be, and to make his code the best that it could be. What resulted
/linux-4.4.14/net/wireless/
Ddb.txt13 # best option is to extract the db.txt file from the wireless-regdb git
/linux-4.4.14/Documentation/cpuidle/
Dcore.txt22 best governor based on governor ratings.
/linux-4.4.14/drivers/gpu/drm/ast/
Dast_mode.c85 struct ast_vbios_enhtable *best = NULL; in ast_get_vbios_mode_info() local
165 && (!best || loop->refresh_rate > best->refresh_rate)) in ast_get_vbios_mode_info()
166 best = loop; in ast_get_vbios_mode_info()
169 if (best || !check_sync) in ast_get_vbios_mode_info()
173 if (best) in ast_get_vbios_mode_info()
174 vbios_mode->enh_table = best; in ast_get_vbios_mode_info()
/linux-4.4.14/net/dcb/
DKconfig12 requirements (highly reliable, no drops vs. best effort vs. low
/linux-4.4.14/crypto/
Dapi.c63 int best = -2; in __crypto_alg_lookup() local
81 if (!exact && !(fuzzy && q->cra_priority > best)) in __crypto_alg_lookup()
87 best = q->cra_priority; in __crypto_alg_lookup()
/linux-4.4.14/drivers/regulator/
Dmax8997.c557 u8 new_val, int *best) in max8997_assess_side_effect() argument
567 *best = -1; in max8997_assess_side_effect()
614 *best = i; in max8997_assess_side_effect()
619 *best = i; in max8997_assess_side_effect()
623 if (*best == -1) in max8997_assess_side_effect()
626 return side_effect[*best]; in max8997_assess_side_effect()
/linux-4.4.14/Documentation/video4linux/
Dlifeview.txt8 gegen GND unbestückt; 0: bestückt)
DREADME.cpia2104 For normal streaming, 3 should give the best results. With only 2,
/linux-4.4.14/Documentation/filesystems/
Defivarfs.txt9 than a single page, sysfs isn't the best interface for this.
D9p.txt15 The best detailed explanation of the Linux implementation and applications of
154 Bug reports are best issued via the mailing list.
Dcramfs.txt43 decided what the best fix is. For the moment if you have larger pages
Dext4.txt69 for a fair comparison. When tuning ext3 for best benchmark numbers,
402 typically provide the best ext4 performance.
478 allocator will search to find the best extent
481 allocator will search to find the best extent
Dbtrfs.txt53 them up for the defrag process. Works best for small files;
Ddebugfs.txt10 even debugfs interfaces are best designed with the idea that they will need
Dlogfs.txt156 falls below a threshold. The best (known) candidate is picked based
/linux-4.4.14/net/hsr/
DKconfig20 This code is a "best effort" to comply with the HSR standard as
/linux-4.4.14/arch/ia64/mm/
Ddiscontig.c478 u8 best = 0xff; in memory_less_node_alloc() local
484 else if (node_distance(nid, node) < best) { in memory_less_node_alloc()
485 best = node_distance(nid, node); in memory_less_node_alloc()
/linux-4.4.14/arch/powerpc/platforms/cell/spufs/
Dsched.c840 int best; in grab_runnable_context() local
843 best = find_first_bit(spu_prio->bitmap, prio); in grab_runnable_context()
844 while (best < prio) { in grab_runnable_context()
845 struct list_head *rq = &spu_prio->runq[best]; in grab_runnable_context()
854 best++; in grab_runnable_context()
/linux-4.4.14/Documentation/ABI/testing/
Dsysfs-fs-ext423 will search to find the best extent
30 will search to find the best extent
Dsysfs-bus-usb208 L1 sleep state now use a best effort service latency value (BESL) to
209 indicate the best effort to resumption of service to the device after the
/linux-4.4.14/drivers/scsi/fcoe/
Dfcoe_ctlr.c1592 struct fcoe_fcf *best = fip->sel_fcf; in fcoe_ctlr_select() local
1610 if (!best || fcf->pri < best->pri || best->flogi_sent) in fcoe_ctlr_select()
1611 best = fcf; in fcoe_ctlr_select()
1612 if (fcf->fabric_name != best->fabric_name || in fcoe_ctlr_select()
1613 fcf->vfid != best->vfid || in fcoe_ctlr_select()
1614 fcf->fc_map != best->fc_map) { in fcoe_ctlr_select()
1620 fip->sel_fcf = best; in fcoe_ctlr_select()
1621 if (best) { in fcoe_ctlr_select()
1622 LIBFCOE_FIP_DBG(fip, "using FCF mac %pM\n", best->fcf_mac); in fcoe_ctlr_select()
1625 fip->ctlr_ka_time = jiffies + best->fka_period; in fcoe_ctlr_select()
[all …]
/linux-4.4.14/drivers/clk/ti/
Ddivider.c150 unsigned long parent_rate, best = 0, now, maxdiv; in ti_clk_divider_bestdiv() local
187 if (now <= rate && now > best) { in ti_clk_divider_bestdiv()
189 best = now; in ti_clk_divider_bestdiv()
/linux-4.4.14/Documentation/development-process/
D3.Early-stage5 though, much of the groundwork for success is best laid before the first
124 the right maintainer. For mailing lists, the best approach is to look in
138 patches. Those are the people who will be best placed to help with a new
178 idea. The best thing to do in this situation is to proceed, keeping the
204 best option is often to hire an outside developer to review the plans under
D1.Intro41 Following the advice in this section should help to ensure the best
62 kernel has evolved into a best-of-breed operating system component which
190 success of this platform; contributing code is one of the best ways to
200 are cloudy at best; quite a few kernel copyright holders believe that
D4.Coding46 they tend to get a chilly reception. So this type of patch is best
145 networking in Linux was considered substandard at best, and the Devicescape
185 breaks? The best answer to this question was expressed by Linus in July,
300 Other kinds of portability errors are best found by compiling your code for
388 say, this can be a large job, so it is best to be sure that the
D2.Process57 best thing to do is to wait for the next development cycle. (An occasional
321 staging drivers. So staging is, at best, a stop on the way toward becoming
368 quilt is the best tool for the job.
427 point, but it is not the best place to find developers from all
435 filesystem, etc. subsystems. The best place to look for mailing lists is
D7.AdvancedTopics133 authorship information; the git "am" tool does its best in this regard, but
157 the most experienced developers can be improved, though. Perhaps the best
D6.Followthrough47 working toward the creation of the best kernel they can; they are not
162 bugs to deal with. The stabilization period is your best opportunity to
/linux-4.4.14/arch/powerpc/platforms/cell/
Diommu.c906 int i, len, best, naddr, nsize, pna, range_size; in cell_iommu_get_fixed_address() local
938 for (i = 0, best = -1, best_size = 0; i < len; i += range_size) { in cell_iommu_get_fixed_address()
943 best = i; in cell_iommu_get_fixed_address()
948 if (best >= 0) { in cell_iommu_get_fixed_address()
949 dev_addr = of_read_number(ranges + best, naddr); in cell_iommu_get_fixed_address()
/linux-4.4.14/tools/vm/
Dslabinfo.c324 struct aliasinfo *best = NULL; in find_one_alias() local
328 (!best || strlen(best->name) < strlen(a->name))) { in find_one_alias()
329 best = a; in find_one_alias()
331 return best; in find_one_alias()
334 return best; in find_one_alias()
/linux-4.4.14/drivers/pwm/
Dcore.c684 unsigned int best = 0; in pwm_get() local
731 if (match > best) { in pwm_get()
735 best = match; in pwm_get()
/linux-4.4.14/net/sctp/
Dassociola.c1244 struct sctp_transport *best) in sctp_trans_elect_best() argument
1248 if (best == NULL || curr == best) in sctp_trans_elect_best()
1252 score_best = sctp_trans_score(best); in sctp_trans_elect_best()
1261 return sctp_trans_elect_tie(curr, best); in sctp_trans_elect_best()
1263 return best; in sctp_trans_elect_best()
/linux-4.4.14/Documentation/scsi/
D53c700.txt50 consistent with the best operation of the chip (although some choose
52 of an extra clock chip). The best operation clock speeds are:
Ddc395x.txt99 Please be aware the following: While we do my best to provide a working and
Dqlogicfas.txt59 The best way to test if your cables, termination, etc. are good is to
DFlashPoint.txt100 it was best that these issues be addressed directly. I sent an email
124 and has all the best features of both the BT-946C and FlashPoint LT,
/linux-4.4.14/net/xfrm/
Dxfrm_state.c728 struct xfrm_state **best, int *acq_in_progress, in xfrm_state_look_at() argument
748 if (!*best || in xfrm_state_look_at()
749 (*best)->km.dying > x->km.dying || in xfrm_state_look_at()
750 ((*best)->km.dying == x->km.dying && in xfrm_state_look_at()
751 (*best)->curlft.add_time < x->curlft.add_time)) in xfrm_state_look_at()
752 *best = x; in xfrm_state_look_at()
775 struct xfrm_state *best = NULL; in xfrm_state_find() local
794 &best, &acquire_in_progress, &error); in xfrm_state_find()
796 if (best || acquire_in_progress) in xfrm_state_find()
810 &best, &acquire_in_progress, &error); in xfrm_state_find()
[all …]
/linux-4.4.14/fs/ocfs2/
Dsuballoc.c422 u16 curr, best; in ocfs2_find_smallest_chain() local
424 best = curr = 0; in ocfs2_find_smallest_chain()
426 if (le32_to_cpu(cl->cl_recs[best].c_total) > in ocfs2_find_smallest_chain()
428 best = curr; in ocfs2_find_smallest_chain()
431 return best; in ocfs2_find_smallest_chain()
1375 u16 curr, best; in ocfs2_find_victim_chain() local
1379 best = curr = 0; in ocfs2_find_victim_chain()
1382 le32_to_cpu(cl->cl_recs[best].c_free)) in ocfs2_find_victim_chain()
1383 best = curr; in ocfs2_find_victim_chain()
1387 BUG_ON(best >= le16_to_cpu(cl->cl_next_free_rec)); in ocfs2_find_victim_chain()
[all …]
/linux-4.4.14/Documentation/power/
Dapm-acpi.txt10 The best way to determine which, if either, your system supports is to
Dinterface.txt54 do its best to ensure the image size will not exceed that number. However,
Duserland-swsusp.txt57 (the kernel will do its best to ensure the image size will not exceed
/linux-4.4.14/arch/ia64/
DKconfig246 This lets you select the page size of the kernel. For best IA-64
247 performance, a page size of 8KB or 16KB is recommended. For best
253 4KB For best IA-32 compatibility
254 8KB For best IA-64 performance
255 16KB For best IA-64 performance
/linux-4.4.14/drivers/video/fbdev/geode/
Dlxfb_ops.c166 unsigned int diff, min, best = 0; in lx_set_clock() local
177 best = i; in lx_set_clock()
181 lx_set_dotpll(pll_table[best].pllval & 0x00017FFF); in lx_set_clock()
/linux-4.4.14/Documentation/sound/alsa/soc/
Dclocking.txt44 it is best to configure BCLK to the lowest possible speed (depending on your
Doverview.txt91 clocking.txt: ASoC clocking for best power performance.
Dcodec.txt23 Its probably best to use this guide in conjunction with the existing codec
/linux-4.4.14/Documentation/auxdisplay/
Dcfag12864b102 which is the best option for most uses.
/linux-4.4.14/drivers/lguest/
DREADME15 Our Quest is in seven parts: (best read with C highlighting turned on)
/linux-4.4.14/Documentation/sound/oss/
DSoundPro38 settings can have unexpected effects. Use the WSS mixer for best results.
77 my best to help.
/linux-4.4.14/sound/core/oss/
Dpcm_plugin.c324 unsigned int badness, best = -1; in snd_pcm_plug_slave_format() local
338 if (badness < best) { in snd_pcm_plug_slave_format()
340 best = badness; in snd_pcm_plug_slave_format()
Dpcm_oss.c376 int best, int bestdir, in boundary_nearer() argument
381 boundary_sub(best, bestdir, min, mindir, &dmin, &dmindir); in boundary_nearer()
382 boundary_sub(max, maxdir, best, bestdir, &dmax, &dmaxdir); in boundary_nearer()
402 snd_pcm_hw_param_t var, unsigned int best, in snd_pcm_hw_param_near() argument
413 if (best > INT_MAX) in snd_pcm_hw_param_near()
414 best = INT_MAX; in snd_pcm_hw_param_near()
415 min = max = best; in snd_pcm_hw_param_near()
448 if (boundary_nearer(max, maxdir, best, valdir, min, mindir)) { in snd_pcm_hw_param_near()
/linux-4.4.14/Documentation/fb/
Ds3fb.txt40 hardware, i get best results from plain S3 Trio32 card - about 75 MHz). This
Dudlfb.txt60 of the monitor, and set the best common mode between the DisplayLink device
/linux-4.4.14/Documentation/RCU/
DlistRCU.txt4 One of the best applications of RCU is to protect read-mostly linked lists
8 with the best fits first.
13 The best applications are cases where, if reader-writer locking were
/linux-4.4.14/net/netfilter/
Dx_tables.c307 int have_rev, best = -1; in xt_find_revision() local
311 have_rev = target_revfn(af, name, revision, &best); in xt_find_revision()
313 have_rev = match_revfn(af, name, revision, &best); in xt_find_revision()
317 if (best == -1) { in xt_find_revision()
322 *err = best; in xt_find_revision()
Dnf_tables_api.c2262 struct nft_set_estimate est, best; in nft_select_set_ops() local
2281 best.size = ~0; in nft_select_set_ops()
2282 best.class = ~0; in nft_select_set_ops()
2292 if (est.class < best.class) in nft_select_set_ops()
2294 if (est.class == best.class && est.size < best.size) in nft_select_set_ops()
2298 if (est.size < best.size) in nft_select_set_ops()
2300 if (est.size == best.size && est.class < best.class) in nft_select_set_ops()
2313 best = est; in nft_select_set_ops()
/linux-4.4.14/Documentation/hwmon/
Df71805f86 These values can be used as hints at best, as motherboard manufacturers
136 from 187.5 kHz (default) to 31 Hz. The best frequency depends on the
Dadm102687 do not have PWM compensation, so it is probably best to control the fan
Dpc8736088 Note that not all RPM values can be represented, even when the best clock
/linux-4.4.14/Documentation/usb/
Diuu_phoenix.txt49 For example to have best performance than a simple clockmode=3, try this:
Dauthorization.txt65 security verification you can make (or the best, for someone willing
Dpersist.txt113 Is this the best solution?
135 When recovering an interrupted power session the kernel does its best
Ddma.txt76 design wart specific to x86_32. So your best bet is to ensure you never
Dhotplug.txt31 you get the best hotplugging when you configure a highly modular system.
Dmass-storage.txt71 maintain compatibility with older kernels, it's best to specify
DURB.txt73 // ISO only: packets are only "best effort"; each can have errors
/linux-4.4.14/Documentation/devicetree/bindings/i2c/
Di2c-arb-gpio-challenge.txt28 sure that the other side doesn't want it also. A detailed explanation is best
/linux-4.4.14/drivers/media/i2c/smiapp/
Dsmiapp-core.c1889 int best = scaling_goodness( in smiapp_set_compose_binner() local
1904 if (this > best) { in smiapp_set_compose_binner()
1907 best = this; in smiapp_set_compose_binner()
1942 int best = INT_MIN; in smiapp_set_compose_scaler() local
1997 if (this > best) { in smiapp_set_compose_scaler()
2000 best = this; in smiapp_set_compose_scaler()
2018 if (this > best) { in smiapp_set_compose_scaler()
2021 best = this; in smiapp_set_compose_scaler()
/linux-4.4.14/Documentation/sound/alsa/
DMIXART.txt57 Rem : for best audio quality try to keep a 0 attenuation on the PCM
/linux-4.4.14/Documentation/thermal/
Dpower_allocator.txt217 best conversion given "current circumstances".
240 The power allocator governor's PID controller works best if there is a
Dcpu-cooling-api.txt180 plat_get_static() to do as the platform knows best which thermal
/linux-4.4.14/Documentation/vm/
Dsplit_page_table_lock82 To avoid increasing size of struct page and have best performance, we use a
Dhwpoison.txt67 This is best for memory error unaware applications and default
/linux-4.4.14/arch/arm/mach-davinci/
Dda850.c1097 unsigned int best = (unsigned int) -1; in da850_round_armrate() local
1108 if (diff < best) { in da850_round_armrate()
1109 best = diff; in da850_round_armrate()
/linux-4.4.14/Documentation/isdn/
DINTERFACE.fax158 automatic "best capabilities" connection in the eicon HL-driver)
/linux-4.4.14/Documentation/arm/Atmel/
DREADME119 Naming conventions and best practice:
/linux-4.4.14/fs/ext4/
DKconfig54 table readahead, the best performance gains require enabling ext4
/linux-4.4.14/kernel/
Dmodule.c3677 unsigned int i, best = 0; in get_ksymbol() local
3700 && kallsyms->symtab[i].st_value > kallsyms->symtab[best].st_value) in get_ksymbol()
3701 best = i; in get_ksymbol()
3707 if (!best) in get_ksymbol()
3711 *size = nextval - kallsyms->symtab[best].st_value; in get_ksymbol()
3713 *offset = addr - kallsyms->symtab[best].st_value; in get_ksymbol()
3714 return symname(kallsyms, best); in get_ksymbol()
/linux-4.4.14/Documentation/cgroups/
Ddevices.txt39 suffice, but we can decide the best way to adequately restrict
Dmemcg_test.txt89 The best way to understand shmem's page state transition is to read
/linux-4.4.14/Documentation/networking/
Dtcp.txt94 Frames are queued for output by tcp_write. We do our best to send the frames
Dieee802154.txt126 relatively large IPv6 and UDP headers down to (in the best case) several bytes.
Ddecnet.txt189 interact and how to get the best performance from your hardware.
211 to gain the best efficiency. Better still is to use a card which supports
Dcxgb.txt278 recommends the first option for best performance with this bug:
311 order to achieve the best performance for your system.
Dtuntap.txt34 However, the best example is VTun http://vtun.sourceforge.net :))
DREADME.sb1000185 of the SB1000. To do this, it's probably best to download Franco's
/linux-4.4.14/Documentation/devicetree/bindings/powerpc/fsl/
Dpamu.txt83 best LIODN values to minimize PAMU cache thrashing.
Dfman.txt198 - fsl,fman-best-effort-port
202 This property marks a best-effort 10G port (10G port that
/linux-4.4.14/drivers/staging/lustre/lnet/klnds/socklnd/
Dsocklnd.c716 int best = -1; in ksocknal_match_peerip() local
728 if (!(best < 0 || in ksocknal_match_peerip()
734 best = i; in ksocknal_match_peerip()
739 LASSERT(best >= 0); in ksocknal_match_peerip()
740 return best; in ksocknal_match_peerip()
/linux-4.4.14/Documentation/devicetree/bindings/gpio/
Dgpio.txt83 1.1) GPIO specifier best practices
87 high or active-low. If it does, the following best practices should be
/linux-4.4.14/arch/x86/math-emu/
DREADME165 upon instruction mix. Relative performance is best for the instructions
232 match those of an 80486 FPU. They are the best possible; the error for
317 results which are in error (i.e. less accurate than the best possible
/linux-4.4.14/drivers/media/usb/uvc/
Duvc_v4l2.c118 __u32 best = -1, dist; in uvc_try_frame_interval() local
125 if (dist > best) in uvc_try_frame_interval()
128 best = dist; in uvc_try_frame_interval()
/linux-4.4.14/net/core/
Dpktgen.c3261 struct pktgen_dev *pkt_dev, *best = NULL; in next_to_run() local
3267 if (best == NULL) in next_to_run()
3268 best = pkt_dev; in next_to_run()
3269 else if (ktime_compare(pkt_dev->next_tx, best->next_tx) < 0) in next_to_run()
3270 best = pkt_dev; in next_to_run()
3274 return best; in next_to_run()
/linux-4.4.14/Documentation/arm/OMAP/
DDSS159 interface is the best for this in the final version, but I don't quite know
160 what would be the best interfaces for these things.
/linux-4.4.14/Documentation/devicetree/
Dusage-model.txt110 table and selects the machine_desc which best matches the device tree
111 data. It determines the best match by looking at the 'compatible'
351 really probably is best registered as a platform_device.
/linux-4.4.14/drivers/net/wireless/cw1200/
Dwsm.c1589 unsigned score, best = -1; in cw1200_get_prio_queue() local
1605 if (score < best && (winner < 0 || i != 3)) { in cw1200_get_prio_queue()
1606 best = score; in cw1200_get_prio_queue()
/linux-4.4.14/Documentation/arm/
Dkernel_user_helpers.txt8 code to be executed directly in user mode for best efficiency but which is
Dvlocks.txt88 vlocks are therefore best suited to situations where it is necessary
/linux-4.4.14/drivers/staging/most/Documentation/
Ddriver_usage.txt144 Since HDMs are allowed to change a chosen configuration to best fit its
/linux-4.4.14/Documentation/i2c/
Dslave-interface128 (best using a state machine)
/linux-4.4.14/Documentation/power/regulator/
Dconsumer.txt144 to best match the current operating load.
/linux-4.4.14/Documentation/blockdev/
Dcciss.txt105 /proc/driver/cciss/cciss* at runtime. This is best done via a script.
/linux-4.4.14/Documentation/driver-model/
Ddriver.txt75 even a bit ugly. So far, it's the best way we've found to do what we want...
/linux-4.4.14/Documentation/powerpc/
Dpci_iov_resource_on_powernv.txt141 the best we found. So when any of the PEs freezes, we freeze the
183 flexible, but it works best when all the VF BARs are the same size. If
/linux-4.4.14/drivers/net/wireless/ath/ath9k/
Dar9003_eeprom.c3116 static void ar9300_comp_hdr_unpack(u8 *best, int *code, int *reference, in ar9300_comp_hdr_unpack() argument
3121 value[0] = best[0]; in ar9300_comp_hdr_unpack()
3122 value[1] = best[1]; in ar9300_comp_hdr_unpack()
3123 value[2] = best[2]; in ar9300_comp_hdr_unpack()
3124 value[3] = best[3]; in ar9300_comp_hdr_unpack()
/linux-4.4.14/Documentation/arm/Samsung-S3C24XX/
DOverview.txt275 The best way of doing this is to make a function that
/linux-4.4.14/Documentation/device-mapper/
Ddm-raid.txt165 Line 2 & 3 are produced by the raid target and are best explained by example:
/linux-4.4.14/drivers/media/usb/pwc/
Dphilips.txt153 This somewhat cryptic syntax is best explained by a few examples:

12