/linux-master/arch/x86/kvm/ |
H A D | cpuid.h | 107 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...] |
H A D | cpuid.c | 137 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...] |
/linux-master/lib/raid6/ |
H A D | algos.c | 137 const struct raid6_recov_calls *best; local 139 for (best = NULL, algo = raid6_recov_algos; *algo; algo++) 140 if (!best || (*algo)->priority > best->priority) 142 best = *algo; 144 if (best) { 145 raid6_2data_recov = best->data2; 146 raid6_datap_recov = best->datap; 148 pr_info("raid6: using %s recovery algorithm\n", best->name); 152 return best; 161 const struct raid6_calls *best; local [all...] |
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
H A D | shadow.c | 186 }, *mthd, *best = NULL; local 199 best = mthd; 206 if (!best && (best = mthd)) { 212 if (!best->score) { 219 /* scan all potential bios sources, looking for best image */ 220 if (!best || !best->score) { 221 for (mthd = mthds, best = mthd; mthd->func; mthd++) { 222 if (!mthd->skip || best [all...] |
/linux-master/drivers/usb/core/ |
H A D | generic.c | 61 struct usb_host_config *c, *best; local 82 best = NULL; 146 best = c; 152 best = c; 156 * because it can reassign best, which for audio devices 172 best = c; 184 best = c; 190 else if (!best) 191 best = c; 199 if (best) { [all...] |
/linux-master/arch/sh/kernel/ |
H A D | unwinder.c | 59 * 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/net/dccp/ |
H A D | qpolicy.c | 38 struct sk_buff *skb, *best = NULL; local 41 if (best == NULL || skb->priority > best->priority) 42 best = skb; 43 return best;
|
/linux-master/sound/pci/emu10k1/ |
H A D | emu10k1_callback.c | 27 struct best_voice *best, int active_only); 84 struct best_voice best[V_END]; local 89 lookup_voices(emu, hw, best, 1); /* no OFF voices */ 91 if (best[i].voice >= 0) { 93 vp = &emu->voices[best[i].voice]; 206 * look up voice table - get the best voice in order of preference 211 struct best_voice *best, int active_only) 218 best[i].time = (unsigned int)-1; /* XXX MAX_?INT really */ 219 best[i].voice = -1; 223 * Go through them all and get a best on 210 lookup_voices(struct snd_emux *emu, struct snd_emu10k1 *hw, struct best_voice *best, int active_only) argument 280 struct best_voice best[V_END]; local [all...] |
/linux-master/drivers/clk/versatile/ |
H A D | icst.c | 51 unsigned int i = 0, rd, best = (unsigned int)-1; local 90 if ((unsigned)f_diff < best) { 95 best = f_diff;
|
/linux-master/fs/jffs2/ |
H A D | compr.c | 35 struct jffs2_compressor *best, uint32_t size, uint32_t bestsize) 45 if ((best->compr != JFFS2_COMPR_LZO) && (bestsize > size)) 154 struct jffs2_compressor *this, *best=NULL; local 210 if (((!best_dlen) || jffs2_is_best_compression(this, best, *cdatalen, best_dlen)) 214 best = this; 221 output_buf = best->compr_buf; 222 best->compr_buf = NULL; 223 best->compr_buf_size = 0; 224 best->stat_compr_blocks++; 225 best 34 jffs2_is_best_compression(struct jffs2_compressor *this, struct jffs2_compressor *best, uint32_t size, uint32_t bestsize) argument [all...] |
/linux-master/drivers/gpu/drm/ |
H A D | drm_vma_manager.c | 136 * Returns NULL if no suitable node can be found. Otherwise, the best match 144 struct drm_mm_node *node, *best; local 149 best = NULL; 156 best = node; 165 if (best) { 166 offset = best->start + best->size; 168 best = NULL; 171 if (!best) 174 return container_of(best, struc [all...] |
/linux-master/drivers/md/ |
H A D | dm-ps-queue-length.c | 194 struct path_info *pi = NULL, *best = NULL; local 203 if (!best || 204 (atomic_read(&pi->qlen) < atomic_read(&best->qlen))) 205 best = pi; 207 if (!atomic_read(&best->qlen)) 211 if (!best) 215 list_move_tail(&best->list, &s->valid_paths); 217 ret = best->path;
|
H A D | dm-ps-service-time.c | 280 struct path_info *pi = NULL, *best = NULL; local 289 if (!best || (st_compare_load(pi, best, nr_bytes) < 0)) 290 best = pi; 292 if (!best) 296 list_move_tail(&best->list, &s->valid_paths); 298 ret = best->path;
|
/linux-master/include/linux/ |
H A D | cpufreq.h | 790 int idx, best = -1; local 798 best = idx; 801 return best; 812 int idx, best = -1; local 821 best = idx; 826 if (best == -1) 829 return best; 832 return best; 858 int idx, best = -1; local 867 best 889 int idx, best = -1; local 926 int idx, best = -1; local 961 int idx, best = -1; local [all...] |
/linux-master/drivers/video/fbdev/core/ |
H A D | modedb.c | 656 u32 best, diff, tdiff; local 780 best = -1; 800 best = i; 804 if (best != -1) { 805 fb_try_mode(var, info, &db[best], bpp); 810 best = -1; 811 DPRINTK("Trying best-fit modes\n"); 827 best = i; 831 if (best != -1) { 832 fb_try_mode(var, info, &db[best], bp 967 struct fb_videomode *mode, *best = NULL; local 1002 struct fb_videomode *cmode, *best = NULL; local 1146 const struct fb_videomode *m, *m1 = NULL, *md = NULL, *best = NULL; local [all...] |
/linux-master/drivers/clk/rockchip/ |
H A D | clk-half-divider.c | 14 unsigned long best, unsigned long flags) 17 return abs(rate - now) < abs(rate - best); 19 return now <= rate && now > best; 40 unsigned long parent_rate, best = 0, now, maxdiv; local 80 if (_is_best_half_div(rate, now, best, flags)) { 82 best = now; 13 _is_best_half_div(unsigned long rate, unsigned long now, unsigned long best, unsigned long flags) argument
|
/linux-master/drivers/crypto/intel/qat/qat_common/ |
H A D | qat_compression.c | 53 unsigned long best = ~0; local 67 if (best > ctr) { 69 best = ctr; 92 best = ~0; 99 if (best > ctr) { 101 best = ctr;
|
H A D | qat_crypto.c | 55 unsigned long best = ~0; local 65 if (best > ctr) { 67 best = ctr; 87 best = ~0; 92 if (best > ctr) { 94 best = ctr;
|
/linux-master/sound/isa/sb/ |
H A D | emu8000_callback.c | 156 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/drivers/net/bonding/ |
H A D | bond_3ad.c | 1670 * the current best, according to the ad_select policy. 1672 static struct aggregator *ad_agg_selection_test(struct aggregator *best, argument 1675 /* 0. If no best, select current. 1677 * 1. If the current agg is not individual, and the best is 1680 * 2. If current agg is individual and the best is not, keep best. 1682 * 3. Therefore, current and best are both individual or both not 1685 * 3a. If current agg partner replied, and best agg partner did not, 1688 * 3b. If current agg partner did not reply and best agg partner 1689 * did reply, keep best 1787 struct aggregator *best, *active, *origin; local [all...] |
/linux-master/drivers/clk/ |
H A D | clk-multiplier.c | 57 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
|
/linux-master/drivers/base/ |
H A D | map.c | 99 unsigned long best = ~0UL; local 110 if (p->range - 1 >= best) 117 best = p->range - 1;
|
/linux-master/drivers/crypto/virtio/ |
H A D | virtio_crypto_mgr.c | 188 unsigned long best = ~0; local 199 if (best > ctr) { 201 best = ctr;
|
/linux-master/drivers/clk/meson/ |
H A D | clk-dualdiv.c | 68 unsigned long best = 0, now = 0; local 80 } else if (abs(now - rate) < abs(best - rate)) { 81 best = now;
|
/linux-master/sound/soc/codecs/ |
H A D | wm8731.c | 71 int val, i, best; local 77 best = 1; 80 abs(wm8731_deemph[best] - wm8731->playback_fs)) 81 best = i; 84 val = best << 1; 86 best = 0; 91 best, wm8731_deemph[best]);
|