Lines Matching refs:ec_dev
68 static int cros_ec_pd_command(struct cros_ec_device *ec_dev, in cros_ec_pd_command() argument
89 ret = cros_ec_cmd_xfer_status(ec_dev, msg); in cros_ec_pd_command()
101 struct cros_ec_device *ec_dev) in cros_usbpd_get_event_and_notify() argument
111 if (!ec_dev) { in cros_usbpd_get_event_and_notify()
118 ret = cros_ec_pd_command(ec_dev, EC_CMD_PD_HOST_EVENT_STATUS, in cros_usbpd_get_event_and_notify()
147 struct cros_ec_device *ec_dev; in cros_usbpd_notify_probe_acpi() local
157 ec_dev = dev_get_drvdata(dev->parent); in cros_usbpd_notify_probe_acpi()
158 if (!ec_dev) { in cros_usbpd_notify_probe_acpi()
168 pdnotify->ec = ec_dev; in cros_usbpd_notify_probe_acpi()
217 struct cros_ec_device *ec_dev = (struct cros_ec_device *)data; in cros_usbpd_notify_plat() local
218 u32 host_event = cros_ec_get_host_event(ec_dev); in cros_usbpd_notify_plat()
224 cros_usbpd_get_event_and_notify(pdnotify->dev, ec_dev); in cros_usbpd_notify_plat()
242 pdnotify->ec = ecdev->ec_dev; in cros_usbpd_notify_probe_plat()
247 ret = blocking_notifier_chain_register(&ecdev->ec_dev->event_notifier, in cros_usbpd_notify_probe_plat()
264 blocking_notifier_chain_unregister(&ecdev->ec_dev->event_notifier, in cros_usbpd_notify_remove_plat()