| /Linux-v5.4/samples/kfifo/ |
| D | dma-example.c | 45 printk(KERN_INFO "queue len: %u\n", kfifo_len(&fifo)); in example_init() 121 ret = kfifo_len(&fifo); in example_init() 122 printk(KERN_INFO "queue len: %u\n", kfifo_len(&fifo)); in example_init()
|
| D | inttype-example.c | 65 printk(KERN_INFO "fifo len: %u\n", kfifo_len(&test)); in testfunc() 82 printk(KERN_INFO "queue len: %u\n", kfifo_len(&test)); in testfunc()
|
| D | bytestream-example.c | 68 printk(KERN_INFO "fifo len: %u\n", kfifo_len(&test)); in testfunc() 89 printk(KERN_INFO "queue len: %u\n", kfifo_len(&test)); in testfunc()
|
| D | record-example.c | 93 printk(KERN_INFO "fifo len: %u\n", kfifo_len(&test)); in testfunc()
|
| /Linux-v5.4/include/linux/ |
| D | kfifo.h | 233 #define kfifo_len(fifo) \ macro 256 kfifo_len(__tmpq) > __tmpq->kfifo.mask; \ 268 unsigned int __avail = kfifo_size(__tmpq) - kfifo_len(__tmpq); \ 302 (!__recsize) ? kfifo_len(__tmp) * sizeof(*__tmp->type) : \
|
| /Linux-v5.4/drivers/usb/gadget/function/ |
| D | u_serial.c | 204 len = kfifo_len(&port->port_write_buf); in gs_send_packet() 691 cond = (p->port_usb == NULL) || !kfifo_len(&p->port_write_buf); in gs_writes_finished() 727 if (kfifo_len(&port->port_write_buf) > 0 && gser) { in gs_close() 829 chars = kfifo_len(&port->port_write_buf); in gs_chars_in_buffer() 1000 count = kfifo_len(&info->con_buf); in gs_console_thread()
|
| /Linux-v5.4/drivers/tty/serial/ |
| D | ifx6x60.c | 449 queue_length = kfifo_len(&ifx_dev->tx_fifo); in ifx_spi_prepare_tx_buffer() 517 return IFX_SPI_FIFO_SIZE - kfifo_len(&ifx_dev->tx_fifo); in ifx_spi_write_room() 530 return kfifo_len(&ifx_dev->tx_fifo); in ifx_spi_chars_in_buffer() 693 queue_length = kfifo_len(&ifx_dev->tx_fifo); in ifx_spi_complete()
|
| D | kgdb_nmi.c | 200 !kfifo_len(&priv->fifo))) in kgdb_nmi_tty_receiver()
|
| /Linux-v5.4/drivers/mmc/core/ |
| D | sdio_uart.c | 441 if (tty == NULL || !kfifo_len(xmit) || in sdio_uart_transmit_chars() 454 len = kfifo_len(xmit); in sdio_uart_transmit_chars() 803 return FIFO_SIZE - kfifo_len(&port->xmit_fifo); in sdio_uart_write_room() 809 return kfifo_len(&port->xmit_fifo); in sdio_uart_chars_in_buffer()
|
| /Linux-v5.4/drivers/usb/host/ |
| D | xhci-dbgtty.c | 22 len = kfifo_len(&port->write_fifo); in dbc_send_packet() 254 chars = kfifo_len(&port->write_fifo); in dbc_tty_chars_in_buffer()
|
| D | fhci.h | 485 return kfifo_len(kfifo) / sizeof(void *); in cq_howmany()
|
| /Linux-v5.4/drivers/usb/serial/ |
| D | oti6858.c | 280 count = kfifo_len(&port->write_fifo); in send_data() 388 chars = kfifo_len(&port->write_fifo); in oti6858_chars_in_buffer() 741 count = kfifo_len(&port->write_fifo); in oti6858_read_int_callback()
|
| D | generic.c | 166 if (!port->write_urbs_free || !kfifo_len(&port->write_fifo)) { in usb_serial_generic_write_start() 260 chars = kfifo_len(&port->write_fifo) + port->tx_bytes; in usb_serial_generic_chars_in_buffer()
|
| /Linux-v5.4/drivers/iio/buffer/ |
| D | kfifo_buf.c | 127 samples = kfifo_len(&kf->kf); in iio_kfifo_buf_data_available()
|
| /Linux-v5.4/sound/usb/line6/ |
| D | driver.c | 579 while (kfifo_len(&line6->messages.fifo) == 0) { in line6_hwdep_read() 584 kfifo_len(&line6->messages.fifo) != 0); in line6_hwdep_read()
|
| /Linux-v5.4/drivers/char/ |
| D | sonypi.c | 904 if ((kfifo_len(&sonypi_device.fifo) == 0) && in sonypi_misc_read() 909 kfifo_len(&sonypi_device.fifo) != 0); in sonypi_misc_read() 932 if (kfifo_len(&sonypi_device.fifo)) in sonypi_misc_poll()
|
| /Linux-v5.4/drivers/media/platform/coda/ |
| D | coda.h | 325 return kfifo_len(&ctx->bitstream_fifo); in coda_get_bitstream_payload()
|
| /Linux-v5.4/drivers/net/wireless/marvell/libertas/ |
| D | main.c | 475 else if (kfifo_len(&priv->event_fifo)) in lbs_thread() 527 while (kfifo_len(&priv->event_fifo)) { in lbs_thread()
|
| D | cmd.c | 1388 if (!kfifo_len(&priv->event_fifo) && !priv->resp_len[priv->resp_idx]) in lbs_send_confirmsleep() 1420 if (kfifo_len(&priv->event_fifo) || priv->resp_len[priv->resp_idx]) { in lbs_ps_confirm_sleep()
|
| /Linux-v5.4/drivers/media/pci/meye/ |
| D | meye.c | 1309 if (kfifo_len(&meye.doneq) == 0 && file->f_flags & O_NONBLOCK) { in vidioc_dqbuf() 1315 kfifo_len(&meye.doneq) != 0) < 0) { in vidioc_dqbuf() 1415 if (kfifo_len(&meye.doneq)) in meye_poll()
|
| /Linux-v5.4/drivers/mtd/ |
| D | sm_ftl.c | 848 if (!kfifo_len(&zone->free_sectors)) { in sm_init_zone() 855 i %= (kfifo_len(&zone->free_sectors) / 2); in sm_init_zone()
|
| /Linux-v5.4/drivers/media/i2c/cx25840/ |
| D | cx25840-ir.c | 638 if (kfifo_len(&ir_state->rx_kfifo) >= CX25840_IR_RX_KFIFO_SIZE / 2) in cx25840_ir_irq_handler() 866 n = CX25840_IR_TX_KFIFO_SIZE - kfifo_len(ir_state->tx_kfifo); in cx25840_ir_tx_write()
|
| /Linux-v5.4/drivers/tty/ |
| D | nozomi.c | 943 if (kfifo_len(&dc->port[port].fifo_ul)) { in receive_flow_control() 947 kfifo_len(&dc->port[port].fifo_ul)); in receive_flow_control() 1814 rval = kfifo_len(&port->fifo_ul); in ntty_chars_in_buffer()
|
| D | n_gsm.c | 799 len = kfifo_len(dlci->fifo); in gsm_dlci_data_output() 3044 return TX_SIZE - kfifo_len(dlci->fifo); in gsmtty_write_room() 3052 return kfifo_len(dlci->fifo); in gsmtty_chars_in_buffer()
|
| /Linux-v5.4/drivers/platform/x86/ |
| D | sony-laptop.c | 366 if (kfifo_len(&sony_laptop_input.fifo) != 0) in do_sony_laptop_release_key() 4088 if ((kfifo_len(&sonypi_compat.fifo) == 0) && in sonypi_misc_read() 4093 kfifo_len(&sonypi_compat.fifo) != 0); in sonypi_misc_read() 4116 if (kfifo_len(&sonypi_compat.fifo)) in sonypi_misc_poll()
|