Lines Matching refs:notif
74 struct gpio_notification *notif = in pmf_handle_notify() local
77 mutex_lock(¬if->mutex); in pmf_handle_notify()
78 if (notif->notify) in pmf_handle_notify()
79 notif->notify(notif->data); in pmf_handle_notify()
80 mutex_unlock(¬if->mutex); in pmf_handle_notify()
124 struct gpio_notification *notif = data; in pmf_handle_notify_irq() local
126 schedule_delayed_work(¬if->work, 0); in pmf_handle_notify_irq()
134 struct gpio_notification *notif; in pmf_set_notify() local
142 notif = &rt->headphone_notify; in pmf_set_notify()
146 notif = &rt->line_in_notify; in pmf_set_notify()
150 notif = &rt->line_out_notify; in pmf_set_notify()
157 mutex_lock(¬if->mutex); in pmf_set_notify()
159 old = notif->notify; in pmf_set_notify()
167 if (old == notify && notif->data == data) in pmf_set_notify()
173 irq_client = notif->gpio_private; in pmf_set_notify()
176 notif->gpio_private = NULL; in pmf_set_notify()
185 irq_client->data = notif; in pmf_set_notify()
197 notif->gpio_private = irq_client; in pmf_set_notify()
199 notif->notify = notify; in pmf_set_notify()
200 notif->data = data; in pmf_set_notify()
204 mutex_unlock(¬if->mutex); in pmf_set_notify()