/kernel/linux/linux-5.10/lib/raid6/ |
H A D | algos.c | 143 const struct raid6_recov_calls *best; in raid6_choose_recov() local 145 for (best = NULL, algo = raid6_recov_algos; *algo; algo++) in raid6_choose_recov() 146 if (!best || (*algo)->priority > best->priority) in raid6_choose_recov() 148 best = *algo; in raid6_choose_recov() 150 if (best) { in raid6_choose_recov() 151 raid6_2data_recov = best->data2; in raid6_choose_recov() 152 raid6_datap_recov = best->datap; in raid6_choose_recov() 154 pr_info("raid6: using %s recovery algorithm\n", best->name); in raid6_choose_recov() 158 return best; in raid6_choose_recov() 167 const struct raid6_calls *best; raid6_choose_gen() local [all...] |
/kernel/linux/linux-6.6/lib/raid6/ |
H A D | algos.c | 141 const struct raid6_recov_calls *best; in raid6_choose_recov() local 143 for (best = NULL, algo = raid6_recov_algos; *algo; algo++) in raid6_choose_recov() 144 if (!best || (*algo)->priority > best->priority) in raid6_choose_recov() 146 best = *algo; in raid6_choose_recov() 148 if (best) { in raid6_choose_recov() 149 raid6_2data_recov = best->data2; in raid6_choose_recov() 150 raid6_datap_recov = best->datap; in raid6_choose_recov() 152 pr_info("raid6: using %s recovery algorithm\n", best->name); in raid6_choose_recov() 156 return best; in raid6_choose_recov() 165 const struct raid6_calls *best; raid6_choose_gen() local [all...] |
/kernel/linux/linux-6.6/arch/x86/kvm/ |
H A D | cpuid.h | 112 struct kvm_cpuid_entry2 *best; in guest_cpuid_is_amd_or_hygon() local 114 best = kvm_find_cpuid_entry(vcpu, 0); in guest_cpuid_is_amd_or_hygon() 115 return best && in guest_cpuid_is_amd_or_hygon() 116 (is_guest_vendor_amd(best->ebx, best->ecx, best->edx) || in guest_cpuid_is_amd_or_hygon() 117 is_guest_vendor_hygon(best->ebx, best->ecx, best->edx)); in guest_cpuid_is_amd_or_hygon() 122 struct kvm_cpuid_entry2 *best; in guest_cpuid_is_intel() local 130 struct kvm_cpuid_entry2 *best; guest_cpuid_family() local 141 struct kvm_cpuid_entry2 *best; guest_cpuid_model() local 157 struct kvm_cpuid_entry2 *best; guest_cpuid_stepping() local [all...] |
H A D | cpuid.c | 137 struct kvm_cpuid_entry2 *best; in kvm_check_cpuid() local 144 best = cpuid_entry2_find(entries, nent, 0x80000008, in kvm_check_cpuid() 146 if (best) { in kvm_check_cpuid() 147 int vaddr_bits = (best->eax & 0xff00) >> 8; in kvm_check_cpuid() 157 best = cpuid_entry2_find(entries, nent, 0xd, 0); in kvm_check_cpuid() 158 if (!best) in kvm_check_cpuid() 161 xfeatures = best->eax | ((u64)best->edx << 32); in kvm_check_cpuid() 240 struct kvm_cpuid_entry2 *best = kvm_find_kvm_cpuid_features(vcpu); in kvm_update_pv_runtime() local 246 if (best) in kvm_update_pv_runtime() 256 struct kvm_cpuid_entry2 *best; cpuid_get_supported_xcr0() local 268 struct kvm_cpuid_entry2 *best; __kvm_update_cpuid_runtime() local 327 struct kvm_cpuid_entry2 *best; kvm_vcpu_after_set_cpuid() local 387 struct kvm_cpuid_entry2 *best; cpuid_query_maxphyaddr() local [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
H A D | shadow.c | 180 }, *mthd, *best = NULL; in nvbios_shadow() local 193 best = mthd; in nvbios_shadow() 200 if (!best && (best = mthd)) { in nvbios_shadow() 206 if (!best->score) { in nvbios_shadow() 213 /* scan all potential bios sources, looking for best image */ in nvbios_shadow() 214 if (!best || !best->score) { in nvbios_shadow() 215 for (mthd = mthds, best = mthd; mthd->func; mthd++) { in nvbios_shadow() 216 if (!mthd->skip || best in nvbios_shadow() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
H A D | shadow.c | 186 }, *mthd, *best = NULL; in nvbios_shadow() local 199 best = mthd; in nvbios_shadow() 206 if (!best && (best = mthd)) { in nvbios_shadow() 212 if (!best->score) { in nvbios_shadow() 219 /* scan all potential bios sources, looking for best image */ in nvbios_shadow() 220 if (!best || !best->score) { in nvbios_shadow() 221 for (mthd = mthds, best = mthd; mthd->func; mthd++) { in nvbios_shadow() 222 if (!mthd->skip || best in nvbios_shadow() [all...] |
/kernel/linux/linux-5.10/arch/x86/kvm/ |
H A D | cpuid.h | 227 struct kvm_cpuid_entry2 *best; in guest_cpuid_is_amd_or_hygon() local 229 best = kvm_find_cpuid_entry(vcpu, 0, 0); in guest_cpuid_is_amd_or_hygon() 230 return best && in guest_cpuid_is_amd_or_hygon() 231 (is_guest_vendor_amd(best->ebx, best->ecx, best->edx) || in guest_cpuid_is_amd_or_hygon() 232 is_guest_vendor_hygon(best->ebx, best->ecx, best->edx)); in guest_cpuid_is_amd_or_hygon() 237 struct kvm_cpuid_entry2 *best; in guest_cpuid_family() local 248 struct kvm_cpuid_entry2 *best; guest_cpuid_model() local 259 struct kvm_cpuid_entry2 *best; guest_cpuid_stepping() local [all...] |
H A D | cpuid.c | 76 struct kvm_cpuid_entry2 *best; in kvm_check_cpuid() local 82 best = cpuid_entry2_find(entries, nent, 0x80000008, 0); in kvm_check_cpuid() 83 if (best) { in kvm_check_cpuid() 84 int vaddr_bits = (best->eax & 0xff00) >> 8; in kvm_check_cpuid() 95 struct kvm_cpuid_entry2 *best; in kvm_update_pv_runtime() local 97 best = kvm_find_cpuid_entry(vcpu, KVM_CPUID_FEATURES, 0); in kvm_update_pv_runtime() 103 if (best) in kvm_update_pv_runtime() 104 vcpu->arch.pv_cpuid.features = best->eax; in kvm_update_pv_runtime() 109 struct kvm_cpuid_entry2 *best; in kvm_update_cpuid_runtime() local 111 best in kvm_update_cpuid_runtime() 153 struct kvm_cpuid_entry2 *best; kvm_vcpu_after_set_cpuid() local 213 struct kvm_cpuid_entry2 *best; cpuid_query_maxphyaddr() local [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | cpufreq.h | 772 int idx, best = -1; in cpufreq_table_find_index_al() local 780 best = idx; in cpufreq_table_find_index_al() 783 return best; in cpufreq_table_find_index_al() 793 int idx, best = -1; in cpufreq_table_find_index_dl() local 802 best = idx; in cpufreq_table_find_index_dl() 807 if (best == -1) in cpufreq_table_find_index_dl() 810 return best; in cpufreq_table_find_index_dl() 813 return best; in cpufreq_table_find_index_dl() 835 int idx, best = -1; in cpufreq_table_find_index_ah() local 844 best in cpufreq_table_find_index_ah() 865 int idx, best = -1; cpufreq_table_find_index_dh() local 898 int idx, best = -1; cpufreq_table_find_index_ac() local 932 int idx, best = -1; cpufreq_table_find_index_dc() local [all...] |
/kernel/linux/linux-5.10/drivers/usb/core/ |
H A D | generic.c | 61 struct usb_host_config *c, *best; in usb_choose_configuration() local 66 best = NULL; in usb_choose_configuration() 130 best = c; in usb_choose_configuration() 136 best = c; in usb_choose_configuration() 140 * because it can reassign best, which for audio devices in usb_choose_configuration() 156 best = c; in usb_choose_configuration() 168 best = c; in usb_choose_configuration() 174 else if (!best) in usb_choose_configuration() 175 best = c; in usb_choose_configuration() 183 if (best) { in usb_choose_configuration() [all...] |
/kernel/linux/linux-6.6/drivers/usb/core/ |
H A D | generic.c | 61 struct usb_host_config *c, *best; in usb_choose_configuration() local 66 best = NULL; in usb_choose_configuration() 130 best = c; in usb_choose_configuration() 136 best = c; in usb_choose_configuration() 140 * because it can reassign best, which for audio devices in usb_choose_configuration() 156 best = c; in usb_choose_configuration() 168 best = c; in usb_choose_configuration() 174 else if (!best) in usb_choose_configuration() 175 best = c; in usb_choose_configuration() 183 if (best) { in usb_choose_configuration() [all...] |
/kernel/linux/linux-6.6/sound/pci/emu10k1/ |
H A D | emu10k1_callback.c | 27 struct best_voice *best, int active_only); 84 struct best_voice best[V_END]; in snd_emu10k1_synth_get_voice() local 89 lookup_voices(emu, hw, best, 1); /* no OFF voices */ in snd_emu10k1_synth_get_voice() 91 if (best[i].voice >= 0) { in snd_emu10k1_synth_get_voice() 93 vp = &emu->voices[best[i].voice]; in snd_emu10k1_synth_get_voice() 206 * look up voice table - get the best voice in order of preference 211 struct best_voice *best, int active_only) in lookup_voices() 218 best[i].time = (unsigned int)-1; /* XXX MAX_?INT really */ in lookup_voices() 219 best[i].voice = -1; in lookup_voices() 223 * Go through them all and get a best on in lookup_voices() 210 lookup_voices(struct snd_emux *emu, struct snd_emu10k1 *hw, struct best_voice *best, int active_only) lookup_voices() argument 280 struct best_voice best[V_END]; get_voice() local [all...] |
/kernel/linux/linux-5.10/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; in drm_vma_offset_lookup_locked() local 149 best = NULL; in drm_vma_offset_lookup_locked() 156 best = node; in drm_vma_offset_lookup_locked() 165 if (best) { in drm_vma_offset_lookup_locked() 166 offset = best->start + best->size; in drm_vma_offset_lookup_locked() 168 best = NULL; in drm_vma_offset_lookup_locked() 171 if (!best) in drm_vma_offset_lookup_locked() 174 return container_of(best, struc in drm_vma_offset_lookup_locked() [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | cpufreq.h | 811 int idx, best = -1; in cpufreq_table_find_index_al() local 819 best = idx; in cpufreq_table_find_index_al() 822 return best; in cpufreq_table_find_index_al() 833 int idx, best = -1; in cpufreq_table_find_index_dl() local 842 best = idx; in cpufreq_table_find_index_dl() 847 if (best == -1) in cpufreq_table_find_index_dl() 850 return best; in cpufreq_table_find_index_dl() 853 return best; in cpufreq_table_find_index_dl() 879 int idx, best = -1; in cpufreq_table_find_index_ah() local 888 best in cpufreq_table_find_index_ah() 910 int idx, best = -1; cpufreq_table_find_index_dh() local 947 int idx, best = -1; cpufreq_table_find_index_ac() local 982 int idx, best = -1; cpufreq_table_find_index_dc() local [all...] |
/kernel/linux/linux-5.10/fs/jffs2/ |
H A D | compr.c | 35 struct jffs2_compressor *best, uint32_t size, uint32_t bestsize) in jffs2_is_best_compression() 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 in jffs2_compress() 34 jffs2_is_best_compression(struct jffs2_compressor *this, struct jffs2_compressor *best, uint32_t size, uint32_t bestsize) jffs2_is_best_compression() argument [all...] |
/kernel/linux/linux-6.6/fs/jffs2/ |
H A D | compr.c | 35 struct jffs2_compressor *best, uint32_t size, uint32_t bestsize) in jffs2_is_best_compression() 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 in jffs2_compress() 34 jffs2_is_best_compression(struct jffs2_compressor *this, struct jffs2_compressor *best, uint32_t size, uint32_t bestsize) jffs2_is_best_compression() argument [all...] |
/kernel/linux/linux-6.6/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; in drm_vma_offset_lookup_locked() local 149 best = NULL; in drm_vma_offset_lookup_locked() 156 best = node; in drm_vma_offset_lookup_locked() 165 if (best) { in drm_vma_offset_lookup_locked() 166 offset = best->start + best->size; in drm_vma_offset_lookup_locked() 168 best = NULL; in drm_vma_offset_lookup_locked() 171 if (!best) in drm_vma_offset_lookup_locked() 174 return container_of(best, struc in drm_vma_offset_lookup_locked() [all...] |
/kernel/linux/linux-5.10/sound/pci/emu10k1/ |
H A D | emu10k1_callback.c | 27 struct best_voice *best, int active_only); 83 struct best_voice best[V_END]; in snd_emu10k1_synth_get_voice() local 88 lookup_voices(emu, hw, best, 1); /* no OFF voices */ in snd_emu10k1_synth_get_voice() 90 if (best[i].voice >= 0) { in snd_emu10k1_synth_get_voice() 92 vp = &emu->voices[best[i].voice]; in snd_emu10k1_synth_get_voice() 204 * look up voice table - get the best voice in order of preference 209 struct best_voice *best, int active_only) in lookup_voices() 216 best[i].time = (unsigned int)-1; /* XXX MAX_?INT really */ in lookup_voices() 217 best[i].voice = -1; in lookup_voices() 221 * Go through them all and get a best on in lookup_voices() 208 lookup_voices(struct snd_emux *emu, struct snd_emu10k1 *hw, struct best_voice *best, int active_only) lookup_voices() argument 278 struct best_voice best[V_END]; get_voice() local [all...] |
/kernel/linux/linux-5.10/drivers/video/fbdev/core/ |
H A D | modedb.c | 653 u32 best, diff, tdiff; in fb_find_mode() local 776 best = -1; in fb_find_mode() 796 best = i; in fb_find_mode() 800 if (best != -1) { in fb_find_mode() 801 fb_try_mode(var, info, &db[best], bpp); in fb_find_mode() 806 best = -1; in fb_find_mode() 807 DPRINTK("Trying best-fit modes\n"); in fb_find_mode() 823 best = i; in fb_find_mode() 827 if (best != -1) { in fb_find_mode() 828 fb_try_mode(var, info, &db[best], bp in fb_find_mode() 964 struct fb_videomode *mode, *best = NULL; fb_find_best_mode() local 1002 struct fb_videomode *cmode, *best = NULL; fb_find_nearest_mode() local 1153 const struct fb_videomode *m, *m1 = NULL, *md = NULL, *best = NULL; fb_find_best_display() local [all...] |
/kernel/linux/linux-6.6/drivers/video/fbdev/core/ |
H A D | modedb.c | 656 u32 best, diff, tdiff; in fb_find_mode() local 780 best = -1; in fb_find_mode() 800 best = i; in fb_find_mode() 804 if (best != -1) { in fb_find_mode() 805 fb_try_mode(var, info, &db[best], bpp); in fb_find_mode() 810 best = -1; in fb_find_mode() 811 DPRINTK("Trying best-fit modes\n"); 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], bp in fb_find_mode() 967 struct fb_videomode *mode, *best = NULL; fb_find_best_mode() local 1002 struct fb_videomode *cmode, *best = NULL; fb_find_nearest_mode() local 1146 const struct fb_videomode *m, *m1 = NULL, *md = NULL, *best = NULL; fb_find_best_display() local [all...] |
/kernel/linux/linux-5.10/drivers/net/bonding/ |
H A D | bond_3ad.c | 1540 * the current best, according to the ad_select policy. 1542 static struct aggregator *ad_agg_selection_test(struct aggregator *best, in ad_agg_selection_test() argument 1545 /* 0. If no best, select current. in ad_agg_selection_test() 1547 * 1. If the current agg is not individual, and the best is in ad_agg_selection_test() 1550 * 2. If current agg is individual and the best is not, keep best. in ad_agg_selection_test() 1552 * 3. Therefore, current and best are both individual or both not in ad_agg_selection_test() 1555 * 3a. If current agg partner replied, and best agg partner did not, in ad_agg_selection_test() 1558 * 3b. If current agg partner did not reply and best agg partner in ad_agg_selection_test() 1559 * did reply, keep best in ad_agg_selection_test() 1657 struct aggregator *best, *active, *origin; ad_agg_selection_logic() local [all...] |
/kernel/linux/linux-6.6/drivers/net/bonding/ |
H A D | bond_3ad.c | 1570 * the current best, according to the ad_select policy. 1572 static struct aggregator *ad_agg_selection_test(struct aggregator *best, in ad_agg_selection_test() argument 1575 /* 0. If no best, select current. in ad_agg_selection_test() 1577 * 1. If the current agg is not individual, and the best is in ad_agg_selection_test() 1580 * 2. If current agg is individual and the best is not, keep best. in ad_agg_selection_test() 1582 * 3. Therefore, current and best are both individual or both not in ad_agg_selection_test() 1585 * 3a. If current agg partner replied, and best agg partner did not, in ad_agg_selection_test() 1588 * 3b. If current agg partner did not reply and best agg partner in ad_agg_selection_test() 1589 * did reply, keep best in ad_agg_selection_test() 1687 struct aggregator *best, *active, *origin; ad_agg_selection_logic() local [all...] |
/kernel/linux/linux-5.10/drivers/acpi/numa/ |
H A D | hmat.c | 45 * selecting the best performing node. 532 static bool hmat_update_best(u8 type, u32 value, u32 *best) in hmat_update_best() argument 543 if (!*best || *best > value) { in hmat_update_best() 544 *best = value; in hmat_update_best() 551 if (!*best || *best < value) { in hmat_update_best() 552 *best = value; in hmat_update_best() 592 u32 best = 0; in hmat_register_target_initiators() local 599 * only that one. Otherwise, find the best performanc in hmat_register_target_initiators() [all...] |
/kernel/linux/linux-5.10/kernel/debug/kdb/ |
H A D | kdb_support.c | 690 * allocations are done in brute force best fit. 749 struct debug_alloc_header *best, *bestprev, *prev, *h; in debug_kmalloc() local 761 prev = best = bestprev = NULL; in debug_kmalloc() 763 if (h->size >= size && (!best || h->size < best->size)) { in debug_kmalloc() 764 best = h; in debug_kmalloc() 774 if (!best) in debug_kmalloc() 776 rem = best->size - size; in debug_kmalloc() 778 if (best->next == 0 && bestprev == NULL && rem < dah_overhead) in debug_kmalloc() 781 best in debug_kmalloc() [all...] |
/kernel/linux/linux-6.6/drivers/acpi/numa/ |
H A D | hmat.c | 44 * selecting the best performing node. 531 static bool hmat_update_best(u8 type, u32 value, u32 *best) in hmat_update_best() argument 542 if (!*best || *best > value) { in hmat_update_best() 543 *best = value; in hmat_update_best() 550 if (!*best || *best < value) { in hmat_update_best() 551 *best = value; in hmat_update_best() 591 u32 best = 0; in hmat_register_target_initiators() local 598 * only that one. Otherwise, find the best performanc in hmat_register_target_initiators() [all...] |