Home
last modified time | relevance | path

Searched refs:kfifo (Results 1 – 25 of 78) sorted by relevance

1234

/OK3568_Linux_fs/kernel/include/linux/
H A Dkfifo.h54 struct __kfifo kfifo; \
83 struct kfifo __STRUCT_KFIFO_PTR(unsigned char, 0, void);
127 struct __kfifo *__kfifo = &__tmp->kfifo; \
181 #define kfifo_initialized(fifo) ((fifo)->kfifo.mask)
187 #define kfifo_esize(fifo) ((fifo)->kfifo.esize)
199 #define kfifo_size(fifo) ((fifo)->kfifo.mask + 1)
212 __tmp->kfifo.in = __tmp->kfifo.out = 0; \
226 __tmp->kfifo.out = __tmp->kfifo.in; \
236 __tmpl->kfifo.in - __tmpl->kfifo.out; \
246 __tmpq->kfifo.in == __tmpq->kfifo.out; \
[all …]
H A Dgnss.h51 struct kfifo read_fifo;
/OK3568_Linux_fs/kernel/drivers/usb/host/
H A Dfhci.h403 struct kfifo empty_frame_Q; /* Empty frames list to use */
404 struct kfifo conf_frame_Q; /* frames passed to TDs,waiting for tx */
405 struct kfifo dummy_packets_Q;/* dummy packets for the CRC overun */
473 static inline int cq_new(struct kfifo *fifo, int size) in cq_new()
478 static inline void cq_delete(struct kfifo *kfifo) in cq_delete() argument
480 kfifo_free(kfifo); in cq_delete()
483 static inline unsigned int cq_howmany(struct kfifo *kfifo) in cq_howmany() argument
485 return kfifo_len(kfifo) / sizeof(void *); in cq_howmany()
488 static inline int cq_put(struct kfifo *kfifo, void *p) in cq_put() argument
490 return kfifo_in(kfifo, (void *)&p, sizeof(p)); in cq_put()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_indep_power/
H A Ddhd_linux_wq.c74 struct kfifo *prio_fifo;
75 struct kfifo *work_fifo;
82 static inline struct kfifo*
85 struct kfifo *fifo; in dhd_kfifo_init()
91 fifo = (struct kfifo *)kzalloc(sizeof(struct kfifo), flags); in dhd_kfifo_init()
101 dhd_kfifo_free(struct kfifo *fifo) in dhd_kfifo_free()
216 static inline struct kfifo *
238 struct kfifo *fifo; in dhd_deferred_schedule_work()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/infineon/bcmdhd/
H A Ddhd_linux_wq.c75 struct kfifo *prio_fifo;
76 struct kfifo *work_fifo;
84 static inline struct kfifo*
87 struct kfifo *fifo; in dhd_kfifo_init()
90 fifo = (struct kfifo *)kzalloc(sizeof(struct kfifo), flags); in dhd_kfifo_init()
99 dhd_kfifo_free(struct kfifo *fifo) in dhd_kfifo_free()
211 static inline struct kfifo *
233 struct kfifo *fifo; in dhd_deferred_schedule_work()
/OK3568_Linux_fs/external/rkwifibt/drivers/infineon/
H A Ddhd_linux_wq.c75 struct kfifo *prio_fifo;
76 struct kfifo *work_fifo;
84 static inline struct kfifo*
87 struct kfifo *fifo; in dhd_kfifo_init()
90 fifo = (struct kfifo *)kzalloc(sizeof(struct kfifo), flags); in dhd_kfifo_init()
99 dhd_kfifo_free(struct kfifo *fifo) in dhd_kfifo_free()
211 static inline struct kfifo *
233 struct kfifo *fifo; in dhd_deferred_schedule_work()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/cywdhd/bcmdhd/
H A Ddhd_linux_wq.c75 struct kfifo *prio_fifo;
76 struct kfifo *work_fifo;
84 static inline struct kfifo*
87 struct kfifo *fifo; in dhd_kfifo_init()
90 fifo = (struct kfifo *)kzalloc(sizeof(struct kfifo), flags); in dhd_kfifo_init()
99 dhd_kfifo_free(struct kfifo *fifo) in dhd_kfifo_free()
211 static inline struct kfifo *
233 struct kfifo *fifo; in dhd_deferred_schedule_work()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/
H A Ddhd_linux_wq.c78 struct kfifo *prio_fifo;
79 struct kfifo *work_fifo;
87 static inline struct kfifo*
90 struct kfifo *fifo; in dhd_kfifo_init()
96 fifo = (struct kfifo *)kzalloc(sizeof(struct kfifo), flags); in dhd_kfifo_init()
106 dhd_kfifo_free(struct kfifo *fifo) in dhd_kfifo_free()
218 static inline struct kfifo *
240 struct kfifo *fifo; in dhd_deferred_schedule_work()
/OK3568_Linux_fs/external/rkwifibt/drivers/bcmdhd/
H A Ddhd_linux_wq.c78 struct kfifo *prio_fifo;
79 struct kfifo *work_fifo;
87 static inline struct kfifo*
90 struct kfifo *fifo; in dhd_kfifo_init()
96 fifo = (struct kfifo *)kzalloc(sizeof(struct kfifo), flags); in dhd_kfifo_init()
106 dhd_kfifo_free(struct kfifo *fifo) in dhd_kfifo_free()
218 static inline struct kfifo *
240 struct kfifo *fifo; in dhd_deferred_schedule_work()
/OK3568_Linux_fs/kernel/drivers/firmware/arm_scmi/
H A Dnotify.c242 struct kfifo kfifo; member
431 outs = kfifo_out(&eq->kfifo, pd->eh, in scmi_process_event_header()
437 kfifo_reset_out(&eq->kfifo); in scmi_process_event_header()
470 outs = kfifo_out(&eq->kfifo, pd->eh->payld, pd->eh->payld_sz); in scmi_process_event_payload()
479 kfifo_reset_out(&eq->kfifo); in scmi_process_event_payload()
597 if (kfifo_avail(&r_evt->proto->equeue.kfifo) < sizeof(eh) + len) { in scmi_notify()
612 kfifo_in(&r_evt->proto->equeue.kfifo, &eh, sizeof(eh)); in scmi_notify()
613 kfifo_in(&r_evt->proto->equeue.kfifo, buf, len); in scmi_notify()
636 static void scmi_kfifo_free(void *kfifo) in scmi_kfifo_free() argument
638 kfifo_free((struct kfifo *)kfifo); in scmi_kfifo_free()
[all …]
/OK3568_Linux_fs/kernel/drivers/media/platform/coda/
H A Dtrace.h100 __entry->start = meta->start & ctx->bitstream_fifo.kfifo.mask;
101 __entry->end = meta->end & ctx->bitstream_fifo.kfifo.mask;
131 ctx->bitstream_fifo.kfifo.mask) : 0;
133 ctx->bitstream_fifo.kfifo.mask) : 0;
H A Dcoda-bit.c150 struct __kfifo *kfifo = &ctx->bitstream_fifo.kfifo; in coda_kfifo_sync_from_device() local
155 kfifo->out = (kfifo->in & ~kfifo->mask) | in coda_kfifo_sync_from_device()
157 if (kfifo->out > kfifo->in) in coda_kfifo_sync_from_device()
158 kfifo->out -= kfifo->mask + 1; in coda_kfifo_sync_from_device()
163 struct __kfifo *kfifo = &ctx->bitstream_fifo.kfifo; in coda_kfifo_sync_to_device_full() local
167 rd_ptr = ctx->bitstream.paddr + (kfifo->out & kfifo->mask); in coda_kfifo_sync_to_device_full()
169 wr_ptr = ctx->bitstream.paddr + (kfifo->in & kfifo->mask); in coda_kfifo_sync_to_device_full()
175 struct __kfifo *kfifo = &ctx->bitstream_fifo.kfifo; in coda_kfifo_sync_to_device_write() local
179 wr_ptr = ctx->bitstream.paddr + (kfifo->in & kfifo->mask); in coda_kfifo_sync_to_device_write()
389 start = ctx->bitstream_fifo.kfifo.in; in coda_fill_bitstream()
[all …]
/OK3568_Linux_fs/kernel/drivers/staging/fieldbus/anybuss/
H A Dhost.c324 ab_task_dequeue_finish_put(struct kfifo *q, struct anybuss_host *cd) in ab_task_dequeue_finish_put()
336 ab_task_enqueue(struct ab_task *t, struct kfifo *q, spinlock_t *slock, in ab_task_enqueue()
353 ab_task_enqueue_wait(struct ab_task *t, struct kfifo *q, spinlock_t *slock, in ab_task_enqueue_wait()
382 struct kfifo qs[3];
383 struct kfifo *powerq;
384 struct kfifo *mboxq;
385 struct kfifo *areaq;
862 static void process_q(struct anybuss_host *cd, struct kfifo *q) in process_q()
875 static bool qs_have_work(struct kfifo *qs, size_t num) in qs_have_work()
892 struct kfifo *qs = cd->qs; in process_qs()
[all …]
/OK3568_Linux_fs/kernel/drivers/media/pci/meye/
H A Dmeye.h296 struct kfifo grabq; /* queue for buffers to be grabbed */
298 struct kfifo doneq; /* queue for grabbed buffers */
/OK3568_Linux_fs/kernel/drivers/iio/buffer/
H A DKconfig44 tristate "Industrial I/O buffering based on kfifo"
46 A simple fifo based on kfifo. Note that this currently provides
/OK3568_Linux_fs/kernel/drivers/media/rc/
H A Drc-ir-raw.c30 while (kfifo_out(&raw->kfifo, &ev, 1)) { in ir_raw_event_thread()
55 } else if (!kfifo_is_empty(&raw->kfifo)) in ir_raw_event_thread()
82 if (!kfifo_put(&dev->raw->kfifo, *ev)) { in ir_raw_event_store()
628 INIT_KFIFO(dev->raw->kfifo); in ir_raw_event_prepare()
/OK3568_Linux_fs/kernel/drivers/staging/pi433/Documentation/
H A Dpi433.txt28 kfifo. With each write request of an application, the passed in data and the
29 corresponding parameter set gets written to the kfifo.
30 On the other "side" of the kfifo, the tx thread continuously checks, whether the
31 kfifo is empty. If not, it gets one set of config and data from the kfifo. If
37 is more data available in the kfifo, the procedure is repeated. If not the
/OK3568_Linux_fs/kernel/drivers/media/platform/rockchip/isp/
H A Disp_mipi_luma.h53 struct kfifo rd_kfifo;
H A Disp_stats.h56 struct kfifo rd_kfifo;
/OK3568_Linux_fs/kernel/drivers/mtd/
H A Dsm_ftl.h22 struct kfifo free_sectors; /* queue of free sectors */
/OK3568_Linux_fs/kernel/drivers/media/platform/rockchip/cif/
H A Dcif-luma.h64 struct kfifo rd_kfifo;
/OK3568_Linux_fs/kernel/samples/
H A DMakefile11 obj-$(CONFIG_SAMPLE_KFIFO) += kfifo/
H A DKconfig68 tristate "Build kfifo examples -- loadable modules only"
72 different kfifo sample modules showing how to use the
73 generic kfifo API.
/OK3568_Linux_fs/kernel/drivers/media/platform/rockchip/isp1/
H A Disp_stats.h97 struct kfifo rd_kfifo;
/OK3568_Linux_fs/kernel/drivers/tty/serial/
H A Difx6x60.h61 struct kfifo tx_fifo;

1234