Lines Matching refs:cldev

95 	struct mei_cl_device *cldev;  member
179 ret = mei_cldev_send(wdt->cldev, (u8 *)&req, req_len); in mei_wdt_ping()
206 ret = mei_cldev_send(wdt->cldev, (u8 *)&req, req_len); in mei_wdt_stop()
364 if (!wdt || !wdt->cldev) in mei_wdt_register()
367 dev = &wdt->cldev->dev; in mei_wdt_register()
410 static void mei_wdt_rx(struct mei_cl_device *cldev) in mei_wdt_rx() argument
412 struct mei_wdt *wdt = mei_cldev_get_drvdata(cldev); in mei_wdt_rx()
417 ret = mei_cldev_recv(wdt->cldev, (u8 *)&res, res_len); in mei_wdt_rx()
419 dev_err(&cldev->dev, "failure in recv %d\n", ret); in mei_wdt_rx()
428 dev_err(&cldev->dev, "recv small data %d\n", ret); in mei_wdt_rx()
434 dev_err(&cldev->dev, "wrong command received\n"); in mei_wdt_rx()
439 dev_warn(&cldev->dev, "unsupported command %d :%s[%d]\n", in mei_wdt_rx()
469 dev_warn(&cldev->dev, "not in correct state %s[%d]\n", in mei_wdt_rx()
482 static void mei_wdt_notif(struct mei_cl_device *cldev) in mei_wdt_notif() argument
484 struct mei_wdt *wdt = mei_cldev_get_drvdata(cldev); in mei_wdt_notif()
560 static int mei_wdt_probe(struct mei_cl_device *cldev, in mei_wdt_probe() argument
572 wdt->cldev = cldev; in mei_wdt_probe()
573 wdt->resp_required = mei_cldev_ver(cldev) > 0x1; in mei_wdt_probe()
578 mei_cldev_set_drvdata(cldev, wdt); in mei_wdt_probe()
580 ret = mei_cldev_enable(cldev); in mei_wdt_probe()
582 dev_err(&cldev->dev, "Could not enable cl device\n"); in mei_wdt_probe()
586 ret = mei_cldev_register_rx_cb(wdt->cldev, mei_wdt_rx); in mei_wdt_probe()
588 dev_err(&cldev->dev, "Could not reg rx event ret=%d\n", ret); in mei_wdt_probe()
592 ret = mei_cldev_register_notif_cb(wdt->cldev, mei_wdt_notif); in mei_wdt_probe()
596 dev_err(&cldev->dev, "Could not reg notif event ret=%d\n", ret); in mei_wdt_probe()
600 wd_info.firmware_version = mei_cldev_ver(cldev); in mei_wdt_probe()
615 mei_cldev_disable(cldev); in mei_wdt_probe()
623 static void mei_wdt_remove(struct mei_cl_device *cldev) in mei_wdt_remove() argument
625 struct mei_wdt *wdt = mei_cldev_get_drvdata(cldev); in mei_wdt_remove()
635 mei_cldev_disable(cldev); in mei_wdt_remove()