Home
last modified time | relevance | path

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

1234

/linux/drivers/media/dvb-frontends/
A Dz0194a.h16 u8 bclk = 0; in sharp_z0194a_set_symbol_rate() local
19 aclk = 0xb7; bclk = 0x47; } in sharp_z0194a_set_symbol_rate()
21 aclk = 0xb7; bclk = 0x4b; } in sharp_z0194a_set_symbol_rate()
23 aclk = 0xb7; bclk = 0x4f; } in sharp_z0194a_set_symbol_rate()
25 aclk = 0xb7; bclk = 0x53; } in sharp_z0194a_set_symbol_rate()
27 aclk = 0xb6; bclk = 0x53; } in sharp_z0194a_set_symbol_rate()
29 aclk = 0xb4; bclk = 0x51; } in sharp_z0194a_set_symbol_rate()
32 stv0299_writereg(fe, 0x14, bclk); in sharp_z0194a_set_symbol_rate()
A Dbsbe1.h37 u8 bclk = 0; in alps_bsbe1_set_symbol_rate() local
39 if (srate < 1500000) { aclk = 0xb7; bclk = 0x47; } in alps_bsbe1_set_symbol_rate()
40 else if (srate < 3000000) { aclk = 0xb7; bclk = 0x4b; } in alps_bsbe1_set_symbol_rate()
41 else if (srate < 7000000) { aclk = 0xb7; bclk = 0x4f; } in alps_bsbe1_set_symbol_rate()
42 else if (srate < 14000000) { aclk = 0xb7; bclk = 0x53; } in alps_bsbe1_set_symbol_rate()
43 else if (srate < 30000000) { aclk = 0xb6; bclk = 0x53; } in alps_bsbe1_set_symbol_rate()
44 else if (srate < 45000000) { aclk = 0xb4; bclk = 0x51; } in alps_bsbe1_set_symbol_rate()
47 stv0299_writereg(fe, 0x14, bclk); in alps_bsbe1_set_symbol_rate()
A Dbsru6.h56 u8 bclk = 0; in alps_bsru6_set_symbol_rate() local
60 bclk = 0x47; in alps_bsru6_set_symbol_rate()
63 bclk = 0x4b; in alps_bsru6_set_symbol_rate()
66 bclk = 0x4f; in alps_bsru6_set_symbol_rate()
69 bclk = 0x53; in alps_bsru6_set_symbol_rate()
72 bclk = 0x53; in alps_bsru6_set_symbol_rate()
75 bclk = 0x51; in alps_bsru6_set_symbol_rate()
79 stv0299_writereg(fe, 0x14, bclk); in alps_bsru6_set_symbol_rate()
/linux/drivers/media/pci/mantis/
A Dmantis_vp1033.c110 u8 bclk = 0; in lgtdqcs001f_set_symbol_rate() local
114 bclk = 0x47; in lgtdqcs001f_set_symbol_rate()
117 bclk = 0x4b; in lgtdqcs001f_set_symbol_rate()
120 bclk = 0x4f; in lgtdqcs001f_set_symbol_rate()
123 bclk = 0x53; in lgtdqcs001f_set_symbol_rate()
126 bclk = 0x53; in lgtdqcs001f_set_symbol_rate()
129 bclk = 0x51; in lgtdqcs001f_set_symbol_rate()
132 stv0299_writereg(fe, 0x14, bclk); in lgtdqcs001f_set_symbol_rate()
/linux/Documentation/devicetree/bindings/pinctrl/
A Dcirrus,lochnagar.yaml95 gf-gpio2, gf-gpio3, gf-gpio7, codec-aif1-bclk,
101 dsp-aif2-bclk, dsp-aif2-rxdat, dsp-aif2-lrclk,
104 psia2-txdat, gf-aif3-bclk, gf-aif3-rxdat,
105 gf-aif3-lrclk, gf-aif3-txdat, gf-aif4-bclk,
107 gf-aif1-bclk, gf-aif1-rxdat, gf-aif1-lrclk,
108 gf-aif1-txdat, gf-aif2-bclk, gf-aif2-rxdat,
147 psia1-rxdat, psia1-txdat, psia2, psia2-bclk,
150 codec-aif1-txdat, codec-aif2, codec-aif2-bclk,
152 codec-aif3, codec-aif3-bclk, codec-aif3-lrclk,
155 dsp-aif1-txdat, dsp-aif2, dsp-aif2-bclk,
[all …]
/linux/sound/soc/samsung/
A Dneo1973_wm8753.c28 unsigned int pll_out = 0, bclk = 0; in neo1973_hifi_hw_params() local
40 bclk = WM8753_BCLK_DIV_4; in neo1973_hifi_hw_params()
44 bclk = WM8753_BCLK_DIV_2; in neo1973_hifi_hw_params()
48 bclk = WM8753_BCLK_DIV_16; in neo1973_hifi_hw_params()
52 bclk = WM8753_BCLK_DIV_8; in neo1973_hifi_hw_params()
56 bclk = WM8753_BCLK_DIV_4; in neo1973_hifi_hw_params()
60 bclk = WM8753_BCLK_DIV_2; in neo1973_hifi_hw_params()
78 ret = snd_soc_dai_set_clkdiv(codec_dai, WM8753_BCLKDIV, bclk); in neo1973_hifi_hw_params()
/linux/drivers/gpu/drm/msm/hdmi/
A Dhdmi_phy_8996.c131 int digclk_divsel = bclk >= HDMI_DIG_FREQ_BIT_CLK_THRESHOLD ? 1 : 2; in pll_get_integloop_gain()
166 static int pll_get_post_div(struct hdmi_8996_post_divider *pd, u64 bclk) in pll_get_post_div() argument
185 vco = bclk >> half_rate_mode; in pll_get_post_div()
222 u64 bclk; in pll_calculate() local
237 bclk = ((u64)pix_clk) * 10; in pll_calculate()
239 if (bclk > HDMI_HIGH_FREQ_BIT_CLK_THRESHOLD) in pll_calculate()
244 ret = pll_get_post_div(&pd, bclk); in pll_calculate()
262 integloop_gain = pll_get_integloop_gain(frac_start, bclk, in pll_calculate()
285 if (bclk > HDMI_DIG_FREQ_BIT_CLK_THRESHOLD) in pll_calculate()
320 if (bclk > HDMI_HIGH_FREQ_BIT_CLK_THRESHOLD) { in pll_calculate()
[all …]
/linux/sound/soc/codecs/
A Dwm9081.c151 int bclk; member
664 if (wm9081->master && wm9081->bclk) { in configure_clock()
671 if (target >= wm9081->bclk && in configure_clock()
1024 wm9081->bclk = 2 * wm9081->fs; in wm9081_hw_params()
1028 wm9081->bclk *= 16; in wm9081_hw_params()
1031 wm9081->bclk *= 20; in wm9081_hw_params()
1035 wm9081->bclk *= 24; in wm9081_hw_params()
1039 wm9081->bclk *= 32; in wm9081_hw_params()
1091 - wm9081->bclk; in wm9081_hw_params()
1101 bclk_divs[best].div, wm9081->bclk); in wm9081_hw_params()
[all …]
A Dwm2200.c1557 int lrclk, bclk, fmt_val; in wm2200_set_fmt() local
1560 bclk = 0; in wm2200_set_fmt()
1582 bclk |= WM2200_AIF1_BCLK_MSTR; in wm2200_set_fmt()
1598 bclk |= WM2200_AIF1_BCLK_INV; in wm2200_set_fmt()
1602 bclk |= WM2200_AIF1_BCLK_INV; in wm2200_set_fmt()
1706 if (bclk < 0) in wm2200_hw_params()
1707 return bclk; in wm2200_hw_params()
1725 bclk, wm2200->sysclk); in wm2200_hw_params()
1733 if (bclk_rates[i] >= bclk && (bclk_rates[i] % bclk == 0)) in wm2200_hw_params()
1738 bclk, wm2200->sysclk); in wm2200_hw_params()
[all …]
A Dwm8960.c130 int bclk; member
626 int sysclk, bclk, lrclk; in wm8960_configure_sysclk() local
633 bclk = wm8960->bclk; in wm8960_configure_sysclk()
645 diff = sysclk - bclk * bclk_divs[k] / 10; in wm8960_configure_sysclk()
689 int sysclk, bclk, lrclk, freq_out; in wm8960_configure_pll() local
693 bclk = wm8960->bclk; in wm8960_configure_pll()
717 diff = sysclk - bclk * bclk_divs[k] / 10; in wm8960_configure_pll()
822 wm8960->bclk = snd_soc_params_to_bclk(params); in wm8960_hw_params()
824 wm8960->bclk *= 2; in wm8960_hw_params()
A Dwm8993.c217 unsigned int bclk; member
1207 wm8993->bclk = 2 * wm8993->fs; in wm8993_hw_params()
1211 wm8993->bclk *= wm8993->tdm_width * wm8993->tdm_slots; in wm8993_hw_params()
1215 wm8993->bclk *= 16; in wm8993_hw_params()
1218 wm8993->bclk *= 20; in wm8993_hw_params()
1222 wm8993->bclk *= 24; in wm8993_hw_params()
1226 wm8993->bclk *= 32; in wm8993_hw_params()
1234 dev_dbg(component->dev, "Target BCLK is %dHz\n", wm8993->bclk); in wm8993_hw_params()
1278 - wm8993->bclk; in wm8993_hw_params()
1288 bclk_divs[best].div, wm8993->bclk); in wm8993_hw_params()
[all …]
A Dwm5100.c1282 int lrclk, bclk, mask, base; in wm5100_set_fmt() local
1287 bclk = 0; in wm5100_set_fmt()
1309 bclk |= WM5100_AIF1_BCLK_MSTR; in wm5100_set_fmt()
1313 bclk |= WM5100_AIF1_BCLK_MSTR; in wm5100_set_fmt()
1325 bclk |= WM5100_AIF1_BCLK_INV; in wm5100_set_fmt()
1329 bclk |= WM5100_AIF1_BCLK_INV; in wm5100_set_fmt()
1339 WM5100_AIF1_BCLK_INV, bclk); in wm5100_set_fmt()
1420 if (bclk < 0) in wm5100_hw_params()
1421 return bclk; in wm5100_hw_params()
1463 if (bclk_rates[i] >= bclk && (bclk_rates[i] % bclk == 0)) in wm5100_hw_params()
[all …]
A Darizona.c1447 int lrclk, bclk, mode, base; in arizona_set_fmt() local
1452 bclk = 0; in arizona_set_fmt()
1490 bclk |= ARIZONA_AIF1_BCLK_MSTR; in arizona_set_fmt()
1493 bclk |= ARIZONA_AIF1_BCLK_MSTR; in arizona_set_fmt()
1506 bclk |= ARIZONA_AIF1_BCLK_INV; in arizona_set_fmt()
1510 bclk |= ARIZONA_AIF1_BCLK_INV; in arizona_set_fmt()
1522 bclk); in arizona_set_fmt()
1789 int bclk, lrclk, wl, frame, bclk_target; in arizona_hw_params() local
1828 bclk = i; in arizona_hw_params()
1841 rates[bclk], rates[bclk] / lrclk); in arizona_hw_params()
[all …]
/linux/tools/power/cpupower/utils/
A Dcpufreq-info.c206 double bclk; in get_boost_mode_x86() local
212 bclk = 100.00; in get_boost_mode_x86()
214 bclk = 133.33; in get_boost_mode_x86()
217 intel_turbo_ratio, bclk); in get_boost_mode_x86()
222 ratio * bclk); in get_boost_mode_x86()
227 ratio * bclk); in get_boost_mode_x86()
232 ratio * bclk); in get_boost_mode_x86()
237 ratio * bclk); in get_boost_mode_x86()
/linux/drivers/media/common/b2c2/
A Dflexcop-fe-tuner.c202 u8 bclk = 0; in samsung_tbmu24112_set_symbol_rate() local
205 aclk = 0xb7; bclk = 0x47; in samsung_tbmu24112_set_symbol_rate()
207 aclk = 0xb7; bclk = 0x4b; in samsung_tbmu24112_set_symbol_rate()
209 aclk = 0xb7; bclk = 0x4f; in samsung_tbmu24112_set_symbol_rate()
211 aclk = 0xb7; bclk = 0x53; in samsung_tbmu24112_set_symbol_rate()
213 aclk = 0xb6; bclk = 0x53; in samsung_tbmu24112_set_symbol_rate()
215 aclk = 0xb4; bclk = 0x51; in samsung_tbmu24112_set_symbol_rate()
219 stv0299_writereg(fe, 0x14, bclk); in samsung_tbmu24112_set_symbol_rate()
/linux/drivers/iio/adc/
A Dstm32-adc-core.c98 struct clk *bclk; member
206 if (!priv->bclk) { in stm32h7_adc_clk_sel()
253 rate = clk_get_rate(priv->bclk); in stm32h7_adc_clk_sel()
259 duty = clk_get_scaled_duty_cycle(priv->bclk, 100); in stm32h7_adc_clk_sel()
538 ret = clk_prepare_enable(priv->bclk); in stm32_adc_core_hw_start()
555 clk_disable_unprepare(priv->bclk); in stm32_adc_core_hw_start()
574 clk_disable_unprepare(priv->bclk); in stm32_adc_core_hw_stop()
685 priv->bclk = devm_clk_get_optional(&pdev->dev, "bus"); in stm32_adc_probe()
686 if (IS_ERR(priv->bclk)) in stm32_adc_probe()
687 return dev_err_probe(&pdev->dev, PTR_ERR(priv->bclk), in stm32_adc_probe()
/linux/Documentation/devicetree/bindings/sound/
A Dimx-audio-card.yaml70 fsl,mclk-equal-bclk:
71 description: Indicates mclk can be equal to bclk, especially for sai interface
94 fsl,mclk-equal-bclk;
114 fsl,mclk-equal-bclk;
/linux/tools/power/x86/turbostat/
A Dturbostat.c76 double bclk; variable
2350 fprintf(outf, "%d * %.1f = %.1f MHz base frequency\n", ratio, bclk, ratio * bclk); in dump_nhm_platform_info()
2461 ratio, bclk, ratio * bclk, group_size); in dump_turbo_ratio_limits()
2467 ratio, bclk, ratio * bclk, group_size); in dump_turbo_ratio_limits()
2473 ratio, bclk, ratio * bclk, group_size); in dump_turbo_ratio_limits()
2479 ratio, bclk, ratio * bclk, group_size); in dump_turbo_ratio_limits()
2485 ratio, bclk, ratio * bclk, group_size); in dump_turbo_ratio_limits()
2491 ratio, bclk, ratio * bclk, group_size); in dump_turbo_ratio_limits()
2497 ratio, bclk, ratio * bclk, group_size); in dump_turbo_ratio_limits()
2503 ratio, bclk, ratio * bclk, group_size); in dump_turbo_ratio_limits()
[all …]
/linux/arch/sh/kernel/cpu/sh4/
A Dclock-sh4-202.c96 struct clk *bclk = clk_get(NULL, "bus_clk"); in shoc_clk_verify_rate() local
97 unsigned long bclk_rate = clk_get_rate(bclk); in shoc_clk_verify_rate()
99 clk_put(bclk); in shoc_clk_verify_rate()
/linux/sound/soc/tegra/
A Dtegra_audio_graph_card.c56 unsigned int plla_rate, plla_out0_rate, bclk; in tegra_audio_graph_update_pll() local
107 bclk = srate * params_channels(params) * params_width(params); in tegra_audio_graph_update_pll()
108 if (div_u64(plla_out0_rate, bclk) > MAX_PLLA_OUT0_DIV) in tegra_audio_graph_update_pll()
/linux/sound/soc/fsl/
A Dfsl_micfil.c116 int bclk; in get_pdm_clk() local
127 bclk = rate * 8 * osr / 2; /* kfactor = 0.5 */ in get_pdm_clk()
131 bclk = rate * 4 * osr * 1; /* kfactor = 1 */ in get_pdm_clk()
135 bclk = rate * 2 * osr * 2; /* kfactor = 2 */ in get_pdm_clk()
138 bclk = rate * osr * 4; /* kfactor = 4 */ in get_pdm_clk()
143 bclk = -1; in get_pdm_clk()
147 return bclk; in get_pdm_clk()
/linux/drivers/media/pci/ttpci/
A Dbudget-av.c461 u8 bclk = 0; in philips_su1278_ty_ci_set_symbol_rate() local
466 bclk = 0x86; in philips_su1278_ty_ci_set_symbol_rate()
468 bclk = 0x89; in philips_su1278_ty_ci_set_symbol_rate()
470 bclk = 0x8f; in philips_su1278_ty_ci_set_symbol_rate()
472 bclk = 0x95; in philips_su1278_ty_ci_set_symbol_rate()
479 stv0299_writereg(fe, 0x14, bclk); in philips_su1278_ty_ci_set_symbol_rate()
834 u8 bclk = 0; in philips_sd1878_ci_set_symbol_rate() local
839 bclk = 0x86; in philips_sd1878_ci_set_symbol_rate()
841 bclk = 0x89; in philips_sd1878_ci_set_symbol_rate()
843 bclk = 0x8f; in philips_sd1878_ci_set_symbol_rate()
[all …]
/linux/sound/soc/atmel/
A Dmchp-i2s-mcc.c417 unsigned int bclk, unsigned int *mra, in mchp_i2s_mcc_config_divs() argument
429 sysclk = bclk; in mchp_i2s_mcc_config_divs()
438 lcm_rate = lcm(sysclk, bclk); in mchp_i2s_mcc_config_divs()
440 (lcm_rate / bclk % 2 == 1 && lcm_rate / bclk > 2)) in mchp_i2s_mcc_config_divs()
445 (clk_rate == bclk || clk_rate / (bclk * 2) <= GENMASK(5, 0)); in mchp_i2s_mcc_config_divs()
489 *mra |= MCHP_I2SMCC_MRA_ISCKDIV(*best_rate / (2 * bclk)); in mchp_i2s_mcc_config_divs()
/linux/drivers/gpu/drm/tegra/
A Ddsi.c42 unsigned long bclk; member
591 unsigned long delay, bclk, bclk_ganged; in tegra_dsi_configure() local
600 bclk = DIV_ROUND_UP(mode->htotal * mul, div * lanes); in tegra_dsi_configure()
601 bclk_ganged = DIV_ROUND_UP(bclk * lanes / 2, lanes); in tegra_dsi_configure()
602 value = bclk - bclk_ganged + delay + 20; in tegra_dsi_configure()
711 timeout = (bclk / vrefresh) / 512; in tegra_dsi_set_timeout()
716 timeout = 2 * bclk / 512 * 1000; in tegra_dsi_set_timeout()
724 tegra_dsi_set_timeout(dsi->slave, bclk, vrefresh); in tegra_dsi_set_timeout()
923 tegra_dsi_set_timeout(dsi, state->bclk, state->vrefresh); in tegra_dsi_encoder_enable()
984 DRM_DEBUG_KMS("bclk: %lu\n", state->bclk); in tegra_dsi_encoder_atomic_check()
[all …]
/linux/drivers/iommu/
A Dmtk_iommu_v1.c479 ret = clk_prepare_enable(data->bclk); in mtk_iommu_hw_init()
507 clk_disable_unprepare(data->bclk); in mtk_iommu_hw_init()
573 data->bclk = devm_clk_get(dev, "bclk"); in mtk_iommu_probe()
574 if (IS_ERR(data->bclk)) in mtk_iommu_probe()
575 return PTR_ERR(data->bclk); in mtk_iommu_probe()
651 clk_disable_unprepare(data->bclk); in mtk_iommu_remove()

Completed in 80 milliseconds

1234