Home
last modified time | relevance | path

Searched refs:mdp_data (Results 1 – 7 of 7) sorted by relevance

/Linux-v6.6/drivers/media/platform/mediatek/mdp3/
Dmtk-mdp3-core.c33 const struct mtk_mdp_driver_data *mdp_data; in __get_pdev_by_id() local
44 mdp_data = of_device_get_match_data(&pdev->dev); in __get_pdev_by_id()
45 if (!mdp_data) { in __get_pdev_by_id()
49 compat = mdp_data->mdp_probe_infra[id].compatible; in __get_pdev_by_id()
165 mdp->mdp_data = of_device_get_match_data(&pdev->dev); in mdp_probe()
179 for (i = 0; i < mdp->mdp_data->pipe_info_len; i++) { in mdp_probe()
180 mutex_id = mdp->mdp_data->pipe_info[i].mutex_id; in mdp_probe()
265 for (i = 0; i < mdp->mdp_data->pipe_info_len; i++) in mdp_probe()
Dmtk-mdp3-regs.c15 static const struct mdp_format *mdp_find_fmt(const struct mtk_mdp_driver_data *mdp_data, in mdp_find_fmt() argument
22 for (i = 0; i < mdp_data->format_len; ++i) { in mdp_find_fmt()
23 if (!(mdp_data->format[i].flags & flag)) in mdp_find_fmt()
25 if (mdp_data->format[i].pixelformat == pixelformat) in mdp_find_fmt()
26 return &mdp_data->format[i]; in mdp_find_fmt()
31 static const struct mdp_format *mdp_find_fmt_by_index(const struct mtk_mdp_driver_data *mdp_data, in mdp_find_fmt_by_index() argument
38 for (i = 0; i < mdp_data->format_len; ++i) { in mdp_find_fmt_by_index()
39 if (!(mdp_data->format[i].flags & flag)) in mdp_find_fmt_by_index()
42 return &mdp_data->format[i]; in mdp_find_fmt_by_index()
120 fmt = mdp_find_fmt_by_index(mdp->mdp_data, f->index, f->type); in mdp_enum_fmt_mplane()
[all …]
Dmtk-mdp3-cmdq.c51 const int p_id = path->mdp_dev->mdp_data->mdp_plat_id; in mdp_path_subfrm_require()
53 const struct mtk_mdp_driver_data *data = path->mdp_dev->mdp_data; in mdp_path_subfrm_require()
102 const int p_id = path->mdp_dev->mdp_data->mdp_plat_id; in mdp_path_subfrm_run()
147 const int p_id = mdp->mdp_data->mdp_plat_id; in mdp_path_ctx_init()
173 const int p_id = path->mdp_dev->mdp_data->mdp_plat_id; in mdp_path_config_subfrm()
239 const int p_id = mdp->mdp_data->mdp_plat_id; in mdp_path_config()
336 id = mdp->mdp_data->pipe_info[MDP_PIPE_RDMA0].mutex_id; in mdp_auto_release_work()
383 id = mdp->mdp_data->pipe_info[MDP_PIPE_RDMA0].mutex_id; in mdp_handle_cmdq_callback()
405 const int p_id = mdp->mdp_data->mdp_plat_id; in mdp_cmdq_send()
443 i = mdp->mdp_data->pipe_info[MDP_PIPE_RDMA0].mutex_id; in mdp_cmdq_send()
[all …]
Dmtk-mdp3-comp.c31 return ctx->comp->mdp_dev->mdp_data->mdp_cfg; in __get_plat_cfg()
789 for (i = 0; i < mdp->mdp_data->comp_data_len; i++) in mdp_comp_get_id()
790 if (mdp->mdp_data->comp_data[i].match.type == type && in mdp_comp_get_id()
791 mdp->mdp_data->comp_data[i].match.alias_id == alias_id) in mdp_comp_get_id()
891 index = mdp->mdp_data->comp_data[comp->public_id].info.dts_reg_ofst; in mdp_get_subsys_id()
913 index = mdp->mdp_data->comp_data[comp->public_id].info.dts_reg_ofst; in __mdp_comp_init()
947 comp->type = mdp->mdp_data->comp_data[id].match.type; in mdp_comp_init()
948 comp->inner_id = mdp->mdp_data->comp_data[id].match.inner_id; in mdp_comp_init()
949 comp->alias_id = mdp->mdp_data->comp_data[id].match.alias_id; in mdp_comp_init()
953 comp->clk_num = mdp->mdp_data->comp_data[id].info.clk_num; in mdp_comp_init()
[all …]
Dmtk-mdp3-core.h73 const struct mtk_mdp_driver_data *mdp_data; member
Dmdp_cfg_data.c433 return mdp_dev->mdp_data->comp_data[id].match.inner_id; in mdp_cfg_get_id_inner()
445 if (mdp_dev->mdp_data->comp_data[i].match.inner_id == inner_id) { in mdp_cfg_get_id_public()
Dmtk-mdp3-m2m.c556 const struct mdp_limit *limit = mdp->mdp_data->def_limit; in mdp_m2m_open()