| /openbmc/qemu/migration/ |
| H A D | qemu-file.c | 71 int qemu_file_shutdown(QEMUFile *f) in qemu_file_shutdown() argument 94 if (!f->last_error) { in qemu_file_shutdown() 95 qemu_file_set_error(f, -EIO); in qemu_file_shutdown() 98 if (!qio_channel_has_feature(f->ioc, in qemu_file_shutdown() 103 if (qio_channel_shutdown(f->ioc, QIO_CHANNEL_SHUTDOWN_BOTH, &err) < 0) { in qemu_file_shutdown() 113 QEMUFile *f; in qemu_file_new_impl() local 115 f = g_new0(QEMUFile, 1); in qemu_file_new_impl() 118 f->ioc = ioc; in qemu_file_new_impl() 119 f->is_writable = is_writable; in qemu_file_new_impl() 120 f->can_pass_fd = qio_channel_has_feature(ioc, QIO_CHANNEL_FEATURE_FD_PASS); in qemu_file_new_impl() [all …]
|
| H A D | savevm.h | 35 int qemu_savevm_state_setup(QEMUFile *f, Error **errp); 38 void qemu_savevm_state_header(QEMUFile *f); 39 int qemu_savevm_state_iterate(QEMUFile *f, bool postcopy); 41 void qemu_savevm_state_complete_postcopy(QEMUFile *f); 42 int qemu_savevm_state_complete_precopy(QEMUFile *f, bool iterable_only); 47 int qemu_savevm_state_complete_precopy_iterable(QEMUFile *f, bool in_postcopy); 48 bool qemu_savevm_state_postcopy_prepare(QEMUFile *f, Error **errp); 49 void qemu_savevm_send_ping(QEMUFile *f, uint32_t value); 50 void qemu_savevm_send_open_return_path(QEMUFile *f); 51 int qemu_savevm_send_packaged(QEMUFile *f, const uint8_t *buf, size_t len); [all …]
|
| H A D | qemu-file.h | 34 int qemu_fclose(QEMUFile *f); 46 uint64_t qemu_file_transferred(QEMUFile *f); 52 void qemu_put_buffer_async(QEMUFile *f, const uint8_t *buf, size_t size, 57 size_t coroutine_mixed_fn qemu_peek_buffer(QEMUFile *f, uint8_t **buf, size_t size, size_t offset); 58 size_t coroutine_mixed_fn qemu_get_buffer_in_place(QEMUFile *f, uint8_t **buf, size_t size); 65 int coroutine_mixed_fn qemu_peek_byte(QEMUFile *f, int offset); 66 void qemu_file_skip(QEMUFile *f, int size); 68 void qemu_file_set_error_obj(QEMUFile *f, int ret, Error *err); 69 int qemu_file_get_error_obj(QEMUFile *f, Error **errp); 70 void qemu_file_set_error(QEMUFile *f, int ret); [all …]
|
| H A D | vmstate-types.c | 25 static int get_bool(QEMUFile *f, void *pv, size_t size, in get_bool() argument 29 *v = qemu_get_byte(f); in get_bool() 33 static int put_bool(QEMUFile *f, void *pv, size_t size, in put_bool() argument 37 qemu_put_byte(f, *v); in put_bool() 49 static int get_int8(QEMUFile *f, void *pv, size_t size, in get_int8() argument 53 qemu_get_s8s(f, v); in get_int8() 57 static int put_int8(QEMUFile *f, void *pv, size_t size, in put_int8() argument 61 qemu_put_s8s(f, v); in put_int8() 73 static int get_int16(QEMUFile *f, void *pv, size_t size, in get_int16() argument 77 qemu_get_sbe16s(f, v); in get_int16() [all …]
|
| /openbmc/qemu/target/hexagon/ |
| H A D | hex_common.py | 64 raise Exception(f"Couldn't find macro: <{l}>") 276 return f"{immlett}iV" 339 self.reg_num = f"{regtype}{regid}N" 340 def decl_reg_num(self, f, regno): argument 341 f.write(code_fmt(f"""\ 350 f"{self.helper_arg_type()} {self.helper_arg_name()}" 382 return f"{self.reg_tcg()}_off" 388 return f"{self.reg_tcg()}_void" 395 return f"{self.regtype}{self.regid}V" 417 return f"{self.regtype}{self.regid}V" [all …]
|
| H A D | gen_helper_funcs.py | 37 def gen_helper_function(f, tag, tagregs, tagimms): argument 48 f.write(f"{ret_type} HELPER({tag})({arguments})\n") 49 f.write("{\n") 51 f.write(hex_common.code_fmt(f"""\ 59 f.write(hex_common.code_fmt(f"""\ 67 reg.helper_hvx_desc(f) 71 f.write(hex_common.code_fmt(f"""\ 74 f.write(hex_common.code_fmt(f"""\ 79 f.write(hex_common.code_fmt(f"""\ 83 f.write(hex_common.code_fmt(f"""\ [all …]
|
| H A D | gen_tcg_funcs.py | 47 def gen_tcg_func(f, tag, regs, imms): argument 48 f.write(f"static void generate_{tag}(DisasContext *ctx)\n") 49 f.write("{\n") 51 f.write(" Insn *insn G_GNUC_UNUSED = ctx->insn;\n") 54 f.write(" TCGv EA G_GNUC_UNUSED = tcg_temp_new();\n") 60 reg.decl_tcg(f, tag, i) 64 f.write(f" int {hex_common.imm_name(immlett)} = insn->immed[{i}];\n") 77 f.write(f" emit_{tag}({arguments});\n") 80 f.write(f" fGEN_TCG_{tag}({hex_common.semdict[tag]});\n") 92 f.write(f" gen_helper_{tag}({arguments});\n") [all …]
|
| H A D | gen_decodetree.py | 99 def gen_decodetree_file(f, class_to_decode): argument 101 f.write(f"## DO NOT MODIFY - This file is generated by {sys.argv[0]}\n\n") 103 f.write("%PP\t14:2\n\n") 110 f.write(("#" * 80) + "\n" 111 f"## {tag}:\t{enc_str}\n" 133 raise Exception(f"{tag} missing register field!") 135 raise Exception(f"{tag} has split register field!") 138 raise Exception(f"{tag} has incorrect register field width!") 140 f.write(f"%{tag}_{reg_type}{reg_id}\t" 141 f"{enc.index(reg_enc_field)}:{len(reg_enc_field)}") [all …]
|
| H A D | gen_analyze_funcs.py | 41 def gen_analyze_func(f, tag, regs, imms): argument 42 f.write(f"static void analyze_{tag}(DisasContext *ctx)\n") 43 f.write("{\n") 45 f.write(" Insn *insn G_GNUC_UNUSED = ctx->insn;\n") 48 f.write( 51 f.write(" ctx_start_hvx_insn(ctx);\n") 53 f.write( 61 reg.decl_reg_num(f, regno) 68 reg.analyze_read(f, regno) 75 reg.analyze_write(f, tag, regno) [all …]
|
| H A D | gen_trans_funcs.py | 50 def mark_which_imm_extended(f, tag): argument 57 f.write(code_fmt(f"""\ 78 def gen_trans_funcs(f): argument 79 f.write(f"/* DO NOT MODIFY - This file is generated by {sys.argv[0]} */\n\n") 84 f.write(textwrap.dedent(f"""\ 97 f.write(code_fmt(f"""\ 111 mark_which_imm_extended(f, tag) 119 f.write(code_fmt(f"""\ 125 f.write(code_fmt(f"""\ 129 f.write(code_fmt(f"""\ [all …]
|
| /openbmc/qemu/include/migration/ |
| H A D | qemu-file-types.h | 28 int qemu_file_get_error(QEMUFile *f); 30 void qemu_put_buffer(QEMUFile *f, const uint8_t *buf, size_t size); 31 void qemu_put_byte(QEMUFile *f, int v); 35 void qemu_put_be16(QEMUFile *f, unsigned int v); 36 void qemu_put_be32(QEMUFile *f, unsigned int v); 37 void qemu_put_be64(QEMUFile *f, uint64_t v); 38 size_t coroutine_mixed_fn qemu_get_buffer(QEMUFile *f, uint8_t *buf, size_t size); 40 int qemu_get_byte(QEMUFile *f); 42 static inline unsigned int qemu_get_ubyte(QEMUFile *f) in qemu_get_ubyte() argument 44 return (unsigned int)qemu_get_byte(f); in qemu_get_ubyte() [all …]
|
| /openbmc/phosphor-logging/lib/include/phosphor-logging/lg2/ |
| H A D | conversion.hpp | 93 static auto log_convert(const char* h, log_flag<Fs...> f, V v) in log_convert() argument 96 prohibit(f, floating); in log_convert() 97 prohibit(f, signed_val); in log_convert() 98 prohibit(f, str); in log_convert() 100 one_from_set(f, dec | hex | bin); in log_convert() 101 one_from_set(f, field8 | field16 | field32 | field64); in log_convert() 104 return std::make_tuple(h, (f | unsigned_val).value, in log_convert() 110 static auto log_convert(const char* h, log_flag<Fs...> f, V v) in log_convert() argument 113 prohibit(f, floating); in log_convert() 114 prohibit(f, str); in log_convert() [all …]
|
| /openbmc/u-boot/scripts/dtc/ |
| H A D | treesource.c | 37 yyin = current_srcfile->f; in dt_from_source() 49 static void write_prefix(FILE *f, int level) in write_prefix() argument 54 fputc('\t', f); in write_prefix() 64 static void write_propval_string(FILE *f, struct data val) in write_propval_string() argument 74 fprintf(f, "%s: ", m->ref); in write_propval_string() 77 fprintf(f, "\""); in write_propval_string() 84 fprintf(f, "\\a"); in write_propval_string() 87 fprintf(f, "\\b"); in write_propval_string() 90 fprintf(f, "\\t"); in write_propval_string() 93 fprintf(f, "\\n"); in write_propval_string() [all …]
|
| /openbmc/qemu/tests/tcg/xtensa/ |
| H A D | test_b.S | 8 bnone a2, a3, 1f 12 bnone a2, a3, 1f 13 j 2f 22 beq a2, a3, 1f 26 beq a2, a3, 1f 27 j 2f 36 blt a2, a3, 1f 40 blt a2, a3, 1f 44 blt a2, a3, 1f 45 j 2f [all …]
|
| H A D | test_bi.S | 7 beqi a2, 7, 1f 11 beqi a2, 7, 1f 12 j 2f 20 bnei a2, 7, 1f 24 bnei a2, 7, 1f 25 j 2f 33 blti a2, 7, 1f 37 blti a2, 7, 1f 41 blti a2, 7, 1f 42 j 2f [all …]
|
| /openbmc/qemu/scripts/ |
| H A D | mtest2make.py | 20 return [base if speed == 'quick' else f'{base}-{speed}' for speed in self.speeds] 69 all_targets = ' '.join((f'{prefix}-{k}' for k in suites.keys())) 70 all_xml = ' '.join((f'{prefix}-report-{k}.junit.xml' for k in suites.keys())) 72 print(f'all-{prefix}-targets = {all_targets}') 73 print(f'all-{prefix}-xml = {all_xml}') 74 …print(f'.PHONY: {prefix} do-meson-{prefix} {prefix}-report.junit.xml $(all-{prefix}-targets) $(all… 75 print(f'ifeq ($(filter {prefix}, $(MAKECMDGOALS)),)') 76 print(f'.{prefix}.mtestargs += $(call .speed.$(SPEED), $(.{prefix}.mtest-suites))') 77 print(f'endif') 78 print(f'{prefix}-build: run-ninja') [all …]
|
| /openbmc/openbmc/poky/bitbake/lib/bb/parse/ |
| H A D | __init__.py | 50 def cached_mtime(f): argument 51 if f not in __mtime_cache: 52 res = os.stat(f) 53 __mtime_cache[f] = (res.st_mtime_ns, res.st_size, res.st_ino) 54 return __mtime_cache[f] 56 def cached_mtime_noerror(f): argument 57 if f not in __mtime_cache: 59 res = os.stat(f) 60 __mtime_cache[f] = (res.st_mtime_ns, res.st_size, res.st_ino) 63 return __mtime_cache[f] [all …]
|
| /openbmc/openbmc/poky/meta/recipes-devtools/gcc/gcc/ |
| H A D | 0010-Use-the-multilib-config-files-from-B-instead-of-usin.patch | 26 for f in ${tmake_file} 28 - if test -f ${srcdir}/config/$f 30 - tmake_file_="${tmake_file_} \$(srcdir)/config/$f" 32 + case $f in 34 + if test -f ./config/$f 36 + tmake_file_="${tmake_file_} ./config/$f" 40 + if test -f ${srcdir}/config/$f 42 + tmake_file_="${tmake_file_} \$(srcdir)/config/$f" 51 for f in $tm_file; do 52 case $f in [all …]
|
| /openbmc/openbmc/meta-security/recipes-security/redhat-security/files/ |
| H A D | rpm-chksec.sh | 66 for f in $files 68 if [ ! -f "$f" ] ; then 71 if [ `echo "$f" | grep '\/etc\/rc.d\/init.d'` ] ; then 72 n=`basename "$f"` 83 t=`cat "$f" 2>/dev/null | grep 'bin' | grep 'exit 5' | grep -v '\$'` 89 echo "Can't find the executable in $f but daemon rules would apply" 91 elif [ `echo "$f" | grep '\/lib\/systemd\/'` ] ; then 92 t=`cat "$f" | grep -i '^ExecStart=' | tr '=' ' ' | awk '{ print $2 }'` 103 for f in $files 105 if [ ! -f "$f" ] ; then [all …]
|
| /openbmc/openbmc/poky/bitbake/lib/bb/ |
| H A D | checksum.py | 26 def cached_mtime(self, f): argument 27 if f not in self.cache: 28 self.cache[f] = os.stat(f)[stat.ST_MTIME] 29 return self.cache[f] 31 def cached_mtime_noerror(self, f): argument 32 if f not in self.cache: 34 self.cache[f] = os.stat(f)[stat.ST_MTIME] 37 return self.cache[f] 39 def update_mtime(self, f): argument 40 self.cache[f] = os.stat(f)[stat.ST_MTIME] [all …]
|
| /openbmc/openbmc-test-automation/lib/ |
| H A D | sensor_info_record.py | 35 f"{sensor_id}: Lower thresholds violate IPMI spec\n" 36 f"lnr={lnr} lcr={lcr} lnc={lnc}" 41 f"- Error: {e}\n" 42 f"- Threshold Values:\n" 43 f" • Lower Non-Recoverable (lnr): {lnr}\n" 44 f" • Lower Critical (lcr): {lcr}\n" 45 f" • Lower Non-Critical (lnc): {lnc}\n" 58 f"{sensor_id}: Upper thresholds violate IPMI spec\n" 59 f"unc={unc} ucr={ucr} unr={unr}" 64 f"- Error: {e}\n" [all …]
|
| /openbmc/openbmc/poky/bitbake/lib/bb/tests/ |
| H A D | parse.py | 43 f = tempfile.NamedTemporaryFile(suffix = suffix) 44 f.write(bytes(content, "utf-8")) 45 f.flush() 46 os.chdir(os.path.dirname(f.name)) 47 return f 50 f = self.parsehelper(self.testfile) 51 d = bb.parse.handle(f.name, self.d)[''] 58 f = self.parsehelper(testfileB) 60 d = bb.parse.handle(f.name, self.d)[''] 72 f = self.parsehelper(self.unsettest) [all …]
|
| /openbmc/openbmc/poky/meta/lib/bbconfigbuild/ |
| H A D | configfragments.py | 59 def print_fragment(f, verbose, is_enabled): argument 61 print('{}\t{}'.format(f['name'], f['summary'])) 63 …ummary: {}\nDescription:\n{}\n'.format(f['name'], f['path'], 'yes' if is_enabled else 'no', f['sum… 70 enabled_fragments = [f for f in fragments if f['name'] in all_enabled_fragments] 71 disabled_fragments = [f for f in fragments if f['name'] not in all_enabled_fragments] 76 for f in enabled_fragments: 77 print_fragment(f, args.verbose, is_enabled=True) 81 for f in disabled_fragments: 82 print_fragment(f, args.verbose, is_enabled=False) 87 for f in layerdata['fragments']: [all …]
|
| /openbmc/qemu/scripts/codeconverter/codeconverter/ |
| H A D | test_patching.py | 32 f = FileInfo(files, of.name) 33 f.load() 34 matches = f.matches_of_type(BasicPattern) 39 f.patches.append(p2.append('XXX')) 42 f.gen_patches(matches) 43 patched = f.get_patched_content() 72 f = FileInfo(files, of.name) 73 f.load() 74 assert len(f.matches_of_type(Function)) == 2 75 print(' '.join(m.name for m in f.matches_of_type(Statement))) [all …]
|
| /openbmc/qemu/include/qemu/ |
| H A D | futex.h | 35 static inline void qemu_futex_wake_all(void *f) in qemu_futex_wake_all() argument 37 qemu_futex(f, FUTEX_WAKE, INT_MAX, NULL, NULL, 0); in qemu_futex_wake_all() 40 static inline void qemu_futex_wake_single(void *f) in qemu_futex_wake_single() argument 42 qemu_futex(f, FUTEX_WAKE, 1, NULL, NULL, 0); in qemu_futex_wake_single() 45 static inline void qemu_futex_wait(void *f, unsigned val) in qemu_futex_wait() argument 47 while (qemu_futex(f, FUTEX_WAIT, (int) val, NULL, NULL, 0)) { in qemu_futex_wait() 61 static inline void qemu_futex_wake_all(void *f) in qemu_futex_wake_all() argument 63 WakeByAddressAll(f); in qemu_futex_wake_all() 66 static inline void qemu_futex_wake_single(void *f) in qemu_futex_wake_single() argument 68 WakeByAddressSingle(f); in qemu_futex_wake_single() [all …]
|