Searched refs:best (Results 76 - 100 of 133) sorted by relevance

123456

/linux-master/io_uring/
H A Dkbuf.c557 struct io_buf_free *ibf, *best = NULL; local
566 if (!best || dist < best_dist) {
567 best = ibf;
574 return best;
/linux-master/net/batman-adv/
H A Doriginator.c317 * @orig_addr: the originator MAC address to search the best next hop router for
321 * Return: A neighbor node which is the best router towards the given originator
1153 * batadv_find_best_neighbor() - finds the best neighbor after purging
1158 * Return: the current best neighbor, with refcount increased.
1165 struct batadv_neigh_node *best = NULL, *neigh; local
1170 if (best && (bao->neigh.cmp(neigh, if_outgoing, best,
1177 batadv_neigh_node_put(best);
1179 best = neigh;
1183 return best;
[all...]
/linux-master/drivers/regulator/
H A Dmax8997-regulator.c538 u8 new_val, int *best)
548 *best = -1;
595 *best = i;
600 *best = i;
604 if (*best == -1)
607 return side_effect[*best];
537 max8997_assess_side_effect(struct regulator_dev *rdev, u8 new_val, int *best) argument
/linux-master/sound/soc/codecs/
H A Dwm8995.c1556 int i, rate_val, best, best_val, cur_val; local
1629 best = 1;
1637 best = i;
1640 rate_val |= best;
1643 dai->id + 1, fs_ratios[best]);
1651 best = 0;
1657 best = i;
1659 bclk |= best << WM8995_AIF1_BCLK_DIV_SHIFT;
1661 bclk_rate = wm8995->aifclk[dai->id] * 10 / bclk_divs[best];
1663 bclk_divs[best], bclk_rat
[all...]
H A Dcs42l52.c908 int best = 0; local
913 abs(cs42l52->beep_rate - beep_rates[best]))
914 best = i;
918 beep_rates[best], cs42l52->beep_rate);
920 val = (best << CS42L52_BEEP_RATE_SHIFT);
H A Dcs42l56.c970 int best = 0; local
975 abs(cs42l56->beep_rate - beep_freq[best]))
976 best = i;
980 beep_freq[best], cs42l56->beep_rate);
982 val = (best << CS42L56_BEEP_RATE_SHIFT);
H A Dwm8903.c418 int val, i, best; local
424 best = 1;
427 abs(wm8903_deemph[best] - wm8903->fs))
428 best = i;
431 val = best << WM8903_DEEMPH_SHIFT;
433 best = 0;
438 best, wm8903_deemph[best]);
H A Dwm8962.c2469 int best, min_diff, diff; local
2549 best = 0;
2559 best = i;
2563 wm8962->bclk = dspclk / bclk_divs[best];
2564 clocking2 |= best;
2566 bclk_divs[best], wm8962->bclk);
3241 int best = 0; local
3246 abs(wm8962->beep_rate - beep_rates[best]))
3247 best = i;
3251 beep_rates[best], wm896
[all...]
H A Dwm8960.c187 int val, i, best; local
193 best = 1;
196 abs(deemph_settings[best] - wm8960->lrclk))
197 best = i;
200 val = best << 1;
718 * From Datasheet, the PLL performs best when f2 is between
720 * or 12.288MHz, then sysclkdiv = 2 is the best choice.
/linux-master/drivers/video/fbdev/
H A Dvga16fb.c269 } *ptr, *best, vgaclocks[] = { local
278 best = vgaclocks;
279 err = *pixclock - best->pixclock;
288 best = ptr;
291 par->misc |= best->misc;
292 par->clkdiv = best->seq_clock_mode;
293 *pixclock = (best->pixclock * div) / mul;
/linux-master/drivers/video/fbdev/via/
H A Dhw.c1376 struct via_pll_config cur, up, down, best = {0, 1, 0}; local
1399 if (f < abs(get_pll_output_frequency(f0, best) - clk))
1400 best = cur;
1403 return best;
2000 const struct fb_videomode *best; local
2002 best = viafb_get_best_mode(hres, vres, long_refresh);
2003 if (!best)
2006 if (abs(best->refresh - long_refresh) > 3) {
2013 return best->refresh;
/linux-master/arch/powerpc/platforms/cell/spufs/
H A Dsched.c822 int best; local
825 best = find_first_bit(spu_prio->bitmap, prio);
826 while (best < prio) {
827 struct list_head *rq = &spu_prio->runq[best];
836 best++;
/linux-master/arch/powerpc/platforms/cell/
H A Diommu.c802 int i, len, best, naddr, nsize, pna, range_size; local
838 for (i = 0, best = -1, best_size = 0; i < len; i += range_size) {
843 best = i;
848 if (best >= 0) {
849 dev_addr = of_read_number(ranges + best, naddr);
/linux-master/net/netfilter/ipvs/
H A Dip_vs_est.c372 int ktid, best = ipvs->est_kt_count; local
379 best = ktid;
382 } else if (ktid < best) {
383 best = ktid;
386 ipvs->est_add_ktid = best;
659 /* Get best result from many tests */
/linux-master/drivers/ata/pata_parport/
H A Dpata_parport.c393 int best, range; local
405 best = -1;
413 best = pi->mode;
415 pi->mode = best;
416 return best > -1;
/linux-master/crypto/
H A Dapi.c60 int best = -2; local
78 if (!exact && !(fuzzy && q->cra_priority > best))
84 best = q->cra_priority;
H A Dalgapi.c379 bool best; local
415 best = true;
424 best = false;
429 crypto_alg_finish_registration(alg, best, &list);
/linux-master/drivers/clk/imx/
H A Dclk-pll14xx.c134 long fout, rate_min, rate_max, dist, best = LONG_MAX; local
186 /* Finally calculate best values */
196 /* best match */
198 if (dist < best) {
199 best = dist;
/linux-master/tools/mm/
H A Dslabinfo.c354 struct aliasinfo *best = NULL; local
358 (!best || strlen(best->name) < strlen(a->name))) {
359 best = a;
361 return best;
364 return best;
/linux-master/net/sctp/
H A Dassociola.c546 * save it off. The best place is the active path.
1227 return 3; /* best case */
1252 struct sctp_transport *best)
1256 if (best == NULL || curr == best)
1260 score_best = sctp_trans_score(best);
1269 return sctp_trans_elect_tie(best, curr);
1271 return best;
1324 /* Keep track of the best PF transport from our
1251 sctp_trans_elect_best(struct sctp_transport *curr, struct sctp_transport *best) argument
/linux-master/fs/ocfs2/
H A Dsuballoc.c404 u16 curr, best; local
406 best = curr = 0;
408 if (le32_to_cpu(cl->cl_recs[best].c_total) >
410 best = curr;
413 return best;
1385 u16 curr, best; local
1389 best = curr = 0;
1392 le32_to_cpu(cl->cl_recs[best].c_free))
1393 best = curr;
1397 BUG_ON(best >
[all...]
/linux-master/drivers/clk/microchip/
H A Dclk-core.c129 * Find best divider to produce closest of target divided rate.
179 /* calculate clkdiv and best rate */
393 unsigned long best = 0, nearest_rate; local
412 best = nearest_rate;
427 pr_debug("%s,rate %lu, best_parent(%s, %lu), best %lu, delta %d\n",
430 best, best_delta);
438 return best;
/linux-master/drivers/clk/ingenic/
H A Dcgu.c138 * The highest divider yields the best resolution.
441 unsigned int i, best_i = 0, best = (unsigned int)-1; local
446 clk_info->div.div_table[i] < best) {
447 best = clk_info->div.div_table[i];
450 if (div == best)
/linux-master/fs/bcachefs/
H A Dbtree_locking.c196 unsigned best = 0, pref; local
211 if (pref > best) {
213 best = pref;
217 if (unlikely(!best)) {
/linux-master/drivers/gpu/drm/ast/
H A Dast_mode.c116 const struct ast_vbios_enhtable *best = NULL; local
199 && (!best || loop->refresh_rate > best->refresh_rate))
200 best = loop;
203 if (best || !check_sync)
208 if (best)
209 vbios_mode->enh_table = best;

Completed in 413 milliseconds

123456