HomeSort by: relevance | last modified time | path
    Searched refs:best (Results 1 - 25 of 42) sorted by relevancy

1 2

  /src/lib/libc/inet/
inet_ntop.c 135 struct { int base, len; } best, cur; local in function:inet_ntop6
151 best.base = -1;
152 best.len = 0;
163 if (best.base == -1 || cur.len > best.len)
164 best = cur;
170 if (best.base == -1 || cur.len > best.len)
171 best = cur;
173 if (best.base != -1 && best.len < 2
    [all...]
inet_cidr_ntop.c 177 struct { int base, len; } best, cur; local in function:inet_cidr_ntop_ipv6
194 best.base = -1;
195 best.len = 0;
206 if (best.base == -1 || cur.len > best.len)
207 best = cur;
213 if (best.base == -1 || cur.len > best.len)
214 best = cur;
216 if (best.base != -1 && best.len < 2
    [all...]
  /src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/bios/
nouveau_nvkm_subdev_bios_shadow.c 185 }, *mthd, *best = NULL;
198 best = mthd;
205 if (!best && (best = mthd)) {
211 if (!best->score) {
218 /* scan all potential bios sources, looking for best image */
219 if (!best || !best->score) {
220 for (mthd = mthds, best = mthd; mthd->func; mthd++) {
221 if (!mthd->skip || best->score < mthd->skip)
    [all...]
  /src/sys/dev/videomode/
pickmode.c 47 const struct videomode *this, *best = NULL; local in function:pick_mode_by_dotclock
57 if (best != NULL) {
58 if (this->dot_clock > best->dot_clock)
59 best = this;
61 best = this;
63 if (best != NULL)
64 DPRINTF("found %s\n", best->name);
66 return best;
72 const struct videomode *this, *best = NULL; local in function:pick_mode_by_ref
85 if (best != NULL)
    [all...]
  /src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/
sanitizer_stacktrace.cc 126 uptr best = 0; local in function:__sanitizer::BufferedStackTrace::LocatePcInTrace
128 if (Distance(trace[i], pc) < Distance(trace[best], pc)) best = i;
130 return best;
  /src/sys/external/bsd/drm2/dist/drm/
drm_vma_manager.c 141 * Returns NULL if no suitable node can be found. Otherwise, the best match
149 struct drm_mm_node *node, *best; local in function:drm_vma_offset_lookup_locked
154 best = NULL;
161 best = node;
170 if (best) {
171 offset = best->start + best->size;
173 best = NULL;
176 if (!best)
179 return container_of(best, struct drm_vma_offset_node, vm_node)
    [all...]
drm_mm.c 411 struct drm_mm_node *best; local in function:best_hole
413 best = rb_tree_find_node_leq(&mm->holes_size.rb_root.rbr_tree, &size);
414 KASSERT(best == NULL || size <= best->hole_size);
416 return best;
419 struct drm_mm_node *best = NULL;
426 best = node;
433 return best;
  /src/sys/dev/isapnp/
isapnp.c 393 * Return the best configuration for each logical device, remove and
399 struct isapnp_attach_args *c, *best, *f = *ipa; local in function:isapnp_bestconfig
408 /* Find the best config */
409 for (best = c = f; c != NULL; c = c->ipa_sibling) {
412 if (c->ipa_pref < best->ipa_pref)
413 best = c;
418 * it to test the best config!
420 best->ipa_ic = sc->sc_ic;
422 /* Test the best config */
423 error = isapnp_testconfig(sc->sc_iot, sc->sc_memt, best, 0)
    [all...]
  /src/sys/netbt/
rfcomm_dlc.c 76 struct rfcomm_dlc *new, *dlc, *any, *best; local in function:rfcomm_dlc_newconn
81 * Search amongst the listening DLC community for the best match for
84 * a note of the best address and BDADDR_ANY matches in order to find
92 any = best = NULL;
102 best = dlc;
114 dlc = best ? best : any;
  /src/sys/external/bsd/drm/dist/bsd-core/
drm_mm.c 288 struct drm_mm_node *best; local in function:drm_mm_search_free
292 best = NULL;
312 best = entry;
318 return best;
  /src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/
amdgpu_sa.c 219 unsigned i, soffset, best, tmp; local in function:amdgpu_sa_bo_next_hole
230 best = sa_manager->size * 2;
261 if (tmp < best) {
263 best = tmp;
  /src/sys/kern/
kern_tc.c 756 struct timecounter *best, *tc; local in function:tc_pick
760 for (best = tc = timecounters; tc != NULL; tc = tc->tc_next) {
761 if (tc->tc_quality > best->tc_quality)
762 best = tc;
763 else if (tc->tc_quality < best->tc_quality)
765 else if (tc->tc_frequency > best->tc_frequency)
766 best = tc;
768 (void)best->tc_get_timecount(best);
769 (void)best->tc_get_timecount(best)
    [all...]
  /src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/volt/
nouveau_nvkm_subdev_volt_base.c 59 int i, ret = -EINVAL, best_err = volt->max_uv, best = -1; local in function:nvkm_volt_set
70 best = i;
75 if (best == -1) {
80 ret = volt->func->vid_set(volt, volt->vid[best].vid);
82 volt->vid[best].uv, ret);
  /src/usr.sbin/fstyp/
hammer2.c 293 hammer2_blockref_t broot, best, *bref; local in function:read_label
303 memset(&best, 0, sizeof(best));
317 if (best_i < 0 || best.mirror_tid < broot.mirror_tid) {
319 best = broot;
  /src/sys/arch/arm/amlogic/
meson_sdhc.c 903 } best = { .start = -1, .size = 0 }, local in function:meson_sdhc_execute_tuning
956 if (best.start == -1 || best.size < curr.size)
957 best = curr;
969 if (best.start == -1 || best.size < curr.size)
970 best = curr;
973 if (best.start == -1) { /* no window - use default rx_phase */
976 rx_phase = best.start + best.size / 2
    [all...]
  /src/sys/arch/arm/sunxi/
sun4i_a10_ccu.c 792 int best = INT_MAX;
793 for (int d = 1; d <= 2 && best != 0; d++) {
794 for (int m = 1; m <= 16 && best != 0; m++) {
795 for (int n = 9; n <= 127 && best != 0; n++) {
798 if (diff < best) {
799 best = diff;
  /src/games/sail/
dr_1.c 414 float net, best = 0.0; local in function:next
419 if (net > best) {
420 best = net;
424 if (best > 0.0 && bestship) {
  /src/sys/external/bsd/drm2/dist/drm/radeon/
radeon_sa.c 266 unsigned i, soffset, best, tmp; local in function:radeon_sa_bo_next_hole
277 best = sa_manager->size * 2;
307 if (tmp < best) {
309 best = tmp;
  /src/usr.sbin/sysinst/
msg.mbr.en 67 {Using the information already on the disk, my best guess for the BIOS
  /src/sys/opencrypto/
crypto.c 715 struct cryptocap *cap, *best; local in function:crypto_select_driver_lock
718 best = NULL;
761 if (best == NULL) {
763 best = cap;
765 } else if (cap->cc_sessions < best->cc_sessions) {
766 crypto_driver_unlock(best);
768 best = cap;
775 if (best == NULL && hard == 0
781 if (best == NULL && hard == 0 && error == 0) {
791 return best;
    [all...]
  /src/sys/external/bsd/drm2/dist/drm/i915/display/
intel_dpll_mgr.c 698 struct hsw_wrpll_rnp *best)
702 /* No best (r,n,p) yet */
703 if (best->p == 0) {
704 best->p = p;
705 best->n2 = n2;
706 best->r2 = r2;
725 b = freq2k * budget * best->p * best->r2;
727 diff_best = abs_diff(freq2k * best->p * best->r2
761 struct hsw_wrpll_rnp best = { 0, 0, 0 }; local in function:hsw_ddi_calculate_wrpll
    [all...]
  /src/usr.bin/patch/
pch.c 1522 * Choose the name of the file to be patched based the "best" one
1529 char *best = NULL; local in function:best_name
1533 * The "best" name is the one with the fewest number of path
1553 best = names[i].path;
1555 if (best == NULL) {
1574 best = names[i].path;
1580 if (best == NULL && ok_to_create_file &&
1582 best = names[NEW_FILE].path;
1585 return best ? savestr(best) : NULL
    [all...]
  /src/sys/dev/usb/
if_umb.c 2792 struct { int base, len; } best, cur; local in function:inet_ntop6
2807 best.base = -1;
2808 best.len = 0;
2819 if (best.base == -1 || cur.len > best.len)
2820 best = cur;
2826 if (best.base == -1 || cur.len > best.len)
2827 best = cur;
2829 if (best.base != -1 && best.len < 2
    [all...]
  /src/sys/dev/pci/
if_tlp_pci.c 302 struct tulip_pci_softc *cur, *best = NULL; local in function:tlp_pci_check_slaved
320 if (best == NULL ||
321 best->sc_tulip.sc_devno > cur->sc_tulip.sc_devno)
322 best = cur;
325 if (best != NULL) {
326 psc->sc_master = best;
  /src/usr.bin/make/unit-tests/
varparse-undef-partial.mk 45 # It's difficult to decide what the best behavior is in this situation.

Completed in 33 milliseconds

1 2