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()
409 static void mei_wdt_rx(struct mei_cl_device *cldev) in mei_wdt_rx() argument
411 struct mei_wdt *wdt = mei_cldev_get_drvdata(cldev); in mei_wdt_rx()
416 ret = mei_cldev_recv(wdt->cldev, (u8 *)&res, res_len); in mei_wdt_rx()
418 dev_err(&cldev->dev, "failure in recv %d\n", ret); in mei_wdt_rx()
427 dev_err(&cldev->dev, "recv small data %d\n", ret); in mei_wdt_rx()
433 dev_err(&cldev->dev, "wrong command received\n"); in mei_wdt_rx()
438 dev_warn(&cldev->dev, "unsupported command %d :%s[%d]\n", in mei_wdt_rx()
468 dev_warn(&cldev->dev, "not in correct state %s[%d]\n", in mei_wdt_rx()
481 static void mei_wdt_notif(struct mei_cl_device *cldev) in mei_wdt_notif() argument
483 struct mei_wdt *wdt = mei_cldev_get_drvdata(cldev); in mei_wdt_notif()
559 static int mei_wdt_probe(struct mei_cl_device *cldev, in mei_wdt_probe() argument
571 wdt->cldev = cldev; in mei_wdt_probe()
572 wdt->resp_required = mei_cldev_ver(cldev) > 0x1; in mei_wdt_probe()
577 mei_cldev_set_drvdata(cldev, wdt); in mei_wdt_probe()
579 ret = mei_cldev_enable(cldev); in mei_wdt_probe()
581 dev_err(&cldev->dev, "Could not enable cl device\n"); in mei_wdt_probe()
585 ret = mei_cldev_register_rx_cb(wdt->cldev, mei_wdt_rx); in mei_wdt_probe()
587 dev_err(&cldev->dev, "Could not reg rx event ret=%d\n", ret); in mei_wdt_probe()
591 ret = mei_cldev_register_notif_cb(wdt->cldev, mei_wdt_notif); in mei_wdt_probe()
595 dev_err(&cldev->dev, "Could not reg notif event ret=%d\n", ret); in mei_wdt_probe()
599 wd_info.firmware_version = mei_cldev_ver(cldev); in mei_wdt_probe()
614 mei_cldev_disable(cldev); in mei_wdt_probe()
622 static int mei_wdt_remove(struct mei_cl_device *cldev) in mei_wdt_remove() argument
624 struct mei_wdt *wdt = mei_cldev_get_drvdata(cldev); in mei_wdt_remove()
634 mei_cldev_disable(cldev); in mei_wdt_remove()