Searched refs:fifo8_num_used (Results 1 – 19 of 19) sorted by relevance
/openbmc/qemu/tests/unit/ |
H A D | test-fifo.c | 64 g_assert(fifo8_num_used(&fifo) == 2); in test_fifo8_pop_bufptr_wrap() 95 g_assert(fifo8_num_used(&fifo) == 2); in test_fifo8_pop_bufptr() 151 g_assert(fifo8_num_used(&fifo) == 8); in test_fifo8_peek_bufptr_wrap() 182 g_assert(fifo8_num_used(&fifo) == 4); in test_fifo8_peek_bufptr() 231 g_assert(fifo8_num_used(&fifo) == 0); in test_fifo8_pop_buf_wrap() 263 g_assert(fifo8_num_used(&fifo) == 0); in test_fifo8_pop_buf() 321 g_assert(fifo8_num_used(&fifo) == 8); in test_fifo8_peek_buf_wrap() 358 g_assert(fifo8_num_used(&fifo) == 4); in test_fifo8_peek_buf() 393 g_assert(fifo8_num_used(&fifo) == 1); in test_fifo8_peek() 431 g_assert(fifo8_num_used(&fifo) == 0); in test_fifo8_pushpop()
|
/openbmc/qemu/hw/scsi/ |
H A D | esp.c | 157 if (fifo8_num_used(&s->fifo) < 2) { in esp_update_drq() 304 cmdlen = fifo8_num_used(&s->cmdfifo); in do_command_phase() 505 if (fifo8_num_used(&s->cmdfifo) >= 1) { in esp_do_dma() 519 if (fifo8_num_used(&s->cmdfifo) == 1) { in esp_do_dma() 543 cmdlen = fifo8_num_used(&s->cmdfifo); in esp_do_dma() 698 if (fifo8_num_used(&s->fifo) < 2) { in esp_do_dma() 744 len = MIN(len, fifo8_num_used(&s->fifo)); in esp_nodma_ti_dataout() 774 if (fifo8_num_used(&s->cmdfifo) >= 1) { in esp_do_nodma() 794 if (fifo8_num_used(&s->cmdfifo) >= 1) { in esp_do_nodma() 829 cmdlen = fifo8_num_used(&s->cmdfifo); in esp_do_nodma() [all …]
|
/openbmc/qemu/hw/ssi/ |
H A D | allwinner-a10-spi.c | 224 if (fifo8_num_used(&s->rx_fifo) >= (AW_A10_SPI_FIFO_SIZE >> 2)) { in allwinner_a10_spi_update_irq() 230 if (fifo8_num_used(&s->rx_fifo) >= (AW_A10_SPI_FIFO_SIZE >> 1)) { in allwinner_a10_spi_update_irq() 266 if (fifo8_num_used(&s->tx_fifo) <= (AW_A10_SPI_FIFO_SIZE >> 2)) { in allwinner_a10_spi_update_irq() 292 trace_allwinner_a10_spi_flush_txfifo_begin(fifo8_num_used(&s->tx_fifo), in allwinner_a10_spi_flush_txfifo() 293 fifo8_num_used(&s->rx_fifo)); in allwinner_a10_spi_flush_txfifo() 340 trace_allwinner_a10_spi_flush_txfifo_end(fifo8_num_used(&s->tx_fifo), in allwinner_a10_spi_flush_txfifo() 341 fifo8_num_used(&s->rx_fifo)); in allwinner_a10_spi_flush_txfifo() 380 value = fifo8_num_used(&s->tx_fifo) << SPI_FIFO_STA_TF_CNT_SHIFT | in allwinner_a10_spi_read() 381 fifo8_num_used(&s->rx_fifo) << SPI_FIFO_STA_RF_CNT_SHIFT; in allwinner_a10_spi_read()
|
H A D | sifive_spi.c | 93 if (fifo8_num_used(&s->tx_fifo) < s->regs[R_TXMARK]) { in sifive_spi_update_irq() 99 if (fifo8_num_used(&s->rx_fifo) > s->regs[R_RXMARK]) { in sifive_spi_update_irq()
|
H A D | xlnx-versal-ospi.c | 723 size = MIN(fifo8_num_used(&s->rx_fifo), size); in ospi_rx_fifo_pop_stig_rd_data() 863 if (fifo8_num_used(&s->rx_sram) == RXFF_SZ) { in ospi_do_ind_read() 902 assert(fifo8_num_used(&s->tx_sram) >= len); in ospi_ind_write() 968 while (!ospi_ind_op_completed(op) && fifo8_num_used(&s->tx_sram) > 0) { in ospi_do_indirect_write() 970 end_b = next_b + MIN(fifo8_num_used(&s->tx_sram), pagesz); in ospi_do_indirect_write() 1109 if (size < 4 && fifo8_num_used(&s->rx_sram) >= 4) { in ospi_rx_sram_read() 1115 size = MIN(fifo8_num_used(&s->rx_sram), size); in ospi_rx_sram_read() 1157 size = MIN(fifo8_num_used(&s->rx_fifo), size); in ospi_do_dac_read() 1370 val = ((fifo8_num_used(&s->tx_sram) & 0xFFFF) << 16) | in sram_fill_reg_post_read() 1371 (fifo8_num_used(&s->rx_sram) & 0xFFFF); in sram_fill_reg_post_read()
|
H A D | bcm2835_spi.c | 64 if (fifo8_num_used(&s->rx_fifo) >= FIFO_SIZE_3_4) { in bcm2835_spi_update_rx_flags()
|
H A D | ibex_spi_host.c | 277 data = FIELD_DP32(data, STATUS, TXQD, fifo8_num_used(&s->tx_fifo) / 4); in ibex_spi_host_transfer()
|
/openbmc/qemu/util/ |
H A D | fifo8.c | 133 len = MIN(len, fifo8_num_used(fifo)); in fifo8_peekpop_buf() 175 uint32_t fifo8_num_used(Fifo8 *fifo) in fifo8_num_used() function
|
/openbmc/qemu/include/qemu/ |
H A D | fifo32.h | 76 return DIV_ROUND_UP(fifo8_num_used(&fifo->fifo), sizeof(uint32_t)); in fifo32_num_used()
|
H A D | fifo8.h | 214 uint32_t fifo8_num_used(Fifo8 *fifo);
|
/openbmc/qemu/hw/net/ |
H A D | allwinner_emac.c | 346 if (len > fifo8_num_used(fifo)) { in aw_emac_write() 347 len = fifo8_num_used(fifo); in aw_emac_write()
|
/openbmc/qemu/hw/char/ |
H A D | goldfish_tty.c | 53 value = fifo8_num_used(&s->rx_fifo); in goldfish_tty_read()
|
H A D | sifive_uart.c | 89 fifo8_num_used(&s->tx_fifo), &numptr); in sifive_uart_xmit()
|
/openbmc/qemu/chardev/ |
H A D | msmouse.c | 79 avail = fifo8_num_used(&mouse->outbuf); in DECLARE_INSTANCE_CHECKER()
|
/openbmc/qemu/hw/i3c/ |
H A D | remote-i3c.c | 95 uint32_t num_bytes = fifo8_num_used(&i3c->tx_fifo); in remote_i3c_chr_send_bytes()
|
H A D | aspeed_i3c.c | 797 uint8_t num_slices = fifo8_num_used(&s->ibi_data.ibi_intermediate_queue) / in aspeed_i3c_device_ibi_queue_push() 827 if (fifo8_num_used(&s->ibi_data.ibi_intermediate_queue) < in aspeed_i3c_device_ibi_queue_push() 832 fifo8_num_used(&s->ibi_data.ibi_intermediate_queue)); in aspeed_i3c_device_ibi_queue_push()
|
/openbmc/qemu/hw/ppc/ |
H A D | pnv_i2c.c | 115 fifo8_num_used(&i2c->fifo)); in pnv_i2c_fifo_update_count()
|
/openbmc/qemu/ui/ |
H A D | console-vc.c | 285 avail = fifo8_num_used(&s->out_fifo); in kbd_send_chars()
|
H A D | gtk.c | 1818 avail = fifo8_num_used(&vc->vte.out_fifo); in gd_vc_send_chars()
|