Lines Matching refs:cldev
27 static inline int mei_pxp_reenable(const struct device *dev, struct mei_cl_device *cldev) in mei_pxp_reenable() argument
32 ret = mei_cldev_disable(cldev); in mei_pxp_reenable()
39 ret = mei_cldev_enable(cldev); in mei_pxp_reenable()
65 struct mei_cl_device *cldev; in mei_pxp_send_message() local
72 cldev = to_mei_cl_device(dev); in mei_pxp_send_message()
74 byte = mei_cldev_send_timeout(cldev, message, size, timeout_ms); in mei_pxp_send_message()
83 ret = mei_pxp_reenable(dev, cldev); in mei_pxp_send_message()
115 struct mei_cl_device *cldev; in mei_pxp_receive_message() local
123 cldev = to_mei_cl_device(dev); in mei_pxp_receive_message()
126 byte = mei_cldev_recv_timeout(cldev, buffer, size, timeout_ms); in mei_pxp_receive_message()
141 ret = mei_pxp_reenable(dev, cldev); in mei_pxp_receive_message()
168 struct mei_cl_device *cldev; in mei_pxp_gsc_command() local
170 cldev = to_mei_cl_device(dev); in mei_pxp_gsc_command()
172 return mei_cldev_send_gsc_command(cldev, client_id, fence_id, sg_in, total_in_len, sg_out); in mei_pxp_gsc_command()
184 struct mei_cl_device *cldev = to_mei_cl_device(dev); in mei_component_master_bind() local
185 struct i915_pxp_component *comp_master = mei_cldev_get_drvdata(cldev); in mei_component_master_bind()
199 struct mei_cl_device *cldev = to_mei_cl_device(dev); in mei_component_master_unbind() local
200 struct i915_pxp_component *comp_master = mei_cldev_get_drvdata(cldev); in mei_component_master_unbind()
263 static int mei_pxp_probe(struct mei_cl_device *cldev, in mei_pxp_probe() argument
270 ret = mei_cldev_enable(cldev); in mei_pxp_probe()
272 dev_err(&cldev->dev, "mei_cldev_enable Failed. %d\n", ret); in mei_pxp_probe()
283 component_match_add_typed(&cldev->dev, &master_match, in mei_pxp_probe()
284 mei_pxp_component_match, &cldev->dev); in mei_pxp_probe()
290 mei_cldev_set_drvdata(cldev, comp_master); in mei_pxp_probe()
291 ret = component_master_add_with_match(&cldev->dev, in mei_pxp_probe()
295 dev_err(&cldev->dev, "Master comp add failed %d\n", ret); in mei_pxp_probe()
302 mei_cldev_set_drvdata(cldev, NULL); in mei_pxp_probe()
304 mei_cldev_disable(cldev); in mei_pxp_probe()
309 static void mei_pxp_remove(struct mei_cl_device *cldev) in mei_pxp_remove() argument
311 struct i915_pxp_component *comp_master = mei_cldev_get_drvdata(cldev); in mei_pxp_remove()
314 component_master_del(&cldev->dev, &mei_component_master_ops); in mei_pxp_remove()
316 mei_cldev_set_drvdata(cldev, NULL); in mei_pxp_remove()
318 ret = mei_cldev_disable(cldev); in mei_pxp_remove()
320 dev_warn(&cldev->dev, "mei_cldev_disable() failed\n"); in mei_pxp_remove()