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