Searched refs:best (Results 1 - 25 of 133) sorted by path

123456

/linux-master/arch/m68k/ifpsp060/src/
H A Dfpsp.S7072 # the best we can. For |X| >= 2^(-16312), the #
/linux-master/arch/sh/kernel/
H A Dunwinder.c59 * select_unwinder - Select the best registered stack unwinder.
63 * Select the stack unwinder with the best rating. This is useful for
68 struct unwinder *best; local
73 best = list_entry(unwinder_list.next, struct unwinder, list);
74 if (best == curr_unwinder)
77 return best;
/linux-master/drivers/clk/
H A Dclk-multiplier.c57 unsigned long best, unsigned long flags)
60 return abs(rate - new) < abs(rate - best);
62 return new >= rate && new < best;
93 * This is the best case for us if we have a
56 __is_best_rate(unsigned long rate, unsigned long new, unsigned long best, unsigned long flags) argument
H A Dclk-divider.c268 unsigned long best, unsigned long flags)
271 return abs(rate - now) < abs(rate - best);
273 return now <= rate && now > best;
296 unsigned long parent_rate, best = 0, now, maxdiv; local
331 if (_is_best_div(rate, now, best, flags)) {
333 best = now;
267 _is_best_div(unsigned long rate, unsigned long now, unsigned long best, unsigned long flags) argument
H A Dclk-sparx5.c80 struct s5_pll_conf best; local
98 best = *conf;
105 *conf = best;
H A Dclk-wm831x.c139 int best = 0; local
144 abs(wm831x_fll_auto_rates[best] - rate))
145 best = i;
147 return wm831x_fll_auto_rates[best];
H A Dclk.c633 unsigned long best, unsigned long flags)
636 return abs(now - rate) < abs(best - rate);
638 return now <= rate && now > best;
694 unsigned long best; local
716 best = parent_req.rate;
718 best = clk_core_get_rate_nolock(parent);
720 best = clk_core_get_rate_nolock(core);
723 req->best_parent_rate = best;
724 req->rate = best;
735 unsigned long best local
632 mux_is_better_rate(unsigned long rate, unsigned long now, unsigned long best, unsigned long flags) argument
[all...]
/linux-master/drivers/clk/qcom/
H A Dclk-regmap-mux-div.c82 static inline bool is_better_rate(unsigned long req, unsigned long best, argument
85 return (req <= new && new < best) || (best < req && best < new);
/linux-master/drivers/clk/sunxi/
H A Dclk-factors.c94 unsigned long parent_rate, best = 0, child_rate, best_child_rate = 0; local
117 best = parent_rate;
126 req->best_parent_rate = best;
/linux-master/drivers/video/fbdev/via/
H A Dhw.c1376 struct via_pll_config cur, up, down, best = {0, 1, 0}; local
1399 if (f < abs(get_pll_output_frequency(f0, best) - clk))
1400 best = cur;
1403 return best;
2000 const struct fb_videomode *best; local
2002 best = viafb_get_best_mode(hres, vres, long_refresh);
2003 if (!best)
2006 if (abs(best->refresh - long_refresh) > 3) {
2013 return best->refresh;
H A Dviamode.c343 const struct fb_videomode *best = NULL; local
350 if (!best || abs(modes[i].refresh - refresh) <
351 abs(best->refresh - refresh))
352 best = &modes[i];
355 return best;
/linux-master/sound/isa/sb/
H A Demu8000_callback.c156 struct best { struct
159 } best[END]; local
160 struct best *bp;
165 best[i].time = (unsigned int)(-1); /* XXX MAX_?INT really */
166 best[i].voice = -1;
170 * Go through them all and get a best one to use.
179 bp = best + OFF;
182 bp = best + RELEASED;
185 bp = best + OFF;
188 bp = best
[all...]
/linux-master/arch/arm/mach-ep93xx/
H A Dclock.c203 unsigned long best)
205 return abs(rate - now) < abs(rate - best);
372 unsigned long best = 0, now, maxdiv; local
383 if (is_best(rate, now, best))
384 best = now;
387 if (!best)
388 best = DIV_ROUND_UP_ULL(*parent_rate, maxdiv);
390 return best;
202 is_best(unsigned long rate, unsigned long now, unsigned long best) argument
/linux-master/arch/powerpc/platforms/cell/
H A Diommu.c802 int i, len, best, naddr, nsize, pna, range_size; local
838 for (i = 0, best = -1, best_size = 0; i < len; i += range_size) {
843 best = i;
848 if (best >= 0) {
849 dev_addr = of_read_number(ranges + best, naddr);
/linux-master/arch/powerpc/platforms/cell/spufs/
H A Dsched.c822 int best; local
825 best = find_first_bit(spu_prio->bitmap, prio);
826 while (best < prio) {
827 struct list_head *rq = &spu_prio->runq[best];
836 best++;
/linux-master/arch/x86/kvm/
H A Dcpuid.c137 struct kvm_cpuid_entry2 *best; local
144 best = cpuid_entry2_find(entries, nent, 0x80000008,
146 if (best) {
147 int vaddr_bits = (best->eax & 0xff00) >> 8;
157 best = cpuid_entry2_find(entries, nent, 0xd, 0);
158 if (!best)
161 xfeatures = best->eax | ((u64)best->edx << 32);
247 struct kvm_cpuid_entry2 *best = kvm_find_kvm_cpuid_features(vcpu); local
253 if (best)
263 struct kvm_cpuid_entry2 *best; local
275 struct kvm_cpuid_entry2 *best; local
341 struct kvm_cpuid_entry2 *best; local
402 struct kvm_cpuid_entry2 *best; local
[all...]
H A Dcpuid.h107 struct kvm_cpuid_entry2 *best; local
109 best = kvm_find_cpuid_entry(vcpu, 0);
110 return best &&
111 (is_guest_vendor_amd(best->ebx, best->ecx, best->edx) ||
112 is_guest_vendor_hygon(best->ebx, best->ecx, best->edx));
117 struct kvm_cpuid_entry2 *best; local
135 struct kvm_cpuid_entry2 *best; local
146 struct kvm_cpuid_entry2 *best; local
162 struct kvm_cpuid_entry2 *best; local
[all...]
/linux-master/arch/x86/kvm/svm/
H A Dsev.c3020 struct kvm_cpuid_entry2 *best; local
3023 best = kvm_find_cpuid_entry(vcpu, 0x8000001F);
3024 if (best)
3025 vcpu->arch.reserved_gpa_bits &= ~(1UL << (best->ebx & 0x3f));
/linux-master/arch/x86/kvm/vmx/
H A Dvmx.c7723 struct kvm_cpuid_entry2 *best = NULL; local
7727 best = kvm_find_cpuid_entry_index(vcpu, 0x14, i);
7728 if (!best)
7730 vmx->pt_desc.caps[CPUID_EAX + i*PT_CPUID_REGS_NUM] = best->eax;
7731 vmx->pt_desc.caps[CPUID_EBX + i*PT_CPUID_REGS_NUM] = best->ebx;
7732 vmx->pt_desc.caps[CPUID_ECX + i*PT_CPUID_REGS_NUM] = best->ecx;
7733 vmx->pt_desc.caps[CPUID_EDX + i*PT_CPUID_REGS_NUM] = best->edx;
/linux-master/crypto/
H A Dalgapi.c379 bool best; local
415 best = true;
424 best = false;
429 crypto_alg_finish_registration(alg, best, &list);
H A Dapi.c60 int best = -2; local
78 if (!exact && !(fuzzy && q->cra_priority > best))
84 best = q->cra_priority;
/linux-master/drivers/acpi/numa/
H A Dhmat.c45 * selecting the best performing node.
669 static bool hmat_update_best(u8 type, u32 value, u32 *best) argument
680 if (!*best || *best > value) {
681 *best = value;
688 if (!*best || *best < value) {
689 *best = value;
729 u32 best = 0; local
745 * only that one. Otherwise, find the best performanc
[all...]
/linux-master/drivers/ata/pata_parport/
H A Dpata_parport.c393 int best, range; local
405 best = -1;
413 best = pi->mode;
415 pi->mode = best;
416 return best > -1;
/linux-master/drivers/base/
H A Dmap.c99 unsigned long best = ~0UL; local
110 if (p->range - 1 >= best)
117 best = p->range - 1;
/linux-master/drivers/clk/actions/
H A Dowl-factor.c71 unsigned long parent_rate, try_parent_rate, best = 0, cur_rate; local
103 if (cur_rate <= rate && cur_rate > best) {
105 best = cur_rate;

Completed in 439 milliseconds

123456