| /Linux-v5.4/lib/raid6/ | 
| D | algos.c | 130 	const struct raid6_recov_calls *best;  in raid6_choose_recov()  local 132 	for (best = NULL, algo = raid6_recov_algos; *algo; algo++)  in raid6_choose_recov() 133 		if (!best || (*algo)->priority > best->priority)  in raid6_choose_recov() 135 				best = *algo;  in raid6_choose_recov() 137 	if (best) {  in raid6_choose_recov() 138 		raid6_2data_recov = best->data2;  in raid6_choose_recov() 139 		raid6_datap_recov = best->datap;  in raid6_choose_recov() 141 		pr_info("raid6: using %s recovery algorithm\n", best->name);  in raid6_choose_recov() 145 	return best;  in raid6_choose_recov() 154 	const struct raid6_calls *best;  in raid6_choose_gen()  local [all …] 
 | 
| /Linux-v5.4/arch/x86/kvm/ | 
| D | cpuid.h | 118 	struct kvm_cpuid_entry2 *best;  in guest_cpuid_is_amd()  local 120 	best = kvm_find_cpuid_entry(vcpu, 0, 0);  in guest_cpuid_is_amd() 121 	return best && best->ebx == X86EMUL_CPUID_VENDOR_AuthenticAMD_ebx;  in guest_cpuid_is_amd() 126 	struct kvm_cpuid_entry2 *best;  in guest_cpuid_family()  local 128 	best = kvm_find_cpuid_entry(vcpu, 0x1, 0);  in guest_cpuid_family() 129 	if (!best)  in guest_cpuid_family() 132 	return x86_family(best->eax);  in guest_cpuid_family() 137 	struct kvm_cpuid_entry2 *best;  in guest_cpuid_model()  local 139 	best = kvm_find_cpuid_entry(vcpu, 0x1, 0);  in guest_cpuid_model() 140 	if (!best)  in guest_cpuid_model() [all …] 
 | 
| D | cpuid.c | 69 	struct kvm_cpuid_entry2 *best;  in kvm_update_cpuid()  local 72 	best = kvm_find_cpuid_entry(vcpu, 1, 0);  in kvm_update_cpuid() 73 	if (!best)  in kvm_update_cpuid() 77 	if (boot_cpu_has(X86_FEATURE_XSAVE) && best->function == 0x1) {  in kvm_update_cpuid() 78 		best->ecx &= ~F(OSXSAVE);  in kvm_update_cpuid() 80 			best->ecx |= F(OSXSAVE);  in kvm_update_cpuid() 83 	best->edx &= ~F(APIC);  in kvm_update_cpuid() 85 		best->edx |= F(APIC);  in kvm_update_cpuid() 88 		if (best->ecx & F(TSC_DEADLINE_TIMER))  in kvm_update_cpuid() 94 	best = kvm_find_cpuid_entry(vcpu, 7, 0);  in kvm_update_cpuid() [all …] 
 | 
| /Linux-v5.4/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() 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->score < mthd->skip) {  in nvbios_shadow() 218 					if (mthd->score > best->score)  in nvbios_shadow() 219 						best = mthd;  in nvbios_shadow() [all …] 
 | 
| /Linux-v5.4/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() 204  * look up voice table - get the best voice in order of preference 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() 221 	 * Go through them all and get a best one to use.  in lookup_voices() [all …] 
 | 
| /Linux-v5.4/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() 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 …] 
 | 
| /Linux-v5.4/include/linux/ | 
| D | cpufreq.h | 723 	int idx, best = -1;  in cpufreq_table_find_index_al()  local 731 		best = idx;  in cpufreq_table_find_index_al() 734 	return best;  in cpufreq_table_find_index_al() 744 	int idx, best = -1;  in cpufreq_table_find_index_dl()  local 753 			best = idx;  in cpufreq_table_find_index_dl() 758 		if (best == -1)  in cpufreq_table_find_index_dl() 761 		return best;  in cpufreq_table_find_index_dl() 764 	return best;  in cpufreq_table_find_index_dl() 786 	int idx, best = -1;  in cpufreq_table_find_index_ah()  local 795 			best = idx;  in cpufreq_table_find_index_ah() [all …] 
 | 
| /Linux-v5.4/drivers/net/bonding/ | 
| D | bond_3ad.c | 1549  * the current best, according to the ad_select policy. 1551 static struct aggregator *ad_agg_selection_test(struct aggregator *best,  in ad_agg_selection_test()  argument 1554 	/* 0. If no best, select current.  in ad_agg_selection_test() 1556 	 * 1. If the current agg is not individual, and the best is  in ad_agg_selection_test() 1559 	 * 2. If current agg is individual and the best is not, keep best.  in ad_agg_selection_test() 1561 	 * 3. Therefore, current and best are both individual or both not  in ad_agg_selection_test() 1564 	 * 3a. If current agg partner replied, and best agg partner did not,  in ad_agg_selection_test() 1567 	 * 3b. If current agg partner did not reply and best agg partner  in ad_agg_selection_test() 1568 	 *     did reply, keep best.  in ad_agg_selection_test() 1570 	 * 4.  Therefore, current and best both have partner replies or  in ad_agg_selection_test() [all …] 
 | 
| /Linux-v5.4/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 …] 
 | 
| /Linux-v5.4/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() 170 	 * Go through them all and get a best one to use.  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() [all …] 
 | 
| /Linux-v5.4/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()
  | 
| /Linux-v5.4/arch/sh/kernel/ | 
| 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;  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()
  | 
| /Linux-v5.4/drivers/acpi/hmat/ | 
| D | hmat.c | 32  * selecting the best performing node. 497 static bool hmat_update_best(u8 type, u32 value, u32 *best)  in hmat_update_best()  argument 508 		if (!*best || *best > value) {  in hmat_update_best() 509 			*best = value;  in hmat_update_best() 516 		if (!*best || *best < value) {  in hmat_update_best() 517 			*best = value;  in hmat_update_best() 547 	u32 best = 0;  in hmat_register_target_initiators()  local 553 	 * only that one. Otherwise, find the best performance attributes and  in hmat_register_target_initiators() 578 		best = 0;  in hmat_register_target_initiators() 586 			if (hmat_update_best(loc->hmat_loc->data_type, value, &best))  in hmat_register_target_initiators() [all …] 
 | 
| /Linux-v5.4/lib/ | 
| D | win_minmax.c | 12  * The algorithm keeps track of the best, 2nd best & 3rd best min 14  * the n'th best >= n-1'th best. It also makes sure that the three 23  * holds for 2nd & 3rd best.
  | 
| /Linux-v5.4/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()
  | 
| /Linux-v5.4/drivers/video/fbdev/core/ | 
| D | modedb.c | 648 		u32 best, diff, tdiff;  in fb_find_mode()  local 771 		best = -1;  in fb_find_mode() 791 					best = i;  in fb_find_mode() 795 		if (best != -1) {  in fb_find_mode() 796 			fb_try_mode(var, info, &db[best], bpp);  in fb_find_mode() 801 		best = -1;  in fb_find_mode() 802 		DPRINTK("Trying best-fit modes\n");  in fb_find_mode() 818 					best = i;  in fb_find_mode() 822 		if (best != -1) {  in fb_find_mode() 823 			fb_try_mode(var, info, &db[best], bpp);  in fb_find_mode() [all …] 
 | 
| /Linux-v5.4/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() 123 	dev_info(host->dev, "%s best range: start %d end %d\n", __func__,  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()
  | 
| /Linux-v5.4/kernel/debug/kdb/ | 
| D | kdb_support.c | 689  * allocations are done in brute force best fit. 748 	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() [all …] 
 | 
| /Linux-v5.4/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()
  | 
| /Linux-v5.4/drivers/gpu/drm/ | 
| 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, struct drm_vma_offset_node, vm_node);  in drm_vma_offset_lookup_locked()
  | 
| /Linux-v5.4/scripts/ | 
| D | kallsyms.c | 298 /* uncompress a compressed symbol. When this function is called, the best table 554 	int i, best, bestprofit;  in find_best_token()  local 557 	best = 0;  in find_best_token() 561 			best = i;  in find_best_token() 565 	return best;  in find_best_token() 568 /* this is the core of the algorithm: calculate the "best" table */ 571 	int i, best;  in optimize_result()  local 581 			/* find the token with the best profit value */  in optimize_result() 582 			best = find_best_token();  in optimize_result() 583 			if (token_profit[best] == 0)  in optimize_result() [all …] 
 | 
| /Linux-v5.4/drivers/clk/ | 
| D | clk-multiplier.c | 57 			   unsigned long best, unsigned long flags)  in __is_best_rate()  argument 60 		return abs(rate - new) < abs(rate - best);  in __is_best_rate() 62 	return new >= rate && new < best;  in __is_best_rate() 93 			 * This is the best case for us if we have a  in __bestmult()
  | 
| /Linux-v5.4/kernel/time/ | 
| D | clocksource.c | 61 	 * Find the conversion shift/mult pair which has the best  in clocks_calc_mult_shift() 368 		/* Pick the best watchdog. */  in clocksource_select_watchdog() 479 	/* Pick the best rating. */  in __clocksource_suspend_select() 485  * clocksource_suspend_select - Select the best clocksource for suspend timing 713 	 * the best rating.  in clocksource_find_best() 728 	struct clocksource *best, *cs;  in __clocksource_select()  local 730 	/* Find the best suitable clocksource */  in __clocksource_select() 731 	best = clocksource_find_best(oneshot, skipcur);  in __clocksource_select() 732 	if (!best)  in __clocksource_select() 765 			best = cs;  in __clocksource_select() [all …] 
 | 
| /Linux-v5.4/fs/ext4/ | 
| D | mballoc.h | 46  * How long mballoc can look for a best extent (in found extents) 51  * How long mballoc must look for a best extent 158 	/* the best found extent */ 161 	/* copy of the best found extent taken before preallocation efforts */
  |