/qemu/hw/sensor/ |
H A D | dps310.c | 26 uint8_t len; member 140 if (s->len == 1) { in dps310_rx() 151 if (s->len == 0) { in dps310_tx() 157 s->len++; in dps310_tx() 158 } else if (s->len == 1) { in dps310_tx() 172 s->len = 0; in dps310_event() 175 if (s->len != 1) { in dps310_event() 192 VMSTATE_UINT8(len, DPS310State),
|
/qemu/gdbstub/ |
H A D | internals.h | 110 int gdb_put_packet_binary(const char *buf, int len, bool dump); 111 void gdb_hextomem(GByteArray *mem, const char *buf, int len); 112 void gdb_memtohex(GString *buf, const uint8_t *mem, int len); 113 void gdb_memtox(GString *buf, const char *mem, int len); 162 void gdb_put_buffer(const uint8_t *buf, int len); 224 int gdb_breakpoint_insert(CPUState *cs, int type, vaddr addr, vaddr len); 225 int gdb_breakpoint_remove(CPUState *cs, int type, vaddr addr, vaddr len); 241 uint8_t *buf, int len, bool is_write);
|
H A D | user.c | 148 void gdb_put_buffer(const uint8_t *buf, int len) in gdb_put_buffer() argument 152 while (len > 0) { in gdb_put_buffer() 153 ret = send(gdbserver_user_state.fd, buf, len, 0); in gdb_put_buffer() 160 len -= ret; in gdb_put_buffer() 347 socklen_t len; in gdb_accept_tcp() local 351 len = sizeof(sockaddr); in gdb_accept_tcp() 670 return cpu_memory_rw_debug(cpu, addr, buf, len, is_write); in gdb_target_memory_rw_debug() 857 unsigned long offset, len; in gdb_handle_query_xfer_siginfo() local 861 len = get_param(params, 1)->val_ul; in gdb_handle_query_xfer_siginfo() 863 if (offset + len > gdbserver_user_state.siginfo_len) { in gdb_handle_query_xfer_siginfo() [all …]
|
/qemu/target/hexagon/ |
H A D | gen_printinsn.py | 31 str += ":".join(["%d"] * len(m.group(2))) 33 if ("S" in m.group(1)) and (len(m.group(2)) == 1): 35 elif ("C" in m.group(1)) and (len(m.group(2)) == 1): 53 slen = len(s) 81 if am and len(am.group(0)) == me - ms: 94 out += s[pos : len(s)] 137 if len(b) == 1: 143 elif len(b) == 2:
|
/qemu/scripts/simplebench/ |
H A D | simplebench.py | 80 count = len(runs) 95 if len(succeeded) == 1: 100 if len(succeeded) < count: 101 result['n-failed'] = count - len(succeeded) 128 n_tests = len(test_envs) * len(test_cases)
|
/qemu/tests/qtest/libqos/ |
H A D | i2c.h | 18 const uint8_t *buf, uint16_t len); 20 uint8_t *buf, uint16_t len); 50 void qi2c_send(QI2CDevice *dev, const uint8_t *buf, uint16_t len); 51 void qi2c_recv(QI2CDevice *dev, uint8_t *buf, uint16_t len); 54 uint8_t *buf, uint16_t len); 56 const uint8_t *buf, uint16_t len);
|
/qemu/hw/loongarch/ |
H A D | acpi-build.c | 124 for (i = 0; i < arch_ids->len; i++) { in build_madt() 169 hwaddr len, base, gap; in build_srat() local 212 len = machine->ram_size; in build_srat() 220 if (len >= gap) { in build_srat() 222 len -= gap; in build_srat() 227 if (len) { in build_srat() 229 base += len; in build_srat() 230 gap -= len; in build_srat() 456 facs = tables_blob->len; in acpi_build() 460 dsdt = tables_blob->len; in acpi_build() [all …]
|
/qemu/hw/input/ |
H A D | hid.c | 398 if (len > l) { in hid_pointer_poll() 401 if (len > l) { in hid_pointer_poll() 404 if (len > l) { in hid_pointer_poll() 407 if (len > l) { in hid_pointer_poll() 413 if (len > l) { in hid_pointer_poll() 416 if (len > l) { in hid_pointer_poll() 419 if (len > l) { in hid_pointer_poll() 422 if (len > l) { in hid_pointer_poll() 425 if (len > l) { in hid_pointer_poll() 444 if (len < 2) { in hid_keyboard_poll() [all …]
|
/qemu/hw/intc/ |
H A D | s390_flic_kvm.c | 61 void *buf, int len) in flic_get_all_irqs() argument 66 .attr = len, in flic_get_all_irqs() 117 .attr = len, in flic_enqueue_irqs() 265 len *= 2; in __get_all_irqs() 266 *buf = g_try_realloc(*buf, len); in __get_all_irqs() 418 int len = FLIC_SAVE_INITIAL_SIZE; in kvm_flic_save() local 425 buf = g_try_malloc0(len); in kvm_flic_save() 435 count = __get_all_irqs(flic, &buf, len); in kvm_flic_save() 467 uint64_t len = 0; in kvm_flic_load() local 482 buf = g_try_malloc0(len); in kvm_flic_load() [all …]
|
/qemu/tests/tcg/multiarch/linux/ |
H A D | linux-test.c | 77 int fd, i, len, ret; in test_file() local 104 if (len != (FILE_BUF_SIZE / 2)) in test_file() 111 if (len != (FILE_BUF_SIZE / 2)) in test_file() 120 if (len != FILE_BUF_SIZE) in test_file() 134 if (len != FILE_BUF_SIZE - FOFFSET) in test_file() 187 len = 0; in test_file() 197 len++; in test_file() 200 if (len != 4) in test_file() 292 socklen_t len, socklen; in test_socket() local 304 len = sizeof(val); in test_socket() [all …]
|
/qemu/bsd-user/freebsd/ |
H A D | os-sys.c | 115 static int oidfmt(int *oid, int len, char *fmt, uint32_t *kind) in oidfmt() argument 124 memcpy(qoid + 2, oid, len * sizeof(int)); in oidfmt() 127 i = sysctl(qoid, len + 2, buf, &j, 0, 0); in oidfmt() 159 size_t len; in h2g_old_sysctl() local 170 len = 0; in h2g_old_sysctl() 182 while (len < *holdlen) { in h2g_old_sysctl() 224 len += hlen; in h2g_old_sysctl() 338 size_t len = sizeof(lvalue); in do_freebsd_sysctl_oid() local 357 size_t len = sizeof(real_oid) / sizeof(int); in do_freebsd_sysctl_oid() local 365 size_t len = sizeof(real_oid) / sizeof(int); in do_freebsd_sysctl_oid() local [all …]
|
/qemu/chardev/ |
H A D | spice.c | 25 while (len > 0) { in vmc_write() 27 last_out = MIN(len, can_write); in vmc_write() 33 len -= last_out; in vmc_write() 37 trace_spice_vmc_write(out, len + out); in vmc_write() 44 int bytes = MIN(len, scd->datalen); in vmc_read() 56 trace_spice_vmc_read(bytes, len); in vmc_read() 191 trace_spice_chr_discard_write(len); in spice_chr_write() 192 return len; in spice_chr_write() 196 s->datalen = len; in spice_chr_write() 198 read_bytes = len - s->datalen; in spice_chr_write() [all …]
|
/qemu/block/ |
H A D | qcow2-threads.c | 438 uint8_t *buf, size_t len, Error **errp); 444 size_t len; member 453 return data->func(data->block, data->offset, data->buf, data->len, NULL); in qcow2_encdec_pool_func() 458 uint64_t guest_offset, void *buf, size_t len, in qcow2_co_encdec() argument 466 .len = len, in qcow2_co_encdec() 476 assert(QEMU_IS_ALIGNED(len, sector_size)); in qcow2_co_encdec() 478 return len == 0 ? 0 : qcow2_co_process(bs, qcow2_encdec_pool_func, &arg); in qcow2_co_encdec() 509 uint64_t guest_offset, void *buf, size_t len) in qcow2_co_encrypt() argument 511 return qcow2_co_encdec(bs, host_offset, guest_offset, buf, len, in qcow2_co_encrypt() 523 uint64_t guest_offset, void *buf, size_t len) in qcow2_co_decrypt() argument [all …]
|
/qemu/tests/qtest/ |
H A D | ipmi-bt-test.c | 157 for (i = 0; i < len; i++) { in write_emu_msg() 163 rv = write(emu_fd, msg, len); in write_emu_msg() 164 g_assert(rv == len); in write_emu_msg() 167 static void get_emu_msg(uint8_t *msg, unsigned int *len) in get_emu_msg() argument 175 g_assert(outpos < *len); in get_emu_msg() 186 *len = outpos; in get_emu_msg() 261 unsigned int i, len, j = 0; in bt_cmd() local 290 len = bt_get_buf(); in bt_cmd() 291 g_assert(len >= 4); in bt_cmd() 294 len--; in bt_cmd() [all …]
|
/qemu/migration/ |
H A D | savevm.c | 225 uint32_t len; member 375 state->len = 0; in configuration_post_load() 388 uint8_t len; in get_capability() local 1210 size_t len; in qemu_savevm_send_recv_bitmap() local 1838 switch (len) { in loadvm_postcopy_handle_advise() 1968 if (len % 16) { in loadvm_postcopy_ram_handle_discard() 1973 while (len) { in loadvm_postcopy_ram_handle_discard() 1978 len -= 16; in loadvm_postcopy_ram_handle_discard() 2442 uint16_t len; in loadvm_process_command() local 2460 if (mig_cmd_args[cmd].len != -1 && mig_cmd_args[cmd].len != len) { in loadvm_process_command() [all …]
|
/qemu/include/exec/ |
H A D | cpu-common.h | 134 hwaddr len, bool is_write); 136 void *buf, hwaddr len) in cpu_physical_memory_read() argument 138 cpu_physical_memory_rw(addr, buf, len, false); in cpu_physical_memory_read() 141 const void *buf, hwaddr len) in cpu_physical_memory_write() argument 143 cpu_physical_memory_rw(addr, (void *)buf, len, true); in cpu_physical_memory_write() 148 void cpu_physical_memory_unmap(void *buffer, hwaddr len, 160 void cpu_flush_icache_range(hwaddr start, hwaddr len); 173 void *ptr, size_t len, bool is_write);
|
/qemu/include/semihosting/ |
H A D | uaccess.h | 53 target_ulong len, bool copy); 54 #define lock_user(type, p, len, copy) uaccess_lock_user(env, p, len, copy) argument 60 target_ulong addr, target_ulong len); 61 #define unlock_user(s, args, len) uaccess_unlock_user(env, s, args, len) argument
|
/qemu/hw/riscv/ |
H A D | virt-acpi-build.c | 124 for (int i = 0; i < arch_ids->len; i++) { in acpi_dsdt_add_cpus() 230 size_t len, aligned_len; in build_rhct() local 269 len = 8 + strlen(isa) + 1; in build_rhct() 270 aligned_len = (len % 2) ? (len + 1) : len; in build_rhct() 279 if (aligned_len != len) { in build_rhct() 335 len = 16; in build_rhct() 341 len += 4; in build_rhct() 346 len += 4; in build_rhct() 588 for (i = 0; i < cpu_list->len; ++i) { in build_srat() 631 dsdt = tables_blob->len; in virt_acpi_build() [all …]
|
/qemu/hw/virtio/ |
H A D | virtio.c | 65 uint32_t len; member 72 uint32_t len; member 864 uelem.len = len; in virtqueue_split_fill() 872 vq->used_elems[idx].len = len; in virtqueue_packed_fill() 885 .len = elem->len, in virtqueue_packed_fill_desc() 1132 if (len < desc.len) { in virtqueue_split_get_avail_bytes() 1271 if (len < desc.len) { in virtqueue_packed_get_avail_bytes() 1575 if (len < desc.len) { in virtqueue_split_pop() 1705 if (len < desc.len) { in virtqueue_packed_pop() 4087 if (len < desc.len) { in qmp_x_query_virtio_queue_element() [all …]
|
/qemu/hw/misc/macio/ |
H A D | cuda.c | 117 int packet_received, len; in cuda_update() local 180 len = s->data_out_index; in cuda_update() 182 cuda_receive_packet_from_host(s, s->data_out, len); in cuda_update() 191 trace_cuda_packet_send(len); in cuda_send_packet_to_host() 192 for (i = 0; i < len; i++) { in cuda_send_packet_to_host() 196 memcpy(s->data_in, data, len); in cuda_send_packet_to_host() 197 s->data_in_size = len; in cuda_send_packet_to_host() 400 desc->name, len); in cuda_receive_packet() 424 trace_cuda_packet_receive(len); in cuda_receive_packet_from_host() 425 for (i = 0; i < len; i++) { in cuda_receive_packet_from_host() [all …]
|
/qemu/hw/char/ |
H A D | terminal3270.c | 202 int len; in read_payload_3270() local 205 len = MIN(ccw_dstream_avail(get_cds(t)), t->in_len); in read_payload_3270() 206 ret = ccw_dstream_write_buf(get_cds(t), t->inv, len); in read_payload_3270() 210 t->in_len -= len; in read_payload_3270() 212 return len; in read_payload_3270() 248 int len = MIN(count, bound); in write_payload_3270() local 267 retval = ccw_dstream_read_buf(get_cds(t), &t->outv[out_len], len); in write_payload_3270() 272 out_len += len; in write_payload_3270() 280 len = MIN(count, bound); in write_payload_3270() 282 } while (len && retval >= 0); in write_payload_3270()
|
H A D | goldfish_tty.c | 74 int len; in goldfish_tty_cmd() local 95 len = s->data_len; in goldfish_tty_cmd() 97 while (len) { in goldfish_tty_cmd() 98 to_copy = MIN(GOLFISH_TTY_BUFFER_SIZE, len); in goldfish_tty_cmd() 104 len -= to_copy; in goldfish_tty_cmd() 109 len = s->data_len; in goldfish_tty_cmd() 111 while (len && !fifo8_is_empty(&s->rx_fifo)) { in goldfish_tty_cmd() 112 buf = (uint8_t *)fifo8_pop_buf(&s->rx_fifo, len, &to_copy); in goldfish_tty_cmd() 116 len -= to_copy; in goldfish_tty_cmd()
|
/qemu/target/ppc/ |
H A D | gdbstub.c | 89 } else if (len == 4) { in ppc_maybe_bswap_register() 91 } else if (len == 8) { in ppc_maybe_bswap_register() 93 } else if (len == 16) { in ppc_maybe_bswap_register() 147 mem_buf = buf->data + buf->len - r; in ppc_cpu_gdb_read_register() 371 int len; in gdb_get_spr_reg() local 378 len = TARGET_LONG_SIZE; in gdb_get_spr_reg() 405 ppc_maybe_bswap_register(env, gdb_get_reg_ptr(buf, len), len); in gdb_get_spr_reg() 406 return len; in gdb_get_spr_reg() 414 int len; in gdb_set_spr_reg() local 421 len = TARGET_LONG_SIZE; in gdb_set_spr_reg() [all …]
|
/qemu/hw/core/ |
H A D | resetcontainer.c | 51 unsigned int len = rc->children->len; in resettable_container_child_foreach() local 53 for (unsigned int i = 0; i < len; i++) { in resettable_container_child_foreach() 56 assert(len == rc->children->len); in resettable_container_child_foreach()
|
/qemu/backends/ |
H A D | dbus-vmstate.c | 222 uint32_t len; in dbus_vmstate_post_load() local 226 len = g_data_input_stream_read_uint32(s, NULL, &err); in dbus_vmstate_post_load() 230 if (len >= 256) { in dbus_vmstate_post_load() 232 __func__, len); in dbus_vmstate_post_load() 239 if (bytes_read != len) { in dbus_vmstate_post_load() 243 id[len] = 0; in dbus_vmstate_post_load() 253 len = g_data_input_stream_read_uint32(s, NULL, &err); in dbus_vmstate_post_load() 254 if (len > DBUS_VMSTATE_SIZE_LIMIT) { in dbus_vmstate_post_load() 267 if (len > avail) { in dbus_vmstate_post_load() 270 __func__, id, avail, len); in dbus_vmstate_post_load() [all …]
|