/linux-4.4.14/include/linux/iio/ |
H A D | kfifo_buf.h | 4 #include <linux/kfifo.h>
|
/linux-4.4.14/include/linux/ |
H A D | kfifo.h | 28 * - 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 D | dma-example.c | 12 #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 D | bytestream-example.c | 2 * Sample kfifo byte stream implementation 14 #include <linux/kfifo.h> 42 static struct kfifo test;
|
H A D | inttype-example.c | 2 * Sample kfifo int type implementation 14 #include <linux/kfifo.h>
|
H A D | record-example.c | 14 #include <linux/kfifo.h>
|
/linux-4.4.14/drivers/infiniband/hw/cxgb3/ |
H A D | cxio_resource.c | 36 #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 D | cxio_hal.h | 37 #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 D | cxio_resource.h | 38 #include <linux/kfifo.h>
|
/linux-4.4.14/drivers/usb/host/ |
H A D | fhci.h | 26 #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 D | sm_ftl.h | 15 #include <linux/kfifo.h> 25 struct kfifo free_sectors; /* queue of free sectors */
|
/linux-4.4.14/drivers/iio/buffer/ |
H A D | kfifo_buf.c | 6 #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 D | armada_drm.h | 11 #include <linux/kfifo.h>
|
/linux-4.4.14/drivers/media/platform/coda/ |
H A D | coda-bit.c | 148 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 D | coda.h | 21 #include <linux/kfifo.h> 213 struct kfifo bitstream_fifo;
|
H A D | coda-common.c | 23 #include <linux/kfifo.h>
|
/linux-4.4.14/drivers/media/rc/ |
H A D | rc-ir-raw.c | 44 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 D | rc-core-priv.h | 38 struct kfifo_rec_ptr_1 kfifo; /* fifo for the pulse/space durations */ member in struct:ir_raw_event_ctrl
|
H A D | nuvoton-cir.c | 605 * 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 D | redrat3.c | 358 /* 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 D | iio_simple_dummy_buffer.c | 9 * 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 D | dev.h | 13 #include <linux/kfifo.h> 139 struct kfifo event_fifo;
|
H A D | main.c | 16 #include <linux/kfifo.h>
|
H A D | mesh.c | 10 #include <linux/kfifo.h>
|
H A D | cmd.c | 7 #include <linux/kfifo.h>
|
/linux-4.4.14/drivers/gpu/drm/amd/scheduler/ |
H A D | gpu_scheduler.h | 27 #include <linux/kfifo.h> 50 struct kfifo job_queue;
|
/linux-4.4.14/net/dccp/ |
H A D | probe.c | 31 #include <linux/kfifo.h> 48 struct kfifo fifo;
|
/linux-4.4.14/arch/powerpc/sysdev/ |
H A D | fsl_rio.h | 32 #include <linux/kfifo.h> 105 struct kfifo pw_fifo;
|
/linux-4.4.14/drivers/media/pci/meye/ |
H A D | meye.h | 41 #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 D | ifx6x60.h | 75 struct kfifo tx_fifo;
|
H A D | kgdb_nmi.c | 29 #include <linux/kfifo.h>
|
H A D | ifx6x60.c | 45 #include <linux/kfifo.h>
|
/linux-4.4.14/arch/um/drivers/ |
H A D | line.h | 46 * XXX: And this should become a struct kfifo!
|
/linux-4.4.14/include/drm/ |
H A D | drm_flip_work.h | 27 #include <linux/kfifo.h>
|
/linux-4.4.14/drivers/iio/imu/inv_mpu6050/ |
H A D | inv_mpu_iio.h | 14 #include <linux/kfifo.h> 112 * @timestamps: kfifo queue to store time stamp.
|
H A D | inv_mpu_ring.c | 23 #include <linux/kfifo.h>
|
H A D | inv_mpu_core.c | 23 #include <linux/kfifo.h>
|
/linux-4.4.14/net/sctp/ |
H A D | probe.c | 34 #include <linux/kfifo.h> 65 struct kfifo fifo;
|
/linux-4.4.14/include/media/ |
H A D | lirc_dev.h | 21 #include <linux/kfifo.h> 31 struct kfifo fifo;
|
H A D | rc-core.h | 20 #include <linux/kfifo.h>
|
/linux-4.4.14/drivers/staging/most/aim-cdev/ |
H A D | cdev.c | 22 #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 D | omap-mailbox.c | 30 #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 D | Makefile | 28 bsearch.o find_bit.o llist.o memweight.o kfifo.o \
|
H A D | kfifo.c | 28 #include <linux/kfifo.h>
|
/linux-4.4.14/include/scsi/ |
H A D | libiscsi_tcp.h | 84 struct kfifo r2tqueue;
|
H A D | libiscsi.h | 31 #include <linux/kfifo.h> 257 struct kfifo queue; /* FIFO Queue */
|
/linux-4.4.14/include/linux/usb/ |
H A D | serial.h | 20 #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 D | industrialio-event.c | 16 #include <linux/kfifo.h> 35 * @read_lock: lock to protect kfifo read operations
|
/linux-4.4.14/include/linux/mfd/ |
H A D | si476x-core.h | 24 #include <linux/kfifo.h> 134 struct kfifo rds_fifo;
|
/linux-4.4.14/drivers/memstick/host/ |
H A D | r592.h | 16 #include <linux/kfifo.h>
|
/linux-4.4.14/drivers/media/i2c/cx25840/ |
H A D | cx25840-ir.c | 25 #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 D | msm_rd.c | 34 #include <linux/kfifo.h>
|
/linux-4.4.14/drivers/thunderbolt/ |
H A D | ctl.c | 12 #include <linux/kfifo.h> 453 tb_ctl_WARN(ctl, "empty kfifo\n"); tb_ctl_rx()
|
/linux-4.4.14/drivers/hid/ |
H A D | hid-sensor-custom.c | 19 #include <linux/kfifo.h> 58 struct kfifo data_fifo;
|
H A D | hid-logitech-dj.c | 29 #include <linux/kfifo.h> 116 struct kfifo notif_fifo;
|
H A D | hid-logitech-hidpp.c | 22 #include <linux/kfifo.h> 116 struct kfifo delayed_work_fifo;
|
/linux-4.4.14/drivers/mmc/card/ |
H A D | sdio_uart.c | 39 #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 D | fujitsu-laptop.c | 69 #include <linux/kfifo.h> 170 struct kfifo fifo; 797 /* kfifo */ acpi_fujitsu_hotkey_add()
|
H A D | sony-laptop.c | 60 #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 D | sonypi.c | 51 #include <linux/kfifo.h> 489 struct kfifo fifo; 498 struct kfifo input_fifo;
|
/linux-4.4.14/drivers/usb/serial/ |
H A D | generic.c | 23 #include <linux/kfifo.h>
|
H A D | cypress_m8.c | 40 #include <linux/kfifo.h> 100 struct kfifo write_fifo; /* write fifo */
|
H A D | oti6858.c | 53 #include <linux/kfifo.h>
|
H A D | ti_usb_3410_5052.c | 32 #include <linux/kfifo.h>
|
H A D | usb-serial.c | 39 #include <linux/kfifo.h>
|
H A D | io_ti.c | 32 #include <linux/kfifo.h>
|
/linux-4.4.14/drivers/gpu/host1x/ |
H A D | cdma.c | 26 #include <linux/kfifo.h>
|
/linux-4.4.14/drivers/media/pci/cx23885/ |
H A D | cx23888-ir.c | 19 #include <linux/kfifo.h> 134 struct kfifo rx_kfifo;
|
/linux-4.4.14/drivers/tty/ |
H A D | nozomi.c | 56 #include <linux/kfifo.h> 357 struct kfifo fifo_ul; 1422 "Could not allocate kfifo buffer\n"); nozomi_card_init()
|
H A D | n_gsm.c | 58 #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 D | tsi721.h | 828 struct kfifo pw_fifo;
|
H A D | tsi721_dma.c | 32 #include <linux/kfifo.h>
|
H A D | tsi721.c | 34 #include <linux/kfifo.h>
|
/linux-4.4.14/drivers/video/fbdev/omap2/dss/ |
H A D | rfbi.c | 32 #include <linux/kfifo.h>
|
/linux-4.4.14/drivers/infiniband/ulp/iser/ |
H A D | iser_initiator.c | 37 #include <linux/kfifo.h>
|
H A D | iscsi_iser.c | 51 #include <linux/kfifo.h>
|
/linux-4.4.14/drivers/net/wireless/rt2x00/ |
H A D | rt2800mmio.c | 439 * need to lock the kfifo. rt2800mmio_txstatus_interrupt()
|
H A D | rt2x00.h | 38 #include <linux/kfifo.h>
|
H A D | rt2x00dev.c | 1076 * in all tx queues. Hence, calculate the kfifo size as rt2x00lib_probe_hw()
|
/linux-4.4.14/drivers/pci/pcie/aer/ |
H A D | aerdrv_core.c | 27 #include <linux/kfifo.h>
|
/linux-4.4.14/drivers/scsi/ |
H A D | libiscsi_tcp.c | 37 #include <linux/kfifo.h>
|
H A D | iscsi_tcp.c | 36 #include <linux/kfifo.h>
|
H A D | libiscsi.c | 25 #include <linux/kfifo.h>
|
/linux-4.4.14/drivers/scsi/bnx2i/ |
H A D | bnx2i.h | 30 #include <linux/kfifo.h>
|
/linux-4.4.14/drivers/net/wimax/i2400m/ |
H A D | tx.c | 361 * much better explained in linux/kernel/kfifo.c, but this code
|
/linux-4.4.14/mm/ |
H A D | memory-failure.c | 58 #include <linux/kfifo.h>
|