| /OK3568_Linux_fs/kernel/lib/raid6/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/arch/x86/kvm/ |
| H A D | cpuid.h | 226 struct kvm_cpuid_entry2 *best; in guest_cpuid_is_amd_or_hygon() local 228 best = kvm_find_cpuid_entry(vcpu, 0, 0); in guest_cpuid_is_amd_or_hygon() 229 return best && in guest_cpuid_is_amd_or_hygon() 230 (is_guest_vendor_amd(best->ebx, best->ecx, best->edx) || in guest_cpuid_is_amd_or_hygon() 231 is_guest_vendor_hygon(best->ebx, best->ecx, best->edx)); in guest_cpuid_is_amd_or_hygon() 236 struct kvm_cpuid_entry2 *best; in guest_cpuid_family() local 238 best = kvm_find_cpuid_entry(vcpu, 0x1, 0); in guest_cpuid_family() 239 if (!best) in guest_cpuid_family() 242 return x86_family(best->eax); in guest_cpuid_family() 247 struct kvm_cpuid_entry2 *best; in guest_cpuid_model() 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 = kvm_find_cpuid_entry(vcpu, 1, 0); in kvm_update_cpuid_runtime() [all …]
|
| /OK3568_Linux_fs/kernel/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->score < mthd->skip) { in nvbios_shadow() 218 if (mthd->score > best->score) in nvbios_shadow() 219 best = mthd; in nvbios_shadow() [all …]
|
| /OK3568_Linux_fs/external/xserver/hw/xfree86/vbe/ |
| H A D | vbeModes.c | 370 * Go through the monitor modes and selecting the best set of 382 DisplayModePtr p, best = NULL; in VBESetModeParameters() local 394 if (!best || (p->Clock > best->Clock)) in VBESetModeParameters() 395 best = p; in VBESetModeParameters() 398 if (best) { in VBESetModeParameters() 402 pMode->HSync = (float) best->Clock * 1000.0 / best->HTotal + 0.5; in VBESetModeParameters() 403 pMode->VRefresh = pMode->HSync / best->VTotal + 0.5; in VBESetModeParameters() 408 data->block->HorizontalTotal = best->HTotal; in VBESetModeParameters() 409 data->block->HorizontalSyncStart = best->HSyncStart; in VBESetModeParameters() 410 data->block->HorizontalSyncEnd = best->HSyncEnd; in VBESetModeParameters() [all …]
|
| /OK3568_Linux_fs/kernel/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() 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/arm/mali400/mali/linux/ |
| H A D | mali_memory_virtual.c | 97 struct mali_vma_node *node, *best; in mali_vma_offset_search() local 103 best = NULL; in mali_vma_offset_search() 110 best = node; in mali_vma_offset_search() 118 if (best) { in mali_vma_offset_search() 119 offset = best->vm_node.start + best->vm_node.size; in mali_vma_offset_search() 121 best = NULL; in mali_vma_offset_search() 125 return best; in mali_vma_offset_search()
|
| /OK3568_Linux_fs/kernel/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 = idx; in cpufreq_table_find_index_ah() [all …]
|
| /OK3568_Linux_fs/kernel/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() 1561 * 4. Therefore, current and best both have partner replies or in ad_agg_selection_test() [all …]
|
| /OK3568_Linux_fs/buildroot/dl/qt5location/git/src/plugins/position/android/src/ |
| H A D | qgeopositioninfosource_android.cpp | 225 //pick best in requestTimeout() 226 QGeoPositionInfo best = queuedSingleUpdates[0]; in requestTimeout() local 231 const qint64 timeDelta = best.timestamp().secsTo(info.timestamp()); in requestTimeout() 234 best = info; in requestTimeout() 240 best.hasAttribute(QGeoPositionInfo::HorizontalAccuracy)) in requestTimeout() 242 best = info.attribute(QGeoPositionInfo::HorizontalAccuracy) < in requestTimeout() 243 best.attribute(QGeoPositionInfo::HorizontalAccuracy) ? info : best; in requestTimeout() 249 best = info; in requestTimeout() 253 emit positionUpdated(best); in requestTimeout()
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/kernel/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() 591 u32 best = 0; in hmat_register_target_initiators() local 598 * only that one. Otherwise, find the best performance attributes and in hmat_register_target_initiators() 631 best = 0; in hmat_register_target_initiators() 640 if (hmat_update_best(loc->hmat_loc->data_type, value, &best)) in hmat_register_target_initiators() [all …]
|
| /OK3568_Linux_fs/kernel/fs/jffs2/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/sound/isa/sb/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/md/ |
| H A 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()
|
| /OK3568_Linux_fs/kernel/drivers/video/fbdev/core/ |
| H A 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 …]
|
| /OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/deps/shelf-pack/2.1.1/include/mapbox/ |
| H A D | shelf-pack.hpp | 162 * Uses the Shelf Best Height Fit algorithm from 244 } best; in packOne() local 271 if (waste < best.waste) { in packOne() 272 best.waste = waste; in packOne() 273 best.pfreebin = freebin; in packOne() 278 // Next find the best shelf in packOne() 297 if (waste < best.waste) { in packOne() 298 best.waste = waste; in packOne() 299 best.pshelf = &shelf; in packOne() 304 if (best.pfreebin) { in packOne() [all …]
|
| /OK3568_Linux_fs/kernel/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; 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()
|
| /OK3568_Linux_fs/kernel/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->size = size; in debug_kmalloc() 782 h_offset = ((char *)best - debug_alloc_pool) + in debug_kmalloc() [all …]
|
| /OK3568_Linux_fs/yocto/poky/meta/lib/oeqa/selftest/cases/ |
| H A D | tinfoil.py | 43 best = tinfoil.find_best_provider(testrecipe) 44 if not best: 46 rd = tinfoil.parse_recipe_file(best[3]) 53 best = tinfoil.find_best_provider(testrecipe) 54 if not best: 56 rd = tinfoil.parse_recipe_file(best[3]) 75 best = tinfoil.find_best_provider(testrecipe) 76 if not best: 78 rd = tinfoil.parse_recipe_file(best[3], config_data=localdata)
|
| /OK3568_Linux_fs/kernel/lib/ |
| H A 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.
|
| /OK3568_Linux_fs/kernel/net/dccp/ |
| H A 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()
|
| /OK3568_Linux_fs/kernel/drivers/mmc/host/ |
| H A 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()
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/lib/gcc/arm-none-linux-gnueabihf/10.3.1/plugin/include/ |
| H A D | spellcheck.h | 72 /* A type for use when determining the best match against a string, 77 This type accumulates the best possible match against GOAL_TYPE for 102 and if it's the best so far, record it. */ 116 may be >= the best distance so far. If so, we can reject 130 has beaten the previous best value. */ 165 /* Get the best candidate so far, but applying a filter to ensure
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/lib/gcc/aarch64-none-linux-gnu/10.3.1/plugin/include/ |
| H A D | spellcheck.h | 72 /* A type for use when determining the best match against a string, 77 This type accumulates the best possible match against GOAL_TYPE for 102 and if it's the best so far, record it. */ 116 may be >= the best distance so far. If so, we can reject 130 has beaten the previous best value. */ 165 /* Get the best candidate so far, but applying a filter to ensure
|