Home
last modified time | relevance | path

Searched refs:len (Results 126 – 150 of 1208) sorted by relevance

12345678910>>...49

/qemu/util/
H A Dfilemonitor-inotify.c60 int len; in qemu_file_monitor_watch() local
69 len = read(mon->fd, buf, sizeof(buf)); in qemu_file_monitor_watch()
71 if (len < 0) { in qemu_file_monitor_watch()
83 while (used < len) { in qemu_file_monitor_watch()
96 assert(len - used - sizeof(struct inotify_event) >= ev->len); in qemu_file_monitor_watch()
98 name = ev->len ? ev->name : ""; in qemu_file_monitor_watch()
104 used += sizeof(struct inotify_event) + ev->len; in qemu_file_monitor_watch()
140 for (i = 0; i < dir->watches->len; i++) { in qemu_file_monitor_watch()
166 for (i = 0; i < dir->watches->len; i++) { in qemu_file_monitor_dir_free()
324 for (i = 0; i < dir->watches->len; i++) { in qemu_file_monitor_remove_watch()
[all …]
/qemu/hw/i2c/
H A Dsmbus_master.c110 int len, bool recv_len, bool send_cmd) in smbus_read_block() argument
130 rlen = len; in smbus_read_block()
132 if (rlen > len) { in smbus_read_block()
144 int len, bool send_len) in smbus_write_block() argument
148 if (len > 32) { in smbus_write_block()
149 len = 32; in smbus_write_block()
157 i2c_send(bus, len); in smbus_write_block()
159 for (i = 0; i < len; i++) { in smbus_write_block()
/qemu/hw/xen/
H A Dxen_pt.c108 if ((len != 1) && (len != 2) && (len != 4)) { in xen_pt_pci_config_access_check()
115 if (addr & (len - 1)) { in xen_pt_pci_config_access_check()
171 memset(&val, 0xff, len); in xen_pt_pci_read_config()
182 emul_len = len; in xen_pt_pci_read_config()
242 XEN_PT_LOG_CONFIG(d, addr, val, len); in xen_pt_pci_read_config()
264 XEN_PT_LOG_CONFIG(d, addr, val, len); in xen_pt_pci_write_config()
278 addr, len); in xen_pt_pci_write_config()
298 memset(&read_val, 0xff, len); in xen_pt_pci_write_config()
319 emul_len = len; in xen_pt_pci_write_config()
416 len = 0; in xen_pt_pci_write_config()
[all …]
/qemu/system/
H A Ddevice_tree.c182 gsize len; in read_fstree() local
251 int offset, len, ret; in qemu_fdt_node_unit_path() local
259 offset = len; in qemu_fdt_node_unit_path()
303 int offset, len, ret; in qemu_fdt_node_path() local
314 offset = len; in qemu_fdt_node_path()
416 for (i = 0; i < len; i++) { in qemu_fdt_setprop_string_array()
434 int len; in qemu_fdt_getprop() local
438 lenp = &len; in qemu_fdt_getprop()
451 int len; in qemu_fdt_getprop_cell() local
455 lenp = &len; in qemu_fdt_getprop_cell()
[all …]
/qemu/hw/usb/
H A Dccid-card-emulated.c108 uint32_t len; member
140 const uint8_t *apdu, uint32_t len) in emulated_apdu_from_guest() argument
147 event->p.data.len = len; in emulated_apdu_from_guest()
148 memcpy(event->p.data.data, apdu, len); in emulated_apdu_from_guest()
161 *len = card->atr_length; in emulated_get_atr()
193 const uint8_t *data, uint32_t len) in emulated_push_data_type() argument
199 event->p.data.len = len; in emulated_push_data_type()
200 memcpy(event->p.data.data, data, len); in emulated_push_data_type()
215 const uint8_t *atr, uint32_t len) in emulated_push_card_insert() argument
226 const uint8_t *apdu, uint32_t len) in emulated_push_response_apdu() argument
[all …]
H A Ddesc.h218 bool msos, uint8_t *dest, size_t len);
220 uint8_t *dest, size_t len);
222 uint8_t *dest, size_t len);
224 uint8_t *dest, size_t len);
226 uint8_t *dest, size_t len);
228 uint8_t *dest, size_t len);
229 int usb_desc_other(const USBDescOther *desc, uint8_t *dest, size_t len);
231 int index, uint8_t *dest, size_t len);
239 int usb_desc_string(USBDevice *dev, int index, uint8_t *dest, size_t len);
241 int value, uint8_t *dest, size_t len);
/qemu/hw/remote/
H A Dmpqemu-link.c95 static ssize_t mpqemu_read(QIOChannel *ioc, void *buf, size_t len, int **fds, in mpqemu_read() argument
98 struct iovec iov = { .iov_base = buf, .iov_len = len }; in mpqemu_read()
127 ssize_t len; in mpqemu_msg_recv() local
130 len = mpqemu_read(ioc, msg, MPQEMU_MSG_HDR_SIZE, &fds, &nfds, errp); in mpqemu_msg_recv()
131 if (len <= 0) { in mpqemu_msg_recv()
133 } else if (len != MPQEMU_MSG_HDR_SIZE) { in mpqemu_msg_recv()
147 len = mpqemu_read(ioc, &msg->data, msg->size, NULL, NULL, errp); in mpqemu_msg_recv()
148 if (len <= 0) { in mpqemu_msg_recv()
151 if (len != msg->size) { in mpqemu_msg_recv()
/qemu/migration/
H A Dchannel.c113 ssize_t len = 0; in migration_channel_read_peek() local
117 len = qio_channel_readv_full(ioc, &iov, 1, NULL, NULL, in migration_channel_read_peek()
120 if (len < 0 && len != QIO_CHANNEL_ERR_BLOCK) { in migration_channel_read_peek()
124 if (len == 0) { in migration_channel_read_peek()
129 if (len == buflen) { in migration_channel_read_peek()
H A Dqemu-file.c310 int len; in qemu_fill_buffer() local
338 } else if (len < 0) { in qemu_fill_buffer()
339 len = -EIO; in qemu_fill_buffer()
343 if (len > 0) { in qemu_fill_buffer()
344 f->buf_size += len; in qemu_fill_buffer()
345 } else if (len == 0) { in qemu_fill_buffer()
351 return len; in qemu_fill_buffer()
417 f->buf_index += len; in add_buf_to_iovec()
803 size_t len = strlen(str); in qemu_put_counted_string() local
805 assert(len < 256); in qemu_put_counted_string()
[all …]
/qemu/tests/qtest/
H A Dide-test.c211 size_t len; in send_dma_request() local
334 size_t len = 512; in test_bmdma_simple_rw() local
346 buf = g_malloc(len); in test_bmdma_simple_rw()
347 cmpbuf = g_malloc(len); in test_bmdma_simple_rw()
350 memset(buf, 0x55, len); in test_bmdma_simple_rw()
359 memset(buf, 0xaa, len); in test_bmdma_simple_rw()
368 memset(cmpbuf, 0x55, len); in test_bmdma_simple_rw()
407 size_t len = 512; in test_bmdma_trim() local
420 buf = g_malloc(len); in test_bmdma_trim()
698 size_t len = 512; in make_dirty() local
[all …]
/qemu/hw/acpi/
H A Daml-build.c168 if (!range->len) { in crs_range_merge()
200 int len; in build_append_nameseg() local
202 len = strlen(seg); in build_append_nameseg()
1281 int len; in aml_string() local
1388 build_append_int_noprefix(var->buf, len, sizeof(len)); in aml_word_as_desc()
1413 build_append_int_noprefix(var->buf, len, sizeof(len)); in aml_dword_as_desc()
1437 build_append_int_noprefix(var->buf, len, sizeof(len)); in aml_qword_as_desc()
1767 return table->len; in acpi_data_len()
2137 off = tbl->len; in build_fadt()
2146 off = tbl->len; in build_fadt()
[all …]
/qemu/scripts/
H A Dcpu-x86-uarch-abi.py12 if len(sys.argv) != 2:
128 for level in range(len(levels)):
133 if len(missing) > 0:
147 for level in range(len(levels)):
152 for level in range(len(abi_models)):
178 models[name]["distance"][level] = len(delta)
185 for level in range(len(levels)):
/qemu/hw/net/
H A Dnpcm7xx_emc.c493 const uint32_t len = len1; in emc_receive() local
509 if (len < ETH_HLEN || in emc_receive()
511 len > 0xffff - CRC_LENGTH) { in emc_receive()
514 return len; in emc_receive()
525 return len; in emc_receive()
534 return len; in emc_receive()
549 return len; in emc_receive()
558 return len; in emc_receive()
566 return len; in emc_receive()
591 return len; in emc_receive()
[all …]
/qemu/target/arm/
H A Dgdbstub64.c134 int vq, len = 0; in aarch64_gdb_get_sve_reg() local
136 len += gdb_get_reg128(buf, in aarch64_gdb_get_sve_reg()
140 return len; in aarch64_gdb_get_sve_reg()
150 int vq, len = 0; in aarch64_gdb_get_sve_reg() local
154 return len; in aarch64_gdb_get_sve_reg()
184 int vq, len = 0; in aarch64_gdb_set_sve_reg() local
189 len += 16; in aarch64_gdb_set_sve_reg()
191 return len; in aarch64_gdb_set_sve_reg()
202 int vq, len = 0; in aarch64_gdb_set_sve_reg() local
206 len += 8; in aarch64_gdb_set_sve_reg()
[all …]
/qemu/hw/tpm/
H A Dtpm_spapr.c41 uint16_t len; /* len of TPM request; len of TPM response */ member
181 local_crq.len = cpu_to_be16(0); in tpm_spapr_do_crq()
192 local_crq.len = cpu_to_be16(s->be_buffer_size); in tpm_spapr_do_crq()
199 local_crq.len = cpu_to_be16(0); in tpm_spapr_do_crq()
238 uint32_t len; in tpm_spapr_request_completed() local
247 trace_tpm_spapr_caught_response(len); in tpm_spapr_request_completed()
249 s->numbytes = len; in tpm_spapr_request_completed()
254 s->buffer, len); in tpm_spapr_request_completed()
256 tpm_util_show_buffer(s->buffer, len, "From TPM"); in tpm_spapr_request_completed()
261 crq->len = cpu_to_be16(len); in tpm_spapr_request_completed()
[all …]
/qemu/target/xtensa/
H A Dxtensa-semi.c207 uint32_t len = regs[5]; in HELPER() local
210 while (len > 0) { in HELPER()
214 uint32_t io_sz = page_left < len ? page_left : len; in HELPER()
222 len -= io_sz; in HELPER()
414 hwaddr len = sz; in HELPER() local
417 if (buf && len) { in HELPER()
418 memset(buf, regs[4], len); in HELPER()
419 cpu_physical_memory_unmap(buf, len, 1, len); in HELPER()
421 len = 1; in HELPER()
423 base += len; in HELPER()
[all …]
/qemu/hw/pci-bridge/
H A Dcxl_upstream.c40 uint32_t val, int len) in cxl_usp_dvsec_write_config() argument
62 uint32_t val, int len) in cxl_usp_write_config() argument
66 pcie_doe_write_config(&usp->doe_cdat, address, val, len); in cxl_usp_write_config()
67 pci_bridge_write_config(d, address, val, len); in cxl_usp_write_config()
68 pcie_cap_flr_write_config(d, address, val, len); in cxl_usp_write_config()
69 pcie_aer_write_config(d, address, val, len); in cxl_usp_write_config()
71 cxl_usp_dvsec_write_config(d, address, val, len); in cxl_usp_write_config()
83 return pci_default_read_config(d, address, len); in cxl_usp_read_config()
143 uint32_t len; in cxl_doe_cdat_rsp() local
158 len = cdat->entry[ent].length; in cxl_doe_cdat_rsp()
[all …]
/qemu/target/m68k/
H A Dop_helper.c862 uint32_t len; member
870 len = ((len - 1) & 31) + 1; in bf_prep()
884 blen = (bofs + len - 1) / 8; in bf_prep()
922 .len = len, in bf_prep()
970 struct bf_data d = bf_prep(addr, ofs, len); in HELPER()
980 struct bf_data d = bf_prep(addr, ofs, len); in HELPER()
988 data >>= 64 - d.len; in HELPER()
989 data |= data << (64 - d.len); in HELPER()
998 struct bf_data d = bf_prep(addr, ofs, len); in HELPER()
1007 return val << (32 - d.len); in HELPER()
[all …]
/qemu/target/rx/
H A Ddisas.c28 uint8_t len; member
46 ctx->len = n; in decode_load_bytes()
54 uintptr_t len = ctx->len; in li() local
60 ctx->len += 1; in li()
66 ctx->len += 2; in li()
72 ctx->len += 3; in li()
78 ctx->len += 4; in li()
107 int i, len = ctx->len; in dump_bytes() local
143 uintptr_t len = ctx->len; in rx_index_addr() local
154 ctx->len += 1; in rx_index_addr()
[all …]
/qemu/hw/ppc/
H A Dspapr_nested.c341 hwaddr len; in h_enter_nested() local
357 address_space_unmap(CPU(cpu)->as, hvstate, len, len, false); in h_enter_nested()
400 address_space_unmap(CPU(cpu)->as, regs, len, len, false); in h_enter_nested()
470 hwaddr len; in spapr_exit_nested_hv() local
559 address_space_unmap(CPU(cpu)->as, regs, len, len, true); in spapr_exit_nested_hv()
1051 if (len) { in guest_state_element_next()
1087 int64_t num_elements, len = gsr->len; in guest_state_request_check() local
1468 len = gsr->len; in map_and_getset_state()
1478 if (len != gsr->len) { in map_and_getset_state()
1644 hwaddr len; in exit_process_output_buffer() local
[all …]
/qemu/backends/
H A Drng-egd.c38 uint8_t len = MIN(size, 255); in rng_egd_request_entropy() local
42 header[1] = len; in rng_egd_request_entropy()
48 size -= len; in rng_egd_request_entropy()
72 int len = MIN(size, req->size - req->offset); in rng_egd_chr_read() local
74 memcpy(req->data + req->offset, buf + buf_offset, len); in rng_egd_chr_read()
75 buf_offset += len; in rng_egd_chr_read()
76 req->offset += len; in rng_egd_chr_read()
77 size -= len; in rng_egd_chr_read()
/qemu/net/
H A Dchecksum.c22 uint32_t net_checksum_add_cont(int len, uint8_t *buf, int seq) in net_checksum_add_cont() argument
27 for (i = 0; i < len - 1; i += 2) { in net_checksum_add_cont()
31 if (i < len) { in net_checksum_add_cont()
196 size_t len = MIN((iovec_off + iov[i].iov_len) - iov_off , size); in net_checksum_add_iov() local
199 res += net_checksum_add_cont(len, chunk_buf, csum_offset); in net_checksum_add_iov()
200 csum_offset += len; in net_checksum_add_iov()
202 iov_off += len; in net_checksum_add_iov()
203 size -= len; in net_checksum_add_iov()
/qemu/hw/char/
H A Dspapr_vty.c81 void vty_putchars(SpaprVioDevice *sdev, uint8_t *buf, int len) in vty_putchars() argument
87 qemu_chr_fe_write_all(&dev->chardev, buf, len); in vty_putchars()
108 target_ulong len = args[1]; in h_put_term_char() local
119 if (len > 16) { in h_put_term_char()
126 vty_putchars(sdev, buf, len); in h_put_term_char()
135 target_ulong *len = args + 0; in h_get_term_char() local
146 *len = vty_getchars(sdev, buf, sizeof(buf)); in h_get_term_char()
147 if (*len < 16) { in h_get_term_char()
148 memset(buf + *len, 0, 16 - *len); in h_get_term_char()
/qemu/tests/qemu-iotests/
H A D218.out8 {"data": {"device": "mirror", "len": 1048576, "offset": 65536, "speed": 65536, "type": "mirror"}, "…
14 {"data": {"device": "mirror", "len": 1048576, "offset": 65536, "speed": 65536, "type": "mirror"}, "…
20 {"data": {"device": "mirror", "len": 1048576, "offset": 1048576, "speed": 0, "type": "mirror"}, "ev…
23 {"data": {"device": "mirror", "len": 1048576, "offset": 1048576, "speed": 0, "type": "mirror"}, "ev…
27 {"data": {"device": "mirror", "len": 1048576, "offset": 1048576, "speed": 0, "type": "mirror"}, "ev…
30 {"data": {"device": "mirror", "len": 1048576, "offset": 1048576, "speed": 0, "type": "mirror"}, "ev…
/qemu/hw/scsi/
H A Dscsi-bus.c517 int len; member
540 int len = 0; in scsi_target_emulate_report_luns() local
558 len += 8; in scsi_target_emulate_report_luns()
562 len += 8; in scsi_target_emulate_report_luns()
580 r->len = MIN(len, r->req.cmd.xfer & ~7); in scsi_target_emulate_report_luns()
626 r->len = MIN(r->req.cmd.xfer, r->len); in scsi_target_emulate_inquiry()
713 if (!r->len) { in scsi_target_send_command()
724 n = r->len; in scsi_target_read_data()
1393 int len; in scsi_req_parse_cdb() local
1397 if (len < 0 || len > buf_len) { in scsi_req_parse_cdb()
[all …]

12345678910>>...49