Lines Matching refs:nf
53 struct ssam_event_notifier nf; member
93 static u32 ssam_cdev_notifier(struct ssam_event_notifier *nf, const struct ssam_event *in) in ssam_cdev_notifier() argument
95 struct ssam_cdev_notifier *cdev_nf = container_of(nf, struct ssam_cdev_notifier, nf); in ssam_cdev_notifier()
139 struct ssam_cdev_notifier *nf; in ssam_cdev_notifier_register() local
157 nf = kzalloc(sizeof(*nf), GFP_KERNEL); in ssam_cdev_notifier_register()
158 if (!nf) { in ssam_cdev_notifier_register()
169 nf->client = client; in ssam_cdev_notifier_register()
170 nf->nf.base.fn = ssam_cdev_notifier; in ssam_cdev_notifier_register()
171 nf->nf.base.priority = priority; in ssam_cdev_notifier_register()
172 nf->nf.event.id.target_category = tc; in ssam_cdev_notifier_register()
173 nf->nf.event.mask = 0; /* Do not do any matching. */ in ssam_cdev_notifier_register()
174 nf->nf.flags = SSAM_EVENT_NOTIFIER_OBSERVER; in ssam_cdev_notifier_register()
177 status = ssam_notifier_register(client->cdev->ctrl, &nf->nf); in ssam_cdev_notifier_register()
179 kfree(nf); in ssam_cdev_notifier_register()
181 client->notifier[event] = nf; in ssam_cdev_notifier_register()
208 status = ssam_notifier_unregister(client->cdev->ctrl, &client->notifier[event]->nf); in ssam_cdev_notifier_unregister()