Searched refs:kfifo (Results 1 - 86 of 86) sorted by relevance

/linux-4.4.14/include/linux/iio/
H A Dkfifo_buf.h4 #include <linux/kfifo.h>
/linux-4.4.14/include/linux/
H A Dkfifo.h28 * - Modify the declaration of the "struct kfifo *" object into a
29 * in-place "struct kfifo" object
31 * Note: The address of the in-place "struct kfifo" object must be
68 struct __kfifo kfifo; \
95 * define compatibility "struct kfifo" for dynamic allocated fifos
97 struct kfifo __STRUCT_KFIFO_PTR(unsigned char, 0, void);
140 struct __kfifo *__kfifo = &__tmp->kfifo; \
194 #define kfifo_initialized(fifo) ((fifo)->kfifo.mask)
200 #define kfifo_esize(fifo) ((fifo)->kfifo.esize)
212 #define kfifo_size(fifo) ((fifo)->kfifo.mask + 1)
225 __tmp->kfifo.in = __tmp->kfifo.out = 0; \
239 __tmp->kfifo.out = __tmp->kfifo.in; \
249 __tmpl->kfifo.in - __tmpl->kfifo.out; \
259 __tmpq->kfifo.in == __tmpq->kfifo.out; \
269 kfifo_len(__tmpq) > __tmpq->kfifo.mask; \
296 struct __kfifo *__kfifo = &__tmp->kfifo; \
314 struct __kfifo *__kfifo = &__tmp->kfifo; \
336 struct __kfifo *__kfifo = &__tmp->kfifo; \
350 struct __kfifo *__kfifo = &__tmp->kfifo; \
369 struct __kfifo *__kfifo = &__tmp->kfifo; \
393 struct __kfifo *__kfifo = &__tmp->kfifo; \
403 )[__kfifo->in & __tmp->kfifo.mask] = \
431 struct __kfifo *__kfifo = &__tmp->kfifo; \
442 )[__kfifo->out & __tmp->kfifo.mask]; \
470 struct __kfifo *__kfifo = &__tmp->kfifo; \
481 )[__kfifo->out & __tmp->kfifo.mask]; \
507 struct __kfifo *__kfifo = &__tmp->kfifo; \
556 struct __kfifo *__kfifo = &__tmp->kfifo; \
610 struct __kfifo *__kfifo = &__tmp->kfifo; \
638 struct __kfifo *__kfifo = &__tmp->kfifo; \
665 struct __kfifo *__kfifo = &__tmp->kfifo; \
687 struct __kfifo *__kfifo = &__tmp->kfifo; \
716 struct __kfifo *__kfifo = &__tmp->kfifo; \
738 struct __kfifo *__kfifo = &__tmp->kfifo; \
764 struct __kfifo *__kfifo = &__tmp->kfifo; \
/linux-4.4.14/samples/kfifo/
H A Ddma-example.c12 #include <linux/kfifo.h>
21 static struct kfifo fifo;
50 * Configure the kfifo buffer to receive data from DMA input. example_init()
61 * end of the kfifo buffer (19 bytes) and another for the first free example_init()
H A Dbytestream-example.c2 * Sample kfifo byte stream implementation
14 #include <linux/kfifo.h>
42 static struct kfifo test;
H A Dinttype-example.c2 * Sample kfifo int type implementation
14 #include <linux/kfifo.h>
H A Drecord-example.c14 #include <linux/kfifo.h>
/linux-4.4.14/drivers/infiniband/hw/cxgb3/
H A Dcxio_resource.c36 #include <linux/kfifo.h>
42 static struct kfifo rhdl_fifo;
47 static int __cxio_init_resource_fifo(struct kfifo *fifo, __cxio_init_resource_fifo()
95 static int cxio_init_resource_fifo(struct kfifo *fifo, spinlock_t * fifo_lock, cxio_init_resource_fifo()
102 static int cxio_init_resource_fifo_random(struct kfifo *fifo, cxio_init_resource_fifo_random()
181 static u32 cxio_hal_get_resource(struct kfifo *fifo, spinlock_t * lock) cxio_hal_get_resource()
190 static void cxio_hal_put_resource(struct kfifo *fifo, spinlock_t * lock, cxio_hal_put_resource()
H A Dcxio_hal.h37 #include <linux/kfifo.h>
79 struct kfifo tpt_fifo;
81 struct kfifo qpid_fifo;
83 struct kfifo cqid_fifo;
85 struct kfifo pdid_fifo;
H A Dcxio_resource.h38 #include <linux/kfifo.h>
/linux-4.4.14/drivers/usb/host/
H A Dfhci.h26 #include <linux/kfifo.h>
409 struct kfifo empty_frame_Q; /* Empty frames list to use */
410 struct kfifo conf_frame_Q; /* frames passed to TDs,waiting for tx */
411 struct kfifo dummy_packets_Q;/* dummy packets for the CRC overun */
479 static inline int cq_new(struct kfifo *fifo, int size) cq_new()
484 static inline void cq_delete(struct kfifo *kfifo) cq_delete() argument
486 kfifo_free(kfifo); cq_delete()
489 static inline unsigned int cq_howmany(struct kfifo *kfifo) cq_howmany() argument
491 return kfifo_len(kfifo) / sizeof(void *); cq_howmany()
494 static inline int cq_put(struct kfifo *kfifo, void *p) cq_put() argument
496 return kfifo_in(kfifo, (void *)&p, sizeof(p)); cq_put()
499 static inline void *cq_get(struct kfifo *kfifo) cq_get() argument
504 sz = kfifo_out(kfifo, (void *)&p, sizeof(p)); cq_get()
/linux-4.4.14/drivers/mtd/
H A Dsm_ftl.h15 #include <linux/kfifo.h>
25 struct kfifo free_sectors; /* queue of free sectors */
/linux-4.4.14/drivers/iio/buffer/
H A Dkfifo_buf.c6 #include <linux/kfifo.h>
14 struct kfifo kf;
184 * @dev: Device to allocate kfifo buffer for
/linux-4.4.14/drivers/gpu/drm/armada/
H A Darmada_drm.h11 #include <linux/kfifo.h>
/linux-4.4.14/drivers/media/platform/coda/
H A Dcoda-bit.c148 struct __kfifo *kfifo = &ctx->bitstream_fifo.kfifo; coda_kfifo_sync_from_device() local
153 kfifo->out = (kfifo->in & ~kfifo->mask) | coda_kfifo_sync_from_device()
155 if (kfifo->out > kfifo->in) coda_kfifo_sync_from_device()
156 kfifo->out -= kfifo->mask + 1; coda_kfifo_sync_from_device()
161 struct __kfifo *kfifo = &ctx->bitstream_fifo.kfifo; coda_kfifo_sync_to_device_full() local
165 rd_ptr = ctx->bitstream.paddr + (kfifo->out & kfifo->mask); coda_kfifo_sync_to_device_full()
167 wr_ptr = ctx->bitstream.paddr + (kfifo->in & kfifo->mask); coda_kfifo_sync_to_device_full()
173 struct __kfifo *kfifo = &ctx->bitstream_fifo.kfifo; coda_kfifo_sync_to_device_write() local
177 wr_ptr = ctx->bitstream.paddr + (kfifo->in & kfifo->mask); coda_kfifo_sync_to_device_write()
268 start = ctx->bitstream_fifo.kfifo.in & coda_fill_bitstream()
269 ctx->bitstream_fifo.kfifo.mask; coda_fill_bitstream()
284 meta->end = ctx->bitstream_fifo.kfifo.in & coda_fill_bitstream()
285 ctx->bitstream_fifo.kfifo.mask; coda_fill_bitstream()
1530 /* Update coda bitstream read and write pointers from kfifo */ __coda_start_decoding()
1586 /* Update kfifo out pointer from coda bitstream read pointer */ __coda_start_decoding()
1812 if (meta->end == (ctx->bitstream_fifo.kfifo.in & coda_prepare_decode()
1813 ctx->bitstream_fifo.kfifo.mask)) { coda_prepare_decode()
1856 /* Update kfifo out pointer from coda bitstream read pointer */ coda_finish_decode()
H A Dcoda.h21 #include <linux/kfifo.h>
213 struct kfifo bitstream_fifo;
H A Dcoda-common.c23 #include <linux/kfifo.h>
/linux-4.4.14/drivers/media/rc/
H A Drc-ir-raw.c44 retval = kfifo_len(&raw->kfifo); ir_raw_event_thread()
57 retval = kfifo_out(&raw->kfifo, &ev, sizeof(ev)); ir_raw_event_thread()
88 if (kfifo_in(&dev->raw->kfifo, ev, sizeof(*ev)) != sizeof(*ev)) ir_raw_event_store()
266 rc = kfifo_alloc(&dev->raw->kfifo, ir_raw_event_register()
312 kfifo_free(&dev->raw->kfifo); ir_raw_event_unregister()
H A Drc-core-priv.h38 struct kfifo_rec_ptr_1 kfifo; /* fifo for the pulse/space durations */ member in struct:ir_raw_event_ctrl
H A Dnuvoton-cir.c605 * Process raw data in rx driver buffer, store it in raw IR event kfifo,
613 * sample data in the raw event kfifo until we see 0x7<something> (except f)
H A Dredrat3.c358 /* Make sure we reset the IR kfifo after a bit of inactivity */ redrat3_process_ir_data()
993 /* store current hardware timeout, in us, will use for kfifo resets */ redrat3_dev_probe()
/linux-4.4.14/drivers/staging/iio/
H A Diio_simple_dummy_buffer.c9 * Uses the kfifo buffer.
124 /* Allocate a buffer to use - here a kfifo */ iio_simple_dummy_configure_buffer()
/linux-4.4.14/drivers/net/wireless/libertas/
H A Ddev.h13 #include <linux/kfifo.h>
139 struct kfifo event_fifo;
H A Dmain.c16 #include <linux/kfifo.h>
H A Dmesh.c10 #include <linux/kfifo.h>
H A Dcmd.c7 #include <linux/kfifo.h>
/linux-4.4.14/drivers/gpu/drm/amd/scheduler/
H A Dgpu_scheduler.h27 #include <linux/kfifo.h>
50 struct kfifo job_queue;
/linux-4.4.14/net/dccp/
H A Dprobe.c31 #include <linux/kfifo.h>
48 struct kfifo fifo;
/linux-4.4.14/arch/powerpc/sysdev/
H A Dfsl_rio.h32 #include <linux/kfifo.h>
105 struct kfifo pw_fifo;
/linux-4.4.14/drivers/media/pci/meye/
H A Dmeye.h41 #include <linux/kfifo.h>
309 struct kfifo grabq; /* queue for buffers to be grabbed */
311 struct kfifo doneq; /* queue for grabbed buffers */
/linux-4.4.14/drivers/tty/serial/
H A Difx6x60.h75 struct kfifo tx_fifo;
H A Dkgdb_nmi.c29 #include <linux/kfifo.h>
H A Difx6x60.c45 #include <linux/kfifo.h>
/linux-4.4.14/arch/um/drivers/
H A Dline.h46 * XXX: And this should become a struct kfifo!
/linux-4.4.14/include/drm/
H A Ddrm_flip_work.h27 #include <linux/kfifo.h>
/linux-4.4.14/drivers/iio/imu/inv_mpu6050/
H A Dinv_mpu_iio.h14 #include <linux/kfifo.h>
112 * @timestamps: kfifo queue to store time stamp.
H A Dinv_mpu_ring.c23 #include <linux/kfifo.h>
H A Dinv_mpu_core.c23 #include <linux/kfifo.h>
/linux-4.4.14/net/sctp/
H A Dprobe.c34 #include <linux/kfifo.h>
65 struct kfifo fifo;
/linux-4.4.14/include/media/
H A Dlirc_dev.h21 #include <linux/kfifo.h>
31 struct kfifo fifo;
H A Drc-core.h20 #include <linux/kfifo.h>
/linux-4.4.14/drivers/staging/most/aim-cdev/
H A Dcdev.c22 #include <linux/kfifo.h>
137 while (kfifo_out((struct kfifo *)&channel->fifo, &mbo, 1)) aim_close()
457 pr_info("failed to alloc channel kfifo"); aim_probe()
/linux-4.4.14/drivers/mailbox/
H A Domap-mailbox.c30 #include <linux/kfifo.h>
84 struct kfifo fifo;
134 MODULE_PARM_DESC(mbox_kfifo_size, "Size of omap's mailbox kfifo (bytes)");
920 /* kfifo size sanity check: alignment and minimal size */ omap_mbox_init()
/linux-4.4.14/lib/
H A DMakefile28 bsearch.o find_bit.o llist.o memweight.o kfifo.o \
H A Dkfifo.c28 #include <linux/kfifo.h>
/linux-4.4.14/include/scsi/
H A Dlibiscsi_tcp.h84 struct kfifo r2tqueue;
H A Dlibiscsi.h31 #include <linux/kfifo.h>
257 struct kfifo queue; /* FIFO Queue */
/linux-4.4.14/include/linux/usb/
H A Dserial.h20 #include <linux/kfifo.h>
58 * @write_fifo: kfifo used to buffer outgoing data
104 struct kfifo write_fifo;
/linux-4.4.14/drivers/iio/
H A Dindustrialio-event.c16 #include <linux/kfifo.h>
35 * @read_lock: lock to protect kfifo read operations
/linux-4.4.14/include/linux/mfd/
H A Dsi476x-core.h24 #include <linux/kfifo.h>
134 struct kfifo rds_fifo;
/linux-4.4.14/drivers/memstick/host/
H A Dr592.h16 #include <linux/kfifo.h>
/linux-4.4.14/drivers/media/i2c/cx25840/
H A Dcx25840-ir.c25 #include <linux/kfifo.h>
120 struct kfifo rx_kfifo;
121 spinlock_t rx_kfifo_lock; /* protect Rx data kfifo */
881 /* Compute how much we can fit in the tx kfifo */ cx25840_ir_tx_write()
/linux-4.4.14/drivers/gpu/drm/msm/
H A Dmsm_rd.c34 #include <linux/kfifo.h>
/linux-4.4.14/drivers/thunderbolt/
H A Dctl.c12 #include <linux/kfifo.h>
453 tb_ctl_WARN(ctl, "empty kfifo\n"); tb_ctl_rx()
/linux-4.4.14/drivers/hid/
H A Dhid-sensor-custom.c19 #include <linux/kfifo.h>
58 struct kfifo data_fifo;
H A Dhid-logitech-dj.c29 #include <linux/kfifo.h>
116 struct kfifo notif_fifo;
H A Dhid-logitech-hidpp.c22 #include <linux/kfifo.h>
116 struct kfifo delayed_work_fifo;
/linux-4.4.14/drivers/mmc/card/
H A Dsdio_uart.c39 #include <linux/kfifo.h>
74 struct kfifo xmit_fifo;
432 struct kfifo *xmit = &port->xmit_fifo; sdio_uart_transmit_chars()
/linux-4.4.14/drivers/platform/x86/
H A Dfujitsu-laptop.c69 #include <linux/kfifo.h>
170 struct kfifo fifo;
797 /* kfifo */ acpi_fujitsu_hotkey_add()
H A Dsony-laptop.c60 #include <linux/kfifo.h>
208 struct kfifo fifo;
464 /* kfifo */ sony_laptop_setup_input()
559 * need locking since nobody is adding new events to the kfifo. sony_laptop_remove_input()
4031 struct kfifo fifo;
/linux-4.4.14/drivers/char/
H A Dsonypi.c51 #include <linux/kfifo.h>
489 struct kfifo fifo;
498 struct kfifo input_fifo;
/linux-4.4.14/drivers/usb/serial/
H A Dgeneric.c23 #include <linux/kfifo.h>
H A Dcypress_m8.c40 #include <linux/kfifo.h>
100 struct kfifo write_fifo; /* write fifo */
H A Doti6858.c53 #include <linux/kfifo.h>
H A Dti_usb_3410_5052.c32 #include <linux/kfifo.h>
H A Dusb-serial.c39 #include <linux/kfifo.h>
H A Dio_ti.c32 #include <linux/kfifo.h>
/linux-4.4.14/drivers/gpu/host1x/
H A Dcdma.c26 #include <linux/kfifo.h>
/linux-4.4.14/drivers/media/pci/cx23885/
H A Dcx23888-ir.c19 #include <linux/kfifo.h>
134 struct kfifo rx_kfifo;
/linux-4.4.14/drivers/tty/
H A Dnozomi.c56 #include <linux/kfifo.h>
357 struct kfifo fifo_ul;
1422 "Could not allocate kfifo buffer\n"); nozomi_card_init()
H A Dn_gsm.c58 #include <linux/kfifo.h>
145 struct kfifo *fifo; /* Queue fifo for the DLCI */
146 struct kfifo _fifo; /* For new fifo API porting only */
/linux-4.4.14/drivers/rapidio/devices/
H A Dtsi721.h828 struct kfifo pw_fifo;
H A Dtsi721_dma.c32 #include <linux/kfifo.h>
H A Dtsi721.c34 #include <linux/kfifo.h>
/linux-4.4.14/drivers/video/fbdev/omap2/dss/
H A Drfbi.c32 #include <linux/kfifo.h>
/linux-4.4.14/drivers/infiniband/ulp/iser/
H A Diser_initiator.c37 #include <linux/kfifo.h>
H A Discsi_iser.c51 #include <linux/kfifo.h>
/linux-4.4.14/drivers/net/wireless/rt2x00/
H A Drt2800mmio.c439 * need to lock the kfifo. rt2800mmio_txstatus_interrupt()
H A Drt2x00.h38 #include <linux/kfifo.h>
H A Drt2x00dev.c1076 * in all tx queues. Hence, calculate the kfifo size as rt2x00lib_probe_hw()
/linux-4.4.14/drivers/pci/pcie/aer/
H A Daerdrv_core.c27 #include <linux/kfifo.h>
/linux-4.4.14/drivers/scsi/
H A Dlibiscsi_tcp.c37 #include <linux/kfifo.h>
H A Discsi_tcp.c36 #include <linux/kfifo.h>
H A Dlibiscsi.c25 #include <linux/kfifo.h>
/linux-4.4.14/drivers/scsi/bnx2i/
H A Dbnx2i.h30 #include <linux/kfifo.h>
/linux-4.4.14/drivers/net/wimax/i2400m/
H A Dtx.c361 * much better explained in linux/kernel/kfifo.c, but this code
/linux-4.4.14/mm/
H A Dmemory-failure.c58 #include <linux/kfifo.h>

Completed in 2620 milliseconds