Lines Matching defs:equeue
270 * @equeue: The embedded per-protocol events_queue
296 struct events_queue equeue;
540 pd = container_of(eq, struct scmi_registered_events_desc, equeue);
596 if (kfifo_avail(&r_evt->proto->equeue.kfifo) < sizeof(eh) + len) {
611 kfifo_in(&r_evt->proto->equeue.kfifo, &eh, sizeof(eh));
612 kfifo_in(&r_evt->proto->equeue.kfifo, buf, len);
625 queue_work(r_evt->proto->equeue.wq,
626 &r_evt->proto->equeue.notify_work);
643 * @equeue: The events_queue to initialize
651 struct events_queue *equeue, size_t sz)
655 if (kfifo_alloc(&equeue->kfifo, sz, GFP_KERNEL))
658 equeue->sz = kfifo_size(&equeue->kfifo);
661 &equeue->kfifo);
665 INIT_WORK(&equeue->notify_work, scmi_events_dispatcher);
666 equeue->wq = ni->notify_wq;
710 ret = scmi_initialize_events_queue(ni, &pd->equeue, queue_sz);