/kernel/linux/linux-5.10/lib/raid6/ |
D | algos.c | 127 const struct raid6_recov_calls *best; in raid6_choose_recov() local 129 for (best = NULL, algo = raid6_recov_algos; *algo; algo++) in raid6_choose_recov() 130 if (!best || (*algo)->priority > best->priority) in raid6_choose_recov() 132 best = *algo; in raid6_choose_recov() 134 if (best) { in raid6_choose_recov() 135 raid6_2data_recov = best->data2; in raid6_choose_recov() 136 raid6_datap_recov = best->datap; in raid6_choose_recov() 138 pr_info("raid6: using %s recovery algorithm\n", best->name); in raid6_choose_recov() 142 return best; in raid6_choose_recov() 151 const struct raid6_calls *best; in raid6_choose_gen() local [all …]
|
/kernel/linux/linux-5.10/arch/x86/kvm/ |
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 239 best = kvm_find_cpuid_entry(vcpu, 0x1, 0); in guest_cpuid_family() 240 if (!best) in guest_cpuid_family() 243 return x86_family(best->eax); in guest_cpuid_family() 248 struct kvm_cpuid_entry2 *best; in guest_cpuid_model() local [all …]
|
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 = kvm_find_cpuid_entry(vcpu, 1, 0); in kvm_update_cpuid_runtime() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
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() 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->score < mthd->skip) { in nvbios_shadow() 218 if (mthd->score > best->score) in nvbios_shadow() 219 best = mthd; in nvbios_shadow() 227 if (mthd != best) in nvbios_shadow() [all …]
|
/kernel/linux/linux-5.10/include/linux/ |
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 = idx; in cpufreq_table_find_index_ah() [all …]
|
/kernel/linux/linux-5.10/drivers/usb/core/ |
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() 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() 184 i = best->desc.bConfigurationValue; in usb_choose_configuration()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
D | drm_vma_manager.c | 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, struct drm_vma_offset_node, vm_node); in drm_vma_offset_lookup_locked()
|
/kernel/linux/linux-5.10/fs/jffs2/ |
D | compr.c | 35 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 …]
|
/kernel/linux/linux-5.10/sound/pci/emu10k1/ |
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() 209 struct best_voice *best, int active_only) in lookup_voices() argument 216 best[i].time = (unsigned int)-1; /* XXX MAX_?INT really */ in lookup_voices() 217 best[i].voice = -1; in lookup_voices() 233 bp = best + V_FREE; in lookup_voices() 235 bp = best + V_OFF; in lookup_voices() [all …]
|
/kernel/linux/linux-5.10/drivers/video/fbdev/core/ |
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() 823 best = i; in fb_find_mode() 827 if (best != -1) { in fb_find_mode() 828 fb_try_mode(var, info, &db[best], bpp); in fb_find_mode() 964 struct fb_videomode *mode, *best = NULL; in fb_find_best_mode() local [all …]
|
/kernel/linux/linux-5.10/drivers/md/ |
D | dm-queue-length.c | 190 struct path_info *pi = NULL, *best = NULL; in ql_select_path() local 199 if (!best || in ql_select_path() 200 (atomic_read(&pi->qlen) < atomic_read(&best->qlen))) in ql_select_path() 201 best = pi; in ql_select_path() 203 if (!atomic_read(&best->qlen)) in ql_select_path() 207 if (!best) in ql_select_path() 211 list_move_tail(&best->list, &s->valid_paths); in ql_select_path() 213 ret = best->path; in ql_select_path()
|
D | dm-service-time.c | 277 struct path_info *pi = NULL, *best = NULL; in st_select_path() local 286 if (!best || (st_compare_load(pi, best, nr_bytes) < 0)) in st_select_path() 287 best = pi; in st_select_path() 289 if (!best) in st_select_path() 293 list_move_tail(&best->list, &s->valid_paths); in st_select_path() 295 ret = best->path; in st_select_path()
|
/kernel/linux/linux-5.10/kernel/debug/kdb/ |
D | kdb_support.c | 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->size = size; in debug_kmalloc() 782 h_offset = ((char *)best - debug_alloc_pool) + in debug_kmalloc() 783 dah_overhead + best->size; in debug_kmalloc() [all …]
|
/kernel/linux/linux-5.10/drivers/net/bonding/ |
D | bond_3ad.c | 1542 static struct aggregator *ad_agg_selection_test(struct aggregator *best, in ad_agg_selection_test() argument 1569 if (!best) in ad_agg_selection_test() 1572 if (!curr->is_individual && best->is_individual) in ad_agg_selection_test() 1575 if (curr->is_individual && !best->is_individual) in ad_agg_selection_test() 1576 return best; in ad_agg_selection_test() 1578 if (__agg_has_partner(curr) && !__agg_has_partner(best)) in ad_agg_selection_test() 1581 if (!__agg_has_partner(curr) && __agg_has_partner(best)) in ad_agg_selection_test() 1582 return best; in ad_agg_selection_test() 1586 if (__agg_active_ports(curr) > __agg_active_ports(best)) in ad_agg_selection_test() 1589 if (__agg_active_ports(curr) < __agg_active_ports(best)) in ad_agg_selection_test() [all …]
|
/kernel/linux/linux-5.10/drivers/acpi/numa/ |
D | hmat.c | 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 632 best = 0; in hmat_register_target_initiators() 641 if (hmat_update_best(loc->hmat_loc->data_type, value, &best)) in hmat_register_target_initiators() 643 if (value != best) in hmat_register_target_initiators() 646 if (best) in hmat_register_target_initiators() [all …]
|
/kernel/linux/linux-5.10/net/dccp/ |
D | qpolicy.c | 38 struct sk_buff *skb, *best = NULL; in qpolicy_prio_best_skb() local 41 if (best == NULL || skb->priority > best->priority) in qpolicy_prio_best_skb() 42 best = skb; in qpolicy_prio_best_skb() 43 return best; in qpolicy_prio_best_skb()
|
/kernel/linux/linux-5.10/sound/isa/sb/ |
D | emu8000_callback.c | 156 struct best { in get_voice() struct 159 } best[END]; in get_voice() local 160 struct best *bp; in get_voice() 165 best[i].time = (unsigned int)(-1); /* XXX MAX_?INT really */ in get_voice() 166 best[i].voice = -1; in get_voice() 179 bp = best + OFF; in get_voice() 182 bp = best + RELEASED; in get_voice() 185 bp = best + OFF; in get_voice() 188 bp = best + PLAYING; in get_voice() 197 bp = best + OFF; in get_voice() [all …]
|
/kernel/linux/linux-5.10/arch/sh/kernel/ |
D | unwinder.c | 68 struct unwinder *best; in select_unwinder() local 73 best = list_entry(unwinder_list.next, struct unwinder, list); in select_unwinder() 74 if (best == curr_unwinder) in select_unwinder() 77 return best; in select_unwinder()
|
/kernel/linux/linux-5.10/drivers/clk/rockchip/ |
D | clk-half-divider.c | 14 unsigned long best, unsigned long flags) in _is_best_half_div() argument 17 return abs(rate - now) < abs(rate - best); in _is_best_half_div() 19 return now <= rate && now > best; in _is_best_half_div() 40 unsigned long parent_rate, best = 0, now, maxdiv; in clk_half_divider_bestdiv() local 80 if (_is_best_half_div(rate, now, best, flags)) { in clk_half_divider_bestdiv() 82 best = now; in clk_half_divider_bestdiv()
|
/kernel/linux/linux-5.10/drivers/mmc/host/ |
D | dw_mmc-zx.c | 92 int ret, len = 0, start = 0, end = 0, delay, best = 0; in dw_mci_zx_emmc_execute_tuning() local 101 best = (start + end) >> 1; in dw_mci_zx_emmc_execute_tuning() 116 best = (start + end) >> 1; in dw_mci_zx_emmc_execute_tuning() 120 if (best < 0) in dw_mci_zx_emmc_execute_tuning() 125 return dw_mci_zx_emmc_set_delay(host, best, DELAY_TYPE_CLK); in dw_mci_zx_emmc_execute_tuning()
|
/kernel/linux/linux-5.10/sound/soc/codecs/ |
D | wm9081.c | 997 int ret, i, best, best_val, cur_val; in wm9081_hw_params() local 1054 best = 0; in wm9081_hw_params() 1061 best = i; in wm9081_hw_params() 1066 clk_sys_rates[best].ratio); in wm9081_hw_params() 1067 clk_ctrl2 |= (clk_sys_rates[best].clk_sys_rate in wm9081_hw_params() 1071 best = 0; in wm9081_hw_params() 1077 best = i; in wm9081_hw_params() 1082 sample_rates[best].rate); in wm9081_hw_params() 1083 clk_ctrl2 |= (sample_rates[best].sample_rate in wm9081_hw_params() 1087 best = 0; in wm9081_hw_params() [all …]
|
D | wm8904.c | 421 int best, best_val, save, i, cfg; in wm8904_set_retune_mobile() local 429 best = 0; in wm8904_set_retune_mobile() 436 best = i; in wm8904_set_retune_mobile() 443 pdata->retune_mobile_cfgs[best].name, in wm8904_set_retune_mobile() 444 pdata->retune_mobile_cfgs[best].rate, in wm8904_set_retune_mobile() 454 pdata->retune_mobile_cfgs[best].regs[i]); in wm8904_set_retune_mobile() 493 int val, i, best; in wm8904_set_deemph() local 499 best = 1; in wm8904_set_deemph() 502 abs(deemph_settings[best] - wm8904->fs)) in wm8904_set_deemph() 503 best = i; in wm8904_set_deemph() [all …]
|
/kernel/linux/linux-5.10/drivers/clk/versatile/ |
D | icst.c | 51 unsigned int i = 0, rd, best = (unsigned int)-1; in icst_hz_to_vco() local 90 if ((unsigned)f_diff < best) { in icst_hz_to_vco() 95 best = f_diff; in icst_hz_to_vco()
|
/kernel/linux/linux-5.10/drivers/clk/meson/ |
D | clk-pll.c | 122 unsigned long best, in meson_clk_pll_is_better() argument 128 if (abs(now - rate) < abs(best - rate)) in meson_clk_pll_is_better() 132 if (now <= rate && best < now) in meson_clk_pll_is_better() 221 unsigned long best = 0, now = 0; in meson_clk_get_pll_settings() local 232 if (meson_clk_pll_is_better(rate, best, now, pll)) { in meson_clk_get_pll_settings() 233 best = now; in meson_clk_get_pll_settings() 242 return best ? 0 : -EINVAL; in meson_clk_get_pll_settings()
|
/kernel/linux/linux-5.10/scripts/ |
D | kallsyms.c | 593 int i, best, bestprofit; in find_best_token() local 596 best = 0; in find_best_token() 600 best = i; in find_best_token() 604 return best; in find_best_token() 610 int i, best; in optimize_result() local 621 best = find_best_token(); in optimize_result() 622 if (token_profit[best] == 0) in optimize_result() 627 best_table[i][0] = best & 0xFF; in optimize_result() 628 best_table[i][1] = (best >> 8) & 0xFF; in optimize_result()
|