Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/accel/habanalabs/common/
Dhabanalabs_ioctl.c149 mutex_lock(&hpriv->notifier_event.lock); in events_info()
150 events_mask = hpriv->notifier_event.events_mask; in events_info()
151 hpriv->notifier_event.events_mask = 0; in events_info()
152 mutex_unlock(&hpriv->notifier_event.lock); in events_info()
777 mutex_lock(&hpriv->notifier_event.lock); in eventfd_register()
778 if (hpriv->notifier_event.eventfd) { in eventfd_register()
779 mutex_unlock(&hpriv->notifier_event.lock); in eventfd_register()
783 hpriv->notifier_event.eventfd = eventfd_ctx_fdget(args->eventfd); in eventfd_register()
784 if (IS_ERR(hpriv->notifier_event.eventfd)) { in eventfd_register()
785 rc = PTR_ERR(hpriv->notifier_event.eventfd); in eventfd_register()
[all …]
Ddevice.c536 if (hpriv->notifier_event.eventfd) in hpriv_release()
537 eventfd_ctx_put(hpriv->notifier_event.eventfd); in hpriv_release()
539 mutex_destroy(&hpriv->notifier_event.lock); in hpriv_release()
2073 if (!ctx->hpriv->notifier_event.eventfd && !hdev->reset_info.watchdog_active) in hl_device_cond_reset()
2116 static void hl_notifier_event_send(struct hl_notifier_event *notifier_event, u64 event_mask) in hl_notifier_event_send() argument
2118 mutex_lock(&notifier_event->lock); in hl_notifier_event_send()
2119 notifier_event->events_mask |= event_mask; in hl_notifier_event_send()
2121 if (notifier_event->eventfd) in hl_notifier_event_send()
2122 eventfd_signal(notifier_event->eventfd); in hl_notifier_event_send()
2124 mutex_unlock(&notifier_event->lock); in hl_notifier_event_send()
[all …]
Dhabanalabs_drv.c190 mutex_init(&hpriv->notifier_event.lock); in hl_device_open()
271 mutex_destroy(&hpriv->notifier_event.lock); in hl_device_open()
Dhabanalabs.h2339 struct hl_notifier_event notifier_event; member