Home
last modified time | relevance | path

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

/openbmc/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()
/openbmc/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()
1076 if (cur_val < best_val) { in wm9081_hw_params()
1078 best_val = cur_val; in wm9081_hw_params()
1092 if (cur_val < 0) /* Table is sorted */ in wm9081_hw_params()
1094 if (cur_val < best_val) { in wm9081_hw_params()
1096 best_val = cur_val; in wm9081_hw_params()
1119 if (cur_val < best_val) { 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()
1263 if (cur_val < best_val) { in wm8993_hw_params()
1265 best_val = cur_val; in wm8993_hw_params()
1279 if (cur_val < 0) /* Table is sorted */ in wm8993_hw_params()
1281 if (cur_val < best_val) { in wm8993_hw_params()
1283 best_val = cur_val; in wm8993_hw_params()
1311 if (cur_val < best_val) { in wm8993_hw_params()
[all …]
H A Dwm8904.c1299 int ret, i, best, best_val, cur_val; in wm8904_hw_params() local
1346 cur_val = abs((wm8904->sysclk_rate / in wm8904_hw_params()
1348 if (cur_val < best_val) { in wm8904_hw_params()
1350 best_val = cur_val; in wm8904_hw_params()
1363 cur_val = abs(wm8904->fs - sample_rates[i].rate); in wm8904_hw_params()
1364 if (cur_val < best_val) { in wm8904_hw_params()
1366 best_val = cur_val; in wm8904_hw_params()
1382 cur_val = ((wm8904->sysclk_rate * 10) / bclk_divs[i].div) in wm8904_hw_params()
1384 if (cur_val < 0) /* Table is sorted */ in wm8904_hw_params()
1386 if (cur_val < best_val) { in wm8904_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 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()
/openbmc/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()
/openbmc/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()
/openbmc/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()
/openbmc/u-boot/drivers/sound/
H A Dwm8994.c291 int i, cur_val, best_val, bclk_rate, best; in wm8994_hw_params() local
351 cur_val = abs(fs_ratios[i] * sampling_rate - priv->aifclk[id]); in wm8994_hw_params()
352 if (cur_val >= best_val) in wm8994_hw_params()
355 best_val = cur_val; in wm8994_hw_params()
368 cur_val = (priv->aifclk[id] * 10 / bclk_divs[i]) - bclk_rate; in wm8994_hw_params()
369 if (cur_val < 0) /* BCLK table is sorted */ in wm8994_hw_params()
/openbmc/qemu/target/arm/
H A Dptw.c723 uint64_t cur_val; in arm_casq_ptw() local
760 cur_val = new_val; in arm_casq_ptw()
782 cur_val = new_val; in arm_casq_ptw()
788 return cur_val; in arm_casq_ptw()
829 cur_val = be64_to_cpu(cur_val); in arm_casq_ptw()
834 cur_val = le64_to_cpu(cur_val); in arm_casq_ptw()
851 cur_val = ldq_be_p(host); in arm_casq_ptw()
852 if (cur_val == old_val) { in arm_casq_ptw()
856 cur_val = ldq_le_p(host); in arm_casq_ptw()
857 if (cur_val == old_val) { in arm_casq_ptw()
[all …]
H A Dhelper.c1591 uint64_t cur_val = pmccntr_read(env, NULL); in pmccntr_write32() local
1593 pmccntr_write(env, ri, deposit64(cur_val, 0, 32, value)); in pmccntr_write32()
/openbmc/linux/sound/soc/atmel/
H A Datmel-classd.c345 int i, best, best_val, cur_val, ret; in atmel_classd_cpu_dai_hw_params() local
354 cur_val = abs(fs - sample_rates[i].rate); in atmel_classd_cpu_dai_hw_params()
355 if (cur_val < best_val) { in atmel_classd_cpu_dai_hw_params()
357 best_val = cur_val; in atmel_classd_cpu_dai_hw_params()
/openbmc/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()
/openbmc/linux/drivers/gpu/drm/i915/display/
H A Di9xx_wm.c2546 result->cur_val <= max->cur; in ilk_validate_wm_level()
2562 if (result->cur_val > max->cur) in ilk_validate_wm_level()
2564 level, result->cur_val, max->cur); in ilk_validate_wm_level()
2568 result->cur_val = min_t(u32, result->cur_val, max->cur); in ilk_validate_wm_level()
2605 result->cur_val = ilk_compute_cur_wm(crtc_state, curstate, cur_latency); in ilk_compute_wm_level()
2896 a_wm->cur_val = max(a_wm->cur_val, b_wm->cur_val); in ilk_compute_intermediate_wm()
2947 ret_wm->cur_val = max(ret_wm->cur_val, wm->cur_val); in ilk_merge_wm_level()
3047 WM_LP_CURSOR(r->cur_val); in ilk_compute_wm_results()
3081 WM0_PIPE_CURSOR(r->cur_val); in ilk_compute_wm_results()
3368 active->wm[0].cur_val = REG_FIELD_GET(WM0_PIPE_CURSOR_MASK, tmp); in ilk_pipe_wm_get_hw_state()
H A Dintel_display_types.h835 u32 cur_val; member
/openbmc/linux/sound/usb/
H A Dmixer_quirks.c734 bool cur_val, new_val; in snd_mbox1_clk_switch_put() local
736 cur_val = kctl->private_value; in snd_mbox1_clk_switch_put()
738 if (cur_val == new_val) in snd_mbox1_clk_switch_put()
804 bool cur_val, new_val; in snd_mbox1_src_switch_put() local
806 cur_val = kctl->private_value; in snd_mbox1_src_switch_put()
808 if (cur_val == new_val) in snd_mbox1_src_switch_put()
1091 int cur_val, err, new_val; in snd_ftu_eff_switch_put() local
1093 cur_val = pval >> 24; in snd_ftu_eff_switch_put()
1095 if (cur_val == new_val) in snd_ftu_eff_switch_put()
/openbmc/linux/kernel/bpf/
H A Dcgroup.c1722 .cur_val = NULL, in __cgroup_bpf_run_filter_sysctl()
1732 ctx.cur_val = kmalloc_track_caller(ctx.cur_len, GFP_KERNEL); in __cgroup_bpf_run_filter_sysctl()
1733 if (!ctx.cur_val || in __cgroup_bpf_run_filter_sysctl()
1734 table->proc_handler(table, 0, ctx.cur_val, &ctx.cur_len, &pos)) { in __cgroup_bpf_run_filter_sysctl()
1759 kfree(ctx.cur_val); in __cgroup_bpf_run_filter_sysctl()
2126 return copy_sysctl_value(buf, buf_len, ctx->cur_val, ctx->cur_len); in BPF_CALL_3()
/openbmc/linux/sound/pci/hda/
H A Dhda_local.h189 unsigned int *cur_val);
H A Dhda_codec.c3559 unsigned int *cur_val) in snd_hda_input_mux_put() argument
3568 if (*cur_val == idx) in snd_hda_input_mux_put()
3572 *cur_val = idx; in snd_hda_input_mux_put()
H A Dpatch_ca0132.c5722 long *cur_val; in ca0132_alt_xbass_xover_slider_put() local
5726 cur_val = &spec->bass_redirect_xover_freq; in ca0132_alt_xbass_xover_slider_put()
5728 cur_val = &spec->xbass_xover_freq; in ca0132_alt_xbass_xover_slider_put()
5731 if (*cur_val == *valp) in ca0132_alt_xbass_xover_slider_put()
5734 *cur_val = *valp; in ca0132_alt_xbass_xover_slider_put()
5738 ca0132_alt_bass_redirection_xover_set(codec, *cur_val); in ca0132_alt_xbass_xover_slider_put()
/openbmc/qemu/target/hexagon/
H A Dgenptr.c59 static inline void gen_masked_reg_write(TCGv new_val, TCGv cur_val, in gen_masked_reg_write() argument
67 tcg_gen_andi_tl(tmp, cur_val, reg_mask); in gen_masked_reg_write()
/openbmc/linux/include/linux/
H A Dfilter.h1321 void *cur_val; member