Lines Matching refs:ec_dev
57 struct cros_ec_device *ec_dev) in cros_usbpd_get_event_and_notify() argument
67 if (!ec_dev) { in cros_usbpd_get_event_and_notify()
74 ret = cros_ec_cmd(ec_dev, 0, EC_CMD_PD_HOST_EVENT_STATUS, in cros_usbpd_get_event_and_notify()
101 struct cros_ec_device *ec_dev; in cros_usbpd_notify_probe_acpi() local
111 ec_dev = dev_get_drvdata(dev->parent); in cros_usbpd_notify_probe_acpi()
112 if (!ec_dev) { in cros_usbpd_notify_probe_acpi()
122 pdnotify->ec = ec_dev; in cros_usbpd_notify_probe_acpi()
171 struct cros_ec_device *ec_dev = (struct cros_ec_device *)data; in cros_usbpd_notify_plat() local
172 u32 host_event = cros_ec_get_host_event(ec_dev); in cros_usbpd_notify_plat()
179 cros_usbpd_get_event_and_notify(pdnotify->dev, ec_dev); in cros_usbpd_notify_plat()
197 pdnotify->ec = ecdev->ec_dev; in cros_usbpd_notify_probe_plat()
202 ret = blocking_notifier_chain_register(&ecdev->ec_dev->event_notifier, in cros_usbpd_notify_probe_plat()
219 blocking_notifier_chain_unregister(&ecdev->ec_dev->event_notifier, in cros_usbpd_notify_remove_plat()