Home
last modified time | relevance | path

Searched refs:cur_val (Results 1 – 13 of 13) sorted by relevance

/linux-2.6.39/drivers/net/wireless/ath/ath5k/
Dattach.c47 u32 cur_val; in ath5k_hw_post() local
59 cur_val = ath5k_hw_reg_read(ah, cur_reg); in ath5k_hw_post()
61 if (cur_val != var_pattern) { in ath5k_hw_post()
74 cur_val = ath5k_hw_reg_read(ah, cur_reg); in ath5k_hw_post()
76 if (cur_val != var_pattern) { in ath5k_hw_post()
/linux-2.6.39/sound/soc/codecs/
Dwm9081.c953 int ret, i, best, best_val, cur_val; in wm9081_hw_params() local
1014 cur_val = abs((wm9081->sysclk_rate / in wm9081_hw_params()
1016 if (cur_val < best_val) { in wm9081_hw_params()
1018 best_val = cur_val; in wm9081_hw_params()
1031 cur_val = abs(wm9081->fs - sample_rates[i].rate); in wm9081_hw_params()
1032 if (cur_val < best_val) { in wm9081_hw_params()
1034 best_val = cur_val; in wm9081_hw_params()
1046 cur_val = ((wm9081->sysclk_rate * 10) / bclk_divs[i].div) in wm9081_hw_params()
1048 if (cur_val < 0) /* Table is sorted */ in wm9081_hw_params()
1050 if (cur_val < best_val) { in wm9081_hw_params()
[all …]
Dwm8993.c1178 int ret, i, best, best_val, cur_val; in wm8993_hw_params() local
1233 cur_val = abs((wm8993->sysclk_rate / in wm8993_hw_params()
1235 if (cur_val < best_val) { in wm8993_hw_params()
1237 best_val = cur_val; in wm8993_hw_params()
1250 cur_val = abs(wm8993->fs - sample_rates[i].rate); in wm8993_hw_params()
1251 if (cur_val < best_val) { in wm8993_hw_params()
1253 best_val = cur_val; in wm8993_hw_params()
1265 cur_val = ((wm8993->sysclk_rate * 10) / bclk_divs[i].div) in wm8993_hw_params()
1267 if (cur_val < 0) /* Table is sorted */ in wm8993_hw_params()
1269 if (cur_val < best_val) { in wm8993_hw_params()
[all …]
Dwm8903.c1455 int cur_val; in wm8903_hw_params() local
1475 cur_val = abs(sample_rates[i].rate - fs); in wm8903_hw_params()
1476 if (cur_val <= best_val) { in wm8903_hw_params()
1478 best_val = cur_val; in wm8903_hw_params()
1520 cur_val = abs((wm8903->sysclk / in wm8903_hw_params()
1524 if (cur_val <= best_val) { in wm8903_hw_params()
1526 best_val = cur_val; in wm8903_hw_params()
1559 cur_val = ((clk_sys * 10) / bclk_divs[i].ratio) - bclk; in wm8903_hw_params()
1560 if (cur_val < 0) /* BCLK table is sorted */ in wm8903_hw_params()
1563 best_val = cur_val; in wm8903_hw_params()
Dwm8904.c1544 int ret, i, best, best_val, cur_val; in wm8904_hw_params() local
1591 cur_val = abs((wm8904->sysclk_rate / in wm8904_hw_params()
1593 if (cur_val < best_val) { in wm8904_hw_params()
1595 best_val = cur_val; in wm8904_hw_params()
1608 cur_val = abs(wm8904->fs - sample_rates[i].rate); in wm8904_hw_params()
1609 if (cur_val < best_val) { in wm8904_hw_params()
1611 best_val = cur_val; in wm8904_hw_params()
1627 cur_val = ((wm8904->sysclk_rate * 10) / bclk_divs[i].div) in wm8904_hw_params()
1629 if (cur_val < 0) /* Table is sorted */ in wm8904_hw_params()
1631 if (cur_val < best_val) { in wm8904_hw_params()
[all …]
Dwm8995.c1116 int i, rate_val, best, best_val, cur_val; in wm8995_hw_params() local
1193 cur_val = abs((fs_ratios[i] * params_rate(params)) in wm8995_hw_params()
1195 if (cur_val >= best_val) in wm8995_hw_params()
1198 best_val = cur_val; in wm8995_hw_params()
1214 cur_val = (wm8995->aifclk[dai->id] * 10 / bclk_divs[i]) - bclk_rate; in wm8995_hw_params()
1215 if (cur_val < 0) /* BCLK table is sorted */ in wm8995_hw_params()
Dwm8994.c2340 int i, cur_val, best_val, bclk_rate, best; in wm8994_hw_params() local
2428 cur_val = abs((fs_ratios[i] * params_rate(params)) in wm8994_hw_params()
2430 if (cur_val >= best_val) in wm8994_hw_params()
2433 best_val = cur_val; in wm8994_hw_params()
2446 cur_val = (wm8994->aifclk[id] * 10 / bclk_divs[i]) - bclk_rate; in wm8994_hw_params()
2447 if (cur_val < 0) /* BCLK table is sorted */ in wm8994_hw_params()
/linux-2.6.39/arch/mips/txx9/generic/
Dsetup.c698 u8 cur_val; member
709 return data->cur_val & (1 << offset); in txx9_iocled_get()
720 data->cur_val |= 1 << offset; in txx9_iocled_set()
722 data->cur_val &= ~(1 << offset); in txx9_iocled_set()
723 writeb(data->cur_val, data->mmioaddr); in txx9_iocled_set()
/linux-2.6.39/drivers/power/
Ds3c_adc_battery.c110 static int calc_full_volt(int volt_val, int cur_val, int impedance) in calc_full_volt() argument
112 return volt_val + cur_val * impedance / 1000; in calc_full_volt()
/linux-2.6.39/drivers/staging/westbridge/astoria/arch/arm/mach-omap2/
Dcyashalomap_kernel.c252 u16 cur_val, wr_val, rdback_val; in omap_cfg_reg_L() local
284 cur_val = IORD16(reg_vma); in omap_cfg_reg_L()
/linux-2.6.39/sound/pci/hda/
Dhda_local.h236 unsigned int *cur_val);
Dhda_codec.c4087 unsigned int *cur_val) in snd_hda_input_mux_put() argument
4096 if (*cur_val == idx) in snd_hda_input_mux_put()
4100 *cur_val = idx; in snd_hda_input_mux_put()
Dpatch_realtek.c489 unsigned int *cur_val = &spec->cur_mux[adc_idx]; in alc_mux_enum_put() local
495 if (*cur_val == idx) in alc_mux_enum_put()
503 *cur_val = idx; in alc_mux_enum_put()