| /openbmc/openbmc/poky/bitbake/lib/ |
| H A D | codegen.py | 94 def write(self, x): member in SourceGenerator 105 self.write('# line: %s' % node.lineno) 119 self.write('else:') 126 self.write(', ') 135 self.write('=') 139 self.write('*' + node.vararg) 142 self.write('**' + node.kwarg) 147 self.write('@') 156 self.write(', ') 158 self.write(' = ') [all …]
|
| /openbmc/u-boot/arch/arm/mach-rockchip/ |
| H A D | make_fit_atf.py | 62 file.write('\t\tatf_%d {\n' % atf_index) 63 file.write('\t\t\tdescription = \"ARM Trusted Firmware\";\n') 64 file.write('\t\t\tdata = /incbin/("%s");\n' % data) 65 file.write('\t\t\ttype = "firmware";\n') 66 file.write('\t\t\tarch = "arm64";\n') 67 file.write('\t\t\tos = "arm-trusted-firmware";\n') 68 file.write('\t\t\tcompression = "none";\n') 69 file.write('\t\t\tload = <0x%08x>;\n' % phy_addr) 71 file.write('\t\t\tentry = <0x%08x>;\n' % elf_entry) 72 file.write('\t\t};\n') [all …]
|
| /openbmc/qemu/scripts/ |
| H A D | feature_to_c.py | 7 sys.stdout.write(' ' * indent) 8 sys.stdout.write('"') 13 sys.stdout.write('\n') 14 sys.stdout.write(' ' * indent) 15 sys.stdout.write('"') 19 sys.stdout.write('\\"') 21 sys.stdout.write('\\\\') 23 sys.stdout.write('\\n"') 26 sys.stdout.write(c.to_bytes(1, 'big').decode()) 28 sys.stdout.write(f'\{c:03o}') [all …]
|
| /openbmc/bmcweb/scripts/ |
| H A D | parse_registries.py | 102 registry.write(REGISTRY_HEADER.format(struct_name)) 105 registry.write( 133 registry.write( 148 registry.write( 151 registry.write("\n },\n") 153 registry.write("},\n") 154 registry.write( 160 registry.write("\n};\n\nenum class Index\n{\n") 163 registry.write(" {} = {},\n".format(messageId, index)) 164 registry.write("};\n") [all …]
|
| /openbmc/qemu/target/hexagon/ |
| H A D | hex_common.py | 341 f.write(code_fmt(f"""\ 450 f.write(code_fmt(f"""\ 454 f.write(code_fmt(f"""\ 459 f.write(code_fmt(f"""\ 466 f.write(code_fmt(f"""\ 470 f.write(code_fmt(f"""\ 476 f.write(code_fmt(f"""\ 480 f.write(code_fmt(f"""\ 487 f.write(code_fmt(f"""\ 494 f.write(code_fmt(f"""\ [all …]
|
| H A D | gen_tcg_funcs.py | 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") 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") 100 f.write("}\n\n") 118 f.write("#ifndef HEXAGON_TCG_FUNCS_H\n") [all …]
|
| H A D | gen_analyze_funcs.py | 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( 77 f.write("}\n\n") 88 f.write("#ifndef HEXAGON_ANALYZE_FUNCS_C_INC\n") 89 f.write("#define HEXAGON_ANALYZE_FUNCS_C_INC\n\n") 94 f.write("#endif /* HEXAGON_ANALYZE_FUNCS_C_INC */\n")
|
| H A D | gen_helper_funcs.py | 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"""\ 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"""\ 88 f.write(hex_common.code_fmt(f"""\ 96 f.write(hex_common.code_fmt(f"""\ [all …]
|
| H A D | gen_decodetree.py | 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" 140 f.write(f"%{tag}_{reg_type}{reg_id}\t" 145 f.write(f"\t!function=decode_mapped_reg_{reg_mapping}") 146 f.write("\n") 160 f.write(f"%{tag}_{imm_type}{imm_letter}\t{field_str}\n") 174 f.write(f"@{tag}\t{enc_str}") 178 f.write(f" {reg_type}{reg_id}=%{tag}_{reg_type}{reg_id}") 182 f.write(f" {imm_type}{imm_letter}=%{tag}_{imm_type}{imm_letter}") [all …]
|
| /openbmc/qemu/tests/qemu-iotests/ |
| H A D | 026.out | 6 Event: l1_update; errno: 5; imm: off; once: on; write 7 write failed: Input/output error 11 Event: l1_update; errno: 5; imm: off; once: on; write -b 12 write failed: Input/output error 16 Event: l1_update; errno: 5; imm: off; once: off; write 19 write failed: Input/output error 23 Event: l1_update; errno: 5; imm: off; once: off; write -b 26 write failed: Input/output error 30 Event: l1_update; errno: 28; imm: off; once: on; write 31 write failed: No space left on device [all …]
|
| H A D | 026.out.nocache | 6 Event: l1_update; errno: 5; imm: off; once: on; write 7 write failed: Input/output error 11 Event: l1_update; errno: 5; imm: off; once: on; write -b 12 write failed: Input/output error 16 Event: l1_update; errno: 5; imm: off; once: off; write 19 write failed: Input/output error 23 Event: l1_update; errno: 5; imm: off; once: off; write -b 26 write failed: Input/output error 30 Event: l1_update; errno: 28; imm: off; once: on; write 31 write failed: No space left on device [all …]
|
| H A D | 271.out | 3 ### Standard write tests (backing file: yes) ### 8 write -q -P PATTERN 0 1k 10 write -q -P PATTERN 3k 512 12 write -q -P PATTERN 5k 1k 14 write -q -P PATTERN 6k 2k 16 write -q -P PATTERN 8k 6k 18 write -q -P PATTERN 15k 4k 20 write -q -P PATTERN 32k 1k 22 write -q -P PATTERN 63k 4k 25 write -q -z 2k 2k [all …]
|
| /openbmc/smbios-mdr/src/smbios-ipmi-blobs/test/ |
| H A D | handler_readwrite_unittest.cpp | 24 EXPECT_FALSE(handler.write(session, 0, data)); in TEST_F() 34 EXPECT_FALSE(handler.write(session, 0, data)); in TEST_F() 42 EXPECT_TRUE(handler.open(session, blobs::OpenFlags::write, expectedBlobId)); in TEST_F() 43 EXPECT_FALSE(handler.write(session, 0, data)); in TEST_F() 50 EXPECT_TRUE(handler.open(session, blobs::OpenFlags::write, expectedBlobId)); in TEST_F() 51 EXPECT_FALSE(handler.write(session, 1, data)); in TEST_F() 58 EXPECT_TRUE(handler.open(session, blobs::OpenFlags::write, expectedBlobId)); in TEST_F() 59 EXPECT_FALSE(handler.write(session, handlerMaxBufferSize - 1, data)); in TEST_F() 66 EXPECT_TRUE(handler.open(session, blobs::OpenFlags::write, expectedBlobId)); in TEST_F() 67 EXPECT_FALSE(handler.write(session, handlerMaxBufferSize, data)); in TEST_F() [all …]
|
| /openbmc/openbmc/poky/meta/recipes-devtools/python/python3/ |
| H A D | get_module_deps3.py | 55 log.write('Module %s generated the following dependencies:\n' % current_module) 71 log.write('Module was not found\n') 95 log.write('\nCalling: sys.modules[' + '%s' % item + '].__file__\n') 100 log.write(item + ' ') 101 log.write(str(e)) 102 log.write('\n') 108 log.write(item+' ') 109 log.write(str(e)) 115 log.write('Dependency path found:\n%s\n' % dep_path) 131 log.write('Shared library found in %s\n' % dep_path) [all …]
|
| /openbmc/u-boot/test/py/ |
| H A D | multiplexed_log.py | 50 def write(self, data, implicit=False): member in LogfileStream 65 self.logfile.write(self, data, implicit) 67 self.chained_file.write(data) 132 self.chained_file.write(msg) 133 self.logfile.write(self, msg) 164 self.logfile.write(self, output) 166 self.chained_file.write(output) 229 self.f.write('''\ 308 self.f.write('''\ 353 self.f.write('</pre>\n') [all …]
|
| /openbmc/qemu/hw/intc/ |
| H A D | loongarch_pic_kvm.c | 16 static void kvm_pch_pic_access_reg(int fd, uint64_t addr, void *val, bool write) in kvm_pch_pic_access_reg() argument 19 addr, val, write, &error_abort); in kvm_pch_pic_access_reg() 22 static void kvm_pch_pic_access(void *opaque, bool write) in kvm_pch_pic_access() argument 33 kvm_pch_pic_access_reg(fd, PCH_PIC_INT_MASK, &s->int_mask, write); in kvm_pch_pic_access() 34 kvm_pch_pic_access_reg(fd, PCH_PIC_HTMSI_EN, &s->htmsi_en, write); in kvm_pch_pic_access() 35 kvm_pch_pic_access_reg(fd, PCH_PIC_INT_EDGE, &s->intedge, write); in kvm_pch_pic_access() 36 kvm_pch_pic_access_reg(fd, PCH_PIC_AUTO_CTRL0, &s->auto_crtl0, write); in kvm_pch_pic_access() 37 kvm_pch_pic_access_reg(fd, PCH_PIC_AUTO_CTRL1, &s->auto_crtl1, write); in kvm_pch_pic_access() 42 kvm_pch_pic_access_reg(fd, addr, &s->route_entry[offset], write); in kvm_pch_pic_access() 47 kvm_pch_pic_access_reg(fd, addr, &s->htmsi_vector[offset], write); in kvm_pch_pic_access() [all …]
|
| H A D | loongarch_ipi_kvm.c | 14 static void kvm_ipi_access_reg(int fd, uint64_t addr, uint32_t *val, bool write) in kvm_ipi_access_reg() argument 17 addr, val, write, &error_abort); in kvm_ipi_access_reg() 20 static void kvm_ipi_access_regs(void *opaque, bool write) in kvm_ipi_access_regs() argument 40 kvm_ipi_access_reg(fd, attr, &core->status, write); in kvm_ipi_access_regs() 43 kvm_ipi_access_reg(fd, attr, &core->en, write); in kvm_ipi_access_regs() 46 kvm_ipi_access_reg(fd, attr, &core->set, write); in kvm_ipi_access_regs() 49 kvm_ipi_access_reg(fd, attr, &core->clear, write); in kvm_ipi_access_regs() 52 kvm_ipi_access_reg(fd, attr, &core->buf[0], write); in kvm_ipi_access_regs() 55 kvm_ipi_access_reg(fd, attr, &core->buf[2], write); in kvm_ipi_access_regs() 58 kvm_ipi_access_reg(fd, attr, &core->buf[4], write); in kvm_ipi_access_regs() [all …]
|
| H A D | loongarch_extioi_kvm.c | 14 static void kvm_extioi_access_reg(int fd, uint64_t addr, void *val, bool write) in kvm_extioi_access_reg() argument 17 addr, val, write, &error_abort); in kvm_extioi_access_reg() 21 void *val, bool write) in kvm_extioi_access_sw_state() argument 24 addr, val, write, &error_abort); in kvm_extioi_access_sw_state() 27 static void kvm_extioi_access_sw_status(void *opaque, bool write) in kvm_extioi_access_sw_status() argument 34 kvm_extioi_access_sw_state(les->dev_fd, addr, &lecs->status, write); in kvm_extioi_access_sw_status() 37 static void kvm_extioi_access_regs(void *opaque, bool write) in kvm_extioi_access_regs() argument 46 kvm_extioi_access_reg(fd, addr, &lecs->nodetype[offset], write); in kvm_extioi_access_regs() 51 kvm_extioi_access_reg(fd, addr, &lecs->ipmap[offset], write); in kvm_extioi_access_regs() 56 kvm_extioi_access_reg(fd, addr, &lecs->enable[offset], write); in kvm_extioi_access_regs() [all …]
|
| /openbmc/openbmc/poky/bitbake/lib/bb/tests/ |
| H A D | color.py | 63 handler.write("Program output!\n") 64 handler.write("More output!\n") 65 handler.write("Progress: [01;35m[K10[m[K%\n") # 10% 66 handler.write("Even more\n") 67 handler.write("[01;35m[KProgress: 50[m[K%\n") # 50% 68 handler.write("[01;35m[KProgress: 60[m[K%\n") # 60% 69 handler.write("Pro[01;35m[Kgress: [m[K100%\n") # 100% 79 handler.write("[01;35m[K1[m[K%\n") # 1% 80 handler.write("[01;35m[K2[m[K%\n") # 2% 81 handler.write("[01;35m[K10[m[K%\n") # 10% [all …]
|
| /openbmc/openbmc/poky/documentation/ |
| H A D | set_versions.py | 217 w.write("%s : \"%s\"\n" % (k, replacements[k])) 219 w.write(line) 238 w.write(str(list(release_series.keys()))) 241 w.write(" 'dev': { 'title': 'Unstable (dev)', 'obsolete': false,},\n") 253 …w.write(" '%s': {'title': '%s (%s)', 'obsolete': %s,},\n" % (version, branch.capitalize(), vers… 255 …w.write(" '%s': {'title': '%s (%s)', 'obsolete': %s,},\n" % (ourversion, ourseries.capitalize()… 257 w.write(line) 295 f.write('===========================\n') 296 f.write(' Supported Release Manuals\n') 297 f.write('===========================\n') [all …]
|
| /openbmc/pyphosphor/obmc/utils/ |
| H A D | dtree.py | 35 fd.write('%s%s' % (tab, k)) 39 fd.write('%s%s = ' % (tab, k)) 41 fd.write(";%s" % newline) 44 fd.write('%s%s {%s' % (tab, k, newline)) 46 fd.write('%s};%s' % (tab, newline)) 50 fd.write("%d" % obj) 52 fd.write("<%d>" % obj) 55 fd.write("\"%s\"" % obj) 66 fd.write(closure[0]) 70 fd.write(delim) [all …]
|
| /openbmc/u-boot/drivers/net/phy/ |
| H A D | mscc.c | 276 bus->write(bus, phy0, MDIO_DEVAD_NONE, MSCC_PHY_REG_TR_DATA_18, in vsc8584_csr_write() 278 bus->write(bus, phy0, MDIO_DEVAD_NONE, MSCC_PHY_REG_TR_DATA_17, in vsc8584_csr_write() 280 bus->write(bus, phy0, MDIO_DEVAD_NONE, MSCC_PHY_REG_TR_ADDR_16, in vsc8584_csr_write() 289 bus->write(bus, phy, MDIO_DEVAD_NONE, MSCC_EXT_PAGE_ACCESS, in vsc8584_cmd() 292 bus->write(bus, phy, MDIO_DEVAD_NONE, MSCC_PHY_PROC_CMD, in vsc8584_cmd() 303 bus->write(bus, phy, MDIO_DEVAD_NONE, MSCC_EXT_PAGE_ACCESS, in vsc8584_cmd() 319 bus->write(bus, phy, MDIO_DEVAD_NONE, MSCC_EXT_PAGE_ACCESS, in vsc8584_micro_deassert_reset() 331 bus->write(bus, phy, MDIO_DEVAD_NONE, MSCC_INT_MEM_CNTL, in vsc8584_micro_deassert_reset() 339 bus->write(bus, phy, MDIO_DEVAD_NONE, MSCC_DW8051_CNTL_STATUS, enable); in vsc8584_micro_deassert_reset() 341 bus->write(bus, phy, MDIO_DEVAD_NONE, MSCC_DW8051_CNTL_STATUS, release); in vsc8584_micro_deassert_reset() [all …]
|
| /openbmc/u-boot/board/synopsys/hsdk/ |
| H A D | headerize-hsdk.py | 86 file.write(arc_id.to_bytes(2, byteorder='little')) 87 file.write(uboot_img_size.to_bytes(4, byteorder='little')) 88 file.write(check_sum.to_bytes(1, byteorder='little')) 89 file.write(image_copy_adr.to_bytes(4, byteorder='little')) 90 file.write(magic1.to_bytes(5, byteorder='big')) 91 file.write(jump_address.to_bytes(4, byteorder='little')) 92 for i in range(12): file.write(0xFF.to_bytes(1, byteorder='little')) 93 for byte in magic2: file.write(byte.to_bytes(36, byteorder='big')) 95 file.write(0xFF.to_bytes(1, byteorder='little')) 96 file.write(flash_address.to_bytes(4, byteorder='little')) [all …]
|
| /openbmc/openbmc/meta-openembedded/meta-oe/classes/ |
| H A D | fitimage.bbclass | 138 fd.write('/dts-v1/;\n\n/ {\n') 139 fd.write(d.expand('\tdescription = "fitImage for ${DISTRO_NAME}/${PV}/${MACHINE}";\n')) 140 fd.write('\t#address-cells = <1>;\n') 146 fd.write('};\n') 152 fd.write(f'\t{section} {{\n') 158 fd.write('\t};\n') 169 fd.write(f'\t\tkernel-{kernelcount} {{\n') 170 fd.write('\t\t\tdescription = "Linux kernel";\n') 171 fd.write(f'\t\t\tdata = /incbin/("{imgpath}/{imgsource}");\n') 172 fd.write('\t\t\ttype = "kernel";\n') [all …]
|
| /openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/daemonize/daemonize/ |
| H A D | 0001-fix-getopt.c-too-many-arguments-to-function-write-er.patch | 4 Subject: [PATCH] fix getopt.c too many arguments to function 'write' error in 7 In the original code, write() was declared as 'extern int write();', 10 The current fix to declare it as 'extern int write(int, const void *, unsigned);' 12 This properly defines the write function to accept 3 parameters. 15 ../git/getopt.c:51:16: error: too many arguments to function 'write'; expected 0, have 3 16 51 | (void) write(2, argv[0], (unsigned)strlen(argv[0]));\ 22 48 | extern int write();\ 39 - extern int write();\ 40 + extern int write(int, const void *, unsigned);\ 43 (void) write(2, argv[0], (unsigned)strlen(argv[0]));\
|