Home
last modified time | relevance | path

Searched refs:fifo_depth (Results 1 – 5 of 5) sorted by relevance

/qemu/hw/ssi/
H A Dmss-spi.c108 s->fifo_depth = 32; in set_fifodepth()
110 s->fifo_depth = 16; in set_fifodepth()
112 s->fifo_depth = 8; in set_fifodepth()
151 s->fifo_depth = 4; in mss_spi_reset()
240 if (fifo32_num_used(&s->rx_fifo) == s->fifo_depth) { in spi_flush_txfifo()
246 if (fifo32_num_used(&s->rx_fifo) == (s->fifo_depth - 1)) { in spi_flush_txfifo()
248 } else if (fifo32_num_used(&s->rx_fifo) == s->fifo_depth) { in spi_flush_txfifo()
279 if (fifo32_num_used(&s->tx_fifo) == s->fifo_depth) { in spi_write()
284 if (fifo32_num_used(&s->tx_fifo) == (s->fifo_depth - 1)) { in spi_write()
286 } else if (fifo32_num_used(&s->tx_fifo) == s->fifo_depth) { in spi_write()
[all …]
/qemu/hw/audio/
H A Dpl041.c89 uint32_t fifo_depth; /* FIFO depth in non-compact mode */ member
126 switch (s->fifo_depth) { in pl041_compute_periphid3()
179 if (fifo->level < s->fifo_depth) { in pl041_fifo1_write()
207 if ((fifo->level + 2) < s->fifo_depth) { in pl041_fifo1_write()
242 if (fifo->level >= (s->fifo_depth / 2)) { in pl041_fifo1_write()
246 if (fifo->level >= s->fifo_depth) { in pl041_fifo1_write()
262 if (fifo->level >= (s->fifo_depth / 2)) { in pl041_fifo1_transmit()
292 if (fifo->level <= (s->fifo_depth / 2)) { in pl041_fifo1_transmit()
547 switch (s->fifo_depth) { in pl041_realize()
563 s->fifo_depth); in pl041_realize()
[all …]
/qemu/hw/char/
H A Dpl011.c251 unsigned fifo_depth = pl011_get_fifo_depth(s); in pl011_read_rxdata() local
257 s->read_pos = (s->read_pos + 1) & (fifo_depth - 1); in pl011_read_rxdata()
265 trace_pl011_read_fifo(s->read_count, fifo_depth); in pl011_read_rxdata()
490 unsigned fifo_depth = pl011_get_fifo_depth(s); in pl011_can_receive() local
491 unsigned fifo_available = fifo_depth - s->read_count; in pl011_can_receive()
503 trace_pl011_can_receive(s->lcr, s->read_count, fifo_depth, fifo_available); in pl011_can_receive()
/qemu/include/hw/ssi/
H A Dmss-spi.h52 int fifo_depth; member
/qemu/rust/hw/char/pl011/src/
H A Ddevice.rs292 self.read_pos = (self.read_pos + 1) & (self.fifo_depth() - 1); in read_data_register()
433 pub fn fifo_depth(&self) -> u32 { in fifo_depth() method
443 let depth = self.fifo_depth(); in fifo_rx_put()
583 regs.fifo_depth() - regs.read_count in can_receive()