/drivers/usb/core/ |
H A D | generic.c | 48 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/md/ |
H A D | dm-queue-length.c | 175 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 D | dm-service-time.c | 262 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/net/bonding/ |
H A D | bond_3ad.c | 1403 * 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/staging/omapdrm/ |
H A D | tcm-sita.c | 62 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/ |
H A D | modedb.c | 594 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 D | tmiofb.c | 561 struct fb_videomode *best = NULL; local 568 && (!best || (mode->xres < best->xres 569 && mode->yres < best->yres))) 570 best = mode; 573 return best;
|
H A D | vga16fb.c | 254 } *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/staging/comedi/drivers/ |
H A D | dt9812.c | 831 struct slot_dt9812 *best = NULL; local 836 if (!best && dt9812[i].serial == dev->serial) 837 best = &dt9812[i]; 840 if (!best) 841 best = first; 843 if (best) { 844 down(&best->mutex); 845 best->usb = dev; 846 dev->slot = best; 847 up(&best 1085 struct slot_dt9812 *best = NULL; local [all...] |
/drivers/base/ |
H A D | map.c | 100 unsigned long best = ~0UL; local 111 if (p->range - 1 >= best) 118 best = p->range - 1;
|
/drivers/clk/ |
H A D | clk-divider.c | 61 unsigned long parent_rate, best = 0, now, maxdiv; local 89 if (now <= rate && now > best) { 91 best = now;
|
H A D | clkdev.c | 38 int match, best = 0; local 53 if (match > best) { 56 best = match;
|
/drivers/leds/ |
H A D | leds-tca6507.c | 392 * 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/gpu/drm/ |
H A D | drm_mm.c | 362 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/media/video/ |
H A D | sh_vou.c | 530 /* 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...] |
H A D | v4l2-common.c | 332 is the best alternative. */ 606 const struct v4l2_frmsize_discrete *size, *best = NULL; local 609 return best; 615 best = size; 621 return best;
|
/drivers/block/paride/ |
H A D | paride.c | 274 int best, range; local 287 best = -1; 296 best = pi->mode; 298 pi->mode = best; 299 return (best > -1);
|
/drivers/mtd/ |
H A D | ftl.c | 611 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/sh/clk/ |
H A D | core.c | 568 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/video/via/ |
H A D | viamode.c | 357 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 D | hw.c | 1391 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/net/wan/ |
H A D | ixp4xx_hss.c | 1186 u32 *best, u32 *best_diff, u32 *reg) 1197 *best = new_rate; 1204 static void find_best_clock(u32 rate, u32 *best, u32 *reg) argument 1211 check_clock(rate, 0x3FF, 1, 1, best, &diff, reg); 1220 check_clock(rate, a - 1, 1, 1, best, &diff, reg); 1230 !check_clock(rate, a - 1, 1, 1, best, &diff, reg)) 1232 check_clock(rate, a, b, 0xFFF, best, &diff, reg); 1235 if (!check_clock(rate, a, b, c, best, &diff, reg)) 1237 if (!check_clock(rate, a, b, c + 1, best, &diff, reg)) 1185 check_clock(u32 rate, u32 a, u32 b, u32 c, u32 *best, u32 *best_diff, u32 *reg) argument
|
/drivers/mmc/host/ |
H A D | sdhci-s3c.c | 151 * 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/regulator/ |
H A D | max8997.c | 559 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/scsi/fcoe/ |
H A D | fcoe_ctlr.c | 1437 * fcoe_ctlr_select() - Select the best FCF (if possible) 1452 struct fcoe_fcf *best = fip->sel_fcf; local 1482 if (!best || fcf->pri < best->pri || best->flogi_sent) 1483 best = fcf; 1485 fip->sel_fcf = best; 1486 if (best) { 1487 LIBFCOE_FIP_DBG(fip, "using FCF mac %pM\n", best->fcf_mac); 1490 fip->ctlr_ka_time = jiffies + best [all...] |