/linux-6.6.21/drivers/clk/bcm/ |
D | clk-bcm53573-ilp.c | 48 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-6.6.21/sound/soc/codecs/ |
D | wm9081.c | 997 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_val) { in wm9081_hw_params() [all …]
|
D | wm8993.c | 1190 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_val) { in wm8993_hw_params() [all …]
|
D | wm8904.c | 1299 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 …]
|
D | wm8903.c | 1450 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()
|
D | wm8995.c | 1556 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()
|
D | wm8994.c | 2929 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()
|
D | wm8996.c | 1534 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-6.6.21/drivers/net/wireless/ath/ath5k/ |
D | attach.c | 47 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-6.6.21/drivers/power/supply/ |
D | sc2731_charger.c | 372 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-6.6.21/drivers/watchdog/ |
D | bcm_kona_wdt.c | 95 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-6.6.21/sound/soc/atmel/ |
D | atmel-classd.c | 345 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()
|
/linux-6.6.21/arch/mips/txx9/generic/ |
D | setup.c | 593 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-6.6.21/drivers/mmc/host/ |
D | sdhci_am654.c | 425 int cur_val, prev_val = 1, fail_len = 0, pass_window = 0, pass_len; in sdhci_am654_platform_execute_tuning() local 435 cur_val = !mmc_send_tuning(host->mmc, opcode, NULL); in sdhci_am654_platform_execute_tuning() 436 if (cur_val && !prev_val) in sdhci_am654_platform_execute_tuning() 439 if (!cur_val) in sdhci_am654_platform_execute_tuning() 442 prev_val = cur_val; in sdhci_am654_platform_execute_tuning()
|
/linux-6.6.21/drivers/gpu/drm/i915/display/ |
D | i9xx_wm.c | 2546 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()
|
D | intel_display_types.h | 834 u32 cur_val; member
|
/linux-6.6.21/sound/usb/ |
D | mixer_quirks.c | 734 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()
|
/linux-6.6.21/kernel/bpf/ |
D | cgroup.c | 1705 .cur_val = NULL, in __cgroup_bpf_run_filter_sysctl() 1715 ctx.cur_val = kmalloc_track_caller(ctx.cur_len, GFP_KERNEL); in __cgroup_bpf_run_filter_sysctl() 1716 if (!ctx.cur_val || in __cgroup_bpf_run_filter_sysctl() 1717 table->proc_handler(table, 0, ctx.cur_val, &ctx.cur_len, &pos)) { in __cgroup_bpf_run_filter_sysctl() 1742 kfree(ctx.cur_val); in __cgroup_bpf_run_filter_sysctl() 2106 return copy_sysctl_value(buf, buf_len, ctx->cur_val, ctx->cur_len); in BPF_CALL_3()
|
/linux-6.6.21/sound/pci/hda/ |
D | hda_local.h | 189 unsigned int *cur_val);
|
D | hda_codec.c | 3559 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()
|
D | patch_ca0132.c | 5722 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()
|
/linux-6.6.21/include/linux/ |
D | filter.h | 1318 void *cur_val; member
|