Lines Matching refs:cldev
163 struct mei_cl_device *cldev; member
237 ret = mei_cldev_send(ace->cldev, (u8 *)cmd, len); in mei_ace_send()
361 static void mei_ace_rx(struct mei_cl_device *cldev) in mei_ace_rx() argument
363 struct mei_ace *ace = mei_cldev_get_drvdata(cldev); in mei_ace_rx()
368 ret = mei_cldev_recv(cldev, (u8 *)&event, sizeof(event)); in mei_ace_rx()
370 dev_err(&cldev->dev, "recv error: %d\n", ret); in mei_ace_rx()
388 dev_dbg(&cldev->dev, "firmware ready\n"); in mei_ace_rx()
397 struct device *dev = &ace->cldev->dev; in mei_ace_setup_dev_link()
443 dev = &ace->cldev->dev; in mei_ace_post_probe_work()
458 static int mei_ace_probe(struct mei_cl_device *cldev, in mei_ace_probe() argument
461 struct device *dev = &cldev->dev; in mei_ace_probe()
469 ace->cldev = cldev; in mei_ace_probe()
474 mei_cldev_set_drvdata(cldev, ace); in mei_ace_probe()
476 ret = mei_cldev_enable(cldev); in mei_ace_probe()
482 ret = mei_cldev_register_rx_cb(cldev, mei_ace_rx); in mei_ace_probe()
510 mei_cldev_disable(cldev); in mei_ace_probe()
518 static void mei_ace_remove(struct mei_cl_device *cldev) in mei_ace_remove() argument
520 struct mei_ace *ace = mei_cldev_get_drvdata(cldev); in mei_ace_remove()
527 pm_runtime_disable(&cldev->dev); in mei_ace_remove()
528 pm_runtime_set_suspended(&cldev->dev); in mei_ace_remove()