Home
last modified time | relevance | path

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

1234

/kernel/linux/linux-5.10/drivers/gpu/drm/sun4i/
Dsun4i_dotclock.c28 struct sun4i_dclk *dclk = hw_to_dclk(hw); in sun4i_dclk_disable() local
30 regmap_update_bits(dclk->regmap, SUN4I_TCON0_DCLK_REG, in sun4i_dclk_disable()
36 struct sun4i_dclk *dclk = hw_to_dclk(hw); in sun4i_dclk_enable() local
38 return regmap_update_bits(dclk->regmap, SUN4I_TCON0_DCLK_REG, in sun4i_dclk_enable()
45 struct sun4i_dclk *dclk = hw_to_dclk(hw); in sun4i_dclk_is_enabled() local
48 regmap_read(dclk->regmap, SUN4I_TCON0_DCLK_REG, &val); in sun4i_dclk_is_enabled()
56 struct sun4i_dclk *dclk = hw_to_dclk(hw); in sun4i_dclk_recalc_rate() local
59 regmap_read(dclk->regmap, SUN4I_TCON0_DCLK_REG, &val); in sun4i_dclk_recalc_rate()
73 struct sun4i_dclk *dclk = hw_to_dclk(hw); in sun4i_dclk_round_rate() local
74 struct sun4i_tcon *tcon = dclk->tcon; in sun4i_dclk_round_rate()
[all …]
/kernel/linux/linux-5.10/drivers/clk/hisilicon/
Dclkdivider-hi6220.c49 struct hi6220_clk_divider *dclk = to_hi6220_clk_divider(hw); in hi6220_clkdiv_recalc_rate() local
51 val = readl_relaxed(dclk->reg) >> dclk->shift; in hi6220_clkdiv_recalc_rate()
52 val &= div_mask(dclk->width); in hi6220_clkdiv_recalc_rate()
54 return divider_recalc_rate(hw, parent_rate, val, dclk->table, in hi6220_clkdiv_recalc_rate()
55 CLK_DIVIDER_ROUND_CLOSEST, dclk->width); in hi6220_clkdiv_recalc_rate()
61 struct hi6220_clk_divider *dclk = to_hi6220_clk_divider(hw); in hi6220_clkdiv_round_rate() local
63 return divider_round_rate(hw, rate, prate, dclk->table, in hi6220_clkdiv_round_rate()
64 dclk->width, CLK_DIVIDER_ROUND_CLOSEST); in hi6220_clkdiv_round_rate()
73 struct hi6220_clk_divider *dclk = to_hi6220_clk_divider(hw); in hi6220_clkdiv_set_rate() local
75 value = divider_get_val(rate, parent_rate, dclk->table, in hi6220_clkdiv_set_rate()
[all …]
/kernel/linux/linux-5.10/drivers/siox/
Dsiox-bus-gpio.c20 struct gpio_desc *dclk; member
38 gpiod_set_value_cansleep(ddata->dclk, 0); in siox_gpio_pushpull()
60 gpiod_set_value_cansleep(ddata->dclk, 1); in siox_gpio_pushpull()
62 gpiod_set_value_cansleep(ddata->dclk, 0); in siox_gpio_pushpull()
117 ddata->dclk = devm_gpiod_get(dev, "dclk", GPIOD_OUT_LOW); in siox_gpio_probe()
118 if (IS_ERR(ddata->dclk)) { in siox_gpio_probe()
119 ret = PTR_ERR(ddata->dclk); in siox_gpio_probe()
/kernel/linux/linux-5.10/drivers/video/fbdev/riva/
Dnv_driver.c276 unsigned long dclk = 0; in riva_get_maxdclk() local
286 dclk = 800000; in riva_get_maxdclk()
288 dclk = 1000000; in riva_get_maxdclk()
294 dclk = 1000000; in riva_get_maxdclk()
303 dclk = 800000; in riva_get_maxdclk()
306 dclk = 1000000; in riva_get_maxdclk()
311 return dclk; in riva_get_maxdclk()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/
Dintel_bw.c17 u16 dclk, t_rp, t_rdpre, t_rc, t_ras, t_rcd; member
107 sp->dclk = val & 0xffff; in icl_pcode_read_qgv_point_info()
161 i, sp->dclk, sp->t_rp, sp->t_rdpre, sp->t_ras, in icl_get_qgv_points()
168 static int icl_calc_bw(int dclk, int num, int den) in icl_calc_bw() argument
171 return DIV_ROUND_CLOSEST(num * dclk * 100, den * 6); in icl_calc_bw()
176 u16 dclk = 0; in icl_sagv_max_dclk() local
180 dclk = max(dclk, qi->points[i].dclk); in icl_sagv_max_dclk()
182 return dclk; in icl_sagv_max_dclk()
258 bw = icl_calc_bw(sp->dclk, clpchgroup * 32 * num_channels, ct); in icl_get_bw_info()
/kernel/linux/linux-5.10/sound/soc/meson/
Daxg-pdm.c94 struct clk *dclk; member
188 clk_get_rate(priv->dclk) * 2); in axg_pdm_set_sample_pointer()
253 ret = clk_set_rate(priv->dclk, rate * os); in axg_pdm_hw_params()
276 ret = clk_prepare_enable(priv->dclk); in axg_pdm_startup()
294 clk_disable_unprepare(priv->dclk); in axg_pdm_shutdown()
621 priv->dclk = devm_clk_get(dev, "dclk"); in axg_pdm_probe()
622 if (IS_ERR(priv->dclk)) { in axg_pdm_probe()
623 ret = PTR_ERR(priv->dclk); in axg_pdm_probe()
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/siox/
Deckelmann,siox-gpio.txt5 - din-gpios, dout-gpios, dclk-gpios, dld-gpios: references gpios for the
17 dclk-gpios = <&gpio6 9 0>;
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/sound/
Damlogic,axg-pdm.txt12 * "dclk" : pdm digital clock
28 clock-names = "pclk", "dclk", "sysclk";
/kernel/linux/linux-5.10/drivers/video/fbdev/core/
Dfbmon.c1016 u32 dclk; member
1105 static u32 fb_get_hblank_by_dclk(u32 dclk, u32 xres) in fb_get_hblank_by_dclk() argument
1109 dclk /= 1000; in fb_get_hblank_by_dclk()
1112 h_period += (M_VAL * xres * 2 * 1000)/(5 * dclk); in fb_get_hblank_by_dclk()
1156 timings->dclk = timings->htotal * timings->hfreq; in fb_timings_vfreq()
1167 timings->dclk = timings->htotal * timings->hfreq; in fb_timings_hfreq()
1172 timings->hblank = fb_get_hblank_by_dclk(timings->dclk, in fb_timings_dclk()
1175 timings->hfreq = timings->dclk/timings->htotal; in fb_timings_dclk()
1267 if (timings->dclk > dclkmax) { in fb_get_mode()
1268 timings->dclk = dclkmax; in fb_get_mode()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/
Drs780_dpm.c572 (new_ps->dclk == old_ps->dclk)) in rs780_set_uvd_clock_before_set_eng_clock()
578 radeon_set_uvd_clocks(rdev, new_ps->vclk, new_ps->dclk); in rs780_set_uvd_clock_before_set_eng_clock()
589 (new_ps->dclk == old_ps->dclk)) in rs780_set_uvd_clock_after_set_eng_clock()
595 radeon_set_uvd_clocks(rdev, new_ps->vclk, new_ps->dclk); in rs780_set_uvd_clock_after_set_eng_clock()
729 rps->dclk = le32_to_cpu(non_clock_info->ulDCLK); in rs780_parse_pplib_non_clock_info()
732 rps->dclk = 0; in rs780_parse_pplib_non_clock_info()
736 if ((rps->vclk == 0) || (rps->dclk == 0)) { in rs780_parse_pplib_non_clock_info()
738 rps->dclk = RS780_DEFAULT_DCLK_FREQ; in rs780_parse_pplib_non_clock_info()
946 printk("\tuvd vclk: %d dclk: %d\n", rps->vclk, rps->dclk); in rs780_dpm_print_power_state()
995 seq_printf(m, "uvd vclk: %d dclk: %d\n", rps->vclk, rps->dclk); in rs780_dpm_debugfs_print_current_performance_level()
Dtrinity_dpm.c898 if ((rps->vclk == 0) && (rps->dclk == 0)) in trinity_uvd_clocks_zero()
911 (rps1->dclk == rps2->dclk) && in trinity_uvd_clocks_equal()
943 radeon_set_uvd_clocks(rdev, new_rps->vclk, new_rps->dclk); in trinity_setup_uvd_clocks()
954 radeon_set_uvd_clocks(rdev, new_rps->vclk, new_rps->dclk); in trinity_setup_uvd_clocks()
1459 (rps->dclk == pi->sys_info.uvd_clock_table_entries[i].dclk)) in trinity_get_uvd_clock_index()
1693 rps->dclk = le32_to_cpu(non_clock_info->ulDCLK); in trinity_parse_pplib_non_clock_info()
1696 rps->dclk = 0; in trinity_parse_pplib_non_clock_info()
1936 pi->sys_info.uvd_clock_table_entries[i].dclk = in trinity_parse_sys_info_table()
2019 printk("\tuvd vclk: %d dclk: %d\n", rps->vclk, rps->dclk); in trinity_dpm_print_power_state()
2044 seq_printf(m, "uvd vclk: %d dclk: %d\n", rps->vclk, rps->dclk); in trinity_dpm_debugfs_print_current_performance_level()
Dtrinity_dpm.h70 u32 dclk; member
Dsumo_dpm.c824 radeon_set_uvd_clocks(rdev, new_rps->vclk, new_rps->dclk); in sumo_setup_uvd_clocks()
841 (new_rps->dclk == old_rps->dclk)) in sumo_set_uvd_clock_before_set_eng_clock()
859 (new_rps->dclk == old_rps->dclk)) in sumo_set_uvd_clock_after_set_eng_clock()
1415 rps->dclk = le32_to_cpu(non_clock_info->ulDCLK); in sumo_parse_pplib_non_clock_info()
1418 rps->dclk = 0; in sumo_parse_pplib_non_clock_info()
1802 printk("\tuvd vclk: %d dclk: %d\n", rps->vclk, rps->dclk); in sumo_dpm_print_power_state()
1825 seq_printf(m, "uvd vclk: %d dclk: %d\n", rps->vclk, rps->dclk); in sumo_dpm_debugfs_print_current_performance_level()
1833 seq_printf(m, "uvd vclk: %d dclk: %d\n", rps->vclk, rps->dclk); in sumo_dpm_debugfs_print_current_performance_level()
Drv770_dpm.c1439 (new_ps->dclk == old_ps->dclk)) in rv770_set_uvd_clock_before_set_eng_clock()
1445 radeon_set_uvd_clocks(rdev, new_ps->vclk, new_ps->dclk); in rv770_set_uvd_clock_before_set_eng_clock()
1456 (new_ps->dclk == old_ps->dclk)) in rv770_set_uvd_clock_after_set_eng_clock()
1462 radeon_set_uvd_clocks(rdev, new_ps->vclk, new_ps->dclk); in rv770_set_uvd_clock_after_set_eng_clock()
2154 rps->dclk = le32_to_cpu(non_clock_info->ulDCLK); in rv7xx_parse_pplib_non_clock_info()
2157 rps->dclk = 0; in rv7xx_parse_pplib_non_clock_info()
2161 if ((rps->vclk == 0) || (rps->dclk == 0)) { in rv7xx_parse_pplib_non_clock_info()
2163 rps->dclk = RV770_DEFAULT_DCLK_FREQ; in rv7xx_parse_pplib_non_clock_info()
2440 printk("\tuvd vclk: %d dclk: %d\n", rps->vclk, rps->dclk); in rv770_dpm_print_power_state()
2484 seq_printf(m, "uvd vclk: %d dclk: %d\n", rps->vclk, rps->dclk); in rv770_dpm_debugfs_print_current_performance_level()
Drv6xx_dpm.c1519 (new_ps->dclk == old_ps->dclk)) in rv6xx_set_uvd_clock_before_set_eng_clock()
1525 radeon_set_uvd_clocks(rdev, new_ps->vclk, new_ps->dclk); in rv6xx_set_uvd_clock_before_set_eng_clock()
1536 (new_ps->dclk == old_ps->dclk)) in rv6xx_set_uvd_clock_after_set_eng_clock()
1542 radeon_set_uvd_clocks(rdev, new_ps->vclk, new_ps->dclk); in rv6xx_set_uvd_clock_after_set_eng_clock()
1804 rps->dclk = RV6XX_DEFAULT_DCLK_FREQ; in rv6xx_parse_pplib_non_clock_info()
1807 rps->dclk = 0; in rv6xx_parse_pplib_non_clock_info()
2015 printk("\tuvd vclk: %d dclk: %d\n", rps->vclk, rps->dclk); in rv6xx_dpm_print_power_state()
2047 seq_printf(m, "uvd vclk: %d dclk: %d\n", rps->vclk, rps->dclk); in rv6xx_dpm_debugfs_print_current_performance_level()
Dradeon_uvd.c960 unsigned vclk, unsigned dclk, in radeon_uvd_calc_upll_dividers() argument
975 vco_min = max(max(vco_min, vclk), dclk); in radeon_uvd_calc_upll_dividers()
996 dclk_div = radeon_uvd_calc_upll_post_div(vco_freq, dclk, in radeon_uvd_calc_upll_dividers()
1002 score = vclk - (vco_freq / vclk_div) + dclk - (vco_freq / dclk_div); in radeon_uvd_calc_upll_dividers()
/kernel/linux/linux-5.10/sound/soc/intel/skylake/
Dskl-ssp-clk.c278 static void unregister_src_clk(struct skl_clk_data *dclk) in unregister_src_clk() argument
280 while (dclk->avail_clk_cnt--) in unregister_src_clk()
281 clkdev_drop(dclk->clk[dclk->avail_clk_cnt]->lookup); in unregister_src_clk()
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/display/
Dssd1307fb.txt31 - solomon,dclk-div: Clock divisor 1 to 16
32 - solomon,dclk-frq: Clock frequency 0 to 15, higher value means higher
/kernel/linux/linux-5.10/drivers/gpu/drm/rockchip/
Drockchip_drm_vop.c172 struct clk *dclk; member
600 ret = clk_enable(vop->dclk); in vop_enable()
668 clk_disable(vop->dclk); in vop_enable()
739 clk_disable(vop->dclk); in vop_crtc_atomic_disable()
1184 rate = clk_round_rate(vop->dclk, adjusted_mode->clock * 1000 + 999); in vop_crtc_mode_fixup()
1384 clk_set_rate(vop->dclk, adjusted_mode->clock * 1000); in vop_crtc_atomic_enable()
1906 vop->dclk = devm_clk_get(vop->dev, "dclk_vop"); in vop_initial()
1907 if (IS_ERR(vop->dclk)) { in vop_initial()
1909 return PTR_ERR(vop->dclk); in vop_initial()
1918 ret = clk_prepare(vop->dclk); in vop_initial()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
Dhwmgr_ppt.h59 uint32_t dclk; /* UVD D-clock */ member
/kernel/linux/linux-5.10/drivers/clk/samsung/
DMakefile21 obj-$(CONFIG_S3C2410_COMMON_DCLK)+= clk-s3c2410-dclk.o
DKconfig34 Temporary symbol to build the dclk driver based on the common clock
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/pm/inc/
Dpower_state.h184 unsigned long dclk; member
/kernel/linux/linux-5.10/include/linux/mfd/
Dsi476x-platform.h121 enum si476x_dclk_config dclk; member
/kernel/linux/linux-5.10/drivers/video/fbdev/
Dssd1307fb.c300 u32 precharge, dclk, com_invdir, compins; in ssd1307fb_init() local
365 dclk = ((par->dclk_div - 1) & 0xf) | (par->dclk_frq & 0xf) << 4; in ssd1307fb_init()
366 ret = ssd1307fb_write_cmd(par->client, dclk); in ssd1307fb_init()

1234