Lines Matching refs:cldev
73 struct mei_cl_device *cldev = to_mei_cl_device(dev); in mei_component_master_bind() local
74 struct i915_gsc_proxy_component *comp_master = mei_cldev_get_drvdata(cldev); in mei_component_master_bind()
83 struct mei_cl_device *cldev = to_mei_cl_device(dev); in mei_component_master_unbind() local
84 struct i915_gsc_proxy_component *comp_master = mei_cldev_get_drvdata(cldev); in mei_component_master_unbind()
131 static int mei_gsc_proxy_probe(struct mei_cl_device *cldev, in mei_gsc_proxy_probe() argument
138 ret = mei_cldev_enable(cldev); in mei_gsc_proxy_probe()
140 dev_err(&cldev->dev, "mei_cldev_enable Failed. %d\n", ret); in mei_gsc_proxy_probe()
150 component_match_add_typed(&cldev->dev, &master_match, in mei_gsc_proxy_probe()
157 mei_cldev_set_drvdata(cldev, comp_master); in mei_gsc_proxy_probe()
158 ret = component_master_add_with_match(&cldev->dev, in mei_gsc_proxy_probe()
162 dev_err(&cldev->dev, "Master comp add failed %d\n", ret); in mei_gsc_proxy_probe()
169 mei_cldev_set_drvdata(cldev, NULL); in mei_gsc_proxy_probe()
171 mei_cldev_disable(cldev); in mei_gsc_proxy_probe()
176 static void mei_gsc_proxy_remove(struct mei_cl_device *cldev) in mei_gsc_proxy_remove() argument
178 struct i915_gsc_proxy_component *comp_master = mei_cldev_get_drvdata(cldev); in mei_gsc_proxy_remove()
181 component_master_del(&cldev->dev, &mei_component_master_ops); in mei_gsc_proxy_remove()
183 mei_cldev_set_drvdata(cldev, NULL); in mei_gsc_proxy_remove()
185 ret = mei_cldev_disable(cldev); in mei_gsc_proxy_remove()
187 dev_warn(&cldev->dev, "mei_cldev_disable() failed %d\n", ret); in mei_gsc_proxy_remove()