Lines Matching refs:pdnotify
91 struct cros_usbpd_notify_data *pdnotify = data; in cros_usbpd_notify_acpi() local
93 cros_usbpd_get_event_and_notify(pdnotify->dev, pdnotify->ec); in cros_usbpd_notify_acpi()
98 struct cros_usbpd_notify_data *pdnotify; in cros_usbpd_notify_probe_acpi() local
106 pdnotify = devm_kzalloc(dev, sizeof(*pdnotify), GFP_KERNEL); in cros_usbpd_notify_probe_acpi()
107 if (!pdnotify) in cros_usbpd_notify_probe_acpi()
121 pdnotify->dev = dev; in cros_usbpd_notify_probe_acpi()
122 pdnotify->ec = ec_dev; in cros_usbpd_notify_probe_acpi()
127 pdnotify); in cros_usbpd_notify_probe_acpi()
169 struct cros_usbpd_notify_data *pdnotify = container_of(nb, in cros_usbpd_notify_plat() local
179 cros_usbpd_get_event_and_notify(pdnotify->dev, ec_dev); in cros_usbpd_notify_plat()
189 struct cros_usbpd_notify_data *pdnotify; in cros_usbpd_notify_probe_plat() local
192 pdnotify = devm_kzalloc(dev, sizeof(*pdnotify), GFP_KERNEL); in cros_usbpd_notify_probe_plat()
193 if (!pdnotify) in cros_usbpd_notify_probe_plat()
196 pdnotify->dev = dev; in cros_usbpd_notify_probe_plat()
197 pdnotify->ec = ecdev->ec_dev; in cros_usbpd_notify_probe_plat()
198 pdnotify->nb.notifier_call = cros_usbpd_notify_plat; in cros_usbpd_notify_probe_plat()
200 dev_set_drvdata(dev, pdnotify); in cros_usbpd_notify_probe_plat()
203 &pdnotify->nb); in cros_usbpd_notify_probe_plat()
216 struct cros_usbpd_notify_data *pdnotify = in cros_usbpd_notify_remove_plat() local
220 &pdnotify->nb); in cros_usbpd_notify_remove_plat()