| /optee_os/scripts/ |
| H A D | ts_bin_to_c.py | 117 f.write('\t\t') 118 f.write(hex(bytes[i]) + ',') 121 f.write('\n') 123 f.write(' ') 148 f.write('/* Generated from ' + ts + ' by ' + 150 f.write('#include <kernel/embedded_ts.h>\n\n') 151 f.write('#include <scattered_array.h>\n\n') 152 f.write('const uint8_t ts_bin_' + ts_uuid.hex + '[] = {\n') 154 f.write('};\n') 158 f.write('#include <kernel/secure_partition.h>\n\n') [all …]
|
| H A D | bin_to_c.py | 47 f.write('/* Generated from ' + args.bin + ' by ' + 49 f.write('#include <compiler.h>\n') 50 f.write('#include <stdint.h>\n') 52 f.write('__extension__ const char ' + args.vname + '[] = {\n') 54 f.write('__extension__ const uint8_t ' + args.vname + '[] ' + 59 f.write('\t\t') 63 f.write(hex(bytes[i]) + ',') 66 f.write('\n') 68 f.write(' ') 69 f.write('};\n')
|
| H A D | gen_stmm_hex.py | 36 outf.write('/* Automatically generated, do no edit */\n') 37 outf.write('const unsigned char stmm_image[] = {\n') 41 outf.write('\t') 42 outf.write('0x{:02x},'.format(bytes[i])) 45 outf.write('\n') 47 outf.write(' ') 48 outf.write('};\n') 50 outf.write('const unsigned int stmm_image_size = sizeof(stmm_image);\n') 51 outf.write('const unsigned int stmm_image_uncompressed_size = '
|
| H A D | gen_ldelf_hex.py | 98 outf.write(b'const uint8_t ldelf_data[%d]' % round_up(load_size, 4096)) 99 outf.write(b' __aligned(4096) = {\n') 107 outf.write(b'\t') 108 outf.write(b'0x' + '{:02x}'.format(data[j]).encode('utf-8') 112 outf.write(b'\n') 114 outf.write(b' ') 116 outf.write(b'};\n') 118 outf.write(b'const unsigned int ldelf_code_size = %d;\n' % code_size) 119 outf.write(b'const unsigned int ldelf_data_size = %d;\n' % data_size) 143 outf.write(b'/* Automatically generated, do no edit */\n') [all …]
|
| H A D | pem_to_pub_c.py | 51 f.write("#include <stdint.h>\n") 52 f.write("#include <stddef.h>\n\n") 53 f.write("const uint32_t " + args.prefix + "_exponent = " + 55 f.write("const uint8_t " + args.prefix + "_modulus[] = {\n") 59 f.write("0x" + '{0:02x}'.format(x) + ",") 62 f.write("\n") 64 f.write(" ") 65 f.write("};\n") 66 f.write("const size_t " + args.prefix + "_modulus_size = sizeof(" +
|
| H A D | gen_tee_bin.py | 249 outf.write(get_pager_bin(elffile)) 253 outf.write(get_pageable_bin(elffile)) 269 outf.write(pager_bin) 270 outf.write(pageable_bin[:init_bin_size]) 271 outf.write(embdata_bin) 272 outf.write(pageable_bin[init_bin_size:]) 296 outf.write(struct.pack('<IBBHIIIII', magic, version, arch_id, flags, 299 outf.write(pager_bin) 300 outf.write(pageable_bin[:init_bin_size]) 301 outf.write(embdata_bin) [all …]
|
| H A D | symbolize.py | 422 def write(self, line): member in Symbolizer 429 self._out.write(line[:pre]) 430 self._out.write(addr) 441 self._out.write(' ' + res) 442 self._out.write(line[post:]) 453 self._out.write(line[:pre]) 456 self._out.write(res_arr[0]) 457 self._out.write(line[post:]) 461 self._out.write(line) 489 self._out.write(line) [all …]
|
| H A D | sign_encrypt.py | 810 def write(self, outf): member in BinaryImage 813 f.write(self.subkey_img) 814 f.write(self.name_img) 815 f.write(self.shdr) 816 f.write(self.img_digest) 817 f.write(self.sig) 819 f.write(self.ta_uuid) 820 f.write(self.ta_version) 822 f.write(self.ehdr) 823 f.write(self.nonce) [all …]
|
| H A D | sign_rproc_fw.py | 494 f.write(header) 495 f.write(tlvs_buff) 496 f.write(signature) 499 f.write(bytearray(8 - align_64b)) 503 f.write(bin_img) 507 f.write(bytearray(8 - align_64b))
|
| H A D | update_changelog.py | 42 f.write(text + '\n' + current_content)
|
| /optee_os/core/arch/arm/plat-stm32mp1/scripts/ |
| H A D | stm32image.py | 46 dest_fd.write(struct.pack('<I', hdr_magic_number)) 49 dest_fd.write(b'\x00' * 64) 52 dest_fd.write(struct.pack('<IBBBBIIIIIIII', 68 dest_fd.write(b'\x00' * 64) 71 dest_fd.write(b'\x00' * 83) 72 dest_fd.write(struct.pack('<B', bintype)) 80 dest_fd.write(b'\x00' * header_size) 85 dest_fd.write(mmsrc[:sizesrc])
|
| /optee_os/core/include/drivers/ |
| H A D | firewall_device.h | 107 bool write); 123 bool write); 144 size_t size, bool read, bool write); 198 bool read __unused, bool write __unused) in firewall_check_memory_access() 206 bool read __unused, bool write __unused) in firewall_acquire_memory_access() 219 bool read __unused, bool write __unused) in firewall_release_memory_access()
|
| H A D | firewall.h | 59 bool read, bool write); 62 bool read, bool write); 65 bool write);
|
| H A D | i2c.h | 80 TEE_Result (*write)(struct i2c_dev *i2c_dev, const uint8_t *buf, member 121 if (!i2c_dev->ctrl->ops->write) in i2c_write() 124 return i2c_dev->ctrl->ops->write(i2c_dev, buf, len); in i2c_write()
|
| /optee_os/core/drivers/firewall/ |
| H A D | firewall.c | 126 bool write) in firewall_check_memory_access() argument 133 return fw->ctrl->ops->check_memory_access(fw, paddr, size, read, write); in firewall_check_memory_access() 138 bool write) in firewall_acquire_memory_access() argument 146 write); in firewall_acquire_memory_access() 158 size_t size, bool read, bool write) in firewall_release_memory_access() argument 164 write); in firewall_release_memory_access()
|
| /optee_os/core/arch/arm/plat-amlogic/scripts/ |
| H A D | aml_bin2img.py | 28 dest_fd.write(struct.pack('<IIQQQQQ', 38 dest_fd.write(b'\x00' * 464) 47 dest_fd.write(b'\x00' * header_size) 52 dest_fd.write(mmsrc[:sizesrc])
|
| /optee_os/core/arch/arm/plat-telechips/scripts/ |
| H A D | tcmktool.py | 26 outputfile.write(b'CERT'.ljust(256, b'\0')) 48 outputfile.write(buf) 58 outputfile.write(buf.ljust(ALIGN_SIZE, b'\0')) 63 outputfile.write(bytearray(FOOTER_SIZE))
|
| /optee_os/lib/libutils/isoc/include/ |
| H A D | unistd.h | 15 ssize_t write(int fd, const void *buf, size_t count);
|
| /optee_os/lib/libutils/isoc/ |
| H A D | write.c | 10 ssize_t write(int fd, const void *buf, size_t count) in write() function
|
| H A D | fwrite.c | 21 return write(fd, ptr, size * nmemb); in fwrite()
|
| H A D | sub.mk | 37 srcs-y += write.c
|
| /optee_os/core/arch/arm/plat-totalcompute/fdts/ |
| H A D | optee_sp_manifest.dts | 33 attributes = <0x3>; /* read-write */
|
| /optee_os/core/arch/arm/kernel/ |
| H A D | arm32_sysreg.txt | 93 ATS12NSOPW c7 0 c8 5 WO Stages 1 and 2 Non-secure only PL1 write 95 ATS12NSOUW c7 0 c8 7 WO Stages 1 and 2 Non-secure only unprivileged write 97 ATS1CPW c7 0 c8 1 WO Stage 1 Current state PL1 write 99 ATS1CUW c7 0 c8 3 WO Stage 1 Current state unprivileged write 101 ATS1HW c7 4 c8 1 WO Stage 1 Hyp mode write
|
| /optee_os/core/include/tee/ |
| H A D | fs_dirfile.h | 44 TEE_Result (*write)(struct tee_file_handle *fh, size_t pos, member
|
| /optee_os/core/arch/arm/dts/ |
| H A D | stm32mp15xx-dhcom-som.dtsi | 188 st,fmc2-ebi-cs-write-address-setup-ns = <5>; 189 st,fmc2-ebi-cs-write-address-hold-ns = <5>; 190 st,fmc2-ebi-cs-write-bus-turnaround-ns = <5>; 191 st,fmc2-ebi-cs-write-data-setup-ns = <45>; 192 st,fmc2-ebi-cs-write-data-hold-ns = <1>;
|