Lines Matching defs:kfifo
54 * pushes the event-data itself on a protocol-dedicated kfifo queue for further
84 #include <linux/kfifo.h>
232 * @sz: Size in bytes of the related kfifo
233 * @kfifo: A dedicated Kernel kfifo descriptor
241 struct kfifo kfifo;
273 * deferred worker when fetching data from the kfifo
428 outs = kfifo_out(&eq->kfifo, pd->eh,
434 kfifo_reset_out(&eq->kfifo);
467 outs = kfifo_out(&eq->kfifo, pd->eh->payld, pd->eh->payld_sz);
476 kfifo_reset_out(&eq->kfifo);
521 * * a dedicated per-protocol kfifo queue is used: in this way an anomalous
529 * reader/writer on the associated kfifo, so that we can use it lock-less
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);
616 * on the kfifo:
622 * related executing worker had already determined the kfifo to be
632 * scmi_kfifo_free() - Devres action helper to free the kfifo
633 * @kfifo: The kfifo to free
635 static void scmi_kfifo_free(void *kfifo)
637 kfifo_free((struct kfifo *)kfifo);
641 * scmi_initialize_events_queue() - Allocate/Initialize a kfifo buffer
644 * @sz: Size of the kfifo buffer to allocate
646 * Allocate a buffer for the kfifo and initialize it.
655 if (kfifo_alloc(&equeue->kfifo, sz, GFP_KERNEL))
658 equeue->sz = kfifo_size(&equeue->kfifo);
661 &equeue->kfifo);