Home
last modified time | relevance | path

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

/linux/drivers/clk/bcm/
H A Dclk-bcm53573-ilp.c48 u32 last_val, cur_val; in bcm53573_ilp_recalc_rate() local
65 regmap_read(regmap, PMU_XTAL_FREQ_RATIO, &cur_val); in bcm53573_ilp_recalc_rate()
66 cur_val &= XTAL_ALP_PER_4ILP; in bcm53573_ilp_recalc_rate()
68 if (cur_val != last_val) { in bcm53573_ilp_recalc_rate()
70 sum += cur_val; in bcm53573_ilp_recalc_rate()
73 last_val = cur_val; in bcm53573_ilp_recalc_rate()
76 sum += cur_val; in bcm53573_ilp_recalc_rate()
/linux/arch/arm64/include/asm/
H A Dgcs.h73 unsigned long cur_val = task->thread.gcs_el0_mode; in gcs_check_locked() local
75 cur_val &= task->thread.gcs_el0_locked; in gcs_check_locked()
78 if (cur_val != new_val) in gcs_check_locked()
/linux/sound/soc/codecs/
H A Dwm9081.c997 int ret, i, best, best_val, cur_val; in wm9081_hw_params() local
1058 cur_val = abs((wm9081->sysclk_rate / in wm9081_hw_params()
1060 if (cur_val < best_val) { in wm9081_hw_params()
1062 best_val = cur_val; in wm9081_hw_params()
1075 cur_val = abs(wm9081->fs - sample_rates[i].rate); in wm9081_hw_params()
1076 if (cur_val < best_val) { in wm9081_hw_params()
1078 best_val = cur_val; in wm9081_hw_params()
1090 cur_val = ((wm9081->sysclk_rate * 10) / bclk_divs[i].div) in wm9081_hw_params()
1092 if (cur_val < 0) /* Table is sorted */ in wm9081_hw_params()
1094 if (cur_val < best_va in wm9081_hw_params()
[all...]
H A Dwm8993.c1190 int ret, i, best, best_val, cur_val; in wm8993_hw_params() local
1245 cur_val = abs((wm8993->sysclk_rate / in wm8993_hw_params()
1247 if (cur_val < best_val) { in wm8993_hw_params()
1249 best_val = cur_val; in wm8993_hw_params()
1262 cur_val = abs(wm8993->fs - sample_rates[i].rate); in wm8993_hw_params()
1263 if (cur_val < best_val) { in wm8993_hw_params()
1265 best_val = cur_val; in wm8993_hw_params()
1277 cur_val = ((wm8993->sysclk_rate * 10) / bclk_divs[i].div) in wm8993_hw_params()
1279 if (cur_val < 0) /* Table is sorted */ in wm8993_hw_params()
1281 if (cur_val < best_va in wm8993_hw_params()
[all...]
H A Dwm8903.c1450 int cur_val; in wm8903_hw_params() local
1470 cur_val = abs(sample_rates[i].rate - fs); in wm8903_hw_params()
1471 if (cur_val <= best_val) { in wm8903_hw_params()
1473 best_val = cur_val; in wm8903_hw_params()
1515 cur_val = abs((wm8903->sysclk / in wm8903_hw_params()
1519 if (cur_val <= best_val) { in wm8903_hw_params()
1521 best_val = cur_val; in wm8903_hw_params()
1553 cur_val = ((clk_sys * 10) / bclk_divs[i].ratio) - bclk; in wm8903_hw_params()
1554 if (cur_val < 0) /* BCLK table is sorted */ in wm8903_hw_params()
H A Dwm8904.c1361 int ret, i, best, best_val, cur_val; in wm8904_hw_params() local
1408 cur_val = abs((wm8904->sysclk_rate / in wm8904_hw_params()
1410 if (cur_val < best_val) { in wm8904_hw_params()
1412 best_val = cur_val; in wm8904_hw_params()
1425 cur_val = abs(wm8904->fs - sample_rates[i].rate); in wm8904_hw_params()
1426 if (cur_val < best_val) { in wm8904_hw_params()
1428 best_val = cur_val; in wm8904_hw_params()
1444 cur_val = ((wm8904->sysclk_rate * 10) / bclk_divs[i].div) in wm8904_hw_params()
1446 if (cur_val < 0) /* Table is sorted */ in wm8904_hw_params()
1448 if (cur_val < best_va in wm8904_hw_params()
[all...]
H A Dwm8995.c1556 int i, rate_val, best, best_val, cur_val; in wm8995_hw_params() local
1633 cur_val = abs((fs_ratios[i] * params_rate(params)) in wm8995_hw_params()
1635 if (cur_val >= best_val) in wm8995_hw_params()
1638 best_val = cur_val; in wm8995_hw_params()
1654 cur_val = (wm8995->aifclk[dai->id] * 10 / bclk_divs[i]) - bclk_rate; in wm8995_hw_params()
1655 if (cur_val < 0) /* BCLK table is sorted */ in wm8995_hw_params()
H A Dwm8994.c2929 int i, cur_val, best_val, bclk_rate, best; in wm8994_hw_params() local
3027 cur_val = abs((fs_ratios[i] * params_rate(params)) in wm8994_hw_params()
3029 if (cur_val >= best_val) in wm8994_hw_params()
3032 best_val = cur_val; in wm8994_hw_params()
3045 cur_val = (wm8994->aifclk[id] * 10 / bclk_divs[i]) - bclk_rate; in wm8994_hw_params()
3046 if (cur_val < 0) /* BCLK table is sorted */ in wm8994_hw_params()
H A Dwm8996.c1534 int aif, best, cur_val, bclk_rate, bclk_reg, i; in wm8996_update_bclk() local
1557 cur_val = (wm8996->sysclk / bclk_divs[i]) - bclk_rate; in wm8996_update_bclk()
1558 if (cur_val < 0) /* BCLK table is sorted */ in wm8996_update_bclk()
/linux/tools/testing/selftests/net/packetdrill/
H A Dset_sysctls.py31 cur_val = subprocess.check_output(['cat', sysctl[0]], universal_newlines=True) variable
32 print('echo "%s" > %s' % (cur_val.strip(), sysctl[0]), file=restore_file)
/linux/drivers/net/wireless/ath/ath5k/
H A 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/drivers/power/supply/
H A Dsc2731_charger.c372 u32 term_currrent, term_voltage, cur_val, vol_val; in sc2731_charger_hw_init() local
390 cur_val = 0x2; in sc2731_charger_hw_init()
396 cur_val = 0; in sc2731_charger_hw_init()
398 cur_val = 0x7; in sc2731_charger_hw_init()
400 cur_val = ((term_currrent - 90) / 25) + 1; in sc2731_charger_hw_init()
417 SC2731_TERMINATION_CUR_MASK, cur_val); in sc2731_charger_hw_init()
/linux/drivers/watchdog/
H A Dbcm_kona_wdt.c95 int ctl_val, cur_val; in bcm_kona_show() local
106 cur_val = secure_register_read(wdt, SECWDOG_COUNT_REG); in bcm_kona_show()
109 if (ctl_val < 0 || cur_val < 0) { in bcm_kona_show()
116 cur = cur_val & SECWDOG_COUNT_MASK; in bcm_kona_show()
/linux/arch/mips/txx9/generic/
H A Dsetup.c593 u8 cur_val; member
603 return !!(data->cur_val & (1 << offset)); in txx9_iocled_get()
613 data->cur_val |= 1 << offset; in txx9_iocled_set()
615 data->cur_val &= ~(1 << offset); in txx9_iocled_set()
616 writeb(data->cur_val, data->mmioaddr); in txx9_iocled_set()
/linux/drivers/gpu/drm/panel/
H A Dpanel-himax-hx8279.c928 u16 cur_val = component[j] | (gamma_high_bits[x] << 8); in hx8279_check_dig_gamma() local
930 if (cur_val < prev_val) in hx8279_check_dig_gamma()
933 cur_val, prev_val); in hx8279_check_dig_gamma()
934 prev_val = cur_val; in hx8279_check_dig_gamma()
/linux/drivers/gpu/drm/i915/display/
H A Di9xx_wm.c2668 result->cur_val <= max->cur; in ilk_validate_wm_level()
2686 if (result->cur_val > max->cur) in ilk_validate_wm_level()
2689 level, result->cur_val, max->cur); in ilk_validate_wm_level()
2693 result->cur_val = min_t(u32, result->cur_val, max->cur); in ilk_validate_wm_level()
2730 result->cur_val = ilk_compute_cur_wm(crtc_state, curstate, cur_latency); in ilk_compute_wm_level()
3024 intermediate_wm->cur_val = max(intermediate_wm->cur_val, in ilk_compute_intermediate_wm()
3025 active_wm->cur_val); in ilk_compute_intermediate_wm()
3093 ret_wm->cur_val in ilk_merge_wm_level()
[all...]
H A Dintel_display_types.h778 u32 cur_val; member
/linux/kernel/bpf/
H A Dcgroup.c1904 .cur_val = NULL, in __cgroup_bpf_run_filter_sysctl()
1914 ctx.cur_val = kmalloc_track_caller(ctx.cur_len, GFP_KERNEL); in __cgroup_bpf_run_filter_sysctl()
1915 if (!ctx.cur_val || in __cgroup_bpf_run_filter_sysctl()
1916 table->proc_handler(table, 0, ctx.cur_val, &ctx.cur_len, &pos)) { in __cgroup_bpf_run_filter_sysctl()
1941 kfree(ctx.cur_val); in __cgroup_bpf_run_filter_sysctl()
2308 return copy_sysctl_value(buf, buf_len, ctx->cur_val, ctx->cur_len); in BPF_CALL_3()
/linux/sound/usb/
H A Dmixer_quirks.c998 bool cur_val, new_val; in snd_mbox1_clk_switch_put() local
1000 cur_val = kctl->private_value; in snd_mbox1_clk_switch_put()
1002 if (cur_val == new_val) in snd_mbox1_clk_switch_put()
1068 bool cur_val, new_val; in snd_mbox1_src_switch_put() local
1070 cur_val = kctl->private_value; in snd_mbox1_src_switch_put()
1072 if (cur_val == new_val) in snd_mbox1_src_switch_put()
1356 int cur_val, err, new_val; in snd_ftu_eff_switch_put() local
1358 cur_val = pval >> 24; in snd_ftu_eff_switch_put()
1360 if (cur_val == new_val) in snd_ftu_eff_switch_put()
/linux/sound/hda/common/
H A Dhda_local.h191 unsigned int *cur_val);
H A Dcodec.c3522 * @cur_val: pointer to get/store the current imux value
3528 unsigned int *cur_val) in snd_hda_input_mux_put() argument
3537 if (*cur_val == idx) in snd_hda_input_mux_put()
3541 *cur_val = idx; in snd_hda_input_mux_put()
/linux/sound/hda/codecs/
H A Dca0132.c5736 long *cur_val; in ca0132_alt_xbass_xover_slider_put() local
5740 cur_val = &spec->bass_redirect_xover_freq; in ca0132_alt_xbass_xover_slider_put()
5742 cur_val = &spec->xbass_xover_freq; in ca0132_alt_xbass_xover_slider_put()
5745 if (*cur_val == *valp) in ca0132_alt_xbass_xover_slider_put()
5748 *cur_val = *valp; in ca0132_alt_xbass_xover_slider_put()
5752 ca0132_alt_bass_redirection_xover_set(codec, *cur_val); in ca0132_alt_xbass_xover_slider_put()
/linux/include/linux/
H A Dfilter.h1559 void *cur_val; member