Home
last modified time | relevance | path

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

12345

/f-stack/freebsd/libkern/
H A Dinet_ntop.c117 best.base = -1; in inet_ntop6()
118 best.len = 0; in inet_ntop6()
129 if (best.base == -1 || cur.len > best.len) in inet_ntop6()
130 best = cur; in inet_ntop6()
136 if (best.base == -1 || cur.len > best.len) in inet_ntop6()
137 best = cur; in inet_ntop6()
139 if (best.base != -1 && best.len < 2) in inet_ntop6()
148 if (best.base != -1 && i >= best.base && in inet_ntop6()
149 i < (best.base + best.len)) { in inet_ntop6()
158 if (i == 6 && best.base == 0 && (best.len == 6 || in inet_ntop6()
[all …]
/f-stack/app/nginx-1.16.1/src/stream/
H A Dngx_stream_upstream_least_conn_module.c123 best = NULL; in ngx_stream_upstream_get_least_conn_peer()
163 if (best == NULL in ngx_stream_upstream_get_least_conn_peer()
164 || peer->conns * best->weight < best->conns * peer->weight) in ngx_stream_upstream_get_least_conn_peer()
166 best = peer; in ngx_stream_upstream_get_least_conn_peer()
170 } else if (peer->conns * best->weight == best->conns * peer->weight) { in ngx_stream_upstream_get_least_conn_peer()
175 if (best == NULL) { in ngx_stream_upstream_get_least_conn_peer()
201 if (peer->conns * best->weight != best->conns * peer->weight) { in ngx_stream_upstream_get_least_conn_peer()
232 if (now - best->checked > best->fail_timeout) { in ngx_stream_upstream_get_least_conn_peer()
238 pc->name = &best->name; in ngx_stream_upstream_get_least_conn_peer()
240 best->conns++; in ngx_stream_upstream_get_least_conn_peer()
[all …]
H A Dngx_stream_upstream_hash_module.c534 best = NULL; in ngx_stream_upstream_get_chash_peer()
578 if (best == NULL || peer->current_weight > best->current_weight) { in ngx_stream_upstream_get_chash_peer()
579 best = peer; in ngx_stream_upstream_get_chash_peer()
584 if (best) { in ngx_stream_upstream_get_chash_peer()
598 hp->rrp.current = best; in ngx_stream_upstream_get_chash_peer()
600 pc->sockaddr = best->sockaddr; in ngx_stream_upstream_get_chash_peer()
601 pc->socklen = best->socklen; in ngx_stream_upstream_get_chash_peer()
602 pc->name = &best->name; in ngx_stream_upstream_get_chash_peer()
604 best->conns++; in ngx_stream_upstream_get_chash_peer()
606 if (now - best->checked > best->fail_timeout) { in ngx_stream_upstream_get_chash_peer()
[all …]
H A Dngx_stream_upstream_round_robin.c523 ngx_stream_upstream_rr_peer_t *peer, *best; in ngx_stream_upstream_get_peer() local
527 best = NULL; in ngx_stream_upstream_get_peer()
567 if (best == NULL || peer->current_weight > best->current_weight) { in ngx_stream_upstream_get_peer()
568 best = peer; in ngx_stream_upstream_get_peer()
573 if (best == NULL) { in ngx_stream_upstream_get_peer()
577 rrp->current = best; in ngx_stream_upstream_get_peer()
584 best->current_weight -= total; in ngx_stream_upstream_get_peer()
586 if (now - best->checked > best->fail_timeout) { in ngx_stream_upstream_get_peer()
587 best->checked = now; in ngx_stream_upstream_get_peer()
590 return best; in ngx_stream_upstream_get_peer()
/f-stack/app/nginx-1.16.1/src/http/modules/
H A Dngx_http_upstream_least_conn_module.c127 best = NULL; in ngx_http_upstream_get_least_conn_peer()
167 if (best == NULL in ngx_http_upstream_get_least_conn_peer()
168 || peer->conns * best->weight < best->conns * peer->weight) in ngx_http_upstream_get_least_conn_peer()
170 best = peer; in ngx_http_upstream_get_least_conn_peer()
174 } else if (peer->conns * best->weight == best->conns * peer->weight) { in ngx_http_upstream_get_least_conn_peer()
179 if (best == NULL) { in ngx_http_upstream_get_least_conn_peer()
205 if (peer->conns * best->weight != best->conns * peer->weight) { in ngx_http_upstream_get_least_conn_peer()
236 if (now - best->checked > best->fail_timeout) { in ngx_http_upstream_get_least_conn_peer()
242 pc->name = &best->name; in ngx_http_upstream_get_least_conn_peer()
244 best->conns++; in ngx_http_upstream_get_least_conn_peer()
[all …]
H A Dngx_http_upstream_hash_module.c533 best = NULL; in ngx_http_upstream_get_chash_peer()
577 if (best == NULL || peer->current_weight > best->current_weight) { in ngx_http_upstream_get_chash_peer()
578 best = peer; in ngx_http_upstream_get_chash_peer()
583 if (best) { in ngx_http_upstream_get_chash_peer()
599 hp->rrp.current = best; in ngx_http_upstream_get_chash_peer()
601 pc->sockaddr = best->sockaddr; in ngx_http_upstream_get_chash_peer()
602 pc->socklen = best->socklen; in ngx_http_upstream_get_chash_peer()
603 pc->name = &best->name; in ngx_http_upstream_get_chash_peer()
605 best->conns++; in ngx_http_upstream_get_chash_peer()
607 if (now - best->checked > best->fail_timeout) { in ngx_http_upstream_get_chash_peer()
[all …]
/f-stack/freebsd/contrib/zstd/lib/dictBuilder/
H A Dcover.c848 best->dict = NULL; in COVER_best_init()
851 memset(&best->parameters, 0, sizeof(best->parameters)); in COVER_best_init()
858 if (!best) { in COVER_best_wait()
863 ZSTD_pthread_cond_wait(&best->cond, &best->mutex); in COVER_best_wait()
872 if (!best) { in COVER_best_destroy()
876 if (best->dict) { in COVER_best_destroy()
888 if (!best) { in COVER_best_start()
892 ++best->liveJobs; in COVER_best_start()
906 if (!best) { in COVER_best_finish()
917 if (!best->dict || best->dictSize < dictSize) { in COVER_best_finish()
[all …]
H A Dcover.h106 void COVER_best_init(COVER_best_t *best);
111 void COVER_best_wait(COVER_best_t *best);
116 void COVER_best_destroy(COVER_best_t *best);
122 void COVER_best_start(COVER_best_t *best);
129 void COVER_best_finish(COVER_best_t *best, ZDICT_cover_params_t parameters,
H A Dfastcover.c454 COVER_best_t* best; member
638 COVER_best_t best; in ZDICT_optimizeTrainFromBuffer_fastCover() local
670 COVER_best_init(&best); in ZDICT_optimizeTrainFromBuffer_fastCover()
687 COVER_best_destroy(&best); in ZDICT_optimizeTrainFromBuffer_fastCover()
704 COVER_best_destroy(&best); in ZDICT_optimizeTrainFromBuffer_fastCover()
710 data->best = &best; in ZDICT_optimizeTrainFromBuffer_fastCover()
727 COVER_best_start(&best); in ZDICT_optimizeTrainFromBuffer_fastCover()
738 COVER_best_wait(&best); in ZDICT_optimizeTrainFromBuffer_fastCover()
744 const size_t dictSize = best.dictSize; in ZDICT_optimizeTrainFromBuffer_fastCover()
747 COVER_best_destroy(&best); in ZDICT_optimizeTrainFromBuffer_fastCover()
[all …]
/f-stack/freebsd/arm/allwinner/clkng/
H A Daw_clk_frac.c153 uint64_t cur, best; in aw_clk_frac_find_best() local
157 best = cur = 0; in aw_clk_frac_find_best()
179 best = cur; in aw_clk_frac_find_best()
186 return (best); in aw_clk_frac_find_best()
200 best = best_frac = cur = 0; in aw_clk_frac_set_freq()
227 best = cur; in aw_clk_frac_set_freq()
235 best = cur; in aw_clk_frac_set_freq()
244 if (best < sc->min_freq || in aw_clk_frac_set_freq()
245 best > sc->max_freq) { in aw_clk_frac_set_freq()
252 *fout = best; in aw_clk_frac_set_freq()
[all …]
H A Daw_clk_m.c142 uint64_t cur, best; in aw_clk_m_find_best() local
152 if (abs(*fout - cur) < abs(*fout - best)) { in aw_clk_m_find_best()
153 best = cur; in aw_clk_m_find_best()
162 return (best); in aw_clk_m_find_best()
171 uint64_t cur, best; in aw_clk_m_set_freq() local
176 best = cur = 0; in aw_clk_m_set_freq()
188 best = aw_clk_m_find_best(sc, fparent, fout, in aw_clk_m_set_freq()
196 *fout = best; in aw_clk_m_set_freq()
201 if ((best < *fout) && in aw_clk_m_set_freq()
206 if ((best > *fout) && in aw_clk_m_set_freq()
[all …]
H A Daw_clk_mipi.c124 uint64_t cur, best; in aw_clk_mipi_find_best() local
127 best = 0; in aw_clk_mipi_find_best()
137 best = cur; in aw_clk_mipi_find_best()
142 if (best == *fout) in aw_clk_mipi_find_best()
143 return (best); in aw_clk_mipi_find_best()
148 return best; in aw_clk_mipi_find_best()
156 uint64_t best = 0; in aw_clk_mipi_set_freq() local
166 if (best < sc->min_freq || in aw_clk_mipi_set_freq()
167 best > sc->max_freq) { in aw_clk_mipi_set_freq()
174 *fout = best; in aw_clk_mipi_set_freq()
[all …]
H A Daw_clk_np.c111 uint64_t cur, best; in aw_clk_np_find_best() local
124 if (abs(*fout - cur) < abs(*fout - best)) { in aw_clk_np_find_best()
125 best = cur; in aw_clk_np_find_best()
135 return (best); in aw_clk_np_find_best()
143 uint64_t cur, best; in aw_clk_np_set_freq() local
149 best = cur = 0; in aw_clk_np_set_freq()
151 best = aw_clk_np_find_best(sc, fparent, fout, in aw_clk_np_set_freq()
155 *fout = best; in aw_clk_np_set_freq()
160 if ((best < *fout) && in aw_clk_np_set_freq()
165 if ((best > *fout) && in aw_clk_np_set_freq()
[all …]
H A Daw_clk_nm.c143 uint64_t cur, best; in aw_clk_nm_find_best() local
158 best = cur; in aw_clk_nm_find_best()
174 return (best); in aw_clk_nm_find_best()
184 uint64_t cur, best; in aw_clk_nm_set_freq() local
190 best = cur = 0; in aw_clk_nm_set_freq()
202 best = cur; in aw_clk_nm_set_freq()
218 *fout = best; in aw_clk_nm_set_freq()
223 if ((best < *fout) && in aw_clk_nm_set_freq()
227 best, *fout); in aw_clk_nm_set_freq()
234 best, *fout); in aw_clk_nm_set_freq()
[all …]
H A Daw_clk_nmm.c112 uint64_t cur, best; in aw_clk_nmm_find_best() local
130 if (abs(*fout - cur) < abs(*fout - best)) { in aw_clk_nmm_find_best()
131 best = cur; in aw_clk_nmm_find_best()
143 return (best); in aw_clk_nmm_find_best()
151 uint64_t cur, best; in aw_clk_nmm_set_freq() local
157 best = cur = 0; in aw_clk_nmm_set_freq()
159 best = aw_clk_nmm_find_best(sc, fparent, fout, in aw_clk_nmm_set_freq()
163 *fout = best; in aw_clk_nmm_set_freq()
168 if ((best < *fout) && in aw_clk_nmm_set_freq()
173 if ((best > *fout) && in aw_clk_nmm_set_freq()
[all …]
H A Daw_clk_nkmp.c147 uint64_t cur, best; in aw_clk_nkmp_find_best() local
150 best = 0; in aw_clk_nkmp_find_best()
162 best = cur; in aw_clk_nkmp_find_best()
168 if (best == *fout) in aw_clk_nkmp_find_best()
169 return (best); in aw_clk_nkmp_find_best()
191 return best; in aw_clk_nkmp_find_best()
261 uint64_t best; in aw_clk_nkmp_set_freq() local
270 *fout = best; in aw_clk_nkmp_set_freq()
275 if ((best < *fout) && in aw_clk_nkmp_set_freq()
280 if ((best > *fout) && in aw_clk_nkmp_set_freq()
[all …]
/f-stack/freebsd/arm64/rockchip/clk/
H A Drk_clk_composite.c228 uint64_t best, cur; in rk_clk_composite_find_best() local
232 best = 0; in rk_clk_composite_find_best()
243 if ((freq - cur) < (freq - best)) { in rk_clk_composite_find_best()
244 best = cur; in rk_clk_composite_find_best()
261 uint64_t best, cur; in rk_clk_composite_set_freq() local
268 for (best_div = 0, best = 0, p_idx = 0; in rk_clk_composite_set_freq()
276 if ((*fout - cur) < (*fout - best)) { in rk_clk_composite_set_freq()
277 best = cur; in rk_clk_composite_set_freq()
282 "%ju\n", clknode_get_name(p_clk), p_idx, best); in rk_clk_composite_set_freq()
298 *fout = best; in rk_clk_composite_set_freq()
[all …]
H A Drk_clk_armclk.c152 uint64_t best = 0, best_p = 0; in rk_clk_armclk_set_freq() local
164 best = sc->rates[i].freq; in rk_clk_armclk_set_freq()
166 best_p = best * div; in rk_clk_armclk_set_freq()
171 best); in rk_clk_armclk_set_freq()
180 *fout = best; in rk_clk_armclk_set_freq()
204 *fout = best; in rk_clk_armclk_set_freq()
/f-stack/freebsd/arm/ti/clk/
H A Dti_clk_dpll.c123 uint64_t cur, best; in ti_dpll_clk_find_best() local
136 if (abs(*fout - cur) < abs(*fout - best)) { in ti_dpll_clk_find_best()
137 best = cur; in ti_dpll_clk_find_best()
147 return (best); in ti_dpll_clk_find_best()
189 uint64_t cur, best; in ti_dpll_clk_set_freq() local
194 best = cur = 0; in ti_dpll_clk_set_freq()
196 best = ti_dpll_clk_find_best(sc, fparent, fout, in ti_dpll_clk_set_freq()
200 *fout = best; in ti_dpll_clk_set_freq()
205 if ((best < *fout) && in ti_dpll_clk_set_freq()
210 if ((best > *fout) && in ti_dpll_clk_set_freq()
[all …]
/f-stack/freebsd/arm64/freescale/imx/clk/
H A Dimx_clk_composite.c216 uint64_t cur, best; in imx_clk_composite_set_freq() local
236 best = cur; in imx_clk_composite_set_freq()
242 "%ju\n", clknode_get_name(p_clk), p_idx, best); in imx_clk_composite_set_freq()
251 *fout = best; in imx_clk_composite_set_freq()
271 *fout = best; in imx_clk_composite_set_freq()
/f-stack/freebsd/x86/acpica/
H A Dmadt.c510 int i, best; in madt_find_interrupt() local
512 best = -1; in madt_find_interrupt()
517 if (best == -1 || in madt_find_interrupt()
518 ioapics[best].io_vector < ioapics[i].io_vector) in madt_find_interrupt()
519 best = i; in madt_find_interrupt()
521 if (best == -1) in madt_find_interrupt()
523 *apic = ioapics[best].io_apic; in madt_find_interrupt()
524 *pin = intr - ioapics[best].io_vector; in madt_find_interrupt()
/f-stack/freebsd/arm/allwinner/
H A Daw_spi.c327 uint64_t cur, best = 0; in aw_spi_clock_test_cdr1() local
333 if ((clock - cur) < (clock - best)) { in aw_spi_clock_test_cdr1()
334 best = cur; in aw_spi_clock_test_cdr1()
340 return (best); in aw_spi_clock_test_cdr1()
346 uint64_t cur, best = 0; in aw_spi_clock_test_cdr2() local
352 if ((clock - cur) < (clock - best)) { in aw_spi_clock_test_cdr2()
353 best = cur; in aw_spi_clock_test_cdr2()
359 return (best); in aw_spi_clock_test_cdr2()
/f-stack/app/nginx-1.16.1/src/http/
H A Dngx_http_upstream_round_robin.c514 ngx_http_upstream_rr_peer_t *peer, *best; in ngx_http_upstream_get_peer() local
518 best = NULL; in ngx_http_upstream_get_peer()
558 if (best == NULL || peer->current_weight > best->current_weight) { in ngx_http_upstream_get_peer()
559 best = peer; in ngx_http_upstream_get_peer()
564 if (best == NULL) { in ngx_http_upstream_get_peer()
568 rrp->current = best; in ngx_http_upstream_get_peer()
575 best->current_weight -= total; in ngx_http_upstream_get_peer()
577 if (now - best->checked > best->fail_timeout) { in ngx_http_upstream_get_peer()
578 best->checked = now; in ngx_http_upstream_get_peer()
581 return best; in ngx_http_upstream_get_peer()
/f-stack/dpdk/doc/guides/linux_gsg/
H A Dnic_perf_intel_platform.rst4 How to get best performance with NICs on Intel platforms
13 For best performance use an Intel Xeon class server system such as Ivy Bridge, Haswell or newer.
86 If you are using 2 or more ports from different NICs, it is best to ensure that these NICs are on t…
96 #. Establish the steady state for the system, consider reviewing BIOS settings desired for best per…
181 **Note**: To get the best performance, ensure that the core and NICs are in the same socket.
182 … above ``85:00.0`` is on socket 1 and should be used by cores on socket 1 for the best performance.
/f-stack/freebsd/contrib/openzfs/lib/libzutil/
H A Dzutil_import.c200 name_entry_t *ne, *best; in fix_paths() local
227 best = NULL; in fix_paths()
231 best = ne; in fix_paths()
237 best = ne; in fix_paths()
241 if (best == NULL) { in fix_paths()
242 best = ne; in fix_paths()
247 if (ne->ne_num_labels > best->ne_num_labels) { in fix_paths()
248 best = ne; in fix_paths()
254 ne->ne_order < best->ne_order) { in fix_paths()
255 best = ne; in fix_paths()
[all …]

12345