Home
last modified time | relevance | path

Searched refs:clk_config (Results 1 – 8 of 8) sorted by relevance

/kernel/linux/linux-5.10/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_io_util.c139 mp->clk_config = devm_kcalloc(&pdev->dev, in msm_dss_parse_clock()
142 if (!mp->clk_config) in msm_dss_parse_clock()
154 strlcpy(mp->clk_config[i].clk_name, clock_name, in msm_dss_parse_clock()
155 sizeof(mp->clk_config[i].clk_name)); in msm_dss_parse_clock()
157 mp->clk_config[i].type = DSS_CLK_AHB; in msm_dss_parse_clock()
160 rc = msm_dss_get_clk(&pdev->dev, mp->clk_config, num_clk); in msm_dss_parse_clock()
173 u32 rate = clk_get_rate(mp->clk_config[i].clk); in msm_dss_parse_clock()
176 mp->clk_config[i].rate = rate; in msm_dss_parse_clock()
177 mp->clk_config[i].type = DSS_CLK_PCLK; in msm_dss_parse_clock()
178 mp->clk_config[i].max_rate = rate; in msm_dss_parse_clock()
[all …]
Ddpu_mdss.c149 ret = msm_dss_enable_clk(mp->clk_config, mp->num_clk, true); in dpu_mdss_enable()
184 ret = msm_dss_enable_clk(mp->clk_config, mp->num_clk, false); in dpu_mdss_disable()
204 msm_dss_put_clk(mp->clk_config, mp->num_clk); in dpu_mdss_destroy()
205 devm_kfree(&pdev->dev, mp->clk_config); in dpu_mdss_destroy()
270 msm_dss_put_clk(mp->clk_config, mp->num_clk); in dpu_mdss_init()
272 devm_kfree(&pdev->dev, mp->clk_config); in dpu_mdss_init()
Ddpu_io_util.h31 struct dss_clk *clk_config; member
Ddpu_kms.c872 if (!strcmp(mp->clk_config[i].clk_name, clock_name)) in _dpu_kms_get_clk()
873 return &mp->clk_config[i]; in _dpu_kms_get_clk()
1140 msm_dss_put_clk(mp->clk_config, mp->num_clk); in dpu_unbind()
1141 devm_kfree(&pdev->dev, mp->clk_config); in dpu_unbind()
1177 rc = msm_dss_enable_clk(mp->clk_config, mp->num_clk, false); in dpu_runtime_suspend()
1204 rc = msm_dss_enable_clk(mp->clk_config, mp->num_clk, true); in dpu_runtime_resume()
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/dp/
Ddp_parser.c148 core_power->clk_config = devm_kzalloc(dev, in dp_parser_init_clk_data()
151 if (!core_power->clk_config) in dp_parser_init_clk_data()
161 ctrl_power->clk_config = devm_kzalloc(dev, in dp_parser_init_clk_data()
164 if (!ctrl_power->clk_config) { in dp_parser_init_clk_data()
176 stream_power->clk_config = devm_kzalloc(dev, in dp_parser_init_clk_data()
179 if (!stream_power->clk_config) { in dp_parser_init_clk_data()
221 &core_power->clk_config[core_clk_index]; in dp_parser_clock()
228 &stream_power->clk_config[stream_clk_index]; in dp_parser_clock()
235 &ctrl_power->clk_config[ctrl_clk_index]; in dp_parser_clock()
Ddp_power.c106 rc = msm_dss_get_clk(dev, core->clk_config, core->num_clk); in dp_power_clk_init()
113 rc = msm_dss_get_clk(dev, ctrl->clk_config, ctrl->num_clk); in dp_power_clk_init()
117 msm_dss_put_clk(core->clk_config, core->num_clk); in dp_power_clk_init()
121 rc = msm_dss_get_clk(dev, stream->clk_config, stream->num_clk); in dp_power_clk_init()
125 msm_dss_put_clk(core->clk_config, core->num_clk); in dp_power_clk_init()
145 msm_dss_put_clk(ctrl->clk_config, ctrl->num_clk); in dp_power_clk_deinit()
146 msm_dss_put_clk(core->clk_config, core->num_clk); in dp_power_clk_deinit()
147 msm_dss_put_clk(stream->clk_config, stream->num_clk); in dp_power_clk_deinit()
158 rc = msm_dss_clk_set_rate(mp->clk_config, mp->num_clk); in dp_power_clk_set_rate()
165 rc = msm_dss_enable_clk(mp->clk_config, mp->num_clk, enable); in dp_power_clk_set_rate()
Ddp_ctrl.c1303 struct dss_clk *cfg = ctrl->parser->mp[module].clk_config; in dp_ctrl_set_clock_rate()
/kernel/linux/linux-5.10/sound/soc/codecs/
Dwm8903.c1449 int clk_config; in wm8903_hw_params() local
1511 clk_config = 0; in wm8903_hw_params()
1521 clk_config = i; in wm8903_hw_params()
1526 if (clk_sys_ratios[clk_config].mclk_div == 2) { in wm8903_hw_params()
1536 clock1 |= clk_sys_ratios[clk_config].rate << WM8903_CLK_SYS_RATE_SHIFT; in wm8903_hw_params()
1537 clock1 |= clk_sys_ratios[clk_config].mode << WM8903_CLK_SYS_MODE_SHIFT; in wm8903_hw_params()
1540 clk_sys_ratios[clk_config].rate, in wm8903_hw_params()
1541 clk_sys_ratios[clk_config].mode, in wm8903_hw_params()
1542 clk_sys_ratios[clk_config].div); in wm8903_hw_params()