Home
last modified time | relevance | path

Searched refs:read_count (Results 1 – 12 of 12) sorted by relevance

/qemu/hw/char/
H A Dbcm2835_aux.c57 if ((s->ier & RX_INT) && s->read_count != 0) { in bcm2835_aux_update()
81 if (s->read_count > 0) { in bcm2835_aux_read()
82 s->read_count--; in bcm2835_aux_read()
101 if ((s->iir & RX_INT) && s->read_count != 0) { in bcm2835_aux_read()
121 if (s->read_count != 0) { in bcm2835_aux_read()
139 if (s->read_count > 0) { in bcm2835_aux_read()
141 assert(s->read_count <= BCM2835_AUX_RX_FIFO_LEN); in bcm2835_aux_read()
142 res |= ((uint32_t)s->read_count) << 16; /* rx fifo fill level */ in bcm2835_aux_read()
188 s->read_count = 0; in bcm2835_aux_write()
224 return BCM2835_AUX_RX_FIFO_LEN - s->read_count; in bcm2835_aux_can_receive()
[all …]
H A Dpl011.c162 s->read_count = 0; in pl011_reset_rx_fifo()
184 slot = (s->read_pos + s->read_count) & (pipe_depth - 1); in pl011_fifo_rx_put()
186 s->read_count++; in pl011_fifo_rx_put()
188 trace_pl011_fifo_rx_put(value, s->read_count, pipe_depth); in pl011_fifo_rx_put()
189 if (s->read_count == pipe_depth) { in pl011_fifo_rx_put()
193 if (s->read_count == s->read_trigger) { in pl011_fifo_rx_put()
255 if (s->read_count > 0) { in pl011_read_rxdata()
256 s->read_count--; in pl011_read_rxdata()
259 if (s->read_count == 0) { in pl011_read_rxdata()
262 if (s->read_count == s->read_trigger - 1) { in pl011_read_rxdata()
[all …]
H A Dtrace-events66 pl011_fifo_rx_put(uint32_t c, unsigned read_count, size_t rx_fifo_depth) "RX FIFO push char [0x%02x…
/qemu/rust/hw/char/pl011/src/
H A Ddevice.rs96 pub read_count: u32, field
290 if self.read_count > 0 { in read_data_register()
291 self.read_count -= 1; in read_data_register()
294 if self.read_count == 0 { in read_data_register()
297 if self.read_count + 1 == self.read_trigger { in read_data_register()
408 self.read_count = 0; in reset_rx_fifo()
445 let slot = (self.read_pos + self.read_count) & (depth - 1); in fifo_rx_put()
447 self.read_count += 1; in fifo_rx_put()
449 if self.read_count == depth { in fifo_rx_put()
453 if self.read_count in fifo_rx_put()
[all...]
H A Ddevice_class.rs65 vmstate_of!(PL011Registers, read_count),
/qemu/tests/tcg/multiarch/system/
H A Dvalidate-memory-counts.py30 read_count = 0
39 read_count = int(line.split(':')[1].strip())
42 return start_address, end_address, read_count, write_count
/qemu/tests/unit/
H A Dtest-char.c23 int read_count; member
43 return sizeof(h->read_buf) - h->read_count; in fe_can_read()
52 memcpy(h->read_buf + h->read_count, buf, size); in fe_read()
53 h->read_count += size; in fe_read()
236 g_assert_cmpint(h1.read_count, ==, 0); in char_mux_test()
237 g_assert_cmpint(h2.read_count, ==, 6); in char_mux_test()
239 h2.read_count = 0; in char_mux_test()
264 g_assert_cmpint(h2.read_count, ==, 0); in char_mux_test()
265 g_assert_cmpint(h1.read_count, ==, 6); in char_mux_test()
267 h1.read_count = 0; in char_mux_test()
[all …]
/qemu/include/hw/char/
H A Dbcm2835_aux.h31 uint8_t read_pos, read_count; member
H A Dpl011.h48 int read_count; member
/qemu/qga/
H A Dcommands-posix.c548 size_t read_count; in guest_file_read_unsafe() local
561 read_count = fread(buf, 1, count, fh); in guest_file_read_unsafe()
565 buf[read_count] = 0; in guest_file_read_unsafe()
567 read_data->count = read_count; in guest_file_read_unsafe()
569 if (read_count) { in guest_file_read_unsafe()
570 read_data->buf_b64 = g_base64_encode(buf, read_count); in guest_file_read_unsafe()
H A Dcommands-win32.c353 DWORD read_count; in guest_file_read_unsafe() local
356 is_ok = ReadFile(fh, buf, count, &read_count, NULL); in guest_file_read_unsafe()
360 buf[read_count] = 0; in guest_file_read_unsafe()
362 read_data->count = (size_t)read_count; in guest_file_read_unsafe()
363 read_data->eof = read_count == 0; in guest_file_read_unsafe()
365 if (read_count != 0) { in guest_file_read_unsafe()
366 read_data->buf_b64 = g_base64_encode(buf, read_count); in guest_file_read_unsafe()
/qemu/hw/9pfs/
H A D9p.c2311 uint64_t read_count; in v9fs_xattr_read() local
2315 read_count = 0; in v9fs_xattr_read()
2317 read_count = fidp->fs.xattr.len - off; in v9fs_xattr_read()
2319 if (read_count > max_count) { in v9fs_xattr_read()
2320 read_count = max_count; in v9fs_xattr_read()
2322 err = pdu_marshal(pdu, offset, "d", read_count); in v9fs_xattr_read()
2328 v9fs_init_qiov_from_pdu(&qiov_full, pdu, offset, read_count, false); in v9fs_xattr_read()
2331 read_count); in v9fs_xattr_read()