Home
last modified time | relevance | path

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

12

/linux-4.1.27/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_tsc_adjust() local
45 best = kvm_find_cpuid_entry(vcpu, 7, 0); in guest_cpuid_has_tsc_adjust()
46 return best && (best->ebx & bit(X86_FEATURE_TSC_ADJUST)); in guest_cpuid_has_tsc_adjust()
51 struct kvm_cpuid_entry2 *best; in guest_cpuid_has_smep() local
53 best = kvm_find_cpuid_entry(vcpu, 7, 0); in guest_cpuid_has_smep()
54 return best && (best->ebx & bit(X86_FEATURE_SMEP)); in guest_cpuid_has_smep()
59 struct kvm_cpuid_entry2 *best; in guest_cpuid_has_smap() 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.c2343 struct kvm_cpuid_entry2 *best = kvm_find_cpuid_entry(vcpu, 1, 0); in guest_cpuid_has_vmx() local
2344 return best && (best->ecx & (1 << (X86_FEATURE_VMX & 31))); in guest_cpuid_has_vmx()
8543 struct kvm_cpuid_entry2 *best; in vmx_cpuid_update() local
8551 best = kvm_find_cpuid_entry(vcpu, 0x80000001, 0); in vmx_cpuid_update()
8552 if (best && (best->edx & bit(X86_FEATURE_RDTSCP))) in vmx_cpuid_update()
8566 best = kvm_find_cpuid_entry(vcpu, 0x7, 0); in vmx_cpuid_update()
8568 best && (best->ebx & bit(X86_FEATURE_INVPCID)) && in vmx_cpuid_update()
8581 if (best) in vmx_cpuid_update()
8582 best->ebx &= ~bit(X86_FEATURE_INVPCID); in vmx_cpuid_update()
/linux-4.1.27/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.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
Dshadow.c210 }, *mthd = mthds, *best = NULL; in nvbios_shadow() local
223 best = mthd; in nvbios_shadow()
230 if (!best && (best = mthd)) { in nvbios_shadow()
236 if (!best->score) { in nvbios_shadow()
244 if (!best || !best->score) { in nvbios_shadow()
245 for (mthd = mthds, best = mthd; mthd->func; mthd++) { in nvbios_shadow()
246 if (!mthd->skip || best->score < mthd->skip) { in nvbios_shadow()
248 if (mthd->score > best->score) in nvbios_shadow()
249 best = mthd; in nvbios_shadow()
257 if (mthd != best) in nvbios_shadow()
[all …]
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/drivers/net/bonding/
Dbond_3ad.c1473 static struct aggregator *ad_agg_selection_test(struct aggregator *best, in ad_agg_selection_test() argument
1500 if (!best) in ad_agg_selection_test()
1503 if (!curr->is_individual && best->is_individual) in ad_agg_selection_test()
1506 if (curr->is_individual && !best->is_individual) in ad_agg_selection_test()
1507 return best; in ad_agg_selection_test()
1509 if (__agg_has_partner(curr) && !__agg_has_partner(best)) in ad_agg_selection_test()
1512 if (!__agg_has_partner(curr) && __agg_has_partner(best)) in ad_agg_selection_test()
1513 return best; in ad_agg_selection_test()
1517 if (curr->num_of_ports > best->num_of_ports) in ad_agg_selection_test()
1520 if (curr->num_of_ports < best->num_of_ports) in ad_agg_selection_test()
[all …]
/linux-4.1.27/drivers/gpu/drm/
Ddrm_vma_manager.c161 struct drm_vma_offset_node *node, *best; in drm_vma_offset_lookup_locked() local
166 best = NULL; in drm_vma_offset_lookup_locked()
173 best = node; in drm_vma_offset_lookup_locked()
182 if (best) { in drm_vma_offset_lookup_locked()
183 offset = best->vm_node.start + best->vm_node.size; in drm_vma_offset_lookup_locked()
185 best = NULL; in drm_vma_offset_lookup_locked()
188 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.1.27/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.1.27/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.1.27/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.1.27/sound/soc/codecs/
Dwm9081.c1003 int ret, i, best, best_val, cur_val; in wm9081_hw_params() local
1060 best = 0; in wm9081_hw_params()
1067 best = i; in wm9081_hw_params()
1072 clk_sys_rates[best].ratio); in wm9081_hw_params()
1073 clk_ctrl2 |= (clk_sys_rates[best].clk_sys_rate in wm9081_hw_params()
1077 best = 0; in wm9081_hw_params()
1083 best = i; in wm9081_hw_params()
1088 sample_rates[best].rate); in wm9081_hw_params()
1089 clk_ctrl2 |= (sample_rates[best].sample_rate in wm9081_hw_params()
1093 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.c1194 int ret, i, best, best_val, cur_val; in wm8993_hw_params() local
1245 best = 0; in wm8993_hw_params()
1252 best = i; in wm8993_hw_params()
1257 clk_sys_rates[best].ratio); in wm8993_hw_params()
1258 clocking3 |= (clk_sys_rates[best].clk_sys_rate in wm8993_hw_params()
1262 best = 0; in wm8993_hw_params()
1268 best = i; in wm8993_hw_params()
1273 sample_rates[best].rate); in wm8993_hw_params()
1274 clocking3 |= (sample_rates[best].sample_rate in wm8993_hw_params()
1278 best = 0; in wm8993_hw_params()
[all …]
Dwm8731.c99 int val, i, best; in wm8731_set_deemph() local
105 best = 1; in wm8731_set_deemph()
108 abs(wm8731_deemph[best] - wm8731->playback_fs)) in wm8731_set_deemph()
109 best = i; in wm8731_set_deemph()
112 val = best << 1; in wm8731_set_deemph()
114 best = 0; in wm8731_set_deemph()
119 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.c1660 int best, best_val, save, i, sel, fs; in max98088_setup_eq1() local
1672 best = 0; in max98088_setup_eq1()
1677 best = i; in max98088_setup_eq1()
1683 pdata->eq_cfg[best].name, in max98088_setup_eq1()
1684 pdata->eq_cfg[best].rate, fs); in max98088_setup_eq1()
1707 int best, best_val, save, i, sel, fs; in max98088_setup_eq2() local
1719 best = 0; in max98088_setup_eq2()
1724 best = i; in max98088_setup_eq2()
1730 pdata->eq_cfg[best].name, in max98088_setup_eq2()
1731 pdata->eq_cfg[best].rate, fs); in max98088_setup_eq2()
Dwm8961.c511 int i, best, target, fs; in wm8961_hw_params() local
522 best = 0; in wm8961_hw_params()
525 abs(wm8961_srate[best].rate - fs)) in wm8961_hw_params()
526 best = i; in wm8961_hw_params()
530 reg |= wm8961_srate[best].val; in wm8961_hw_params()
533 wm8961_srate[best].rate, fs); in wm8961_hw_params()
Dmax98095.c1769 int fs, best, best_val, i; in max98095_put_eq_enum() local
1786 best = 0; in max98095_put_eq_enum()
1791 best = i; in max98095_put_eq_enum()
1797 pdata->eq_cfg[best].name, in max98095_put_eq_enum()
1798 pdata->eq_cfg[best].rate, fs); in max98095_put_eq_enum()
1800 coef_set = &pdata->eq_cfg[best]; in max98095_put_eq_enum()
1923 int fs, best, best_val, i; in max98095_put_bq_enum() local
1940 best = 0; in max98095_put_bq_enum()
1945 best = i; in max98095_put_bq_enum()
1951 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()
399 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.c1557 int i, rate_val, best, best_val, cur_val; in wm8995_hw_params() local
1630 best = 1; in wm8995_hw_params()
1638 best = i; in wm8995_hw_params()
1641 rate_val |= best; in wm8995_hw_params()
1644 dai->id + 1, fs_ratios[best]); in wm8995_hw_params()
1652 best = 0; in wm8995_hw_params()
1658 best = i; in wm8995_hw_params()
1660 bclk |= best << WM8995_AIF1_BCLK_DIV_SHIFT; in wm8995_hw_params()
1662 bclk_rate = wm8995->aifclk[dai->id] * 10 / bclk_divs[best]; in wm8995_hw_params()
1664 bclk_divs[best], bclk_rate); in wm8995_hw_params()
Dwm8960.c157 int val, i, best; in wm8960_set_deemph() local
163 best = 1; in wm8960_set_deemph()
166 abs(deemph_settings[best] - wm8960->playback_fs)) in wm8960_set_deemph()
167 best = i; in wm8960_set_deemph()
170 val = best << 1; in wm8960_set_deemph()
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()
Dcs42l52.c962 int best = 0; in cs42l52_beep_work() local
967 abs(cs42l52->beep_rate - beep_rates[best])) in cs42l52_beep_work()
968 best = i; in cs42l52_beep_work()
972 beep_rates[best], cs42l52->beep_rate); in cs42l52_beep_work()
974 val = (best << CS42L52_BEEP_RATE_SHIFT); in cs42l52_beep_work()
Dcs42l56.c1032 int best = 0; in cs42l56_beep_work() local
1037 abs(cs42l56->beep_rate - beep_freq[best])) in cs42l56_beep_work()
1038 best = i; in cs42l56_beep_work()
1042 beep_freq[best], cs42l56->beep_rate); in cs42l56_beep_work()
1044 val = (best << CS42L56_BEEP_RATE_SHIFT); in cs42l56_beep_work()
Dwm8962.c3170 int best = 0; in wm8962_beep_work() local
3175 abs(wm8962->beep_rate - beep_rates[best])) in wm8962_beep_work()
3176 best = i; in wm8962_beep_work()
3180 beep_rates[best], wm8962->beep_rate); in wm8962_beep_work()
3182 reg = WM8962_BEEP_ENA | (best << WM8962_BEEP_RATE_SHIFT); in wm8962_beep_work()
/linux-4.1.27/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.1.27/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.1.27/drivers/gpu/drm/i915/
Dintel_ddi.c620 struct wrpll_rnp *best) in wrpll_update_rnp() argument
625 if (best->p == 0) { in wrpll_update_rnp()
626 best->p = p; in wrpll_update_rnp()
627 best->n2 = n2; in wrpll_update_rnp()
628 best->r2 = r2; in wrpll_update_rnp()
647 b = freq2k * budget * best->p * best->r2; in wrpll_update_rnp()
649 diff_best = abs_diff(freq2k * best->p * best->r2, in wrpll_update_rnp()
650 LC_FREQ_2K * best->n2); in wrpll_update_rnp()
656 if (best->p * best->r2 * diff < p * r2 * diff_best) { in wrpll_update_rnp()
657 best->p = p; in wrpll_update_rnp()
[all …]
/linux-4.1.27/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.1.27/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.1.27/kernel/time/
Dclocksource.c550 struct clocksource *best, *cs; in __clocksource_select() local
553 best = clocksource_find_best(oneshot, skipcur); in __clocksource_select()
554 if (!best) in __clocksource_select()
576 best = cs; in __clocksource_select()
580 if (curr_clocksource != best && !timekeeping_notify(best)) { in __clocksource_select()
581 pr_info("Switched to clocksource %s\n", best->name); in __clocksource_select()
582 curr_clocksource = best; in __clocksource_select()
/linux-4.1.27/drivers/media/platform/
Dsh_vou.c534 unsigned int best_err = UINT_MAX, best = 0, img_height_max; in vou_adjust_input() local
560 best = found; in vou_adjust_input()
566 geo->in_width = best; in vou_adjust_input()
585 best = found; in vou_adjust_input()
591 geo->in_height = best; in vou_adjust_input()
601 unsigned int best_err = UINT_MAX, best = geo->in_width, in vou_adjust_output() local
629 best = found; in vou_adjust_output()
635 geo->output.width = best; in vou_adjust_output()
637 if (geo->output.left + best > width_max) in vou_adjust_output()
638 geo->output.left = width_max - best; in vou_adjust_output()
[all …]
/linux-4.1.27/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.1.27/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.1.27/drivers/clk/hisilicon/
Dclk-hi3620.c304 unsigned long best = 0; in mmc_clk_determine_rate() local
308 best = 26000000; in mmc_clk_determine_rate()
311 best = 180000000; in mmc_clk_determine_rate()
314 best = 360000000; in mmc_clk_determine_rate()
317 best = 720000000; in mmc_clk_determine_rate()
321 best = 1440000000; in mmc_clk_determine_rate()
323 *best_parent_rate = best; in mmc_clk_determine_rate()
/linux-4.1.27/drivers/clk/
Dclk-divider.c253 unsigned long best, unsigned long flags) in _is_best_div() argument
256 return abs(rate - now) < abs(rate - best); in _is_best_div()
258 return now <= rate && now > best; in _is_best_div()
280 unsigned long parent_rate, best = 0, now, maxdiv; in clk_divider_bestdiv() local
317 if (_is_best_div(rate, now, best, flags)) { in clk_divider_bestdiv()
319 best = now; in clk_divider_bestdiv()
Dclk-wm831x.c148 int best = 0; in wm831x_fll_round_rate() local
153 abs(wm831x_fll_auto_rates[best] - rate)) in wm831x_fll_round_rate()
154 best = i; in wm831x_fll_round_rate()
156 return wm831x_fll_auto_rates[best]; in wm831x_fll_round_rate()
Dclk.c791 unsigned long best, unsigned long flags) in mux_is_better_rate() argument
794 return abs(now - rate) < abs(best - rate); in mux_is_better_rate()
796 return now <= rate && now > best; in mux_is_better_rate()
809 unsigned long parent_rate, best = 0; in clk_mux_determine_rate_flags() local
815 best = __clk_determine_rate(parent ? parent->hw : NULL, in clk_mux_determine_rate_flags()
818 best = clk_core_get_rate_nolock(parent); in clk_mux_determine_rate_flags()
820 best = clk_core_get_rate_nolock(core); in clk_mux_determine_rate_flags()
836 if (mux_is_better_rate(rate, parent_rate, best, flags)) { in clk_mux_determine_rate_flags()
838 best = parent_rate; in clk_mux_determine_rate_flags()
845 *best_parent_rate = best; in clk_mux_determine_rate_flags()
[all …]
/linux-4.1.27/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.1.27/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.1.27/drivers/block/paride/
Dparide.c274 int best, range; in pi_probe_mode() local
287 best = -1; in pi_probe_mode()
296 best = pi->mode; in pi_probe_mode()
298 pi->mode = best; in pi_probe_mode()
299 return (best > -1); in pi_probe_mode()
/linux-4.1.27/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.1.27/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.1.27/drivers/clk/sunxi/
Dclk-factors.c90 unsigned long parent_rate, best = 0, child_rate, best_child_rate = 0; in clk_factors_determine_rate() local
107 best = parent_rate; in clk_factors_determine_rate()
114 *best_parent_rate = best; in clk_factors_determine_rate()
Dclk-sunxi.c129 unsigned long parent_rate, best = 0, child_rate, best_child_rate = 0; in sun6i_ahb1_clk_determine_rate() local
147 best = parent_rate; in sun6i_ahb1_clk_determine_rate()
154 *best_parent_rate = best; in sun6i_ahb1_clk_determine_rate()
/linux-4.1.27/drivers/crypto/qat/qat_common/
Dqat_crypto.c108 unsigned long best = ~0; in qat_crypto_get_instance_node() local
131 if (best > cur) { in qat_crypto_get_instance_node()
133 best = cur; in qat_crypto_get_instance_node()
/linux-4.1.27/net/batman-adv/
Doriginator.c839 struct batadv_neigh_node *best = NULL, *neigh; in batadv_find_best_neighbor() local
844 if (best && (bao->bat_neigh_cmp(neigh, if_outgoing, in batadv_find_best_neighbor()
845 best, if_outgoing) <= 0)) in batadv_find_best_neighbor()
851 if (best) in batadv_find_best_neighbor()
852 batadv_neigh_node_free_ref(best); in batadv_find_best_neighbor()
854 best = neigh; in batadv_find_best_neighbor()
858 return best; in batadv_find_best_neighbor()
/linux-4.1.27/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,
Dpi-futex.txt23 user-space applications. In the best-case, it can help achieve
Dmagic-number.txt3 file, since it is best if the magic numbers used by various structures
DSubmittingDrivers57 It's best if the submitter and copyright owner
Dpadata.txt159 might be best not to call it while there is work outstanding. Shutting
Dcrc32.txt25 the best error-detecting properties, this should correspond to the
DIRQ-domain.txt104 programmable in the hardware. In this case it is best to program 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.1.27/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.1.27/arch/parisc/
DKconfig212 This lets you select the page size of the kernel. For best
213 performance, a page size of 16KB is recommended. For best
218 4KB For best 32bit compatibility
219 16KB For best performance
220 64KB For best performance, might give more overhead.
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/net/wireless/
Ddb.txt13 # best option is to extract the db.txt file from the wireless-regdb git
/linux-4.1.27/Documentation/cpuidle/
Dcore.txt22 best governor based on governor ratings.
/linux-4.1.27/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.1.27/net/dcb/
DKconfig12 requirements (highly reliable, no drops vs. best effort vs. low
/linux-4.1.27/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.1.27/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.1.27/net/hsr/
DKconfig20 This code is a "best effort" to comply with the HSR standard as
/linux-4.1.27/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.1.27/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
Ddebugfs.txt10 even debugfs interfaces are best designed with the idea that they will need
Dext3.txt170 typically provide the best ext3 performance.
Dbtrfs.txt53 them up for the defrag process. Works best for small files;
Dlogfs.txt156 falls below a threshold. The best (known) candidate is picked based
/linux-4.1.27/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.1.27/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.1.27/Documentation/ABI/testing/
Dsysfs-fs-ext423 will search to find the best extent
30 will search to find the best extent
Dsysfs-bus-usb172 L1 sleep state now use a best effort service latency value (BESL) to
173 indicate the best effort to resumption of service to the device after the
/linux-4.1.27/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.1.27/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.1.27/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.1.27/arch/powerpc/platforms/cell/
Diommu.c900 int i, len, best, naddr, nsize, pna, range_size; in cell_iommu_get_fixed_address() local
932 for (i = 0, best = -1, best_size = 0; i < len; i += range_size) { in cell_iommu_get_fixed_address()
937 best = i; in cell_iommu_get_fixed_address()
942 if (best >= 0) { in cell_iommu_get_fixed_address()
943 dev_addr = of_read_number(ranges + best, naddr); in cell_iommu_get_fixed_address()
/linux-4.1.27/tools/vm/
Dslabinfo.c312 struct aliasinfo *best = NULL; in find_one_alias() local
316 (!best || strlen(best->name) < strlen(a->name))) { in find_one_alias()
317 best = a; in find_one_alias()
319 return best; in find_one_alias()
322 return best; in find_one_alias()
/linux-4.1.27/drivers/pwm/
Dcore.c605 unsigned int best = 0; in pwm_get() local
652 if (match > best) { in pwm_get()
656 best = match; in pwm_get()
/linux-4.1.27/net/sctp/
Dassociola.c1242 struct sctp_transport *best) in sctp_trans_elect_best() argument
1246 if (best == NULL || curr == best) in sctp_trans_elect_best()
1250 score_best = sctp_trans_score(best); in sctp_trans_elect_best()
1259 return sctp_trans_elect_tie(curr, best); in sctp_trans_elect_best()
1261 return best; in sctp_trans_elect_best()
/linux-4.1.27/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.1.27/fs/ocfs2/
Dsuballoc.c438 u16 curr, best; in ocfs2_find_smallest_chain() local
440 best = curr = 0; in ocfs2_find_smallest_chain()
442 if (le32_to_cpu(cl->cl_recs[best].c_total) > in ocfs2_find_smallest_chain()
444 best = curr; in ocfs2_find_smallest_chain()
447 return best; in ocfs2_find_smallest_chain()
1392 u16 curr, best; in ocfs2_find_victim_chain() local
1396 best = curr = 0; in ocfs2_find_victim_chain()
1399 le32_to_cpu(cl->cl_recs[best].c_free)) in ocfs2_find_victim_chain()
1400 best = curr; in ocfs2_find_victim_chain()
1404 BUG_ON(best >= le16_to_cpu(cl->cl_next_free_rec)); in ocfs2_find_victim_chain()
[all …]
/linux-4.1.27/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.1.27/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.1.27/arch/ia64/
DKconfig269 This lets you select the page size of the kernel. For best IA-64
270 performance, a page size of 8KB or 16KB is recommended. For best
276 4KB For best IA-32 compatibility
277 8KB For best IA-64 performance
278 16KB For best IA-64 performance
/linux-4.1.27/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.1.27/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.1.27/Documentation/auxdisplay/
Dcfag12864b102 which is the best option for most uses.
/linux-4.1.27/drivers/lguest/
DREADME15 Our Quest is in seven parts: (best read with C highlighting turned on)
/linux-4.1.27/Documentation/sound/oss/
DSoundPro38 settings can have unexpected effects. Use the WSS mixer for best results.
77 my best to help.
/linux-4.1.27/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.1.27/net/netfilter/
Dx_tables.c310 int have_rev, best = -1; in xt_find_revision() local
314 have_rev = target_revfn(af, name, revision, &best); in xt_find_revision()
316 have_rev = match_revfn(af, name, revision, &best); in xt_find_revision()
320 if (best == -1) { in xt_find_revision()
325 *err = best; in xt_find_revision()
Dnf_tables_api.c2193 struct nft_set_estimate est, best; in nft_select_set_ops() local
2212 best.size = ~0; in nft_select_set_ops()
2213 best.class = ~0; in nft_select_set_ops()
2223 if (est.class < best.class) in nft_select_set_ops()
2225 if (est.class == best.class && est.size < best.size) in nft_select_set_ops()
2229 if (est.size < best.size) in nft_select_set_ops()
2231 if (est.size == best.size && est.class < best.class) in nft_select_set_ops()
2244 best = est; in nft_select_set_ops()
/linux-4.1.27/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.1.27/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
Drcubarrier.txt17 rather expensive, and RCU is thus best suited for read-mostly situations.
/linux-4.1.27/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.1.27/Documentation/usb/
Dauthorization.txt65 security verification you can make (or the best, for someone willing
Diuu_phoenix.txt49 For example to have best performance than a simple clockmode=3, try this:
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.1.27/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.1.27/fs/ext4/
DKconfig21 the delayed allocation and inode table readahead, the best
/linux-4.1.27/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.1.27/Documentation/sound/alsa/
DMIXART.txt57 Rem : for best audio quality try to keep a 0 attenuation on the PCM
/linux-4.1.27/arch/arm/mach-davinci/
Dda850.c1096 unsigned int best = (unsigned int) -1; in da850_round_armrate() local
1107 if (diff < best) { in da850_round_armrate()
1108 best = diff; in da850_round_armrate()
/linux-4.1.27/Documentation/isdn/
DINTERFACE.fax158 automatic "best capabilities" connection in the eicon HL-driver)
/linux-4.1.27/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.1.27/Documentation/arm/Atmel/
DREADME114 Naming conventions and best practice:
/linux-4.1.27/Documentation/devicetree/bindings/gpio/
Dgpio.txt68 1.1) GPIO specifier best practices
72 high or active-low. If it does, the following best practices should be
/linux-4.1.27/kernel/
Dmodule.c3500 unsigned int i, best = 0; in get_ksymbol() local
3523 && kallsyms->symtab[i].st_value > kallsyms->symtab[best].st_value) in get_ksymbol()
3524 best = i; in get_ksymbol()
3530 if (!best) in get_ksymbol()
3534 *size = nextval - kallsyms->symtab[best].st_value; in get_ksymbol()
3536 *offset = addr - kallsyms->symtab[best].st_value; in get_ksymbol()
3537 return symname(kallsyms, best); in get_ksymbol()
/linux-4.1.27/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.1.27/Documentation/networking/
Dtcp.txt94 Frames are queued for output by tcp_write. We do our best to send the frames
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
Dieee802154.txt137 relatively large IPv6 and UDP headers down to (in the best case) several bytes.
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
Dnetdev-FAQ.txt218 is the best way to get things done. Don't mangle whitespace, and as
/linux-4.1.27/Documentation/devicetree/bindings/powerpc/fsl/
Dpamu.txt83 best LIODN values to minimize PAMU cache thrashing.
/linux-4.1.27/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.1.27/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.1.27/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.1.27/net/core/
Dpktgen.c3210 struct pktgen_dev *pkt_dev, *best = NULL; in next_to_run() local
3216 if (best == NULL) in next_to_run()
3217 best = pkt_dev; in next_to_run()
3218 else if (ktime_compare(pkt_dev->next_tx, best->next_tx) < 0) in next_to_run()
3219 best = pkt_dev; in next_to_run()
3223 return best; in next_to_run()
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/Documentation/power/regulator/
Dconsumer.txt144 to best match the current operating load.
/linux-4.1.27/Documentation/blockdev/
Dcciss.txt105 /proc/driver/cciss/cciss* at runtime. This is best done via a script.
/linux-4.1.27/Documentation/i2c/
Dslave-interface120 (best using a state machine)
/linux-4.1.27/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.1.27/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
Dhvcs.txt420 may be best to create a special hvcs group privilege for providing
451 (vt320) before you and leave the session logged in. The best thing to do
/linux-4.1.27/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.1.27/Documentation/device-mapper/
Ddm-raid.txt165 Line 2 & 3 are produced by the raid target and are best explained by example:
/linux-4.1.27/Documentation/arm/Samsung-S3C24XX/
DOverview.txt275 The best way of doing this is to make a function that
/linux-4.1.27/arch/cris/arch-v32/
DKconfig37 best choice if you have more than one Ethernet interface and
/linux-4.1.27/drivers/media/usb/pwc/
Dphilips.txt153 This somewhat cryptic syntax is best explained by a few examples:
/linux-4.1.27/Documentation/sysctl/
Dnet.txt59 no additional parameters so is best suited to queuing disciplines that
/linux-4.1.27/arch/x86/
DKconfig.debug291 do what it thinks is best, which is desirable for the gcc 3.x series of
/linux-4.1.27/Documentation/sh/
Dnew-machine.txt102 seamlessly with the build system, it's best to have this directory the same
/linux-4.1.27/arch/tile/
DKconfig178 This lets you select the page size of the kernel. For best
/linux-4.1.27/Documentation/cpu-freq/
Dgovernors.txt55 governors, these can be tested extensively, and the best one can be
/linux-4.1.27/Documentation/dvb/
Davermedia.txt29 represent one frame. Computers today are at their best when
/linux-4.1.27/Documentation/ide/
DChangeLog.ide-tape.1995-200263 * For best results, use an integral number of this

12