| /openbmc/qemu/tests/tcg/i386/ |
| H A D | test-i386-fbstp.c | 20 unsigned char out[10]; in main() local 21 memset(out, 0xfe, sizeof out); in main() 22 __asm__ volatile ("fbstp %0" : "=m" (out) : "t" (-0.0L) : "st"); in main() 23 out[9] &= 0x80; in main() 24 if (memcmp(out, "\0\0\0\0\0\0\0\0\0\x80", sizeof out) != 0) { in main() 28 memset(out, 0x12, sizeof out); in main() 29 __asm__ volatile ("fbstp %0" : "=m" (out) : "t" (-0.1L) : "st"); in main() 30 out[9] &= 0x80; in main() 31 if (memcmp(out, "\0\0\0\0\0\0\0\0\0\x80", sizeof out) != 0) { in main() 35 memset(out, 0x1f, sizeof out); in main() [all …]
|
| /openbmc/openbmc/meta-google/recipes-google/networking/network-sh/ |
| H A D | test.sh | 43 out=() 44 expect_err 1 mac_to_bytes out '' 45 expect_err 1 mac_to_bytes out '00' 46 expect_err 1 mac_to_bytes out '12:34:56:78:90:' 47 expect_err 1 mac_to_bytes out ':12:34:56:78:90' 48 expect_err 1 mac_to_bytes out '12:34:56:78:90:0:' 49 expect_err 1 mac_to_bytes out '12:34:56:78:90:0:2' 51 expect_err 0 mac_to_bytes out 'a2:0:f:de:0:29' 53 expect_array_numeq out expected 67 out=() [all …]
|
| /openbmc/openbmc-tools/dbusView/ |
| H A D | dbusView.py | 30 out = subprocess.check_output(busctl + "list --acquired", shell=True) 31 out = out.split(b"\n") 32 out = out[1:] 34 for line in out: 42 out = subprocess.check_output(busctl + "tree " + busname, shell=True) 43 out = out.split(b"\n") 45 for line in out: 53 out = subprocess.check_output( 56 return out.decode().split("\n") 61 out = header [all …]
|
| /openbmc/u-boot/board/CZ.NIC/turris_mox/ |
| H A D | mox_sp.c | 38 static int mbox_do_cmd(enum mbox_cmd cmd, u32 *out, int nout) in mbox_do_cmd() argument 61 out[i] = readl(RWTM_CMD_STATUS(i)); in mbox_do_cmd() 79 u32 out[16]; in mox_sp_get_ecdsa_public_key() local 85 res = mbox_do_cmd(MBOX_CMD_ECDSA_PUB_KEY, out, 16); in mox_sp_get_ecdsa_public_key() 91 (u32)res, out[0], out[1], out[2], out[3], out[4], out[5], in mox_sp_get_ecdsa_public_key() 92 out[6], out[7], out[8], out[9], out[10], out[11], out[12], in mox_sp_get_ecdsa_public_key() 93 out[13], out[14], out[15]); in mox_sp_get_ecdsa_public_key() 110 u32 out[8]; in mbox_sp_get_board_info() local 113 res = mbox_do_cmd(MBOX_CMD_BOARD_INFO, out, 8); in mbox_sp_get_board_info() 118 *sn = out[1]; in mbox_sp_get_board_info() [all …]
|
| /openbmc/qemu/audio/ |
| H A D | spiceaudio.c | 95 SpiceVoiceOut *out = container_of (hw, SpiceVoiceOut, hw); in line_out_init() local 109 out->active = 0; in line_out_init() 111 out->sin.base.sif = &playback_sif.base; in line_out_init() 112 qemu_spice.add_interface(&out->sin.base); in line_out_init() 114 spice_server_set_playback_rate(&out->sin, settings.freq); in line_out_init() 121 SpiceVoiceOut *out = container_of (hw, SpiceVoiceOut, hw); in line_out_fini() local 123 spice_server_remove_interface (&out->sin.base); in line_out_fini() 128 SpiceVoiceOut *out = container_of(hw, SpiceVoiceOut, hw); in line_out_get_free() local 130 return audio_rate_peek_bytes(&out->rate, &hw->info); in line_out_get_free() 135 SpiceVoiceOut *out = container_of(hw, SpiceVoiceOut, hw); in line_out_get_buffer() local [all …]
|
| /openbmc/bmcweb/src/ |
| H A D | json_html_serializer.cpp | 66 static void dumpEscaped(std::string& out, const std::string& str) in dumpEscaped() argument 212 out.append(stringBuffer.data(), bytes); in dumpEscaped() 267 out.append(stringBuffer.data(), bytes); in dumpEscaped() 273 out.append(stringBuffer.data(), bytesAfterLastAccept); in dumpEscaped() 274 out += "\\ufffd"; in dumpEscaped() 308 void dumpInteger(std::string& out, NumberType number) in dumpInteger() argument 335 out += '0'; in dumpInteger() 398 out.append(numberbuffer.data(), nChars); in dumpInteger() 401 static void dumpfloat(std::string& out, double number) in dumpfloat() argument 406 out += "null"; in dumpfloat() [all …]
|
| /openbmc/u-boot/doc/imx/habv4/script_examples/ |
| H A D | genIVT.pl | 3 open(my $out, '>:raw', 'ivt.bin') or die "Unable to open: $!"; 4 print $out pack("V", 0x412000D1); # Signature 5 print $out pack("V", 0x80800000); # Load Address (*load_address) 6 print $out pack("V", 0x0); # Reserved 7 print $out pack("V", 0x0); # DCD pointer 8 print $out pack("V", 0x0); # Boot Data 9 print $out pack("V", 0x80EEA000); # Self Pointer (*ivt) 10 print $out pack("V", 0x80EEA020); # CSF Pointer (*csf) 11 print $out pack("V", 0x0); # Reserved 12 close($out);
|
| /openbmc/u-boot/tools/kermit/ |
| H A D | flash_param | 24 out \13 27 out mw f0000000 0 200\13 29 out reset\13 31 out \13\13 34 out setenv ethaddr \%2\13 36 out setenv serial# ERIC 1.0 \%3\13 38 out setenv eric_id \%3\13 44 out setenv eric_passwd .eRIC.\13 49 out setenv bootargs console=/dev/ttyS0,115200 root=/dev/nfs nfsroot=192.168.1.26:/eric_root_devel i… 51 out setenv bootcmd bootm FFC00000\13 [all …]
|
| /openbmc/u-boot/lib/efi_loader/ |
| H A D | efi_setup.c | 34 goto out; in efi_init_obj_list() 39 goto out; in efi_init_obj_list() 44 goto out; in efi_init_obj_list() 48 goto out; in efi_init_obj_list() 52 goto out; in efi_init_obj_list() 57 goto out; in efi_init_obj_list() 62 goto out; in efi_init_obj_list() 67 goto out; in efi_init_obj_list() 72 goto out; in efi_init_obj_list() 76 goto out; in efi_init_obj_list() [all …]
|
| /openbmc/qemu/hw/hyperv/ |
| H A D | hv-balloon-page_range_tree.h | 22 uint64_t start, PageRange *out) in page_range_part_before() argument 27 out->start = range->start; in page_range_part_before() 28 if (end > out->start) { in page_range_part_before() 29 out->count = end - out->start; in page_range_part_before() 31 out->count = 0; in page_range_part_before() 38 PageRange *out) in page_range_part_after() argument 43 out->start = MAX(range->start, ends); in page_range_part_after() 44 if (end > out->start) { in page_range_part_after() 45 out->count = end - out->start; in page_range_part_after() 47 out->count = 0; in page_range_part_after() [all …]
|
| /openbmc/qemu/tests/unit/ |
| H A D | test-crypto-pbkdf.c | 40 const char *out; member 61 .out = "\xcd\xed\xb5\x28\x1b\xb2\xf8\x01" 75 .out = "\x01\xdb\xee\x7f\x4a\x9e\x24\x3e" 89 .out = "\x5c\x08\xeb\x61\xfd\xf7\x1e\x4e" 103 .out = "\xd1\xda\xa7\x86\x15\xf2\x87\xe6" 118 .out = "\x13\x9c\x30\xc0\x96\x6b\xc3\x2b" 133 .out = "\x9c\xca\xd6\xd4\x68\x77\x0c\xd5" 147 .out = "\x6b\x9c\xf2\x6d\x45\x45\x5a\x43" 163 .out = "\x0c\x60\xc8\x0f\x96\x1f\x0e\x71\xf3\xa9" 175 .out = "\xea\x6c\x01\x4d\xc7\x2d\x6f\x8c\xcd\x1e" [all …]
|
| /openbmc/bmcweb/test/http/ |
| H A D | zstd_decompressor_test.cpp | 32 std::optional<boost::asio::const_buffer> out = in TEST() local 34 ASSERT_TRUE(out); in TEST() 35 if (!out) in TEST() 39 EXPECT_TRUE(out->size() == 0); in TEST() 64 std::optional<boost::asio::const_buffer> out = comp.decompress( in TEST() local 66 ASSERT_TRUE(out); in TEST() 67 if (out) in TEST() 70 std::span(static_cast<const unsigned char*>(out->data()), in TEST() 71 out->size()), in TEST() 73 read += out->size(); in TEST() [all …]
|
| H A D | server_sent_event_test.cpp | 31 TestStream out(io); in TEST() local 32 stream.connect(out); in TEST() 55 while (out.str().size() != expected.size() || !openCalled) in TEST() 62 boost::asio::read(out, boost::asio::buffer(eventContent)); in TEST() 67 EXPECT_TRUE(out.str().empty()); in TEST() 76 while (out.str().size() < expected.size()) in TEST() 80 EXPECT_EQ(out.str(), expected); in TEST() 84 boost::asio::read(out, boost::asio::buffer(eventContent)); in TEST() 87 EXPECT_TRUE(out.str().empty()); in TEST() 98 while (out.str().size() < expected.size()) in TEST() [all …]
|
| /openbmc/u-boot/lib/zlib/ |
| H A D | inffast.c | 75 unsigned char FAR *out; /* local strm->next_out */ in inflate_fast() local 110 out = strm->next_out - OFF; in inflate_fast() 111 beg = out - (start - strm->avail_out); in inflate_fast() 112 end = out + (strm->avail_out - 257); in inflate_fast() 146 PUP(out) = (unsigned char)(this.val); in inflate_fast() 195 op = (unsigned)(out - beg); /* max distance in output */ in inflate_fast() 209 PUP(out) = PUP(from); in inflate_fast() 211 from = out - dist; /* rest from output */ in inflate_fast() 220 PUP(out) = PUP(from); in inflate_fast() 227 PUP(out) = PUP(from); in inflate_fast() [all …]
|
| /openbmc/qemu/scripts/tracetool/format/ |
| H A D | ust_events_h.py | 15 from tracetool import out 27 out('/* This file is autogenerated by tracetool, do not edit. */', 62 out('TRACEPOINT_EVENT(', 75 out(' ctf_string(' + n + ', ' + n + ')') 77 out(' ctf_integer_hex('+ t + ', ' + n + ', ' + n + ')') 79 out(' ctf_integer_hex('+ t + ', ' + n + ', ' + n + ')') 82 out(' ctf_integer(' + t + ', ' + n + ', ' + n + ')') 84 out(' ctf_float(' + t + ', ' + n + ', ' + n + ')') 86 out(' ctf_integer_hex(unsigned long, ' + n + ', ' + n + ')') 88 out(' )', [all …]
|
| H A D | h.py | 15 from tracetool import out 21 out('/* This file is autogenerated by tracetool, do not edit. */', 30 out('extern TraceEvent %(event)s;', 34 out('extern uint16_t %s;' % e.api(e.QEMU_DSTATE)) 44 out('#define TRACE_%(name)s_ENABLED %(enabled)d', 47 out('#define TRACE_%s_ENABLED %d' % (e.name.upper(), enabled)) 53 out('', 60 out(' false)') 63 out('', 72 out('}') [all …]
|
| /openbmc/qemu/scripts/tracetool/backend/ |
| H A D | simple.py | 15 from tracetool import out 32 out('void _simple_%(api)s(%(args)s);', 35 out('') 41 out(' if (%(cond)s) {', 50 out(' trace_event_get_state_dynamic_by_id(%(event_id)s) || \\', 55 out('#include "qemu/osdep.h"', 62 out('void _simple_%(api)s(%(args)s)', 70 … out(' size_t arg%(name)s_len = %(name)s ? MIN(strlen(%(name)s), MAX_TRACE_STRLEN) : 0;', 80 out('', 91 out(' trace_record_write_str(&rec, %(name)s, arg%(name)s_len);', [all …]
|
| H A D | dtrace.py | 15 from tracetool import out 47 out('#ifndef SDT_USE_VARIADIC') 48 out('#define SDT_USE_VARIADIC 1') 49 out('#endif') 51 out('#include "%s"' % header, 54 out('#undef SDT_USE_VARIADIC') 59 out('#ifndef QEMU_%(uppername)s_ENABLED', 65 out(' QEMU_%(uppername)s(%(argnames)s);', 71 out(' QEMU_%(uppername)s_ENABLED() || \\',
|
| /openbmc/bmcweb/test/include/ |
| H A D | json_html_serializer.cpp | 33 std::string out; in TEST() local 36 dumpHtml(out, j); in TEST() 38 out, in TEST() 47 std::string out; in TEST() local 49 dumpHtml(out, j); in TEST() 50 EXPECT_EQ(out, boilerplateStart + "<div class=\"content\">\n42</div>\n" + in TEST() 56 std::string out; in TEST() local 58 dumpHtml(out, j); in TEST() 59 EXPECT_EQ(out, in TEST()
|
| /openbmc/bmcweb/scripts/ |
| H A D | parse_registries.py | 317 out = "" 333 out += f"nlohmann::json::object_t {function_name}({arg})" 336 out += ";\n\n" 338 out += "\n{\n" 346 …out += f"std::string arg{index}Str = arg{index}.dump(-1, ' ', true, nlohmann::json::error_handler_… 348 out += f"std::string arg{index}Str = std::to_string(arg{index});\n" 365 …out += f" return getLog(redfish::registries::{struct_name}::Index::{function_name}, {arg_param}… 366 out += "\n}\n\n" 377 out += f"void {function_name}({arg})" 379 out += ";\n" [all …]
|
| /openbmc/u-boot/lib/efi_selftest/ |
| H A D | efi_selftest_hii.c | 130 goto out; in test_hii_database_update_package_list() 135 out: in test_hii_database_update_package_list() 171 goto out; in test_hii_database_list_package_lists() 180 goto out; in test_hii_database_list_package_lists() 192 goto out; in test_hii_database_list_package_lists() 198 goto out; in test_hii_database_list_package_lists() 206 goto out; in test_hii_database_list_package_lists() 211 goto out; in test_hii_database_list_package_lists() 224 goto out; in test_hii_database_list_package_lists() 231 goto out; in test_hii_database_list_package_lists() [all …]
|
| /openbmc/u-boot/test/stdint/ |
| H A D | test-includes.sh | 15 out=/tmp/test-includes.tmp 30 rm -rf ${out} 31 mkdir -p ${out} 32 touch ${out}/config.h 33 mkdir -p ${out}/generated 34 touch ${out}/generated/generic-asm-offsets.h 35 mkdir -p ${out}/include/asm 37 ${out}/include/asm/arch 43 -I${out} -I${out}/include \
|
| /openbmc/u-boot/scripts/kconfig/ |
| H A D | zconf.y | 626 static void print_quoted_string(FILE *out, const char *str) in print_quoted_string() argument 631 putc('"', out); in print_quoted_string() 635 fprintf(out, "%.*s", len, str); in print_quoted_string() 636 fputs("\\\"", out); in print_quoted_string() 639 fputs(str, out); in print_quoted_string() 640 putc('"', out); in print_quoted_string() 643 static void print_symbol(FILE *out, struct menu *menu) in print_symbol() argument 649 fprintf(out, "\nchoice\n"); in print_symbol() 651 fprintf(out, "\nconfig %s\n", sym->name); in print_symbol() 654 fputs(" bool\n", out); in print_symbol() [all …]
|
| /openbmc/qemu/target/hexagon/ |
| H A D | gen_dectree_import.c | 106 static void gen_iset_table(FILE *out) in gen_iset_table() argument 110 fprintf(out, "iset = {\n"); in gen_iset_table() 112 fprintf(out, "\t\'%s\' : {\n", opcode_names[i]); in gen_iset_table() 113 fprintf(out, "\t\t\'tag\' : \'%s\',\n", opcode_names[i]); in gen_iset_table() 114 fprintf(out, "\t\t\'syntax\' : \'%s\',\n", opcode_syntax[i]); in gen_iset_table() 115 fprintf(out, "\t\t\'enc\' : \'%s\',\n", get_opcode_enc(i)); in gen_iset_table() 116 fprintf(out, "\t\t\'enc_class\' : \'%s\',\n", get_opcode_enc_class(i)); in gen_iset_table() 117 fprintf(out, "\t},\n"); in gen_iset_table() 119 fprintf(out, "};\n\n"); in gen_iset_table() 122 static void gen_tags_list(FILE *out) in gen_tags_list() argument [all …]
|
| /openbmc/qemu/chardev/ |
| H A D | char-file.c | 44 HANDLE out; in qmp_chardev_open_file() local 63 out = CreateFile(file->out, accessmode, FILE_SHARE_READ, NULL, flags, in qmp_chardev_open_file() 65 if (out == INVALID_HANDLE_VALUE) { in qmp_chardev_open_file() 66 error_setg(errp, "open %s failed", file->out); in qmp_chardev_open_file() 70 win_chr_set_file(chr, out, false); in qmp_chardev_open_file() 72 int flags, in = -1, out; in qmp_chardev_open_file() local 81 out = qmp_chardev_open_file_source(file->out, flags, errp); in qmp_chardev_open_file() 82 if (out < 0) { in qmp_chardev_open_file() 90 qemu_close(out); in qmp_chardev_open_file() 95 qemu_chr_open_fd(chr, in, out); in qmp_chardev_open_file() [all …]
|