Lines Matching refs:dss
39 int dss_pll_register(struct dss_device *dss, struct dss_pll *pll) in dss_pll_register() argument
43 for (i = 0; i < ARRAY_SIZE(dss->plls); ++i) { in dss_pll_register()
44 if (!dss->plls[i]) { in dss_pll_register()
45 dss->plls[i] = pll; in dss_pll_register()
46 pll->dss = dss; in dss_pll_register()
56 struct dss_device *dss = pll->dss; in dss_pll_unregister() local
59 for (i = 0; i < ARRAY_SIZE(dss->plls); ++i) { in dss_pll_unregister()
60 if (dss->plls[i] == pll) { in dss_pll_unregister()
61 dss->plls[i] = NULL; in dss_pll_unregister()
62 pll->dss = NULL; in dss_pll_unregister()
68 struct dss_pll *dss_pll_find(struct dss_device *dss, const char *name) in dss_pll_find() argument
72 for (i = 0; i < ARRAY_SIZE(dss->plls); ++i) { in dss_pll_find()
73 if (dss->plls[i] && strcmp(dss->plls[i]->name, name) == 0) in dss_pll_find()
74 return dss->plls[i]; in dss_pll_find()
80 struct dss_pll *dss_pll_find_by_src(struct dss_device *dss, in dss_pll_find_by_src() argument
91 return dss_pll_find(dss, "hdmi"); in dss_pll_find_by_src()
96 pll = dss_pll_find(dss, "dsi0"); in dss_pll_find_by_src()
98 pll = dss_pll_find(dss, "video0"); in dss_pll_find_by_src()
104 pll = dss_pll_find(dss, "dsi1"); in dss_pll_find_by_src()
106 pll = dss_pll_find(dss, "video1"); in dss_pll_find_by_src()