Lines Matching full:mdp

638 /* Used to describe the item order in MDP property */
775 static void __mdp_comp_init(struct mdp_dev *mdp, struct device_node *node, in __mdp_comp_init() argument
787 comp->mdp_dev = mdp; in __mdp_comp_init()
792 static int mdp_comp_init(struct mdp_dev *mdp, struct device_node *node, in mdp_comp_init() argument
795 struct device *dev = &mdp->pdev->dev; in mdp_comp_init()
810 __mdp_comp_init(mdp, node, comp); in mdp_comp_init()
856 static struct mdp_comp *mdp_comp_create(struct mdp_dev *mdp, in mdp_comp_create() argument
860 struct device *dev = &mdp->pdev->dev; in mdp_comp_create()
864 if (mdp->comp[id]) in mdp_comp_create()
871 ret = mdp_comp_init(mdp, node, comp, id); in mdp_comp_create()
876 mdp->comp[id] = comp; in mdp_comp_create()
877 mdp->comp[id]->mdp_dev = mdp; in mdp_comp_create()
885 static int mdp_comp_sub_create(struct mdp_dev *mdp) in mdp_comp_sub_create() argument
887 struct device *dev = &mdp->pdev->dev; in mdp_comp_sub_create()
918 comp = mdp_comp_create(mdp, node, id); in mdp_comp_sub_create()
926 void mdp_comp_destroy(struct mdp_dev *mdp) in mdp_comp_destroy() argument
930 for (i = 0; i < ARRAY_SIZE(mdp->comp); i++) { in mdp_comp_destroy()
931 if (mdp->comp[i]) { in mdp_comp_destroy()
932 pm_runtime_disable(mdp->comp[i]->comp_dev); in mdp_comp_destroy()
933 mdp_comp_deinit(mdp->comp[i]); in mdp_comp_destroy()
934 devm_kfree(mdp->comp[i]->comp_dev, mdp->comp[i]); in mdp_comp_destroy()
935 mdp->comp[i] = NULL; in mdp_comp_destroy()
940 int mdp_comp_config(struct mdp_dev *mdp) in mdp_comp_config() argument
942 struct device *dev = &mdp->pdev->dev; in mdp_comp_config()
950 /* Iterate over sibling MDP function blocks */ in mdp_comp_config()
978 comp = mdp_comp_create(mdp, node, id); in mdp_comp_config()
1000 ret = mdp_comp_sub_create(mdp); in mdp_comp_config()
1007 mdp_comp_destroy(mdp); in mdp_comp_config()
1011 int mdp_comp_ctx_config(struct mdp_dev *mdp, struct mdp_comp_ctx *ctx, in mdp_comp_ctx_config() argument
1015 struct device *dev = &mdp->pdev->dev; in mdp_comp_ctx_config()
1023 ctx->comp = mdp->comp[param->type]; in mdp_comp_ctx_config()