Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/media/platform/mediatek/mdp3/
Dmtk-mdp3-core.c43 const struct mtk_mdp_driver_data *mdp_data; in __get_pdev_by_id() local
54 mdp_data = of_device_get_match_data(&pdev->dev); in __get_pdev_by_id()
55 if (!mdp_data) { in __get_pdev_by_id()
60 compat = mdp_data->mdp_probe_infra[id].compatible; in __get_pdev_by_id()
148 for (i = 0; i < mdp->mdp_data->pp_used; i++) in mdp_video_device_release()
162 for (i = 0; i < mdp->mdp_data->pipe_info_len; i++) { in mdp_video_device_release()
167 idx = mdp->mdp_data->pipe_info[i].sub_id; in mdp_video_device_release()
168 m_id = mdp->mdp_data->pipe_info[i].mutex_id; in mdp_video_device_release()
208 compat = mdp->mdp_data->mdp_probe_infra[sub_id].compatible; in mdp_mm_subsys_deploy()
237 mdp->mdp_data = of_device_get_match_data(&pdev->dev); in mdp_probe()
[all …]
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.c109 const int p_id = mdp->mdp_data->mdp_plat_id; in __get_config_offset()
114 if (pp_idx >= mdp->mdp_data->pp_used) in __get_config_offset()
147 const int p_id = path->mdp_dev->mdp_data->mdp_plat_id; in mdp_path_subfrm_require()
149 const struct mtk_mdp_driver_data *data = path->mdp_dev->mdp_data; in mdp_path_subfrm_require()
200 const int p_id = path->mdp_dev->mdp_data->mdp_plat_id; in mdp_path_subfrm_run()
263 const int p_id = mdp->mdp_data->mdp_plat_id; in mdp_path_ctx_init()
302 const int p_id = path->mdp_dev->mdp_data->mdp_plat_id; in mdp_path_config_subfrm()
394 const int p_id = mdp->mdp_data->mdp_plat_id; in mdp_path_config()
522 mutex = __get_mutex(mdp, &mdp->mdp_data->pipe_info[pipe_id]); in mdp_auto_release_work()
573 mutex = __get_mutex(mdp, &mdp->mdp_data->pipe_info[pipe_id]); in mdp_handle_cmdq_callback()
[all …]
Dmtk-mdp3-comp.c39 return ctx->comp->mdp_dev->mdp_data->mdp_cfg; in __get_plat_cfg()
575 const struct mtk_mdp_driver_data *data = ctx->comp->mdp_dev->mdp_data; in config_rsz_subfrm()
1618 for (i = 0; i < mdp->mdp_data->comp_data_len; i++) in mdp_comp_get_id()
1619 if (mdp->mdp_data->comp_data[i].match.type == type && in mdp_comp_get_id()
1620 mdp->mdp_data->comp_data[i].match.alias_id == alias_id) in mdp_comp_get_id()
1698 b = &m->mdp_data->comp_data[id].blend; in mdp_comp_clocks_on()
1726 b = &m->mdp_data->comp_data[id].blend; in mdp_comp_clocks_off()
1752 index = mdp->mdp_data->comp_data[comp->public_id].info.dts_reg_ofst; in mdp_get_subsys_id()
1774 index = mdp->mdp_data->comp_data[comp->public_id].info.dts_reg_ofst; in __mdp_comp_init()
1808 comp->type = mdp->mdp_data->comp_data[id].match.type; in mdp_comp_init()
[all …]
Dmtk-mdp3-core.h116 const struct mtk_mdp_driver_data *mdp_data; member
Dmdp_cfg_data.c1390 return mdp_dev->mdp_data->comp_data[id].match.inner_id; in mdp_cfg_get_id_inner()
1402 if (mdp_dev->mdp_data->comp_data[i].match.inner_id == inner_id) { in mdp_cfg_get_id_public()
1415 enum mdp_comp_type type = mdp_dev->mdp_data->comp_data[id].match.type; in mdp_cfg_comp_is_dummy()
Dmtk-mdp3-vpu.c201 u8 pp_num = mdp->mdp_data->pp_used; in mdp_vpu_dev_init()
Dmtk-mdp3-m2m.c571 const struct mdp_limit *limit = mdp->mdp_data->def_limit; in mdp_m2m_open()