Lines Matching defs:equeue
271 * @equeue: The embedded per-protocol events_queue
298 struct events_queue equeue;
543 pd = container_of(eq, struct scmi_registered_events_desc, equeue);
597 if (kfifo_avail(&r_evt->proto->equeue.kfifo) < sizeof(eh) + len) {
612 kfifo_in(&r_evt->proto->equeue.kfifo, &eh, sizeof(eh));
613 kfifo_in(&r_evt->proto->equeue.kfifo, buf, len);
626 queue_work(r_evt->proto->equeue.wq,
627 &r_evt->proto->equeue.notify_work);
644 * @equeue: The events_queue to initialize
652 struct events_queue *equeue, size_t sz)
656 if (kfifo_alloc(&equeue->kfifo, sz, GFP_KERNEL))
659 equeue->sz = kfifo_size(&equeue->kfifo);
662 &equeue->kfifo);
666 INIT_WORK(&equeue->notify_work, scmi_events_dispatcher);
667 equeue->wq = ni->notify_wq;
711 ret = scmi_initialize_events_queue(ni, &pd->equeue, queue_sz);
857 cancel_work_sync(&pd->equeue.notify_work);