Lines Matching refs:imx_provider
28 struct imx_icc_provider *imx_provider; member
48 base = node_data->setting->reg + node_data->imx_provider->noc_base; in imx_icc_node_set()
162 static struct icc_node *imx_icc_node_add(struct imx_icc_provider *imx_provider, in imx_icc_node_add() argument
166 struct icc_provider *provider = &imx_provider->provider; in imx_icc_node_add()
194 node_data->imx_provider = imx_provider; in imx_icc_node_add()
216 static int imx_icc_register_nodes(struct imx_icc_provider *imx_provider, in imx_icc_register_nodes() argument
221 struct icc_provider *provider = &imx_provider->provider; in imx_icc_register_nodes()
231 node = imx_icc_node_add(imx_provider, node_desc, in imx_icc_register_nodes()
275 struct imx_icc_provider *imx_provider; in imx_icc_register() local
288 imx_provider = devm_kzalloc(dev, sizeof(*imx_provider), GFP_KERNEL); in imx_icc_register()
289 if (!imx_provider) in imx_icc_register()
291 provider = &imx_provider->provider; in imx_icc_register()
298 platform_set_drvdata(pdev, imx_provider); in imx_icc_register()
301 imx_provider->noc_base = devm_of_iomap(dev, provider->dev->of_node, 0, NULL); in imx_icc_register()
302 if (IS_ERR(imx_provider->noc_base)) { in imx_icc_register()
303 ret = PTR_ERR(imx_provider->noc_base); in imx_icc_register()
315 ret = imx_icc_register_nodes(imx_provider, nodes, nodes_count, settings); in imx_icc_register()
329 struct imx_icc_provider *imx_provider = platform_get_drvdata(pdev); in imx_icc_unregister() local
331 imx_icc_unregister_nodes(&imx_provider->provider); in imx_icc_unregister()
333 icc_provider_del(&imx_provider->provider); in imx_icc_unregister()