Home
last modified time | relevance | path

Searched refs:kfifo_len (Results 1 – 25 of 36) sorted by relevance

12

/Linux-v5.15/samples/kfifo/
Ddma-example.c45 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()
Dinttype-example.c65 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()
Dbytestream-example.c68 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()
Drecord-example.c93 printk(KERN_INFO "fifo len: %u\n", kfifo_len(&test)); in testfunc()
/Linux-v5.15/include/linux/
Dkfifo.h233 #define kfifo_len(fifo) \ macro
287 kfifo_len(__tmpq) > __tmpq->kfifo.mask; \
299 unsigned int __avail = kfifo_size(__tmpq) - kfifo_len(__tmpq); \
333 (!__recsize) ? kfifo_len(__tmp) * sizeof(*__tmp->type) : \
/Linux-v5.15/sound/usb/line6/
Ddriver.c569 while (kfifo_len(&line6->messages.fifo) == 0) { in line6_hwdep_read()
577 kfifo_len(&line6->messages.fifo) != 0); in line6_hwdep_read()
631 rv = kfifo_len(&line6->messages.fifo) == 0 ? 0 : EPOLLIN | EPOLLRDNORM; in line6_hwdep_poll()
/Linux-v5.15/drivers/mmc/core/
Dsdio_uart.c441 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.15/drivers/usb/host/
Dxhci-dbgtty.c32 len = kfifo_len(&port->write_fifo); in dbc_send_packet()
263 chars = kfifo_len(&port->write_fifo); in dbc_tty_chars_in_buffer()
Dfhci.h485 return kfifo_len(kfifo) / sizeof(void *); in cq_howmany()
/Linux-v5.15/drivers/usb/serial/
Doti6858.c280 count = kfifo_len(&port->write_fifo); in send_data()
386 chars = kfifo_len(&port->write_fifo); in oti6858_chars_in_buffer()
739 count = kfifo_len(&port->write_fifo); in oti6858_read_int_callback()
Dgeneric.c166 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()
Dkeyspan_pda.c487 count = kfifo_len(&port->write_fifo); in keyspan_pda_write_start()
/Linux-v5.15/drivers/iio/buffer/
Dkfifo_buf.c126 samples = kfifo_len(&kf->kf); in iio_kfifo_buf_data_available()
/Linux-v5.15/drivers/usb/gadget/function/
Du_serial.c207 len = kfifo_len(&port->port_write_buf); in gs_send_packet()
663 cond = p->port_usb == NULL || !kfifo_len(&p->port_write_buf) || in gs_close_flush_done()
695 if (kfifo_len(&port->port_write_buf) > 0 && gser) { in gs_close()
801 chars = kfifo_len(&port->port_write_buf); in gs_chars_in_buffer()
/Linux-v5.15/drivers/gpu/drm/amd/amdkfd/
Dkfd_smi_events.c92 to_copy = kfifo_len(&client->fifo); in kfd_smi_ev_read()
/Linux-v5.15/drivers/tty/serial/
Dkgdb_nmi.c200 !kfifo_len(&priv->fifo))) in kgdb_nmi_tty_receiver()
/Linux-v5.15/drivers/char/
Dsonypi.c904 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.15/drivers/media/platform/coda/
Dcoda.h344 return kfifo_len(&ctx->bitstream_fifo); in coda_get_bitstream_payload()
/Linux-v5.15/drivers/media/pci/meye/
Dmeye.c1309 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.15/drivers/net/wireless/marvell/libertas/
Dmain.c475 else if (kfifo_len(&priv->event_fifo)) in lbs_thread()
527 while (kfifo_len(&priv->event_fifo)) { in lbs_thread()
Dcmd.c1388 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.15/drivers/mtd/
Dsm_ftl.c861 if (!kfifo_len(&zone->free_sectors)) { in sm_init_zone()
868 i %= (kfifo_len(&zone->free_sectors) / 2); in sm_init_zone()
/Linux-v5.15/drivers/media/i2c/cx25840/
Dcx25840-ir.c638 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.15/drivers/tty/
Dnozomi.c928 if (kfifo_len(&dc->port[port].fifo_ul)) { in receive_flow_control()
932 kfifo_len(&dc->port[port].fifo_ul)); in receive_flow_control()
1790 return kfifo_len(&port->fifo_ul); in ntty_chars_in_buffer()
Dn_gsm.c800 len = kfifo_len(&dlci->fifo); in gsm_dlci_data_output()
3066 return TX_SIZE - kfifo_len(&dlci->fifo); in gsmtty_write_room()
3074 return kfifo_len(&dlci->fifo); in gsmtty_chars_in_buffer()

12