Lines Matching defs:kfifo
54 * pushes the event-data itself on a protocol-dedicated kfifo queue for further
84 #include <linux/kfifo.h>
233 * @sz: Size in bytes of the related kfifo
234 * @kfifo: A dedicated Kernel kfifo descriptor
242 struct kfifo kfifo;
274 * deferred worker when fetching data from the kfifo
431 outs = kfifo_out(&eq->kfifo, pd->eh,
437 kfifo_reset_out(&eq->kfifo);
470 outs = kfifo_out(&eq->kfifo, pd->eh->payld, pd->eh->payld_sz);
479 kfifo_reset_out(&eq->kfifo);
524 * * a dedicated per-protocol kfifo queue is used: in this way an anomalous
532 * reader/writer on the associated kfifo, so that we can use it lock-less
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);
617 * on the kfifo:
623 * related executing worker had already determined the kfifo to be
633 * scmi_kfifo_free() - Devres action helper to free the kfifo
634 * @kfifo: The kfifo to free
636 static void scmi_kfifo_free(void *kfifo)
638 kfifo_free((struct kfifo *)kfifo);
642 * scmi_initialize_events_queue() - Allocate/Initialize a kfifo buffer
645 * @sz: Size of the kfifo buffer to allocate
647 * Allocate a buffer for the kfifo and initialize it.
656 if (kfifo_alloc(&equeue->kfifo, sz, GFP_KERNEL))
659 equeue->sz = kfifo_size(&equeue->kfifo);
662 &equeue->kfifo);