/openbmc/linux/samples/kfifo/ |
H A 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()
|
H A 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()
|
H A 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()
|
H A D | record-example.c | 93 printk(KERN_INFO "fifo len: %u\n", kfifo_len(&test)); in testfunc()
|
/openbmc/linux/drivers/media/platform/amphion/ |
H A D | vpu_msgs.c | 257 if (kfifo_len(&inst->msg_fifo) < bytes) in vpu_inst_receive_msg() 355 while (kfifo_len(&core->msg_fifo) >= SIZE) { in vpu_core_run_msg_work() 384 if (kfifo_len(&core->msg_fifo) >= bytes) in vpu_msg_delayed_work() 394 if (inst->workqueue && kfifo_len(&inst->msg_fifo) >= bytes) in vpu_msg_delayed_work()
|
H A D | vpu_dbg.c | 184 num = scnprintf(str, sizeof(str), "kfifo len = 0x%x\n", kfifo_len(&inst->msg_fifo)); in vpu_dbg_instance() 266 num = scnprintf(str, sizeof(str), "kfifo len = 0x%x\n", kfifo_len(&core->msg_fifo)); in vpu_dbg_core()
|
/openbmc/linux/include/linux/ |
H A D | kfifo.h | 233 #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) : \
|
/openbmc/linux/drivers/usb/host/ |
H A D | xhci-dbgtty.c | 32 len = kfifo_len(&port->port.xmit_fifo); in dbc_kfifo_to_req() 244 port->tx_boundary = kfifo_len(&port->port.xmit_fifo); in dbc_tty_write() 301 chars = kfifo_len(&port->port.xmit_fifo); in dbc_tty_chars_in_buffer()
|
H A D | fhci.h | 485 return kfifo_len(kfifo) / sizeof(void *); in cq_howmany()
|
/openbmc/linux/drivers/mmc/core/ |
H A D | sdio_uart.c | 428 if (tty == NULL || !kfifo_len(xmit) || in sdio_uart_transmit_chars() 441 len = kfifo_len(xmit); in sdio_uart_transmit_chars() 789 return FIFO_SIZE - kfifo_len(&port->xmit_fifo); in sdio_uart_write_room() 795 return kfifo_len(&port->xmit_fifo); in sdio_uart_chars_in_buffer()
|
/openbmc/linux/sound/usb/line6/ |
H A D | driver.c | 575 while (kfifo_len(&line6->messages.fifo) == 0) { in line6_hwdep_read() 583 kfifo_len(&line6->messages.fifo) != 0); in line6_hwdep_read() 637 rv = kfifo_len(&line6->messages.fifo) == 0 ? 0 : EPOLLIN | EPOLLRDNORM; in line6_hwdep_poll()
|
/openbmc/linux/drivers/usb/serial/ |
H A D | oti6858.c | 281 count = kfifo_len(&port->write_fifo); in send_data() 387 chars = kfifo_len(&port->write_fifo); in oti6858_chars_in_buffer() 741 count = kfifo_len(&port->write_fifo); in oti6858_read_int_callback()
|
H A 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()
|
H A D | keyspan_pda.c | 481 count = kfifo_len(&port->write_fifo); in keyspan_pda_write_start()
|
/openbmc/linux/drivers/usb/gadget/function/ |
H A D | u_serial.c | 211 len = kfifo_len(&port->port_write_buf); in gs_send_packet() 674 cond = p->port_usb == NULL || !kfifo_len(&p->port_write_buf) || in gs_close_flush_done() 706 if (kfifo_len(&port->port_write_buf) > 0 && gser) { in gs_close() 812 chars = kfifo_len(&port->port_write_buf); in gs_chars_in_buffer()
|
/openbmc/linux/drivers/iio/buffer/ |
H A D | kfifo_buf.c | 126 samples = kfifo_len(&kf->kf); in iio_kfifo_buf_data_available()
|
/openbmc/linux/drivers/tty/serial/ |
H A D | kgdb_nmi.c | 200 !kfifo_len(&priv->fifo))) in kgdb_nmi_tty_receiver()
|
/openbmc/linux/drivers/char/ |
H A 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()
|
/openbmc/linux/drivers/media/platform/chips-media/ |
H A D | coda.h | 344 return kfifo_len(&ctx->bitstream_fifo); in coda_get_bitstream_payload()
|
/openbmc/linux/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_smi_events.c | 97 to_copy = kfifo_len(&client->fifo); in kfd_smi_ev_read()
|
/openbmc/linux/drivers/net/wireless/marvell/libertas/ |
H A D | main.c | 474 else if (kfifo_len(&priv->event_fifo)) in lbs_thread() 526 while (kfifo_len(&priv->event_fifo)) { in lbs_thread()
|
H A D | cmd.c | 1396 if (!kfifo_len(&priv->event_fifo) && !priv->resp_len[priv->resp_idx]) in lbs_send_confirmsleep() 1428 if (kfifo_len(&priv->event_fifo) || priv->resp_len[priv->resp_idx]) { in lbs_ps_confirm_sleep()
|
/openbmc/linux/drivers/mtd/ |
H A D | sm_ftl.c | 861 if (!kfifo_len(&zone->free_sectors)) { in sm_init_zone() 868 i %= (kfifo_len(&zone->free_sectors) / 2); in sm_init_zone()
|
/openbmc/linux/drivers/media/i2c/cx25840/ |
H A D | cx25840-ir.c | 618 if (kfifo_len(&ir_state->rx_kfifo) >= CX25840_IR_RX_KFIFO_SIZE / 2) in cx25840_ir_irq_handler() 846 n = CX25840_IR_TX_KFIFO_SIZE - kfifo_len(ir_state->tx_kfifo); in cx25840_ir_tx_write()
|
/openbmc/linux/drivers/tty/ |
H A D | nozomi.c | 928 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()
|