/linux-master/sound/soc/codecs/ |
H A D | wm8978.c | 730 int i, best = 0; local 799 best = i; 807 best = wm8978->mclk_idx; 813 f_sel * mclk_denominator[best] / mclk_numerator[best] / 256, 818 params_width(params), params_rate(params), best); 821 snd_soc_component_update_bits(component, WM8978_CLOCKING, 0xe0, best << 5);
|
H A D | wm8961.c | 507 int i, best, target, fs; local 518 best = 0; 521 abs(wm8961_srate[best].rate - fs)) 522 best = i; 526 reg |= wm8961_srate[best].val; 529 wm8961_srate[best].rate, fs);
|
H A D | wm8955.c | 363 int val, i, best; local 369 best = 1; 372 abs(deemph_settings[best] - wm8955->fs)) 373 best = i; 376 val = best << WM8955_DEEMPH_SHIFT;
|
H A D | es8328.c | 117 int val, i, best; local 124 best = 0; 127 abs(deemph_settings[best].rate - es8328->playback_fs)) 128 best = i; 131 val = deemph_settings[best].val;
|
H A D | max98088.c | 1428 int best, best_val, save, i, sel, fs; local 1440 best = 0; 1445 best = i; 1451 pdata->eq_cfg[best].name, 1452 pdata->eq_cfg[best].rate, fs); 1475 int best, best_val, save, i, sel, fs; local 1487 best = 0; 1492 best = i; 1498 pdata->eq_cfg[best].name, 1499 pdata->eq_cfg[best] [all...] |
H A D | max98095.c | 1495 int fs, best, best_val, i; local 1512 best = 0; 1517 best = i; 1523 pdata->eq_cfg[best].name, 1524 pdata->eq_cfg[best].rate, fs); 1526 coef_set = &pdata->eq_cfg[best]; 1646 int fs, best, best_val, i; local 1663 best = 0; 1668 best = i; 1674 pdata->bq_cfg[best] [all...] |
H A D | wm8996.c | 338 int base, best, best_val, save, i, cfg, iface; local 367 best = 0; 374 best = i; 382 pdata->retune_mobile_cfgs[best].name, 383 pdata->retune_mobile_cfgs[best].rate, 392 for (i = 0; i < ARRAY_SIZE(pdata->retune_mobile_cfgs[best].regs); i++) 394 pdata->retune_mobile_cfgs[best].regs[i]); 1534 int aif, best, cur_val, bclk_rate, bclk_reg, i; local 1555 best = 0; 1560 best 1735 int bits, i, bclk_rate, best; local [all...] |
H A D | wm8994.c | 115 int best, i, sysclk, val; local 139 best = 0; 144 abs(rates[best].sysclk - sysclk)) 145 best = i; 146 else if (rates[best].idle != idle) 147 best = i; 150 val = rates[best].start << WM8958_MICD_BIAS_STARTTIME_SHIFT 151 | rates[best].rate << WM8958_MICD_RATE_SHIFT; 154 rates[best].start, rates[best] 401 int iface, best, best_val, save, i, cfg; local 2929 int i, cur_val, best_val, bclk_rate, best; local [all...] |
/linux-master/drivers/clk/ |
H A D | clk-divider.c | 268 unsigned long best, unsigned long flags) 271 return abs(rate - now) < abs(rate - best); 273 return now <= rate && now > best; 296 unsigned long parent_rate, best = 0, now, maxdiv; local 331 if (_is_best_div(rate, now, best, flags)) { 333 best = now; 267 _is_best_div(unsigned long rate, unsigned long now, unsigned long best, unsigned long flags) argument
|
/linux-master/drivers/rtc/ |
H A D | rtc-ac100.c | 173 unsigned long best = 0; local 206 if (req->rate - tmp < req->rate - best) { 207 best = tmp; 212 if (!best) 216 req->best_parent_rate = best; 217 req->rate = best;
|
/linux-master/drivers/power/supply/ |
H A D | wm831x_power.c | 146 unsigned int i, best; local 149 best = 0; 152 wm831x_usb_limits[best] < wm831x_usb_limits[i]) 153 best = i; 157 "Limiting USB current to %umA", wm831x_usb_limits[best]); 160 WM831X_USB_ILIM_MASK, best);
|
/linux-master/drivers/clk/sunxi/ |
H A D | clk-factors.c | 94 unsigned long parent_rate, best = 0, child_rate, best_child_rate = 0; local 117 best = parent_rate; 126 req->best_parent_rate = best;
|
/linux-master/drivers/clk/qcom/ |
H A D | common.c | 47 const struct freq_tbl *best = NULL; local 51 best = f; 56 return best;
|
/linux-master/fs/xfs/scrub/ |
H A D | dir.c | 364 /* Make sure the bestfrees are actually the best free spaces. */ 464 __u16 best; local 533 best = be16_to_cpu(*bestp); 543 if (best != NULLDATAOFF) { 551 if (best == NULLDATAOFF) 554 xchk_directory_check_freesp(sc, lblk, dbp, best); 574 __u16 best; local 595 best = be16_to_cpu(freehdr.bests[i]); 596 if (best == NULLDATAOFF) { 606 xchk_directory_check_freesp(sc, lblk, dbp, best); [all...] |
/linux-master/kernel/time/ |
H A D | clocksource.c | 63 * Find the conversion shift/mult pair which has the best 639 /* Pick the best watchdog. */ 756 /* Pick the best rating. */ 762 * clocksource_suspend_select - Select the best clocksource for suspend timing 988 * the best rating. 1003 struct clocksource *best, *cs; local 1005 /* Find the best suitable clocksource */ 1006 best = clocksource_find_best(oneshot, skipcur); 1007 if (!best) 1040 best [all...] |
/linux-master/drivers/video/fbdev/via/ |
H A D | viamode.c | 343 const struct fb_videomode *best = NULL; local 350 if (!best || abs(modes[i].refresh - refresh) < 351 abs(best->refresh - refresh)) 352 best = &modes[i]; 355 return best;
|
/linux-master/net/batman-adv/ |
H A D | bat_v.c | 263 * @best: Is the best originator 273 bool best) 311 if (best && nla_put_flag(msg, BATADV_ATTR_FLAG_BEST)) 345 bool best; local 355 best = (neigh_node == neigh_node_best); 359 neigh_node, best)) { 557 * batadv_v_gw_get_best_gw_node() - retrieve the best GW node 560 * Return: the GW node having the best GW-metric, NULL if no GW is known 268 batadv_v_orig_dump_subentry(struct sk_buff *msg, u32 portid, u32 seq, struct batadv_priv *bat_priv, struct batadv_hard_iface *if_outgoing, struct batadv_orig_node *orig_node, struct batadv_neigh_node *neigh_node, bool best) argument
|
/linux-master/drivers/gpu/drm/panfrost/ |
H A D | panfrost_gpu.c | 305 int best = -1; local 315 best = i; 318 best = i; 321 if (best >= 0) 322 hw_issues |= model->revs[best].issues;
|
/linux-master/drivers/gpu/drm/i915/display/ |
H A D | intel_dpll_mgr.c | 854 struct hsw_wrpll_rnp *best) 858 /* No best (r,n,p) yet */ 859 if (best->p == 0) { 860 best->p = p; 861 best->n2 = n2; 862 best->r2 = r2; 881 b = freq2k * budget * best->p * best->r2; 883 diff_best = abs_diff(freq2k * best->p * best 851 hsw_wrpll_update_rnp(u64 freq2k, unsigned int budget, unsigned int r2, unsigned int n2, unsigned int p, struct hsw_wrpll_rnp *best) argument 917 struct hsw_wrpll_rnp best = {}; local [all...] |
/linux-master/drivers/pci/controller/ |
H A D | vmd.c | 232 * XXX: We can be even smarter selecting the best IRQ once we solve the 238 int i, best; local 255 best = vmd->first_vec + 1; 256 for (i = best; i < vmd->msix_count; i++) 257 if (vmd->irqs[i].count < vmd->irqs[best].count) 258 best = i; 259 vmd->irqs[best].count++; 262 return &vmd->irqs[best];
|
/linux-master/drivers/net/wan/ |
H A D | ixp4xx_hss.c | 1232 u32 *best, u32 *best_diff, u32 *reg) 1243 *best = new_rate; 1250 static void find_best_clock(u32 timer_freq, u32 rate, u32 *best, u32 *reg) argument 1257 check_clock(timer_freq, rate, 0x3FF, 1, 1, best, &diff, reg); 1266 check_clock(timer_freq, rate, a - 1, 1, 1, best, &diff, reg); 1277 !check_clock(timer_freq, rate, a - 1, 1, 1, best, 1280 check_clock(timer_freq, rate, a, b, 0xFFF, best, 1284 if (!check_clock(timer_freq, rate, a, b, c, best, &diff, reg)) 1286 if (!check_clock(timer_freq, rate, a, b, c + 1, best, &diff, 1231 check_clock(u32 timer_freq, u32 rate, u32 a, u32 b, u32 c, u32 *best, u32 *best_diff, u32 *reg) argument
|
/linux-master/drivers/clk/ti/ |
H A D | divider.c | 173 unsigned long parent_rate, best = 0, now, maxdiv; local 210 if (now <= rate && now > best) { 212 best = now;
|
/linux-master/drivers/mmc/host/ |
H A D | sdhci-s3c.c | 189 * If controller uses a non-standard clock division, find the best clock 223 * and find the best clock source to go with it. 228 unsigned int best = UINT_MAX; local 244 if (delta < best) { 245 best = delta; 252 best_src, clock, best);
|
/linux-master/sound/soc/atmel/ |
H A D | atmel-i2s.c | 296 int i, best; local 304 * Find the best possible settings to generate the I2S Master Clock 308 best = INT_MAX; 313 if (val < best) { 314 best = val;
|
/linux-master/drivers/iio/ |
H A D | industrialio-gts-helper.c | 784 int best = -1; local 797 best = i; 803 best = i; 822 return gts->hwgain_table[best].gain; 990 * Positive value will be the "best possible new gain there could be". There 991 * can be two reasons why finding the "best possible" new gain is not deemed 994 * the "best possible" new gain will be a floored optimal gain, which may or 1047 * Positive value will be the "best possible new gain there could be". There 1048 * can be two reasons why finding the "best possible" new gain is not deemed 1051 * the "best possibl [all...] |