Home
last modified time | relevance | path

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

12345

/linux-6.12.1/drivers/media/dvb-frontends/
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()
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()
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-6.12.1/drivers/media/pci/mantis/
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-6.12.1/sound/soc/amd/vangogh/
Dacp5x-mach.c171 int ret, bclk; in acp5x_nau8821_hw_params() local
180 bclk = snd_soc_params_to_bclk(params); in acp5x_nau8821_hw_params()
181 if (bclk < 0) { in acp5x_nau8821_hw_params()
182 dev_err(dai->dev, "Fail to get BCLK rate: %d\n", bclk); in acp5x_nau8821_hw_params()
183 return bclk; in acp5x_nau8821_hw_params()
186 ret = snd_soc_dai_set_pll(dai, 0, 0, bclk, params_rate(params) * 256); in acp5x_nau8821_hw_params()
219 unsigned int bclk, rate = params_rate(params); in acp5x_cs35l41_hw_params() local
225 bclk = 1536000; in acp5x_cs35l41_hw_params()
228 bclk = 0; in acp5x_cs35l41_hw_params()
235 if (!bclk) { in acp5x_cs35l41_hw_params()
[all …]
/linux-6.12.1/drivers/gpu/drm/msm/hdmi/
Dhdmi_phy_8998.c127 static inline u32 pll_get_integloop_gain(u64 frac_start, u64 bclk, u32 ref_clk, in pll_get_integloop_gain() argument
130 int digclk_divsel = bclk > HDMI_DIG_FREQ_BIT_CLK_THRESHOLD ? 1 : 2; in pll_get_integloop_gain()
158 static int pll_get_post_div(struct hdmi_8998_post_divider *pd, u64 bclk) in pll_get_post_div() argument
185 u64 freq = div_u64(bclk, (1 << half_rate_mode)); in pll_get_post_div()
287 u64 bclk; in pll_calculate() local
301 bclk = ((u64)pix_clk) * 10; in pll_calculate()
303 ret = pll_get_post_div(&pd, bclk); in pll_calculate()
321 integloop_gain = pll_get_integloop_gain(frac_start, bclk, in pll_calculate()
330 if (bclk > HDMI_DIG_FREQ_BIT_CLK_THRESHOLD) in pll_calculate()
351 cfg->phy_mode = (bclk > HDMI_HIGH_FREQ_BIT_CLK_THRESHOLD) ? 0x5 : 0x4; in pll_calculate()
[all …]
Dhdmi_phy_8996.c128 static inline u32 pll_get_integloop_gain(u64 frac_start, u64 bclk, u32 ref_clk, in pll_get_integloop_gain() argument
131 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()
[all …]
/linux-6.12.1/sound/soc/codecs/
Dwm9081.c151 int bclk; member
664 if (wm9081->master && wm9081->bclk) { in configure_clock()
671 if (target >= wm9081->bclk && in configure_clock()
1021 wm9081->bclk = wm9081->fs * wm9081->tdm_width * slots; in wm9081_hw_params()
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()
1047 dev_dbg(component->dev, "Target BCLK is %dHz\n", wm9081->bclk); in wm9081_hw_params()
[all …]
Dwm2200.c1560 int lrclk, bclk, fmt_val; in wm2200_set_fmt() local
1563 bclk = 0; in wm2200_set_fmt()
1585 bclk |= WM2200_AIF1_BCLK_MSTR; in wm2200_set_fmt()
1589 bclk |= WM2200_AIF1_BCLK_MSTR; in wm2200_set_fmt()
1601 bclk |= WM2200_AIF1_BCLK_INV; in wm2200_set_fmt()
1605 bclk |= WM2200_AIF1_BCLK_INV; in wm2200_set_fmt()
1615 WM2200_AIF1_BCLK_INV, bclk); in wm2200_set_fmt()
1693 int i, bclk, lrclk, wl, fl, sr_code; in wm2200_hw_params() local
1708 bclk = snd_soc_params_to_bclk(params); in wm2200_hw_params()
1709 if (bclk < 0) in wm2200_hw_params()
[all …]
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()
1286 wm8993->bclk = (wm8993->sysclk_rate * 10) / bclk_divs[best].div; in wm8993_hw_params()
[all …]
Dwm5100.c1285 int lrclk, bclk, mask, base; in wm5100_set_fmt() local
1290 bclk = 0; in wm5100_set_fmt()
1312 bclk |= WM5100_AIF1_BCLK_MSTR; in wm5100_set_fmt()
1316 bclk |= WM5100_AIF1_BCLK_MSTR; in wm5100_set_fmt()
1328 bclk |= WM5100_AIF1_BCLK_INV; in wm5100_set_fmt()
1332 bclk |= WM5100_AIF1_BCLK_INV; in wm5100_set_fmt()
1342 WM5100_AIF1_BCLK_INV, bclk); in wm5100_set_fmt()
1405 int i, base, bclk, aif_rate, lrclk, wl, fl, sr; in wm5100_hw_params() local
1422 bclk = snd_soc_params_to_bclk(params); in wm5100_hw_params()
1423 if (bclk < 0) in wm5100_hw_params()
[all …]
Dwm8960.c142 int bclk; member
643 int sysclk, bclk, lrclk; in wm8960_configure_sysclk() local
650 bclk = wm8960->bclk; in wm8960_configure_sysclk()
662 diff = sysclk - bclk * bclk_divs[k] / 10; in wm8960_configure_sysclk()
706 int sysclk, bclk, lrclk, freq_out; in wm8960_configure_pll() local
710 bclk = wm8960->bclk; in wm8960_configure_pll()
734 diff = sysclk - bclk * bclk_divs[k] / 10; in wm8960_configure_pll()
839 wm8960->bclk = snd_soc_params_to_bclk(params); in wm8960_hw_params()
841 wm8960->bclk *= 2; in wm8960_hw_params()
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()
1755 int base, int bclk, int lrclk, int frame) in arizona_aif_cfg_changed() argument
1760 if (bclk != (val & ARIZONA_AIF1_BCLK_FREQ_MASK)) in arizona_aif_cfg_changed()
1789 int bclk, lrclk, wl, frame, bclk_target; in arizona_hw_params() local
[all …]
Dcs530x.c492 int ret = 0, fs = params_rate(params), bclk; in cs530x_hw_params() local
534 bclk = snd_soc_tdm_params_to_bclk(params, in cs530x_hw_params()
539 bclk = snd_soc_params_to_bclk(params); in cs530x_hw_params()
544 ret = cs530x_set_pll_refclk(component, bclk); in cs530x_hw_params()
549 return cs530x_set_bclk(component, bclk); in cs530x_hw_params()
Dda7219.c802 struct clk *bclk = da7219->dai_clks[DA7219_DAI_BCLK_IDX]; in da7219_dai_event() local
811 if (bclk) { in da7219_dai_event()
812 ret = clk_prepare_enable(bclk); in da7219_dai_event()
858 if (bclk) in da7219_dai_event()
859 clk_disable_unprepare(bclk); in da7219_dai_event()
1427 struct clk *bclk = da7219->dai_clks[DA7219_DAI_BCLK_IDX]; in da7219_set_dai_tdm_slot() local
1472 if (bclk) { in da7219_set_dai_tdm_slot()
1475 ret = clk_set_rate(bclk, bclk_rate); in da7219_set_dai_tdm_slot()
1563 struct clk *bclk = da7219->dai_clks[DA7219_DAI_BCLK_IDX]; in da7219_hw_params() local
1624 if (bclk) { in da7219_hw_params()
[all …]
/linux-6.12.1/tools/power/cpupower/utils/
Dcpufreq-info.c172 double bclk; in get_boost_mode_x86() local
178 bclk = 100.00; in get_boost_mode_x86()
180 bclk = 133.33; in get_boost_mode_x86()
183 intel_turbo_ratio, bclk); in get_boost_mode_x86()
188 ratio * bclk); in get_boost_mode_x86()
193 ratio * bclk); in get_boost_mode_x86()
198 ratio * bclk); in get_boost_mode_x86()
203 ratio * bclk); in get_boost_mode_x86()
/linux-6.12.1/drivers/media/common/b2c2/
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-6.12.1/sound/soc/
Dsoc-utils-test.c19 u32 bclk; member
156 tdm_params_to_bclk_cases[i].bclk); in test_tdm_params_to_bclk()
169 tdm_params_to_bclk_cases[i].bclk); in test_tdm_params_to_bclk()
214 tdm_params_to_bclk_cases[i].bclk); in test_snd_soc_params_to_bclk()
/linux-6.12.1/drivers/iio/adc/
Dstm32-adc-core.c109 struct clk *bclk; member
217 if (!priv->bclk) { in stm32h7_adc_clk_sel()
264 rate = clk_get_rate(priv->bclk); in stm32h7_adc_clk_sel()
270 duty = clk_get_scaled_duty_cycle(priv->bclk, 100); in stm32h7_adc_clk_sel()
559 ret = clk_prepare_enable(priv->bclk); in stm32_adc_core_hw_start()
576 clk_disable_unprepare(priv->bclk); in stm32_adc_core_hw_start()
595 clk_disable_unprepare(priv->bclk); in stm32_adc_core_hw_stop()
748 priv->bclk = devm_clk_get_optional(&pdev->dev, "bus"); in stm32_adc_probe()
749 if (IS_ERR(priv->bclk)) in stm32_adc_probe()
750 return dev_err_probe(&pdev->dev, PTR_ERR(priv->bclk), in stm32_adc_probe()
/linux-6.12.1/sound/soc/tegra/
Dtegra_audio_graph_card.c72 unsigned int plla_rate, plla_out0_rate, bclk; in tegra_audio_graph_update_pll() local
123 bclk = srate * params_channels(params) * params_width(params); in tegra_audio_graph_update_pll()
124 if (div_u64(plla_out0_rate, bclk) > MAX_PLLA_OUT0_DIV) in tegra_audio_graph_update_pll()
/linux-6.12.1/drivers/iommu/
Dmtk_iommu_v1.c100 struct clk *bclk; member
538 ret = clk_prepare_enable(data->bclk); in mtk_iommu_v1_hw_init()
566 clk_disable_unprepare(data->bclk); in mtk_iommu_v1_hw_init()
634 data->bclk = devm_clk_get(dev, "bclk"); in mtk_iommu_v1_probe()
635 if (IS_ERR(data->bclk)) in mtk_iommu_v1_probe()
636 return PTR_ERR(data->bclk); in mtk_iommu_v1_probe()
696 clk_disable_unprepare(data->bclk); in mtk_iommu_v1_probe()
707 clk_disable_unprepare(data->bclk); in mtk_iommu_v1_remove()
/linux-6.12.1/drivers/media/pci/ttpci/
Dbudget-av.c466 u8 bclk = 0; in philips_su1278_ty_ci_set_symbol_rate() local
471 bclk = 0x86; in philips_su1278_ty_ci_set_symbol_rate()
473 bclk = 0x89; in philips_su1278_ty_ci_set_symbol_rate()
475 bclk = 0x8f; in philips_su1278_ty_ci_set_symbol_rate()
477 bclk = 0x95; in philips_su1278_ty_ci_set_symbol_rate()
484 stv0299_writereg(fe, 0x14, bclk); in philips_su1278_ty_ci_set_symbol_rate()
839 u8 bclk = 0; in philips_sd1878_ci_set_symbol_rate() local
844 bclk = 0x86; in philips_sd1878_ci_set_symbol_rate()
846 bclk = 0x89; in philips_sd1878_ci_set_symbol_rate()
848 bclk = 0x8f; in philips_sd1878_ci_set_symbol_rate()
[all …]
/linux-6.12.1/sound/soc/atmel/
Dmchp-i2s-mcc.c426 unsigned int bclk, unsigned int *mra, in mchp_i2s_mcc_config_divs() argument
438 sysclk = bclk; in mchp_i2s_mcc_config_divs()
447 lcm_rate = lcm(sysclk, bclk); in mchp_i2s_mcc_config_divs()
449 (lcm_rate / bclk % 2 == 1 && lcm_rate / bclk > 2)) in mchp_i2s_mcc_config_divs()
454 (clk_rate == bclk || clk_rate / (bclk * 2) <= GENMASK(5, 0)); in mchp_i2s_mcc_config_divs()
498 *mra |= MCHP_I2SMCC_MRA_ISCKDIV(*best_rate / (2 * bclk)); in mchp_i2s_mcc_config_divs()
/linux-6.12.1/drivers/gpu/drm/tegra/
Ddsi.c42 unsigned long bclk; member
592 unsigned long delay, bclk, bclk_ganged; in tegra_dsi_configure() local
601 bclk = DIV_ROUND_UP(mode->htotal * mul, div * lanes); in tegra_dsi_configure()
602 bclk_ganged = DIV_ROUND_UP(bclk * lanes / 2, lanes); in tegra_dsi_configure()
603 value = bclk - bclk_ganged + delay + 20; in tegra_dsi_configure()
705 static void tegra_dsi_set_timeout(struct tegra_dsi *dsi, unsigned long bclk, in tegra_dsi_set_timeout() argument
712 timeout = (bclk / vrefresh) / 512; in tegra_dsi_set_timeout()
717 timeout = 2 * bclk / 512 * 1000; in tegra_dsi_set_timeout()
725 tegra_dsi_set_timeout(dsi->slave, bclk, vrefresh); in tegra_dsi_set_timeout()
933 tegra_dsi_set_timeout(dsi, state->bclk, state->vrefresh); in tegra_dsi_encoder_enable()
[all …]
/linux-6.12.1/arch/arm64/boot/dts/freescale/
Dimx8-ss-audio.dtsi68 clk_sai0_rx_bclk: clock-sai0-rx-bclk {
75 clk_sai0_tx_bclk: clock-sai0-tx-bclk {
82 clk_sai1_rx_bclk: clock-sai1-rx-bclk {
89 clk_sai1_tx_bclk: clock-sai1-tx-bclk {
96 clk_sai2_rx_bclk: clock-sai2-rx-bclk {
103 clk_sai3_rx_bclk: clock-sai3-rx-bclk {
110 clk_sai4_rx_bclk: clock-sai4-rx-bclk {

12345