Home
last modified time | relevance | path

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

123

/linux/include/linux/
H A Dkfifo.h59 struct __kfifo kfifo; \
88 struct kfifo __STRUCT_KFIFO_PTR(unsigned char, 0, void);
132 struct __kfifo *__kfifo = &__tmp->kfifo; \
186 #define kfifo_initialized(fifo) ((fifo)->kfifo.mask)
192 #define kfifo_esize(fifo) ((fifo)->kfifo.esize)
204 #define kfifo_size(fifo) ((fifo)->kfifo.mask + 1)
217 __tmp->kfifo.in = __tmp->kfifo.out = 0; \
231 __tmp->kfifo.out = __tmp->kfifo.in; \
241 __tmpl->kfifo.in - __tmpl->kfifo.out; \
251 __tmpq->kfifo.in == __tmpq->kfifo.out; \
[all …]
H A Dgnss.h51 struct kfifo read_fifo;
/linux/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 …]
/linux/drivers/firmware/arm_scmi/
H A Dnotify.c243 struct kfifo kfifo; member
432 outs = kfifo_out(&eq->kfifo, pd->eh, in scmi_process_event_header()
438 kfifo_reset_out(&eq->kfifo); in scmi_process_event_header()
471 outs = kfifo_out(&eq->kfifo, pd->eh->payld, pd->eh->payld_sz); in scmi_process_event_payload()
480 kfifo_reset_out(&eq->kfifo); in scmi_process_event_payload()
598 if (kfifo_avail(&r_evt->proto->equeue.kfifo) < sizeof(eh) + len) { in scmi_notify()
613 kfifo_in(&r_evt->proto->equeue.kfifo, &eh, sizeof(eh)); in scmi_notify()
614 kfifo_in(&r_evt->proto->equeue.kfifo, buf, len); in scmi_notify()
637 static void scmi_kfifo_free(void *kfifo) in scmi_kfifo_free() argument
639 kfifo_free((struct kfifo *)kfifo); in scmi_kfifo_free()
[all …]
/linux/drivers/media/platform/chips-media/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.c151 struct __kfifo *kfifo = &ctx->bitstream_fifo.kfifo; in coda_kfifo_sync_from_device() local
156 kfifo->out = (kfifo->in & ~kfifo->mask) | in coda_kfifo_sync_from_device()
158 if (kfifo->out > kfifo->in) in coda_kfifo_sync_from_device()
159 kfifo->out -= kfifo->mask + 1; in coda_kfifo_sync_from_device()
164 struct __kfifo *kfifo = &ctx->bitstream_fifo.kfifo; in coda_kfifo_sync_to_device_full() local
168 rd_ptr = ctx->bitstream.paddr + (kfifo->out & kfifo->mask); in coda_kfifo_sync_to_device_full()
170 wr_ptr = ctx->bitstream.paddr + (kfifo->in & kfifo->mask); in coda_kfifo_sync_to_device_full()
176 struct __kfifo *kfifo = &ctx->bitstream_fifo.kfifo; in coda_kfifo_sync_to_device_write() local
180 wr_ptr = ctx->bitstream.paddr + (kfifo->in & kfifo->mask); in coda_kfifo_sync_to_device_write()
391 start = ctx->bitstream_fifo.kfifo.in; in coda_fill_bitstream()
[all …]
H A Dcoda.h261 struct kfifo bitstream_fifo;
354 return (int)(ctx->bitstream_fifo.kfifo.in - ALIGN(pos, 256)) > 512; in coda_bitstream_can_fetch_past()
/linux/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
/linux/drivers/media/rc/
H A Drc-ir-raw.c30 while (kfifo_out(&raw->kfifo, &ev, 1)) { in ir_raw_event_thread()
53 } else if (!kfifo_is_empty(&raw->kfifo)) in ir_raw_event_thread()
80 if (!kfifo_put(&dev->raw->kfifo, *ev)) { in ir_raw_event_store()
626 INIT_KFIFO(dev->raw->kfifo); in ir_raw_event_prepare()
/linux/Documentation/translations/zh_CN/core-api/
H A Dkernel-api.rst199 kfifo接口
204 include/linux/kfifo.h
/linux/sound/soc/intel/avs/
H A Ddebugfs.c17 static unsigned int __kfifo_fromio(struct kfifo *fifo, const void __iomem *src, unsigned int len) in __kfifo_fromio()
19 struct __kfifo *__fifo = &fifo->kfifo; in __kfifo_fromio()
213 struct kfifo *fifo = &adev->trace_fifo; in strace_read()
/linux/drivers/mtd/
H A Dsm_ftl.h22 struct kfifo free_sectors; /* queue of free sectors */
/linux/samples/
H A DMakefile13 obj-$(CONFIG_SAMPLE_KFIFO) += kfifo/
H A DKconfig97 tristate "Build kfifo examples -- loadable modules only"
101 different kfifo sample modules showing how to use the
102 generic kfifo API.
/linux/drivers/scsi/ibmvscsi_tgt/
H A Dlibsrp.h79 struct kfifo queue;
/linux/drivers/platform/surface/aggregator/
H A Dssh_parser.h112 struct kfifo *fifo) in sshp_buf_read_from_fifo()
H A Dssh_packet_layer.h103 struct kfifo fifo;
/linux/samples/kfifo/
H A Ddma-example.c21 static struct kfifo fifo;
H A Dbytestream-example.c40 static struct kfifo test;
/linux/drivers/iio/dummy/
H A DKconfig42 Uses the kfifo buffer.
/linux/include/scsi/
H A Dlibiscsi_tcp.h73 struct kfifo r2tqueue;
/linux/drivers/staging/greybus/
H A Dloopback.c63 struct kfifo kfifo_lat;
941 struct kfifo *kfifo, in gb_loopback_dbgfs_latency_show_common() argument
947 if (kfifo_len(kfifo) == 0) { in gb_loopback_dbgfs_latency_show_common()
953 retval = kfifo_out(kfifo, &latency, sizeof(latency)); in gb_loopback_dbgfs_latency_show_common()
/linux/drivers/media/platform/amphion/
H A Dvpu.h163 struct kfifo msg_fifo;
246 struct kfifo msg_fifo;
/linux/arch/powerpc/sysdev/
H A Dfsl_rio.h102 struct kfifo pw_fifo;
/linux/drivers/hid/
H A Dwacom.h145 struct kfifo remote_fifo;

123