Home
last modified time | relevance | path

Searched refs:notifier_event (Results 1 – 4 of 4) sorted by relevance

/Linux-v6.6/drivers/accel/habanalabs/common/
Dhabanalabs_ioctl.c144 mutex_lock(&hpriv->notifier_event.lock); in events_info()
145 events_mask = hpriv->notifier_event.events_mask; in events_info()
146 hpriv->notifier_event.events_mask = 0; in events_info()
147 mutex_unlock(&hpriv->notifier_event.lock); in events_info()
724 mutex_lock(&hpriv->notifier_event.lock); in eventfd_register()
725 if (hpriv->notifier_event.eventfd) { in eventfd_register()
726 mutex_unlock(&hpriv->notifier_event.lock); in eventfd_register()
730 hpriv->notifier_event.eventfd = eventfd_ctx_fdget(args->eventfd); in eventfd_register()
731 if (IS_ERR(hpriv->notifier_event.eventfd)) { in eventfd_register()
732 rc = PTR_ERR(hpriv->notifier_event.eventfd); in eventfd_register()
[all …]
Ddevice.c470 if (hpriv->notifier_event.eventfd) in hpriv_release()
471 eventfd_ctx_put(hpriv->notifier_event.eventfd); in hpriv_release()
473 mutex_destroy(&hpriv->notifier_event.lock); in hpriv_release()
575 if (hpriv->notifier_event.eventfd) in hl_device_release_ctrl()
576 eventfd_ctx_put(hpriv->notifier_event.eventfd); in hl_device_release_ctrl()
578 mutex_destroy(&hpriv->notifier_event.lock); in hl_device_release_ctrl()
1919 if (!ctx || !ctx->hpriv->notifier_event.eventfd) in hl_device_cond_reset()
1960 static void hl_notifier_event_send(struct hl_notifier_event *notifier_event, u64 event_mask) in hl_notifier_event_send() argument
1962 mutex_lock(&notifier_event->lock); in hl_notifier_event_send()
1963 notifier_event->events_mask |= event_mask; in hl_notifier_event_send()
[all …]
Dhabanalabs_drv.c158 mutex_init(&hpriv->notifier_event.lock); in hl_device_open()
238 mutex_destroy(&hpriv->notifier_event.lock); in hl_device_open()
273 mutex_init(&hpriv->notifier_event.lock); in hl_device_open_ctrl()
Dhabanalabs.h2273 struct hl_notifier_event notifier_event; member