Lines Matching refs:notif
128 struct ssam_event_notifier notif; member
345 struct spwr_battery_device *bat = container_of(nf, struct spwr_battery_device, notif); in spwr_notify_bat()
729 bat->notif.base.priority = 1; in spwr_battery_init()
730 bat->notif.base.fn = spwr_notify_bat; in spwr_battery_init()
731 bat->notif.event.reg = registry; in spwr_battery_init()
732 bat->notif.event.id.target_category = sdev->uid.category; in spwr_battery_init()
733 bat->notif.event.id.instance = 0; /* need to register with instance 0 */ in spwr_battery_init()
734 bat->notif.event.mask = SSAM_EVENT_MASK_TARGET; in spwr_battery_init()
735 bat->notif.event.flags = SSAM_EVENT_SEQUENCED; in spwr_battery_init()
805 return ssam_device_notifier_register(bat->sdev, &bat->notif); in spwr_battery_register()
840 ssam_device_notifier_unregister(sdev, &bat->notif); in surface_battery_remove()