HomeSort by: relevance | last modified time | path
    Searched defs:best (Results 1 - 25 of 28) 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/
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/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/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/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;
radeon_vm.c 187 struct radeon_fence *best[RADEON_NUM_RINGS] = {}; local in function:radeon_vm_grab_id
212 if (radeon_fence_is_earlier(fence, best[fence->ring])) {
213 best[fence->ring] = fence;
  /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/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/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/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/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/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/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/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/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/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/arch/i386/stand/efiboot/
eficons.c 742 INT32 i, best, mode80x25, mode100x31; local in function:eficons_init_video
761 best = mode100x31 >= 0 ? mode100x31 : mode80x25 >= 0 ? mode80x25 : -1;
762 if (best >= 0)
763 uefi_call_wrapper(ST->ConOut->SetMode, 2, ST->ConOut, best);
  /src/sys/dev/usb/
uchcom.c 637 uint32_t best, div, pre; local in function:calc_divider_settings
644 best = UINT32_MAX;
655 if (score < best) {
656 best = score;
  /src/sys/external/bsd/drm2/dist/drm/ast/
ast_mode.c 101 const struct ast_vbios_enhtable *best = NULL; local in function:ast_get_vbios_mode_info
181 && (!best || loop->refresh_rate > best->refresh_rate))
182 best = loop;
185 if (best || !check_sync)
190 if (best)
191 vbios_mode->enh_table = best;
  /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/net80211/
ieee80211_node.c 592 * Used to select the best scan candidate for association in a BSS.
618 /* best/max rate preferred if signal level close enough XXX */
1614 struct ieee80211_node *best, *ni; local in function:ieee80211_refine_node_for_beacon
1620 best = ni0;
1621 if (ssid[1] == 0 || best->ni_esslen == 0)
1623 else if (ssid[1] == best->ni_esslen &&
1624 memcmp(ssid + 2, best->ni_essid, ssid[1]) == 0)
1632 if (!IEEE80211_ADDR_EQ(ni->ni_macaddr, best->ni_macaddr) ||
1633 ni->ni_ic != best->ni_ic || ni->ni_chan != chan)
1645 best = ni
    [all...]
  /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/arch/sgimips/dev/
crmfb.c 1703 int error, div, best = 9999999; local in function:calc_pll
1717 if (error < best) {
1722 best = error;
1725 if ((error < best) && ( M < 256)){
1730 best = error;

Completed in 118 milliseconds

1 2