/qemu/hw/display/ |
H A D | tcx.c | 105 len * 4); in tcx_set_dirty() 107 len * 4); in tcx_set_dirty() 154 int x, len; in tcx_draw_cursor32() local 161 len = MIN(width - s1->cursx, 32); in tcx_draw_cursor32() 163 for (x = 0; x < len; x++) { in tcx_draw_cursor32() 571 uint32_t adsr, len; in tcx_blit_writel() local 579 len = ((val >> 24) & 0x1f) + 1; in tcx_blit_writel() 595 tcx_set_dirty(s, addr, len); in tcx_blit_writel() 603 uint32_t adsr, len; in tcx_rblit_writel() local 611 len = ((val >> 24) & 0x1f) + 1; in tcx_rblit_writel() [all …]
|
/qemu/tests/qtest/ |
H A D | adm1266-test.c | 51 uint8_t len = i2c_get8(i2cdev, reg); in compare_string() local 54 i2c_read_block(i2cdev, reg, (uint8_t *)i2c_str, len); in compare_string() 59 const char *test_str, uint8_t len) in write_and_compare_string() argument 62 buf[0] = len; in write_and_compare_string() 63 strncpy(buf + 1, test_str, len); in write_and_compare_string() 64 i2c_write_block(i2cdev, reg, (uint8_t *)buf, len + 1); in write_and_compare_string()
|
/qemu/crypto/ |
H A D | blockpriv.h | 84 size_t len, 89 size_t len, 103 size_t len, 112 size_t len, 119 size_t len, 126 size_t len,
|
H A D | hash.c | 70 size_t len, in qcrypto_hash_bytes() argument 76 .iov_len = len }; in qcrypto_hash_bytes() 108 size_t len, in qcrypto_hash_digest() argument 112 struct iovec iov = { .iov_base = (char *)buf, .iov_len = len }; in qcrypto_hash_digest() 137 size_t len, in qcrypto_hash_base64() argument 141 struct iovec iov = { .iov_base = (char *)buf, .iov_len = len }; in qcrypto_hash_base64()
|
H A D | cipher-nettle.c.inc | 40 static inline bool qcrypto_length_check(size_t len, size_t blocksize, 43 if (unlikely(len & (blocksize - 1))) { 45 len, blocksize); 82 void *out, size_t len, Error **errp) \ 85 if (!qcrypto_length_check(len, BLEN, errp)) { \ 88 ENCRYPT(&ctx->key, len, out, in); \ 92 void *out, size_t len, Error **errp) \ 95 if (!qcrypto_length_check(len, BLEN, errp)) { \ 98 DECRYPT(&ctx->key, len, out, in); \ 111 void *out, size_t len, Error **errp) \ [all …]
|
H A D | cipher-gnutls.c.inc | 90 size_t len, 96 if (len % ctx->blocksize) { 98 len, ctx->blocksize); 104 in, len, 113 while (len) { 136 len -= ctx->blocksize; 150 size_t len, 156 if (len % ctx->blocksize) { 158 len, ctx->blocksize); 174 while (len) { [all …]
|
/qemu/trace/ |
H A D | trace-hmp-cmds.c | 101 size_t len; in info_trace_events_completion() local 103 len = strlen(str); in info_trace_events_completion() 104 readline_set_completion_index(rs, len); in info_trace_events_completion() 119 size_t len; in trace_event_completion() local 121 len = strlen(str); in trace_event_completion() 122 readline_set_completion_index(rs, len); in trace_event_completion()
|
/qemu/ |
H A D | os-posix.c | 225 ssize_t len; in os_daemonize() local 230 len = read(fds[0], &status, 1); in os_daemonize() 231 } while (len < 0 && errno == EINTR); in os_daemonize() 235 exit(len == 1 && status == 0 ? 0 : 1); in os_daemonize() 301 ssize_t len; in os_setup_post() local 313 len = write(daemon_pipe, &status, 1); in os_setup_post() 314 } while (len < 0 && errno == EINTR); in os_setup_post() 315 if (len != 1) { in os_setup_post()
|
/qemu/hw/usb/ |
H A D | ccid-card-passthru.c | 155 static int check_atr(PassthruState *card, uint8_t *data, int len) in check_atr() argument 161 if (len < 2) { in check_atr() 173 while (td && td_count < 2 && opt_bytes + historical_length + 2 < len) { in check_atr() 189 if (len < 2 + historical_length + opt_bytes) { in check_atr() 192 len, historical_length, data[1]); in check_atr() 195 if (len > 2 + historical_length + opt_bytes) { in check_atr() 198 len, historical_length, opt_bytes, data[1]); in check_atr() 203 len, historical_length, opt_bytes); in check_atr() 334 CCIDCardState *base, const uint8_t *apdu, uint32_t len) in passthru_apdu_from_guest() argument 342 ccid_card_vscard_send_apdu(card, apdu, len); in passthru_apdu_from_guest() [all …]
|
/qemu/util/ |
H A D | crc-ccitt.c | 105 uint16_t crc_ccitt(uint16_t crc, uint8_t const *buffer, size_t len) in crc_ccitt() argument 107 while (len--) { in crc_ccitt() 121 uint16_t crc_ccitt_false(uint16_t crc, uint8_t const *buffer, size_t len) in crc_ccitt_false() argument 123 while (len--) { in crc_ccitt_false()
|
H A D | readline.c | 47 int i, delta, len; in readline_update() local 56 len = strlen(rs->cmd_buf); in readline_update() 57 for (i = 0; i < len; i++) { in readline_update() 323 len = strlen(rs->completions[0]); in readline_completion() 328 if (len > 0 && rs->completions[0][len - 1] != '/') { in readline_completion() 338 len = strlen(rs->completions[i]); in readline_completion() 340 max_prefix = len; in readline_completion() 342 if (len < max_prefix) { in readline_completion() 343 max_prefix = len; in readline_completion() 351 if (len > max_width) { in readline_completion() [all …]
|
/qemu/hw/dma/ |
H A D | etraxfs_dma.c | 397 uint32_t len; in channel_out_run() local 428 len -= saved_data_buf; in channel_out_run() 430 if (len > sizeof buf) in channel_out_run() 431 len = sizeof buf; in channel_out_run() 442 if (len > 0) { in channel_out_run() 499 uint32_t len; in channel_in_process() local 508 len -= saved_data_buf; in channel_in_process() 510 if (len > buflen) in channel_in_process() 511 len = buflen; in channel_in_process() 514 saved_data_buf += len; in channel_in_process() [all …]
|
H A D | xilinx_axidma.c | 298 unsigned int len; in stream_process_mem2s() local 304 stream_push(tx_data_dev, s->txbuf, len, eop && len == txlen); in stream_process_mem2s() 305 txlen -= len; in stream_process_mem2s() 306 addr += len; in stream_process_mem2s() 338 while (len) { in stream_process_s2mem() 347 if (rxlen > len) { in stream_process_s2mem() 349 rxlen = len; in stream_process_s2mem() 354 len -= rxlen; in stream_process_s2mem() 398 if (len != CONTROL_PAYLOAD_SIZE) { in xilinx_axidma_control_stream_push() 403 memcpy(s->app, buf, len); in xilinx_axidma_control_stream_push() [all …]
|
H A D | trace-events | 10 ledma_memory_read(uint64_t addr, int len) "DMA read addr 0x%"PRIx64 " len %d" 11 ledma_memory_write(uint64_t addr, int len) "DMA write addr 0x%"PRIx64 " len %d" 14 espdma_memory_read(uint32_t addr, int len) "DMA read addr 0x%08x len %d" 15 espdma_memory_write(uint32_t addr, int len) "DMA write addr 0x%08x len %d"
|
/qemu/tests/unit/ |
H A D | crypto-tls-x509-helpers.c | 289 int len; in test_tls_generate_cert() local 291 test_tls_get_ipaddr(req->ipaddr1, &data, &len); in test_tls_generate_cert() 295 data, len, GNUTLS_FSAN_APPEND); in test_tls_generate_cert() 305 int len; in test_tls_generate_cert() local 307 test_tls_get_ipaddr(req->ipaddr2, &data, &len); in test_tls_generate_cert() 311 data, len, GNUTLS_FSAN_APPEND); in test_tls_generate_cert() 478 size_t len = capacity - offset; in test_tls_write_cert_chain() local 481 buffer + offset, &len); in test_tls_write_cert_chain() 484 buffer = g_renew(char, buffer, offset + len); in test_tls_write_cert_chain() 485 capacity = offset + len; in test_tls_write_cert_chain() [all …]
|
/qemu/include/hw/s390x/ |
H A D | ebcdic.h | 86 static inline void ebcdic_put(uint8_t *p, const char *ascii, int len) in ebcdic_put() argument 90 for (i = 0; i < len; i++) { in ebcdic_put() 95 static inline void ascii_put(uint8_t *p, const char *ebcdic, int len) in ascii_put() argument 99 for (i = 0; i < len; i++) { in ascii_put()
|
/qemu/replay/ |
H A D | replay-random.c | 17 void replay_save_random(int ret, void *buf, size_t len) in replay_save_random() argument 24 replay_put_array(buf, len); in replay_save_random() 27 int replay_read_random(void *buf, size_t len) in replay_read_random() argument 38 g_assert(buf_size == len); in replay_read_random()
|
/qemu/tests/qemu-iotests/ |
H A D | 097 | 69 len=$((2100 * 1024 * 1024 + 512)) # larger than 2G, and not cluster aligned 70 TEST_IMG="$TEST_IMG.base" _make_test_img $len 71 TEST_IMG="$TEST_IMG.itmd" _make_test_img -b "$TEST_IMG.base" -F $IMGFMT $len 72 _make_test_img -b "$TEST_IMG.itmd" -F $IMGFMT $len 77 $QEMU_IO -c "write -P 4 $(($len - 512)) 512" "$TEST_IMG" | _filter_qemu_io
|
/qemu/tests/qtest/libqos/ |
H A D | i2c-imx.c | 41 const uint8_t *buf, uint16_t len) in imx_i2c_send() argument 48 if (!len) { in imx_i2c_send() 74 while (size < len) { in imx_i2c_send() 101 uint8_t *buf, uint16_t len) in imx_i2c_recv() argument 108 if (!len) { in imx_i2c_recv() 137 if (len != 1) { in imx_i2c_recv() 154 while (size < len) { in imx_i2c_recv() 159 if (size == (len - 1)) { in imx_i2c_recv() 171 if (size != (len - 1)) { in imx_i2c_recv()
|
/qemu/hw/arm/ |
H A D | tosa.c | 168 int len; member 176 s->buf[s->len] = data; in tosa_dac_send() 177 if (s->len ++ > 2) { in tosa_dac_send() 179 fprintf(stderr, "%s: message too long (%i bytes)\n", __func__, s->len); in tosa_dac_send() 184 if (s->len == 2) { in tosa_dac_send() 196 s->len = 0; in tosa_dac_event() 205 if (s->len < 2) in tosa_dac_event() 206 printf("%s: message too short (%i bytes)\n", __func__, s->len); in tosa_dac_event() 207 if (s->len > 2) in tosa_dac_event()
|
/qemu/linux-user/ |
H A D | semihost.c | 26 int qemu_semihosting_console_read(CPUState *cs, void *buf, int len) in qemu_semihosting_console_read() argument 39 ret = fread(buf, 1, len, stdin); in qemu_semihosting_console_read() 47 int qemu_semihosting_console_write(void *buf, int len) in qemu_semihosting_console_write() argument 49 return fwrite(buf, 1, len, stderr); in qemu_semihosting_console_write()
|
H A D | trace-events | 19 target_mprotect(uint64_t start, uint64_t len, int flags) "start=0x%"PRIx64 " len=0x%"PRIx64 " prot=… 20 target_mmap(uint64_t start, uint64_t len, int pflags, int mflags, int fd, uint64_t offset) "start=0… 22 target_munmap(uint64_t start, uint64_t len) "start=0x%"PRIx64" len=0x%"PRIx64
|
/qemu/hw/isa/ |
H A D | lpc_ich9.c | 152 if (*addr + *len >= ICH9_CC_SIZE) { in ich9_cc_addr_len() 153 *len = ICH9_CC_SIZE - *addr; in ich9_cc_addr_len() 163 trace_ich9_cc_write(addr, val, len); in ich9_cc_write() 164 ich9_cc_addr_len(&addr, &len); in ich9_cc_write() 165 memcpy(lpc->chip_config + addr, &val, len); in ich9_cc_write() 172 unsigned len) in ich9_cc_read() argument 177 ich9_cc_addr_len(&addr, &len); in ich9_cc_read() 178 memcpy(&val, lpc->chip_config + addr, len); in ich9_cc_read() 179 trace_ich9_cc_read(addr, val, len); in ich9_cc_read() 558 pci_default_write_config(d, addr, val, len); in ich9_lpc_config_write() [all …]
|
/qemu/include/qemu/ |
H A D | bitmap.h | 110 long len = BITS_TO_LONGS(nbits) * sizeof(unsigned long); in bitmap_zero() local 111 memset(dst, 0, len); in bitmap_zero() 119 long len = (nlongs - 1) * sizeof(unsigned long); in bitmap_fill() local 120 memset(dst, 0xff, len); in bitmap_fill() 131 long len = BITS_TO_LONGS(nbits) * sizeof(unsigned long); in bitmap_copy() local 132 memcpy(dst, src, len); in bitmap_copy() 249 void bitmap_set(unsigned long *map, long i, long len); 250 void bitmap_set_atomic(unsigned long *map, long i, long len);
|
/qemu/include/chardev/ |
H A D | char.h | 189 void qemu_chr_be_write(Chardev *s, const uint8_t *buf, int len); 198 void qemu_chr_be_write_impl(Chardev *s, const uint8_t *buf, int len); 226 int qemu_chr_write(Chardev *s, const uint8_t *buf, int len, bool write_all); 227 #define qemu_chr_write_all(s, buf, len) qemu_chr_write(s, buf, len, true) argument 266 int (*chr_write)(Chardev *s, const uint8_t *buf, int len); 272 int (*chr_sync_read)(Chardev *s, const uint8_t *buf, int len);
|