Lines Matching refs:ec_dev
58 struct cros_ec_device *ec_dev) in cros_usbpd_get_event_and_notify() argument
68 if (!ec_dev) { in cros_usbpd_get_event_and_notify()
75 ret = cros_ec_cmd(ec_dev, 0, EC_CMD_PD_HOST_EVENT_STATUS, in cros_usbpd_get_event_and_notify()
102 struct cros_ec_device *ec_dev; in cros_usbpd_notify_probe_acpi() local
112 ec_dev = dev_get_drvdata(dev->parent); in cros_usbpd_notify_probe_acpi()
113 if (!ec_dev) { in cros_usbpd_notify_probe_acpi()
123 pdnotify->ec = ec_dev; in cros_usbpd_notify_probe_acpi()
170 struct cros_ec_device *ec_dev = (struct cros_ec_device *)data; in cros_usbpd_notify_plat() local
171 u32 host_event = cros_ec_get_host_event(ec_dev); in cros_usbpd_notify_plat()
178 cros_usbpd_get_event_and_notify(pdnotify->dev, ec_dev); in cros_usbpd_notify_plat()
196 pdnotify->ec = ecdev->ec_dev; in cros_usbpd_notify_probe_plat()
201 ret = blocking_notifier_chain_register(&ecdev->ec_dev->event_notifier, in cros_usbpd_notify_probe_plat()
218 blocking_notifier_chain_unregister(&ecdev->ec_dev->event_notifier, in cros_usbpd_notify_remove_plat()