Home
last modified time | relevance | path

Searched refs:best (Results 1 – 25 of 82) sorted by relevance

1234

/haiku/src/add-ons/kernel/network/protocols/ipv6/
H A Dipv6_utils.cpp61 struct { int base, len; } best, cur; in ip6_sprintf() local
74 best.base = -1; in ip6_sprintf()
75 best.len = 0; in ip6_sprintf()
86 if (best.base == -1 || cur.len > best.len) in ip6_sprintf()
87 best = cur; in ip6_sprintf()
93 if (best.base == -1 || cur.len > best.len) in ip6_sprintf()
94 best = cur; in ip6_sprintf()
96 if (best.base != -1 && best.len < 2) in ip6_sprintf()
97 best.base = -1; in ip6_sprintf()
105 if (best.base != -1 && i >= best.base && in ip6_sprintf()
[all …]
/haiku/src/system/kernel/util/
H A Dinet_ntop.c123 struct { int base, len; } best, cur; local
135 best.base = -1;
136 best.len = 0;
147 if (best.base == -1 || cur.len > best.len)
148 best = cur;
154 if (best.base == -1 || cur.len > best.len)
155 best = cur;
157 if (best.base != -1 && best.len < 2)
158 best.base = -1;
166 if (best.base != -1 && i >= best.base &&
[all …]
/haiku/src/system/libnetwork/netresolv/inet/
H A Dinet_cidr_ntop.c176 struct { int base, len; } best, cur; in inet_cidr_ntop_ipv6() local
193 best.base = -1; in inet_cidr_ntop_ipv6()
194 best.len = 0; in inet_cidr_ntop_ipv6()
205 if (best.base == -1 || cur.len > best.len) in inet_cidr_ntop_ipv6()
206 best = cur; in inet_cidr_ntop_ipv6()
212 if (best.base == -1 || cur.len > best.len) in inet_cidr_ntop_ipv6()
213 best = cur; in inet_cidr_ntop_ipv6()
215 if (best.base != -1 && best.len < 2) in inet_cidr_ntop_ipv6()
216 best.base = -1; in inet_cidr_ntop_ipv6()
224 if (best.base != -1 && i >= best.base && in inet_cidr_ntop_ipv6()
[all …]
/haiku/src/system/libnetwork/musl/network/
H A Dinet_ntop.c15 int i, j, max, best; in __inet_ntop() local
39 for (i=best=0, max=2; buf[i]; i++) { in __inet_ntop()
42 if (j>max) best=i, max=j; in __inet_ntop()
45 buf[best] = buf[best+1] = ':'; in __inet_ntop()
46 memmove(buf+best+2, buf+best+max, i-best-max+1); in __inet_ntop()
/haiku/src/add-ons/accelerants/intel_extreme/
H A Dpll.cpp327 float best = requestedPixelClock; in compute_dpll_g4x() local
347 if (error < best) { in compute_dpll_g4x()
348 best = error; in compute_dpll_g4x()
361 best); in compute_dpll_g4x()
404 float best = requestedPixelClock; in compute_dpll_9xx() local
425 if (error < best) { in compute_dpll_9xx()
426 best = error; in compute_dpll_9xx()
439 if (best == requestedPixelClock) in compute_dpll_9xx()
444 best); in compute_dpll_9xx()
697 struct hsw_wrpll_rnp *best) in hsw_wrpll_update_rnp() argument
[all …]
/haiku/src/servers/app/
H A DClientMemoryAllocator.cpp79 struct block* best = NULL; in Allocate() local
82 if (block->size >= size && (best == NULL || block->size < best->size)) in Allocate()
83 best = block; in Allocate()
86 if (best == NULL) { in Allocate()
89 best = _AllocateChunk(size, newArea); in Allocate()
90 if (best == NULL) in Allocate()
98 if (best->size == size) { in Allocate()
100 fFreeBlocks.Remove(best); in Allocate()
101 *_address = best; in Allocate()
102 return best->base; in Allocate()
[all …]
/haiku/src/add-ons/accelerants/via/engine/
H A Ddac.c257 int best[3] = {0}; in cle266_km400_dac_pix_pll_find() local
352 best[0]=m; in cle266_km400_dac_pix_pll_find()
353 best[1]=n; in cle266_km400_dac_pix_pll_find()
354 best[2]=p; in cle266_km400_dac_pix_pll_find()
361 m = best[0]; in cle266_km400_dac_pix_pll_find()
362 n = best[1]; in cle266_km400_dac_pix_pll_find()
363 p = best[2]; in cle266_km400_dac_pix_pll_find()
404 int best[3] = {0}; in k8m800_dac_pix_pll_find() local
501 best[0]=m; in k8m800_dac_pix_pll_find()
502 best[1]=n; in k8m800_dac_pix_pll_find()
[all …]
H A Dtvout.c42 int best[5] = {0}, h_total_mod; in g100_g400max_maventv_vid_pll_find() local
178 best[0] = m; in g100_g400max_maventv_vid_pll_find()
179 best[1] = n; in g100_g400max_maventv_vid_pll_find()
180 best[2] = p; in g100_g400max_maventv_vid_pll_find()
183 best[3] = *ht_new - 2; in g100_g400max_maventv_vid_pll_find()
186 best[4] = *ht_last_line - 2; in g100_g400max_maventv_vid_pll_find()
195 m = best[0] - 1; in g100_g400max_maventv_vid_pll_find()
196 n = best[1] - 1; in g100_g400max_maventv_vid_pll_find()
197 p = best[2] - 1; in g100_g400max_maventv_vid_pll_find()
218 best[3] = target.timing.h_total; in g100_g400max_maventv_vid_pll_find()
[all …]
H A Ddac2.c233 int best[3] = {0}; in nv10_nv20_dac2_pix_pll_find() local
342 best[0]=m; in nv10_nv20_dac2_pix_pll_find()
343 best[1]=n; in nv10_nv20_dac2_pix_pll_find()
344 best[2]=p; in nv10_nv20_dac2_pix_pll_find()
351 m = best[0]; in nv10_nv20_dac2_pix_pll_find()
352 n = best[1]; in nv10_nv20_dac2_pix_pll_find()
353 p = best[2]; in nv10_nv20_dac2_pix_pll_find()
/haiku/src/add-ons/accelerants/matrox/engine/
H A Dmga_dac.c348 int best[3] = {0, 0, 0}; in milx_dac_pix_pll_find() local
416 best[0]=m; in milx_dac_pix_pll_find()
417 best[1]=n; in milx_dac_pix_pll_find()
418 best[2]=p; in milx_dac_pix_pll_find()
424 m = best[0]; in milx_dac_pix_pll_find()
425 n = best[1]; in milx_dac_pix_pll_find()
426 p = best[2]; in milx_dac_pix_pll_find()
468 int best[3] = {0, 0, 0}; in g100_g400max_dac_pix_pll_find() local
566 best[0]=m; in g100_g400max_dac_pix_pll_find()
567 best[1]=n; in g100_g400max_dac_pix_pll_find()
[all …]
H A Dmga_maven.c340 int best[3] = {0, 0, 0}; in g100_g400max_maven_vid_pll_find() local
420 best[0]=m; in g100_g400max_maven_vid_pll_find()
421 best[1]=n; in g100_g400max_maven_vid_pll_find()
422 best[2]=p; in g100_g400max_maven_vid_pll_find()
429 m=best[0] - 1; in g100_g400max_maven_vid_pll_find()
430 n=best[1] - 1; in g100_g400max_maven_vid_pll_find()
431 p=best[2] - 1; in g100_g400max_maven_vid_pll_find()
573 int best[3] = {0, 0, 0}; in g450_g550_maven_vid_pll_find() local
638 best[0]=m; in g450_g550_maven_vid_pll_find()
639 best[1]=n; in g450_g550_maven_vid_pll_find()
[all …]
H A Dmga_maventv.c36 int best[5] = {0, 0, 0, 0, 0}; in g100_g400max_maventv_vid_pll_find() local
173 best[0] = m; in g100_g400max_maventv_vid_pll_find()
174 best[1] = n; in g100_g400max_maventv_vid_pll_find()
175 best[2] = p; in g100_g400max_maventv_vid_pll_find()
178 best[3] = *ht_new - 2; in g100_g400max_maventv_vid_pll_find()
181 best[4] = *ht_last_line - 2; in g100_g400max_maventv_vid_pll_find()
190 m = best[0] - 1; in g100_g400max_maventv_vid_pll_find()
191 n = best[1] - 1; in g100_g400max_maventv_vid_pll_find()
192 p = best[2] - 1; in g100_g400max_maventv_vid_pll_find()
211 best[3] = target.timing.h_total; in g100_g400max_maventv_vid_pll_find()
[all …]
/haiku/src/add-ons/accelerants/neomagic/engine/
H A Dnm_dac.c208 int best[2] = { 0, 0 }; in nm_dac_pix_pll_find() local
291 best[0] = m; in nm_dac_pix_pll_find()
292 best[1] = n; in nm_dac_pix_pll_find()
297 n = best[1] - 1; in nm_dac_pix_pll_find()
300 if (best[0] <= (m_max / 2)) in nm_dac_pix_pll_find()
302 m = best[0] - 1; in nm_dac_pix_pll_find()
307 m = (best[0] / 2) - 1; in nm_dac_pix_pll_find()
312 *calc_pclk = (si->ps.f_ref / best[0]) * best[1]; in nm_dac_pix_pll_find()
/haiku/src/add-ons/accelerants/skeleton/engine/
H A Ddac.c225 int best[3]; in nv4_nv10_nv20_dac_pix_pll_find() local
335 best[0]=m; in nv4_nv10_nv20_dac_pix_pll_find()
336 best[1]=n; in nv4_nv10_nv20_dac_pix_pll_find()
337 best[2]=p; in nv4_nv10_nv20_dac_pix_pll_find()
344 m = best[0]; in nv4_nv10_nv20_dac_pix_pll_find()
345 n = best[1]; in nv4_nv10_nv20_dac_pix_pll_find()
346 p = best[2]; in nv4_nv10_nv20_dac_pix_pll_find()
392 int best[3]; in eng_dac_sys_pll_find() local
509 best[0]=m; in eng_dac_sys_pll_find()
510 best[1]=n; in eng_dac_sys_pll_find()
[all …]
H A Dtvout.c42 int best[5], h_total_mod; in g100_g400max_maventv_vid_pll_find() local
178 best[0] = m; in g100_g400max_maventv_vid_pll_find()
179 best[1] = n; in g100_g400max_maventv_vid_pll_find()
180 best[2] = p; in g100_g400max_maventv_vid_pll_find()
183 best[3] = *ht_new - 2; in g100_g400max_maventv_vid_pll_find()
186 best[4] = *ht_last_line - 2; in g100_g400max_maventv_vid_pll_find()
195 m = best[0] - 1; in g100_g400max_maventv_vid_pll_find()
196 n = best[1] - 1; in g100_g400max_maventv_vid_pll_find()
197 p = best[2] - 1; in g100_g400max_maventv_vid_pll_find()
218 best[3] = target.timing.h_total; in g100_g400max_maventv_vid_pll_find()
[all …]
H A Ddac2.c233 int best[3]; in nv10_nv20_dac2_pix_pll_find() local
342 best[0]=m; in nv10_nv20_dac2_pix_pll_find()
343 best[1]=n; in nv10_nv20_dac2_pix_pll_find()
344 best[2]=p; in nv10_nv20_dac2_pix_pll_find()
351 m = best[0]; in nv10_nv20_dac2_pix_pll_find()
352 n = best[1]; in nv10_nv20_dac2_pix_pll_find()
353 p = best[2]; in nv10_nv20_dac2_pix_pll_find()
/haiku/src/add-ons/accelerants/nvidia/engine/
H A Dnv_dac.c334 int best[3] = {0, 0, 0}; in nv4_nv10_nv20_dac_pix_pll_find() local
433 best[0]=m; in nv4_nv10_nv20_dac_pix_pll_find()
434 best[1]=n; in nv4_nv10_nv20_dac_pix_pll_find()
435 best[2]=p; in nv4_nv10_nv20_dac_pix_pll_find()
442 m = best[0]; in nv4_nv10_nv20_dac_pix_pll_find()
443 n = best[1]; in nv4_nv10_nv20_dac_pix_pll_find()
444 p = best[2]; in nv4_nv10_nv20_dac_pix_pll_find()
494 int best[3] = {0, 0, 0}; in nv_dac_sys_pll_find() local
611 best[0]=m; in nv_dac_sys_pll_find()
612 best[1]=n; in nv_dac_sys_pll_find()
[all …]
H A Dnv_dac2.c291 int best[3] = {0, 0, 0}; in nv10_nv20_dac2_pix_pll_find() local
389 best[0]=m; in nv10_nv20_dac2_pix_pll_find()
390 best[1]=n; in nv10_nv20_dac2_pix_pll_find()
391 best[2]=p; in nv10_nv20_dac2_pix_pll_find()
398 m = best[0]; in nv10_nv20_dac2_pix_pll_find()
399 n = best[1]; in nv10_nv20_dac2_pix_pll_find()
400 p = best[2]; in nv10_nv20_dac2_pix_pll_find()
/haiku/src/libs/compat/freebsd_network/
H A Ddriver.c146 int best = 0; in init_hardware_pci() local
157 if (result >= 0 && (driver == NULL || result > best)) { in init_hardware_pci()
161 best = result; in init_hardware_pci()
216 int best = 0; in init_hardware_uhub() local
234 if (result >= 0 && (driver == NULL || result > best)) { in init_hardware_uhub()
238 best = result; in init_hardware_uhub()
/haiku/src/libs/libsolv/solv/
H A Drepopage.c583 unsigned int i, best, pnum; in repopagestore_load_page_range() local
630 best = store->mapped_at[pstart] / REPOPAGE_BLOBSIZE; in repopagestore_load_page_range()
631 if (best + (pend - pstart) >= store->nmapped) in repopagestore_load_page_range()
632 best = 0; in repopagestore_load_page_range()
637 best = store->mapped_at[pend] / REPOPAGE_BLOBSIZE; in repopagestore_load_page_range()
638 if (best < pend - pstart) in repopagestore_load_page_range()
639 best = store->nmapped - 1; in repopagestore_load_page_range()
640 best -= pend - pstart; in repopagestore_load_page_range()
645 best = (pstart + store->rr_counter++) % (store->nmapped - pend + pstart); in repopagestore_load_page_range()
652 for (i = best, pnum = pstart; pnum <= pend; i++, pnum++) in repopagestore_load_page_range()
[all …]
H A Dpolicy.c541 Solvable *s, *best; in prune_to_best_version() local
551 best = 0; in prune_to_best_version()
560 if (!best) /* if no best yet, the current is best */ in prune_to_best_version()
562 best = s; in prune_to_best_version()
567 if (best->name != s->name) /* new name */ in prune_to_best_version()
569 plist->elements[j++] = best - pool->solvables; /* move old best to front */ in prune_to_best_version()
570 best = s; /* take current as new best */ in prune_to_best_version()
574 if (best->evr != s->evr) /* compare evr */ in prune_to_best_version()
576 if (pool_evrcmp(pool, best->evr, s->evr, EVRCMP_COMPARE) < 0) in prune_to_best_version()
577 best = s; in prune_to_best_version()
[all …]
/haiku/src/add-ons/decorators/FlatDecorator/
H A Dresources.rdef5 "long_descr" = "FlatDecorator: best if you use it with FlatControlLook",
/haiku/src/preferences/keymap/
H A DKeyboardLayout.cpp708 VariableMap::iterator best = variables.end(); in _SubstituteVariables() local
715 best = iterator; in _SubstituteVariables()
720 if (best != variables.end()) { in _SubstituteVariables()
723 term.Insert(best->second.String(), index); in _SubstituteVariables()
/haiku/docs/develop/file_systems/befs/
H A Dresources.rst4 Probably the best resource for a description of the inner workings of
/haiku/src/libs/compat/openbsd_wlan/net80211/
H A Dieee80211_ra.c491 int i, best = rn->best_mcs; in ieee80211_ra_best_rate() local
500 best = i; in ieee80211_ra_best_rate()
505 if (rn->best_mcs != best) { in ieee80211_ra_best_rate()
506 DPRINTF(("MCS %d is best; MCS{cur|avg|loss}:", best)); in ieee80211_ra_best_rate()
518 return best; in ieee80211_ra_best_rate()

1234