Home
last modified time | relevance | path

Searched refs:kfifo_is_empty (Results 1 – 25 of 71) sorted by relevance

123

/linux/lib/tests/
H A Dkfifo_kunit.c26 KUNIT_EXPECT_TRUE(test, kfifo_is_empty(&my_fifo)); in kfifo_test_reset_should_clear_the_fifo()
34 KUNIT_EXPECT_TRUE(test, kfifo_is_empty(&my_fifo)); in kfifo_test_define_should_define_an_empty_fifo()
115 KUNIT_EXPECT_TRUE(test, kfifo_is_empty(&my_fifo)); in kfifo_test_out_should_pop_multiple_elements()
145 KUNIT_EXPECT_EQ(test, kfifo_is_empty(&my_fifo1), in kfifo_test_define_should_equal_declare_init()
146 kfifo_is_empty(&my_fifo2)); in kfifo_test_define_should_equal_declare_init()
/linux/drivers/tty/hvc/
H A Dhvc_dcc.c192 if (smp_processor_id() || (!kfifo_is_empty(&outbuf))) { in hvc_dcc0_put_chars()
232 if (smp_processor_id() || (!kfifo_is_empty(&inbuf))) { in hvc_dcc0_get_chars()
/linux/drivers/soc/aspeed/
H A Daspeed-lpc-snoop.c120 if (kfifo_is_empty(&chan->fifo)) { in snoop_file_read()
124 !kfifo_is_empty(&chan->fifo)); in snoop_file_read()
141 return !kfifo_is_empty(&chan->fifo) ? EPOLLIN : 0; in snoop_file_poll()
/linux/drivers/gnss/
H A Dcore.c96 while (kfifo_is_empty(&gdev->read_fifo)) { in gnss_read()
107 !kfifo_is_empty(&gdev->read_fifo)); in gnss_read()
194 if (!kfifo_is_empty(&gdev->read_fifo)) in gnss_poll()
/linux/include/linux/
H A Dkfifo.h245 * kfifo_is_empty - returns true if the fifo is empty
248 #define kfifo_is_empty(fifo) \ macro
265 __ret = kfifo_is_empty(fifo); \
280 __ret = kfifo_is_empty(fifo); \
465 __ret = !kfifo_is_empty(__tmp); \
504 __ret = !kfifo_is_empty(__tmp); \
/linux/drivers/memstick/host/
H A Dr592.c327 if (!kfifo_is_empty(&dev->pio_fifo)) { in r592_write_fifo_pio()
342 WARN_ON(!kfifo_is_empty(&dev->pio_fifo)); in r592_write_fifo_pio()
362 if (kfifo_is_empty(&dev->pio_fifo)) in r592_flush_fifo_write()
382 if (!kfifo_is_empty(&dev->pio_fifo)) { in r592_read_fifo_pio()
388 if (!kfifo_is_empty(&dev->pio_fifo)) in r592_read_fifo_pio()
/linux/drivers/net/wireless/ralink/rt2x00/
H A Drt2800mmio.c320 if (!kfifo_is_empty(&rt2x00dev->txstatus_fifo)) in rt2800mmio_txstatus_tasklet()
351 if (!kfifo_is_empty(&rt2x00dev->txstatus_fifo)) in rt2800mmio_interrupt()
800 while (!kfifo_is_empty(&rt2x00dev->txstatus_fifo) || in rt2800mmio_work_txdone()
826 if (!kfifo_is_empty(&rt2x00dev->txstatus_fifo)) in rt2800mmio_tx_sta_fifo_timeout()
/linux/drivers/most/
H A Dmost_cdev.c249 (!kfifo_is_empty(&c->fifo) || in comp_read()
290 if (!c->dev || !kfifo_is_empty(&c->fifo)) in comp_poll()
293 if (!c->dev || !kfifo_is_empty(&c->fifo) || ch_has_mbo(c)) in comp_poll()
/linux/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_interrupt.c127 if (kfifo_is_empty(&node->ih_fifo)) in dequeue_ih_ring_entry()
/linux/drivers/iio/
H A Dindustrialio-event.c112 if (!kfifo_is_empty(&ev_int->det_events)) in iio_event_poll()
136 if (kfifo_is_empty(&ev_int->det_events)) { in iio_event_chrdev_read()
141 !kfifo_is_empty(&ev_int->det_events) || in iio_event_chrdev_read()
/linux/drivers/counter/
H A Dcounter-chrdev.c79 if (kfifo_is_empty(&counter->events)) { in counter_chrdev_read()
84 !kfifo_is_empty(&counter->events) || in counter_chrdev_read()
114 if (!kfifo_is_empty(&counter->events)) in counter_chrdev_poll()
/linux/drivers/tty/serial/
H A Drsci.c258 if (kfifo_is_empty(&tport->xmit_fifo)) in rsci_transmit_chars()
287 if (kfifo_is_empty(&tport->xmit_fifo)) { in rsci_transmit_chars()
H A Dsunhv.c59 while (!kfifo_is_empty(&tport->xmit_fifo)) { in transmit_chars_write()
210 if (kfifo_is_empty(&tport->xmit_fifo) || uart_tx_stopped(port)) in transmit_chars()
H A Dtimbuart.c119 if (kfifo_is_empty(&tport->xmit_fifo) || uart_tx_stopped(port)) in timbuart_handle_tx_port()
141 if (!kfifo_is_empty(&tport->xmit_fifo)) in timbuart_handle_tx_port()
H A Dserial_port.c27 !kfifo_is_empty(&port->state->port.xmit_fifo); in __serial_port_busy()
H A Dmilbeaut_usio.c90 if (kfifo_is_empty(&tport->xmit_fifo) || uart_tx_stopped(port)) { in mlb_usio_tx_chars()
117 if (kfifo_is_empty(&tport->xmit_fifo)) in mlb_usio_tx_chars()
H A Dsunplus-uart.c212 if (kfifo_is_empty(&tport->xmit_fifo) || uart_tx_stopped(port)) { in transmit_chars()
229 if (kfifo_is_empty(&tport->xmit_fifo)) in transmit_chars()
H A Dmen_z135_uart.c303 if (kfifo_is_empty(&tport->xmit_fifo)) in men_z135_handle_tx()
356 if (!kfifo_is_empty(&tport->xmit_fifo)) in men_z135_handle_tx()
H A Ducc_uart.c361 if (kfifo_is_empty(&tport->xmit_fifo) || uart_tx_stopped(port)) { in qe_uart_tx_pump()
370 !kfifo_is_empty(&tport->xmit_fifo)) { in qe_uart_tx_pump()
388 if (kfifo_is_empty(&tport->xmit_fifo)) { in qe_uart_tx_pump()
/linux/drivers/platform/surface/
H A Dsurface_aggregator_cdev.c593 if (kfifo_is_empty(&client->buffer)) { in ssam_cdev_read()
600 !kfifo_is_empty(&client->buffer) || in ssam_cdev_read()
651 if (!kfifo_is_empty(&client->buffer)) in ssam_cdev_poll()
H A Dsurface_dtx.c478 if (kfifo_is_empty(&client->buffer)) { in surface_dtx_read()
485 !kfifo_is_empty(&client->buffer) || in surface_dtx_read()
536 if (!kfifo_is_empty(&client->buffer)) in surface_dtx_poll()
/linux/drivers/hid/
H A Dhid-sensor-custom.c653 if (kfifo_is_empty(&sensor_inst->data_fifo)) { in hid_sensor_custom_read()
658 !kfifo_is_empty(&sensor_inst->data_fifo)); in hid_sensor_custom_read()
708 if (!kfifo_is_empty(&sensor_inst->data_fifo)) in hid_sensor_custom_poll()
H A Dhid-debug.c3714 if (kfifo_is_empty(&list->hid_debug_fifo)) { in hid_debug_events_read()
3718 while (kfifo_is_empty(&list->hid_debug_fifo)) { in hid_debug_events_read()
3771 if (!kfifo_is_empty(&list->hid_debug_fifo)) in hid_debug_events_poll()
/linux/drivers/tty/
H A Dmxser.c910 is_empty = kfifo_is_empty(&info->port.xmit_fifo); in mxser_write()
938 if (kfifo_is_empty(&info->port.xmit_fifo) || tty->flow.stopped || in mxser_flush_chars()
1345 if (!kfifo_is_empty(&info->port.xmit_fifo)) in mxser_start()
1577 if (kfifo_is_empty(&port->port.xmit_fifo) || tty->flow.stopped || in mxser_transmit_chars()
1597 if (kfifo_is_empty(&port->port.xmit_fifo)) in mxser_transmit_chars()
/linux/drivers/crypto/caam/
H A Dcaamrng.c160 if (kfifo_is_empty(&ctx->fifo)) in caam_read()

123