Symbol: kfifo_len
drivers/char/sonypi.c
905
if ((kfifo_len(&sonypi_device.fifo) == 0) &&
drivers/char/sonypi.c
910
kfifo_len(&sonypi_device.fifo) != 0);
drivers/char/sonypi.c
933
if (kfifo_len(&sonypi_device.fifo))
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
3743
msg_count = kfifo_len(&con->poison_fifo);
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
3776
msg_count = kfifo_len(&con->poison_fifo);
drivers/gpu/drm/amd/amdkfd/kfd_smi_events.c
98
to_copy = kfifo_len(&client->fifo);
drivers/gpu/drm/amd/ras/rascore/ras_process.c
121
uint32_t event_count = kfifo_len(&ras_proc->event_fifo);
drivers/gpu/drm/amd/ras/rascore/ras_process.c
184
(kfifo_len(&ras_proc->event_fifo)))
drivers/iio/buffer/kfifo_buf.c
126
samples = kfifo_len(&kf->kf);
drivers/media/i2c/cx25840/cx25840-ir.c
618
if (kfifo_len(&ir_state->rx_kfifo) >= CX25840_IR_RX_KFIFO_SIZE / 2)
drivers/media/i2c/cx25840/cx25840-ir.c
846
n = CX25840_IR_TX_KFIFO_SIZE - kfifo_len(ir_state->tx_kfifo);
drivers/media/pci/cx23885/cx23888-ir.c
619
if (kfifo_len(&state->rx_kfifo) >= CX23888_IR_RX_KFIFO_SIZE / 2)
drivers/media/platform/amphion/vpu_dbg.c
211
num = scnprintf(str, sizeof(str), "kfifo len = 0x%x\n", kfifo_len(&inst->msg_fifo));
drivers/media/platform/amphion/vpu_dbg.c
293
num = scnprintf(str, sizeof(str), "kfifo len = 0x%x\n", kfifo_len(&core->msg_fifo));
drivers/media/platform/amphion/vpu_msgs.c
257
if (kfifo_len(&inst->msg_fifo) < bytes)
drivers/media/platform/amphion/vpu_msgs.c
355
while (kfifo_len(&core->msg_fifo) >= SIZE) {
drivers/media/platform/amphion/vpu_msgs.c
384
if (kfifo_len(&core->msg_fifo) >= bytes)
drivers/media/platform/amphion/vpu_msgs.c
394
if (inst->workqueue && kfifo_len(&inst->msg_fifo) >= bytes)
drivers/media/platform/chips-media/coda/coda.h
344
return kfifo_len(&ctx->bitstream_fifo);
drivers/media/platform/chips-media/wave5/wave5-vpu.c
128
while (kfifo_len(&inst->irq_status)) {
drivers/media/platform/chips-media/wave5/wave5-vpu.c
175
while (kfifo_len(&inst->irq_status)) {
drivers/media/radio/radio-si476x.c
1107
fifo_len = kfifo_len(&radio->core->rds_fifo);
drivers/mmc/core/sdio_uart.c
424
if (tty == NULL || !kfifo_len(xmit) ||
drivers/mmc/core/sdio_uart.c
437
len = kfifo_len(xmit);
drivers/mmc/core/sdio_uart.c
785
return FIFO_SIZE - kfifo_len(&port->xmit_fifo);
drivers/mmc/core/sdio_uart.c
791
return kfifo_len(&port->xmit_fifo);
drivers/mtd/sm_ftl.c
859
if (!kfifo_len(&zone->free_sectors)) {
drivers/mtd/sm_ftl.c
866
i %= (kfifo_len(&zone->free_sectors) / 2);
drivers/net/wireless/marvell/libertas/cmd.c
1327
if (!kfifo_len(&priv->event_fifo) && !priv->resp_len[priv->resp_idx])
drivers/net/wireless/marvell/libertas/cmd.c
1359
if (kfifo_len(&priv->event_fifo) || priv->resp_len[priv->resp_idx]) {
drivers/net/wireless/marvell/libertas/main.c
452
else if (kfifo_len(&priv->event_fifo))
drivers/net/wireless/marvell/libertas/main.c
504
while (kfifo_len(&priv->event_fifo)) {
drivers/nvme/target/pr.c
124
log.nr_pages = kfifo_len(&log_mgr->log_queue);
drivers/platform/x86/sony-laptop.c
365
if (kfifo_len(&sony_laptop_input.fifo) != 0)
drivers/platform/x86/sony-laptop.c
3909
if ((kfifo_len(&sonypi_compat.fifo) == 0) &&
drivers/platform/x86/sony-laptop.c
3914
kfifo_len(&sonypi_compat.fifo) != 0);
drivers/platform/x86/sony-laptop.c
3937
if (kfifo_len(&sonypi_compat.fifo))
drivers/rapidio/devices/rio_mport_cdev.c
2242
if (kfifo_len(&priv->event_fifo))
drivers/rapidio/devices/rio_mport_cdev.c
2266
kfifo_len(&priv->event_fifo) != 0);
drivers/scsi/libiscsi_tcp.c
999
BUG_ON(kfifo_len(&tcp_task->r2tqueue));
drivers/staging/greybus/loopback.c
947
if (kfifo_len(kfifo) == 0) {
drivers/staging/greybus/uart.c
466
chars = kfifo_len(&gb_tty->write_fifo);
drivers/tty/mxser.c
1546
if (kfifo_len(&port->port.xmit_fifo) < WAKEUP_CHARS)
drivers/tty/mxser.c
939
return kfifo_len(&info->port.xmit_fifo);
drivers/tty/n_gsm.c
1188
len = kfifo_len(&dlci->fifo);
drivers/tty/n_gsm.c
4426
return kfifo_len(&dlci->fifo);
drivers/tty/nozomi.c
1771
return kfifo_len(&port->fifo_ul);
drivers/tty/nozomi.c
909
if (kfifo_len(&dc->port[port].fifo_ul)) {
drivers/tty/nozomi.c
913
kfifo_len(&dc->port[port].fifo_ul));
drivers/tty/serial/8250/8250_bcm7271.c
427
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/8250/8250_dma.c
31
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/8250/8250_omap.c
1099
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/8250/8250_omap.c
1169
if (kfifo_len(&tport->xmit_fifo) < 4) {
drivers/tty/serial/8250/8250_pci1xxxx.c
456
if (kfifo_len(&tport->xmit_fifo) < UART_BURST_SIZE)
drivers/tty/serial/8250/8250_pci1xxxx.c
481
kfifo_len(&tport->xmit_fifo) >= UART_BURST_SIZE)
drivers/tty/serial/8250/8250_pci1xxxx.c
506
valid_byte_count = kfifo_len(&tport->xmit_fifo);
drivers/tty/serial/8250/8250_pci1xxxx.c
518
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/8250/8250_port.c
1720
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/amba-pl011.c
1539
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/amba-pl011.c
611
count = kfifo_len(&tport->xmit_fifo);
drivers/tty/serial/amba-pl011.c
670
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/ar933x_uart.c
430
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/arc_uart.c
178
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/atmel_serial.c
1008
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/atmel_serial.c
1485
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/atmel_serial.c
878
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/clps711x.c
177
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/cpm_uart.c
698
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/digicolor-usart.c
210
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/dz.c
284
if (kfifo_len(&tport->xmit_fifo) < DZ_WAKEUP_CHARS)
drivers/tty/serial/fsl_linflexuart.c
185
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/fsl_lpuart.c
490
sport->dma_tx_bytes = kfifo_len(&tport->xmit_fifo);
drivers/tty/serial/fsl_lpuart.c
545
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/fsl_lpuart.c
781
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/imx.c
577
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/imx.c
606
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/imx.c
640
sport->tx_bytes = kfifo_len(&tport->xmit_fifo);
drivers/tty/serial/ip22zilog.c
412
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/ip22zilog.c
607
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/jsm/jsm_neo.c
522
qlen = kfifo_len(&tport->xmit_fifo);
drivers/tty/serial/max3100.c
291
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/max310x.c
780
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/men_z135_uart.c
313
qlen = kfifo_len(&tport->xmit_fifo);
drivers/tty/serial/men_z135_uart.c
352
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/meson_uart.c
173
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/milbeaut_usio.c
114
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/msm_serial.c
489
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/msm_serial.c
885
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/mxs-auart.c
529
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/pic32_uart.c
383
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/pmac_zilog.c
401
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/pmac_zilog.c
617
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/qcom_geni_serial.c
1025
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/qcom_geni_serial.c
1042
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/qcom_geni_serial.c
976
pending = kfifo_len(&tport->xmit_fifo);
drivers/tty/serial/rda-uart.c
354
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/rsci.c
468
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/samsung_tty.c
353
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/samsung_tty.c
923
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/sb1250-duart.c
406
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/sc16is7xx.c
686
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/sccnxp.c
477
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/serial-tegra.c
528
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/serial-tegra.c
641
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/serial_core.c
662
ret = kfifo_len(&state->port.xmit_fifo);
drivers/tty/serial/sh-sci.c
1057
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/sh-sci.c
1422
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/sprd_serial.c
278
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/stm32-usart.c
832
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/sunhv.c
215
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/sunplus-uart.c
226
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/sunsab.c
280
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/sunsu.c
402
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/sunzilog.c
513
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/sunzilog.c
712
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/timbuart.c
130
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/uartlite.c
214
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/ucc_uart.c
385
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/xilinx_uartps.c
453
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/tty/serial/zs.c
630
if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS)
drivers/usb/gadget/function/u_serial.c
214
len = kfifo_len(&port->port_write_buf);
drivers/usb/gadget/function/u_serial.c
686
cond = p->port_usb == NULL || !kfifo_len(&p->port_write_buf) ||
drivers/usb/gadget/function/u_serial.c
718
if (kfifo_len(&port->port_write_buf) > 0 && gser) {
drivers/usb/gadget/function/u_serial.c
849
chars = kfifo_len(&port->port_write_buf);
drivers/usb/host/fhci.h
485
return kfifo_len(kfifo) / sizeof(void *);
drivers/usb/host/xhci-dbgtty.c
318
port->tx_boundary = kfifo_len(&port->port.xmit_fifo);
drivers/usb/host/xhci-dbgtty.c
32
len = kfifo_len(&port->port.xmit_fifo);
drivers/usb/host/xhci-dbgtty.c
375
chars = kfifo_len(&port->port.xmit_fifo);
drivers/usb/serial/cypress_m8.c
965
chars = kfifo_len(&priv->write_fifo);
drivers/usb/serial/generic.c
165
if (!port->write_urbs_free || !kfifo_len(&port->write_fifo)) {
drivers/usb/serial/generic.c
259
chars = kfifo_len(&port->write_fifo) + port->tx_bytes;
drivers/usb/serial/io_ti.c
2102
chars = kfifo_len(&port->write_fifo);
drivers/usb/serial/keyspan_pda.c
481
count = kfifo_len(&port->write_fifo);
drivers/usb/serial/oti6858.c
280
count = kfifo_len(&port->write_fifo);
drivers/usb/serial/oti6858.c
386
chars = kfifo_len(&port->write_fifo);
drivers/usb/serial/oti6858.c
739
count = kfifo_len(&port->write_fifo);
drivers/usb/serial/ti_usb_3410_5052.c
834
chars = kfifo_len(&port->write_fifo);
include/linux/kfifo.h
292
kfifo_len(__tmpq) > __tmpq->kfifo.mask; \
include/linux/kfifo.h
304
unsigned int __avail = kfifo_size(__tmpq) - kfifo_len(__tmpq); \
include/linux/kfifo.h
344
(!__recsize) ? kfifo_len(__tmp) * sizeof(*__tmp->type) : \
include/linux/serial_core.h
942
pending = kfifo_len(&__tport->xmit_fifo); \
lib/tests/kfifo_kunit.c
183
KUNIT_EXPECT_EQ(test, kfifo_len(&my_fifo), 3);
lib/tests/kfifo_kunit.c
189
KUNIT_EXPECT_EQ(test, kfifo_len(&my_fifo), 3);
lib/tests/kfifo_kunit.c
198
KUNIT_EXPECT_EQ(test, kfifo_len(&my_fifo), 3);
lib/tests/kfifo_kunit.c
21
KUNIT_EXPECT_EQ(test, kfifo_len(&my_fifo), 3);
lib/tests/kfifo_kunit.c
25
KUNIT_EXPECT_EQ(test, kfifo_len(&my_fifo), 0);
lib/tests/kfifo_kunit.c
35
KUNIT_EXPECT_EQ(test, kfifo_len(&my_fifo), 0);
lib/tests/kfifo_kunit.c
47
KUNIT_EXPECT_EQ(test, kfifo_len(&my_fifo), 0);
lib/tests/kfifo_kunit.c
50
KUNIT_EXPECT_EQ(test, kfifo_len(&my_fifo), N_ELEMENTS);
lib/tests/kfifo_kunit.c
53
KUNIT_EXPECT_EQ(test, kfifo_len(&my_fifo), N_ELEMENTS * 2);
lib/tests/kfifo_kunit.c
56
KUNIT_EXPECT_EQ(test, kfifo_len(&my_fifo), 0);
samples/kfifo/bytestream-example.c
68
printk(KERN_INFO "fifo len: %u\n", kfifo_len(&test));
samples/kfifo/bytestream-example.c
89
printk(KERN_INFO "queue len: %u\n", kfifo_len(&test));
samples/kfifo/dma-example.c
123
ret = kfifo_len(&fifo);
samples/kfifo/dma-example.c
124
printk(KERN_INFO "queue len: %u\n", kfifo_len(&fifo));
samples/kfifo/dma-example.c
47
printk(KERN_INFO "queue len: %u\n", kfifo_len(&fifo));
samples/kfifo/inttype-example.c
65
printk(KERN_INFO "fifo len: %u\n", kfifo_len(&test));
samples/kfifo/inttype-example.c
82
printk(KERN_INFO "queue len: %u\n", kfifo_len(&test));
samples/kfifo/record-example.c
93
printk(KERN_INFO "fifo len: %u\n", kfifo_len(&test));
sound/usb/line6/driver.c
574
while (kfifo_len(&line6->messages.fifo) == 0) {
sound/usb/line6/driver.c
582
kfifo_len(&line6->messages.fifo) != 0);
sound/usb/line6/driver.c
635
return kfifo_len(&line6->messages.fifo) == 0 ? 0 : EPOLLIN | EPOLLRDNORM;