Searched defs:best (Results 1 - 25 of 33) sorted by relevance

12

/drivers/usb/core/
H A Dgeneric.c48 struct usb_host_config *c, *best; local
50 best = NULL;
115 best = c;
127 best = c;
133 else if (!best)
134 best = c;
142 if (best) {
143 i = best->desc.bConfigurationValue;
/drivers/base/
H A Dmap.c100 unsigned long best = ~0UL; local
111 if (p->range - 1 >= best)
118 best = p->range - 1;
/drivers/video/via/
H A Dviamode.c357 const struct fb_videomode *best = NULL; local
364 if (!best || abs(modes[i].refresh - refresh) <
365 abs(best->refresh - refresh))
366 best = &modes[i];
369 return best;
H A Dhw.c1391 struct via_pll_config cur, up, down, best = {0, 1, 0}; local
1414 if (f < abs(get_pll_output_frequency(f0, best) - clk))
1415 best = cur;
1418 return best;
2015 const struct fb_videomode *best; local
2017 best = viafb_get_best_mode(hres, vres, long_refresh);
2018 if (!best)
2021 if (abs(best->refresh - long_refresh) > 3) {
2028 return best->refresh;
/drivers/clk/
H A Dclk-divider.c61 unsigned long parent_rate, best = 0, now, maxdiv; local
89 if (now <= rate && now > best) {
91 best = now;
H A Dclkdev.c38 int match, best = 0; local
53 if (match > best) {
56 best = match;
/drivers/block/paride/
H A Dparide.c274 int best, range; local
287 best = -1;
296 best = pi->mode;
298 pi->mode = best;
299 return (best > -1);
/drivers/gpu/drm/
H A Ddrm_mm.c362 struct drm_mm_node *best; local
367 best = NULL;
381 best = entry;
386 return best;
398 struct drm_mm_node *best; local
403 best = NULL;
420 best = entry;
425 return best;
/drivers/md/
H A Ddm-queue-length.c175 struct path_info *pi = NULL, *best = NULL; local
184 if (!best ||
185 (atomic_read(&pi->qlen) < atomic_read(&best->qlen)))
186 best = pi;
188 if (!atomic_read(&best->qlen))
192 if (!best)
195 *repeat_count = best->repeat_count;
197 return best->path;
H A Ddm-service-time.c262 struct path_info *pi = NULL, *best = NULL; local
271 if (!best || (st_compare_load(pi, best, nr_bytes) < 0))
272 best = pi;
274 if (!best)
277 *repeat_count = best->repeat_count;
279 return best->path;
/drivers/staging/omapdrm/
H A Dtcm-sita.c62 struct score *best);
269 * @param area pointer to the area that will be set to the best position
280 struct score best = {{0}, {0}, {0}, 0}; local
310 /* update best candidate */
312 CR_R2L_T2B, &best))
329 if (!best.a.tcm)
332 assign(area, best.a.p0.x, best.a.p0.y, best.a.p1.x, best
354 struct score best = {{0}, {0}, {0}, 0}; local
602 update_candidate(struct tcm *tcm, u16 x0, u16 y0, u16 w, u16 h, struct tcm_area *field, s32 criteria, struct score *best) argument
[all...]
/drivers/video/geode/
H A Dlxfb_ops.c166 unsigned int diff, min, best = 0; local
177 best = i;
181 lx_set_dotpll(pll_table[best].pllval & 0x00017FFF);
/drivers/media/video/
H A Dv4l2-common.c332 is the best alternative. */
606 const struct v4l2_frmsize_discrete *size, *best = NULL; local
609 return best;
615 best = size;
621 return best;
H A Dsh_vou.c530 /* The compiler cannot know, that best and idx will indeed be set */
531 unsigned int best_err = UINT_MAX, best = 0, img_height_max; local
557 best = found;
563 geo->in_width = best;
582 best = found;
588 geo->in_height = best;
598 unsigned int best_err = UINT_MAX, best, width_max, height_max, local
626 best = found;
632 geo->output.width = best;
634 if (geo->output.left + best > width_ma
[all...]
/drivers/mmc/host/
H A Dsdhci-s3c.c151 * If controller uses a non-standard clock division, find the best clock
178 * and find the best clock source to go with it.
183 unsigned int best = UINT_MAX; local
195 if (delta < best) {
196 best = delta;
203 best_src, clock, best);
/drivers/staging/media/easycap/
H A Deasycap_ioctl.c367 int miss, multiplier, best, k; local
468 best = -1;
475 if ((best > miss) || (best < 0)) {
476 best = miss;
484 if (-1 == best) {
/drivers/video/
H A Dmodedb.c594 u32 best, diff, tdiff; local
709 best = -1;
719 best = i;
723 if (best != -1) {
724 fb_try_mode(var, info, &db[best], bpp);
729 best = -1;
730 DPRINTK("Trying best-fit modes\n");
746 best = i;
750 if (best != -1) {
751 fb_try_mode(var, info, &db[best], bp
884 struct fb_videomode *mode, *best = NULL; local
922 struct fb_videomode *cmode, *best = NULL; local
1073 const struct fb_videomode *m, *m1 = NULL, *md = NULL, *best = NULL; local
[all...]
H A Dvga16fb.c254 } *ptr, *best, vgaclocks[] = { local
263 best = vgaclocks;
264 err = pixclock - best->pixclock;
273 best = ptr;
276 par->misc |= best->misc;
277 par->clkdiv = best->seq_clock_mode;
278 pixclock = (best->pixclock * div) / mul;
/drivers/media/video/uvc/
H A Duvc_v4l2.c117 __u32 best = -1, dist; local
124 if (dist > best)
127 best = dist;
/drivers/mtd/
H A Dftl.c611 uint32_t best; local
617 best = 0xffffffff; xfer = 0xffff;
640 if (part->XferInfo[i].EraseCount <= best) {
641 best = part->XferInfo[i].EraseCount;
671 best = 0xffffffff;
673 if (part->EUNInfo[i].EraseCount <= best) {
674 best = part->EUNInfo[i].EraseCount;
678 best = 0;
680 if (part->EUNInfo[i].Deleted >= best) {
681 best
[all...]
/drivers/regulator/
H A Dmax8997.c559 u8 new_val, int *best)
569 *best = -1;
616 *best = i;
621 *best = i;
625 if (*best == -1)
628 return side_effect[*best];
558 max8997_assess_side_effect(struct regulator_dev *rdev, u8 new_val, int *best) argument
/drivers/sh/clk/
H A Dcore.c568 struct cpufreq_frequency_table *freq, *best = NULL; local
589 best = freq;
609 best = freq;
629 best = freq;
636 best = freq;
641 pr_debug("%u / %lu = %lu, / %lu = %lu, best %lu, parent %u\n",
643 *best_freq, best->frequency);
650 *parent_freq = best->frequency;
/drivers/leds/
H A Dleds-tca6507.c392 * If none perfect, choose best.
396 int best = -1;/* full-on */ local
408 best = i;
414 best = i;
417 if (best == -1) {
424 if (!tca->bank[best].level_use)
425 set_level(tca, best, level);
427 tca->bank[best].level_use++;
428 led->bank = best;
429 set_select(tca, led->num, bank_source[best]);
[all...]
/drivers/net/bonding/
H A Dbond_3ad.c1403 * the current best, according to the ad_select policy.
1405 static struct aggregator *ad_agg_selection_test(struct aggregator *best, argument
1409 * 0. If no best, select current.
1411 * 1. If the current agg is not individual, and the best is
1414 * 2. If current agg is individual and the best is not, keep best.
1416 * 3. Therefore, current and best are both individual or both not
1419 * 3a. If current agg partner replied, and best agg partner did not,
1422 * 3b. If current agg partner did not reply and best agg partner
1423 * did reply, keep best
1510 struct aggregator *best, *active, *origin; local
[all...]
/drivers/net/ethernet/toshiba/
H A Dps3_gelic_wireless.c1660 static void update_best(struct gelic_wl_scan_info **best, argument
1667 *best = candid;
2241 /* find best matching bss */

Completed in 605 milliseconds

12