/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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 | wm8903.c | 1451 int cur_val; in wm8903_hw_params() local 1471 cur_val = abs(sample_rates[i].rate - fs); in wm8903_hw_params() 1472 if (cur_val <= best_val) { in wm8903_hw_params() 1474 best_val = cur_val; in wm8903_hw_params() 1516 cur_val = abs((wm8903->sysclk / in wm8903_hw_params() 1520 if (cur_val <= best_val) { in wm8903_hw_params() 1522 best_val = cur_val; in wm8903_hw_params() 1555 cur_val = ((clk_sys * 10) / bclk_divs[i].ratio) - bclk; in wm8903_hw_params() 1556 if (cur_val < 0) /* BCLK table is sorted */ in wm8903_hw_params() 1559 best_val = cur_val; in wm8903_hw_params()
|
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 | 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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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()
|
D | s3c_adc_battery.c | 128 static int calc_full_volt(int volt_val, int cur_val, int impedance) in calc_full_volt() argument 130 return volt_val + cur_val * impedance / 1000; in calc_full_volt()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/mmc/host/ |
D | sdhci_am654.c | 426 int cur_val, prev_val = 1, fail_len = 0, pass_window = 0, pass_len; in sdhci_am654_platform_execute_tuning() local 436 cur_val = !mmc_send_tuning(host->mmc, opcode, NULL); in sdhci_am654_platform_execute_tuning() 437 if (cur_val && !prev_val) in sdhci_am654_platform_execute_tuning() 440 if (!cur_val) in sdhci_am654_platform_execute_tuning() 443 prev_val = cur_val; in sdhci_am654_platform_execute_tuning()
|
/kernel/linux/linux-5.10/arch/mips/txx9/generic/ |
D | setup.c | 677 u8 cur_val; member 687 return !!(data->cur_val & (1 << offset)); in txx9_iocled_get() 697 data->cur_val |= 1 << offset; in txx9_iocled_set() 699 data->cur_val &= ~(1 << offset); in txx9_iocled_set() 700 writeb(data->cur_val, data->mmioaddr); in txx9_iocled_set()
|
/kernel/linux/linux-5.10/kernel/bpf/ |
D | cgroup.c | 1289 .cur_val = NULL, in __cgroup_bpf_run_filter_sysctl() 1299 ctx.cur_val = kmalloc_track_caller(ctx.cur_len, GFP_KERNEL); in __cgroup_bpf_run_filter_sysctl() 1300 if (!ctx.cur_val || in __cgroup_bpf_run_filter_sysctl() 1301 table->proc_handler(table, 0, ctx.cur_val, &ctx.cur_len, &pos)) { in __cgroup_bpf_run_filter_sysctl() 1325 kfree(ctx.cur_val); in __cgroup_bpf_run_filter_sysctl() 1639 return copy_sysctl_value(buf, buf_len, ctx->cur_val, ctx->cur_len); in BPF_CALL_3()
|
/kernel/linux/linux-5.10/sound/usb/ |
D | mixer_quirks.c | 680 bool cur_val, new_val; in snd_mbox1_switch_put() local 682 cur_val = kctl->private_value; in snd_mbox1_switch_put() 684 if (cur_val == new_val) in snd_mbox1_switch_put() 949 int cur_val, err, new_val; in snd_ftu_eff_switch_put() local 951 cur_val = pval >> 24; in snd_ftu_eff_switch_put() 953 if (cur_val == new_val) in snd_ftu_eff_switch_put()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/ |
D | intel_pm.c | 2784 result->cur_val <= max->cur; in ilk_validate_wm_level() 2800 if (result->cur_val > max->cur) in ilk_validate_wm_level() 2802 level, result->cur_val, max->cur); in ilk_validate_wm_level() 2806 result->cur_val = min_t(u32, result->cur_val, max->cur); in ilk_validate_wm_level() 2843 result->cur_val = ilk_compute_cur_wm(crtc_state, curstate, cur_latency); in ilk_compute_wm_level() 3251 a_wm->cur_val = max(a_wm->cur_val, b_wm->cur_val); in ilk_compute_intermediate_wm() 3302 ret_wm->cur_val = max(ret_wm->cur_val, wm->cur_val); in ilk_merge_wm_level() 3407 r->cur_val; in ilk_compute_wm_results() 3442 r->cur_val; in ilk_compute_wm_results() 6318 active->wm[0].cur_val = tmp & WM0_PIPE_CURSOR_MASK; in ilk_pipe_wm_get_hw_state()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
D | dr_ste.c | 1828 u32 cur_val = MLX5_GET(ste_flex_parser_1, bit_mask, in dr_ste_build_flex_parser_1_bit_mask() local 1831 cur_val | (icmp_code_mask << ICMP_CODE_OFFSET_FIRST_DW)); in dr_ste_build_flex_parser_1_bit_mask() 1899 u32 cur_val = MLX5_GET(ste_flex_parser_1, tag, in dr_ste_build_flex_parser_1_tag() local 1902 cur_val | (icmp_code << ICMP_CODE_OFFSET_FIRST_DW)); in dr_ste_build_flex_parser_1_tag()
|
/kernel/linux/linux-5.10/sound/pci/hda/ |
D | hda_local.h | 198 unsigned int *cur_val);
|
D | hda_codec.c | 3529 unsigned int *cur_val) in snd_hda_input_mux_put() argument 3538 if (*cur_val == idx) in snd_hda_input_mux_put() 3542 *cur_val = idx; in snd_hda_input_mux_put()
|
D | patch_ca0132.c | 5599 long *cur_val; in ca0132_alt_xbass_xover_slider_put() local 5603 cur_val = &spec->bass_redirect_xover_freq; in ca0132_alt_xbass_xover_slider_put() 5605 cur_val = &spec->xbass_xover_freq; in ca0132_alt_xbass_xover_slider_put() 5608 if (*cur_val == *valp) in ca0132_alt_xbass_xover_slider_put() 5611 *cur_val = *valp; in ca0132_alt_xbass_xover_slider_put() 5615 ca0132_alt_bass_redirection_xover_set(codec, *cur_val); in ca0132_alt_xbass_xover_slider_put()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/ |
D | intel_display_types.h | 650 u32 cur_val; member
|
/kernel/linux/linux-5.10/include/linux/ |
D | filter.h | 1289 void *cur_val; member
|