Home
last modified time | relevance | path

Searched refs:hex (Results 1 – 25 of 25) sorted by relevance

/qemu/scripts/oss-fuzz/
H A Dminimize_qtest_trace.py168 addr=hex(addr),
169 size=hex(write_suffix_lookup[suffix][0]),
170 data=data.hex())
199 addr=hex(hint_addr),
200 size=hex(hint_len),
216 addr=hex(addr),
217 size=hex(leftlength),
220 addr=hex(addr+leftlength),
221 size=hex(rightlength),
261 data_try = hex(int("".join(data_bin_list), 2))
/qemu/tests/unit/
H A Dtest-crypto-hash.c85 static const char hex[] = "0123456789abcdef"; variable
112 g_assert(expected_outputs[i][j * 2] == hex[(result[j] >> 4) & 0xf]); in test_hash_alloc()
113 g_assert(expected_outputs[i][j * 2 + 1] == hex[result[j] & 0xf]); in test_hash_alloc()
147 g_assert(expected_outputs[i][j * 2] == hex[(result[j] >> 4) & 0xf]); in test_hash_prealloc()
148 g_assert(expected_outputs[i][j * 2 + 1] == hex[result[j] & 0xf]); in test_hash_prealloc()
183 g_assert(expected_outputs[i][j * 2] == hex[(result[j] >> 4) & 0xf]); in test_hash_iov()
184 g_assert(expected_outputs[i][j * 2 + 1] == hex[result[j] & 0xf]); in test_hash_iov()
H A Dtest-crypto-hmac.c81 static const char hex[] = "0123456789abcdef"; variable
112 g_assert(exp_output[j * 2] == hex[(result[j] >> 4) & 0xf]); in test_hmac_alloc()
113 g_assert(exp_output[j * 2 + 1] == hex[result[j] & 0xf]); in test_hmac_alloc()
155 g_assert(exp_output[j * 2] == hex[(result[j] >> 4) & 0xf]); in test_hmac_prealloc()
156 g_assert(exp_output[j * 2 + 1] == hex[result[j] & 0xf]); in test_hmac_prealloc()
198 g_assert(exp_output[j * 2] == hex[(result[j] >> 4) & 0xf]); in test_hmac_iov()
199 g_assert(exp_output[j * 2 + 1] == hex[result[j] & 0xf]); in test_hmac_iov()
H A Dtest-crypto-afsplit.c107 static inline char hex(int i) in hex() function
122 hexstr[i * 2] = hex((bytes[i] >> 4) & 0xf); in hex_string()
123 hexstr[i * 2 + 1] = hex(bytes[i] & 0xf); in hex_string()
H A Dtest-crypto-pbkdf.c349 static inline char hex(int i) in hex() function
364 hexstr[i * 2] = hex((bytes[i] >> 4) & 0xf); in hex_string()
365 hexstr[i * 2 + 1] = hex(bytes[i] & 0xf); in hex_string()
H A Dtest-crypto-cipher.c606 static inline char hex(int i) in hex() function
641 hexstr[i*2] = hex((bytes[i] >> 4) & 0xf); in hex_string()
642 hexstr[i*2+1] = hex(bytes[i] & 0xf); in hex_string()
/qemu/crypto/
H A Dhmac.c16 static const char hex[] = "0123456789abcdef"; variable
62 (*digest)[(i * 2)] = hex[(result[i] >> 4) & 0xf]; in qcrypto_hmac_digestv()
63 (*digest)[(i * 2) + 1] = hex[result[i] & 0xf]; in qcrypto_hmac_digestv()
H A Dhash.c80 static const char hex[] = "0123456789abcdef"; variable
98 (*digest)[(i * 2)] = hex[(result[i] >> 4) & 0xf]; in qcrypto_hash_digestv()
99 (*digest)[(i * 2) + 1] = hex[result[i] & 0xf]; in qcrypto_hash_digestv()
/qemu/pc-bios/s390-ccw/
H A Ds390-ccw.h96 const char hex[] = "0123456789abcdef"; in fill_hex() local
98 out[0] = hex[(val >> 4) & 0xf]; in fill_hex()
99 out[1] = hex[val & 0xf]; in fill_hex()
/qemu/tests/qemu-iotests/
H A D242101 .format(hex(bitmap_flag_unknown), flag_offset))
106 .format(hex(bitmap_flag_unknown)))
/qemu/scripts/
H A Danalyse-9p-simpletrace.py106 … print("TGETATTR (tag =", tag, ", fid =", fid, ", request_mask =", hex(request_mask), ")")
109 …print("RGETATTR (tag =", tag, ", result_mask =", hex(result_mask), ", mode =", oct(mode), ", uid =…
115 print("RWALK (tag =", tag, ", nwnames =", nwnames, ", qids =", hex(qids), ")")
H A Dcheckpatch.pl1706 my $hex =
1711 $tmpline =~ s/($hex[.:\/ ])+$hex//g;
1713 if ($tmpline =~ /(?<!0x)$hex/) {
H A Ddecodetree.py757 return hex(b >> sh)
1381 return hex(b >> sh)
/qemu/docs/system/
H A Dgeneric-loader.rst42 will be parsed as decimal. To use hex values the user should prefix the number
65 will be parsed as decimal. To use hex values the user should prefix the number
104 will be parsed as decimal. To use hex values the user should prefix the number
H A Dqemu-block-drivers.rst.inc790 must be given as a hex encoded string::
795 each pair of hex digits.
/qemu/hw/mips/
H A Dmalta.c864 g_autoptr(GString) hex = rng_seed_hex_new(); in reinitialize_rng_seed()
865 memcpy(opaque, hex->str, hex->len); in reinitialize_rng_seed()
955 g_autoptr(GString) hex = rng_seed_hex_new(); in load_kernel()
956 prom_set(prom_buf, prom_index++, "%s", hex->str); in load_kernel()
/qemu/docs/system/arm/
H A Dnrf.rst51 $ qemu-system-arm -M microbit -device loader,file=test.hex
/qemu/block/
H A Dssh.c397 static const char *hex = "0123456789abcdef"; in format_fingerprint() local
400 ret[i * 2] = hex[((fingerprint[i] >> 4) & 0xf)]; in format_fingerprint()
401 ret[(i * 2) + 1] = hex[(fingerprint[i] & 0xf)]; in format_fingerprint()
/qemu/contrib/gitdm/
H A Dfiletypes.txt74 filetype tests \.hex$
/qemu/docs/devel/
H A Dstyle.rst798 In trace-events files, use a '0x' prefix to specify hex numbers, as in:
813 it is obvious that numbers are in hex, ex.:
817 data_dump(uint8_t c1, uint8_t c2, uint8_t c3) "bytes (in hex): %02x %02x %02x"
819 Rationale: hex numbers are hard to read in logs when there is no 0x prefix,
/qemu/tests/docker/
H A Ddocker.py359 label = uuid.uuid4().hex
/qemu/docs/system/i386/
H A Damd-memory-encryption.rst187 | policy | hex | 0x30000 | a 64-bit guest policy |
/qemu/docs/system/s390x/
H A Dvfio-ap.rst178 is AP adapter number xx (in hex)
262 * An absolute hex string starting with 0x - like "0x12345678" - sets
/qemu/
H A Dhmp-commands.hx484 can be x (hex), d (signed decimal), u (unsigned decimal), o (octal),
H A DMAINTAINERS2524 F: tests/data/hex-loader/test.hex