/qemu/tests/qtest/ |
H A D | ahci-test.c | 1026 size_t bufsize = 4096; in test_dma_fragmented() local 1076 unsigned bufsize = 512; in make_dirty() local 1157 size_t bufsize = 4096; in ahci_migrate_simple() local 1212 size_t bufsize = 4096; in ahci_halted_io_test() local 1277 size_t bufsize = 4096; in ahci_migrate_halted_io() local 1435 int bufsize = 4 * 1024; in test_reset_pending_callback() local 1436 int speed = bufsize + (bufsize / 2); in test_reset_pending_callback() 1861 unsigned bufsize; in test_io_interface() local 1866 bufsize = 4096; in test_io_interface() 1869 bufsize = 8192; in test_io_interface() [all …]
|
/qemu/tests/qemu-iotests/ |
H A D | nbd-fault-injector.py | 79 def recvall(sock, bufsize): argument 82 while received < bufsize: 83 chunk = sock.recv(bufsize - received) 109 def check(self, event, io, bufsize=None): argument 112 if rule.when == 0 or bufsize is None: 119 return bufsize 122 bufsize = self.check(event, 'write', bufsize=len(buf)) 123 self.sock.sendall(buf[:bufsize]) 126 def recv(self, bufsize, event): argument 127 bufsize = self.check(event, 'read', bufsize=bufsize) [all …]
|
/qemu/python/qemu/machine/ |
H A D | console_socket.py | 112 def recv(self, bufsize: int = 1, flags: int = 0) -> bytes: 118 return socket.socket.recv(self, bufsize, flags) 121 while len(self._buffer) < bufsize: 126 return bytes((self._buffer.popleft() for i in range(bufsize)))
|
/qemu/tests/tcg/multiarch/ |
H A D | sha512.c | 383 size_t bufsize = ctx->bytes % 128; in add() local 385 if (bufsize + len >= 128) { in add() 387 memcpy(ctx->buf.u8 + bufsize, data, 128 - bufsize); in add() 388 ctx->bytes += 128 - bufsize; in add() 389 data += 128 - bufsize; in add() 390 len -= 128 - bufsize; in add() 392 bufsize = 0; in add() 531 if (!bufsize) in hex_decode() 536 bufsize--; in hex_decode() 538 return slen == 0 && bufsize == 0; in hex_decode() [all …]
|
/qemu/hw/net/ |
H A D | spapr_llan.c | 93 int32_t bufsize; member 145 dev->rx_pool[pool]->bufsize >= size + 8) { in spapr_vlan_get_rx_bd_from_pool() 294 rxp->bufsize = INT_MAX; in spapr_vlan_reset_rx_pool() 532 if (pool1->bufsize < pool2->bufsize) { in rx_pool_size_compare() 535 return pool1->bufsize > pool2->bufsize; in rx_pool_size_compare() 547 if (dev->rx_pool[pool]->bufsize == size) { in spapr_vlan_get_rx_pool_id() 574 dev->rx_pool[pool]->bufsize = size; in spapr_vlan_add_rxbuf_to_pool() 804 VMSTATE_INT32(bufsize, RxBufPool),
|
H A D | virtio-net.c | 1681 static int virtio_net_has_buffers(VirtIONetQueue *q, int bufsize) in virtio_net_has_buffers() argument 1686 !virtqueue_avail_bytes(q->rx_vq, bufsize, 0))) { in virtio_net_has_buffers() 1695 !virtqueue_avail_bytes(q->rx_vq, bufsize, 0))) { in virtio_net_has_buffers()
|
H A D | igb_core.c | 932 uint32_t bufsize = igb_rxbufsize(core, r); in igb_has_rxbufs() local 934 trace_e1000e_rx_has_buffers(r->idx, bufs, total_size, bufsize); in igb_has_rxbufs() 937 bufsize; in igb_has_rxbufs()
|
/qemu/hw/misc/ |
H A D | bcm2835_property.c | 29 uint32_t bufsize; in bcm2835_property_mbox_push() local 54 bufsize = ldl_le_phys(&s->dma_as, value + 4); in bcm2835_property_mbox_push() 308 if (bufsize >= resplen) in bcm2835_property_mbox_push() 331 trace_bcm2835_mbox_property(tag, bufsize, resplen); in bcm2835_property_mbox_push() 337 value += bufsize + 12; in bcm2835_property_mbox_push()
|
H A D | pci-testdev.c | 47 unsigned bufsize; member 199 if (addr + size >= test->bufsize) { in pci_testdev_read() 275 test->bufsize = sizeof(PCITestDevHdr) + strlen(name) + 1; in pci_testdev_realize() 276 test->hdr = g_malloc0(test->bufsize); in pci_testdev_realize()
|
H A D | trace-events | 290 bcm2835_mbox_property(uint32_t tag, uint32_t bufsize, size_t resplen) "mbox property tag:0x%08x in_…
|
/qemu/tests/qtest/libqos/ |
H A D | ahci.c | 753 size_t bufsize, uint64_t sector) in ahci_guest_io_halt() argument 758 ahci_command_adjust(cmd, sector, buffer, bufsize, 0); in ahci_guest_io_halt() 784 ahci_command_set_size(cmd, bufsize); in ahci_guest_io() 809 void *buffer, size_t bufsize, uint64_t sector) in ahci_io() argument 816 ptr = ahci_alloc(ahci, bufsize); in ahci_io() 817 g_assert(!bufsize || ptr); in ahci_io() 818 qtest_memset(ahci->parent->qts, ptr, 0x00, bufsize); in ahci_io() 820 if (bufsize && props->write) { in ahci_io() 824 ahci_guest_io(ahci, port, ide_cmd, ptr, bufsize, sector); in ahci_io() 826 if (bufsize && props->read) { in ahci_io() [all …]
|
H A D | ahci.h | 610 void *buffer, size_t bufsize, uint64_t sector);
|
/qemu/bsd-user/freebsd/ |
H A D | os-stat.h | 35 int freebsd11_getfsstat(struct freebsd11_statfs *buf, long bufsize, int mode); 378 abi_long bufsize, abi_long flags) in do_freebsd11_getfsstat() argument 385 count = bufsize / sizeof(struct target_freebsd11_statfs); in do_freebsd11_getfsstat() 416 abi_long bufsize, abi_long flags) in do_freebsd_getfsstat() argument 423 count = bufsize / sizeof(struct target_statfs); in do_freebsd_getfsstat()
|
/qemu/target/ppc/ |
H A D | kvm_ppc.h | 61 int kvmppc_save_htab(QEMUFile *f, int fd, size_t bufsize, int64_t max_ns); 342 static inline int kvmppc_save_htab(QEMUFile *f, int fd, size_t bufsize, in kvmppc_save_htab() argument
|
H A D | kvm.c | 2682 int kvmppc_save_htab(QEMUFile *f, int fd, size_t bufsize, int64_t max_ns) in kvmppc_save_htab() argument 2685 g_autofree uint8_t *buf = g_malloc(bufsize); in kvmppc_save_htab() 2689 rc = read(fd, buf, bufsize); in kvmppc_save_htab()
|
/qemu/include/ui/ |
H A D | spice-display.h | 90 int bufsize; member
|
/qemu/ |
H A D | qemu-img.c | 4417 int bufsize; member 4514 size_t bufsize = 4096; in img_bench() local 4612 bufsize = sval; in img_bench() 4705 .bufsize = bufsize, in img_bench() 4706 .step = step ?: bufsize, in img_bench() 4716 data.n, data.write ? "write" : "read", data.bufsize, data.nrreq, in img_bench() 4722 buf_size = data.nrreq * data.bufsize; in img_bench() 4724 memset(data.buf, pattern, data.nrreq * data.bufsize); in img_bench() 4732 data.buf + i * data.bufsize, data.bufsize); in img_bench()
|
/qemu/ui/ |
H A D | spice-display.c | 333 if (ssd->bufsize < surface_size) { in qemu_spice_create_host_primary() 334 ssd->bufsize = surface_size; in qemu_spice_create_host_primary() 336 ssd->buf = g_malloc(ssd->bufsize); in qemu_spice_create_host_primary()
|
/qemu/block/ |
H A D | qcow2-cluster.c | 232 int bufsize = MAX(L1E_SIZE, in qcow2_write_l1_entry() local 234 int nentries = bufsize / L1E_SIZE; in qcow2_write_l1_entry() 247 s->l1_table_offset + L1E_SIZE * l1_start_index, bufsize, false); in qcow2_write_l1_entry() 255 bufsize, buf, 0); in qcow2_write_l1_entry()
|
/qemu/hw/usb/ |
H A D | host-libusb.c | 379 bool in, size_t bufsize) in usb_host_req_alloc() argument 387 if (bufsize) { in usb_host_req_alloc() 388 r->buffer = g_malloc(bufsize); in usb_host_req_alloc()
|