Lines Matching full:provider
11 #include <linux/interconnect-provider.h>
40 if (unlikely(!src->provider)) in mtk_emi_icc_set()
43 dev = src->provider->dev; in mtk_emi_icc_set()
69 dev_err(src->provider->dev, "Unknown endpoint %u\n", node->ep); in mtk_emi_icc_set()
82 struct icc_provider *provider; in mtk_emi_icc_probe() local
92 provider = devm_kzalloc(dev, sizeof(*provider), GFP_KERNEL); in mtk_emi_icc_probe()
93 if (!provider) in mtk_emi_icc_probe()
100 provider->dev = pdev->dev.parent; in mtk_emi_icc_probe()
101 provider->set = mtk_emi_icc_set; in mtk_emi_icc_probe()
102 provider->aggregate = mtk_emi_icc_aggregate; in mtk_emi_icc_probe()
103 provider->xlate = of_icc_xlate_onecell; in mtk_emi_icc_probe()
104 INIT_LIST_HEAD(&provider->nodes); in mtk_emi_icc_probe()
105 provider->data = data; in mtk_emi_icc_probe()
119 icc_node_add(node, provider); in mtk_emi_icc_probe()
128 ret = icc_provider_register(provider); in mtk_emi_icc_probe()
132 platform_set_drvdata(pdev, provider); in mtk_emi_icc_probe()
136 icc_nodes_remove(provider); in mtk_emi_icc_probe()
143 struct icc_provider *provider = platform_get_drvdata(pdev); in mtk_emi_icc_remove() local
145 icc_provider_deregister(provider); in mtk_emi_icc_remove()
146 icc_nodes_remove(provider); in mtk_emi_icc_remove()