| /u-boot/lib/acpi/ |
| A D | acpigen.c | 23 u8 *acpigen_get_current(struct acpi_ctx *ctx) in acpigen_get_current() 28 void acpigen_emit_byte(struct acpi_ctx *ctx, uint data) in acpigen_emit_byte() 33 void acpigen_emit_word(struct acpi_ctx *ctx, uint data) in acpigen_emit_word() 56 void acpigen_write_len_f(struct acpi_ctx *ctx) in acpigen_write_len_f() 65 void acpigen_pop_len(struct acpi_ctx *ctx) in acpigen_pop_len() 123 void acpigen_write_zero(struct acpi_ctx *ctx) in acpigen_write_zero() 128 void acpigen_write_one(struct acpi_ctx *ctx) in acpigen_write_one() 502 void acpigen_write_ppc_nvs(struct acpi_ctx *ctx) in acpigen_write_ppc_nvs() 727 void acpigen_write_store(struct acpi_ctx *ctx) in acpigen_write_store() 766 void acpigen_write_if(struct acpi_ctx *ctx) in acpigen_write_if() [all …]
|
| A D | acpi_writer.c | 20 int acpi_write_one(struct acpi_ctx *ctx, const struct acpi_writer *entry) in acpi_write_one() 52 static int acpi_write_all(struct acpi_ctx *ctx) in acpi_write_all() 74 struct acpi_ctx *ctx; in write_acpi_tables() local 99 int write_dev_tables(struct acpi_ctx *ctx, const struct acpi_writer *entry) in write_dev_tables() 120 void acpi_setup_ctx(struct acpi_ctx *ctx, ulong start) in acpi_setup_ctx()
|
| A D | acpi_device.c | 102 static void *largeres_write_len_f(struct acpi_ctx *ctx) in largeres_write_len_f() 120 static void largeres_fill_from_len(struct acpi_ctx *ctx, char *ptr, u8 *start) in largeres_fill_from_len() 139 static void largeres_fill_len(struct acpi_ctx *ctx, void *ptr) in largeres_fill_len() 145 static int acpi_device_write_interrupt(struct acpi_ctx *ctx, in acpi_device_write_interrupt() 196 int acpi_device_write_interrupt_irq(struct acpi_ctx *ctx, in acpi_device_write_interrupt_irq() 213 int acpi_device_write_gpio(struct acpi_ctx *ctx, const struct acpi_gpio *gpio) in acpi_device_write_gpio() 346 int acpi_device_write_gpio_desc(struct acpi_ctx *ctx, in acpi_device_write_gpio_desc() 362 int acpi_device_write_interrupt_or_gpio(struct acpi_ctx *ctx, in acpi_device_write_interrupt_or_gpio() 392 int acpi_device_add_power_res(struct acpi_ctx *ctx, u32 tx_state_val, in acpi_device_add_power_res() 490 int acpi_device_write_dsm_i2c_hid(struct acpi_ctx *ctx, in acpi_device_write_dsm_i2c_hid() [all …]
|
| A D | acpi_table.c | 124 void acpi_align(struct acpi_ctx *ctx) in acpi_align() 129 void acpi_align64(struct acpi_ctx *ctx) in acpi_align64() 134 void acpi_inc(struct acpi_ctx *ctx, uint amount) in acpi_inc() 139 void acpi_inc_align(struct acpi_ctx *ctx, uint amount) in acpi_inc_align() 149 int acpi_add_table(struct acpi_ctx *ctx, void *table) in acpi_add_table()
|
| A D | csrt.c | 16 __weak int acpi_fill_csrt(struct acpi_ctx *ctx) in acpi_fill_csrt() 21 int acpi_write_csrt(struct acpi_ctx *ctx, const struct acpi_writer *entry) in acpi_write_csrt()
|
| /u-boot/drivers/crypto/hash/ |
| A D | hash_sw.c | 20 static void hash_init_crc16_ccitt(void *ctx) in hash_init_crc16_ccitt() 36 static void hash_init_crc32(void *ctx) in hash_init_crc32() 46 static void hash_finish_crc32(void *ctx, void *obuf) in hash_finish_crc32() 52 static void hash_init_md5(void *ctx) in hash_init_md5() 62 static void hash_finish_md5(void *ctx, void *obuf) in hash_finish_md5() 68 static void hash_init_sha1(void *ctx) in hash_init_sha1() 78 static void hash_finish_sha1(void *ctx, void *obuf) in hash_finish_sha1() 84 static void hash_init_sha256(void *ctx) in hash_init_sha256() 100 static void hash_init_sha384(void *ctx) in hash_init_sha384() 116 static void hash_init_sha512(void *ctx) in hash_init_sha512() [all …]
|
| /u-boot/test/dm/ |
| A D | acpigen.c | 39 struct acpi_ctx *ctx; in acpi_test_alloc_context_size() local 80 struct acpi_ctx *ctx; in dm_test_acpi_emit_simple() local 107 struct acpi_ctx *ctx; in dm_test_acpi_emit_stream() local 127 struct acpi_ctx *ctx; in dm_test_acpi_emit_string() local 146 struct acpi_ctx *ctx; in dm_test_acpi_interrupt() local 177 struct acpi_ctx *ctx; in dm_test_acpi_gpio() local 222 struct acpi_ctx *ctx; in dm_test_acpi_gpio_irq() local 266 struct acpi_ctx *ctx; in dm_test_acpi_interrupt_or_gpio() local 306 struct acpi_ctx *ctx; in dm_test_acpi_i2c() local 338 struct acpi_ctx *ctx; in dm_test_acpi_spi() local [all …]
|
| A D | acpi_dp.c | 47 struct acpi_ctx *ctx; in dm_test_acpi_dp_new_table() local 74 struct acpi_ctx *ctx; in dm_test_acpi_dp_int() local 126 struct acpi_ctx *ctx; in dm_test_acpi_dp_int64() local 152 struct acpi_ctx *ctx; in dm_test_acpi_dp_int16() local 178 struct acpi_ctx *ctx; in dm_test_acpi_dp_int8() local 204 struct acpi_ctx *ctx; in dm_test_acpi_dp_multiple() local 238 struct acpi_ctx *ctx; in dm_test_acpi_dp_array() local 279 struct acpi_ctx *ctx; in dm_test_acpi_dp_child() local 390 struct acpi_ctx *ctx; in dm_test_acpi_dp_gpio() local 430 struct acpi_ctx *ctx; in dm_test_acpi_dp_copy() local
|
| A D | acpi.c | 57 struct acpi_ctx *ctx, ulong start) in setup_ctx_and_base_tables() 70 struct acpi_ctx *ctx) in testacpi_write_tables() 101 static int testacpi_fill_ssdt(const struct udevice *dev, struct acpi_ctx *ctx) in testacpi_fill_ssdt() 263 struct acpi_ctx ctx; in dm_test_acpi_write_tables() local 305 struct acpi_ctx ctx; in dm_test_acpi_basic() local 336 struct acpi_ctx ctx; in dm_test_setup_ctx_and_base_tables() local 383 struct acpi_ctx ctx; in dm_test_acpi_cmd_list() local 426 struct acpi_ctx ctx; in dm_test_acpi_cmd_dump() local 507 struct acpi_ctx ctx; in dm_test_acpi_fill_ssdt() local 538 struct acpi_ctx ctx; in dm_test_acpi_inject_dsdt() local [all …]
|
| /u-boot/lib/ |
| A D | smbios.c | 172 static void smbios_set_eos(struct smbios_ctx *ctx, char *eos) in smbios_set_eos() 215 static int smbios_string_table_len(const struct smbios_ctx *ctx) in smbios_string_table_len() 222 struct smbios_ctx *ctx) in smbios_write_type0() 273 struct smbios_ctx *ctx) in smbios_write_type1() 308 struct smbios_ctx *ctx) in smbios_write_type2() 337 struct smbios_ctx *ctx) in smbios_write_type3() 363 struct smbios_ctx *ctx) in smbios_write_type4_dm() 396 struct smbios_ctx *ctx) in smbios_write_type4() 422 struct smbios_ctx *ctx) in smbios_write_type32() 439 struct smbios_ctx *ctx) in smbios_write_type127() [all …]
|
| A D | sha1.c | 58 void sha1_starts (sha1_context * ctx) in sha1_starts() 70 static void __maybe_unused sha1_process_one(sha1_context *ctx, const unsigned char data[64]) in sha1_process_one() 224 __weak void sha1_process(sha1_context *ctx, const unsigned char *data, in sha1_process() 239 void sha1_update(sha1_context *ctx, const unsigned char *input, in sha1_update() 284 void sha1_finish (sha1_context * ctx, unsigned char output[20]) in sha1_finish() 316 sha1_context ctx; in sha1_csum() local 330 sha1_context ctx; in sha1_csum_wd() local 364 sha1_context ctx; in sha1_hmac() local 423 sha1_context ctx; in sha1_self_test() local
|
| A D | sha512.c | 260 void sha384_starts(sha512_context * ctx) in sha384_starts() 273 void sha384_update(sha512_context *ctx, const uint8_t *input, uint32_t length) in sha384_update() 278 void sha384_finish(sha512_context * ctx, uint8_t digest[SHA384_SUM_LEN]) in sha384_finish() 294 sha512_context ctx; in sha384_csum_wd() local 323 void sha512_starts(sha512_context * ctx) in sha512_starts() 336 void sha512_update(sha512_context *ctx, const uint8_t *input, uint32_t length) in sha512_update() 341 void sha512_finish(sha512_context * ctx, uint8_t digest[SHA512_SUM_LEN]) in sha512_finish() 357 sha512_context ctx; in sha512_csum_wd() local
|
| A D | sha256.c | 45 void sha256_starts(sha256_context * ctx) in sha256_starts() 60 static void sha256_process_one(sha256_context *ctx, const uint8_t data[64]) in sha256_process_one() 191 __weak void sha256_process(sha256_context *ctx, const unsigned char *data, in sha256_process() 203 void sha256_update(sha256_context *ctx, const uint8_t *input, uint32_t length) in sha256_update() 242 void sha256_finish(sha256_context * ctx, uint8_t digest[32]) in sha256_finish() 278 sha256_context ctx; in sha256_csum_wd() local
|
| /u-boot/common/ |
| A D | hash.c | 48 sha1_context *ctx = malloc(sizeof(sha1_context)); in hash_init_sha1() local 54 static int __maybe_unused hash_update_sha1(struct hash_algo *algo, void *ctx, in hash_update_sha1() 62 static int __maybe_unused hash_finish_sha1(struct hash_algo *algo, void *ctx, in hash_finish_sha1() 75 sha256_context *ctx = malloc(sizeof(sha256_context)); in hash_init_sha256() local 81 static int __maybe_unused hash_update_sha256(struct hash_algo *algo, void *ctx, in hash_update_sha256() 102 sha512_context *ctx = malloc(sizeof(sha512_context)); in hash_init_sha384() local 129 sha512_context *ctx = malloc(sizeof(sha512_context)); in hash_init_sha512() local 156 uint16_t *ctx = malloc(sizeof(uint16_t)); in hash_init_crc16_ccitt() local 162 static int hash_update_crc16_ccitt(struct hash_algo *algo, void *ctx, in hash_update_crc16_ccitt() 170 static int hash_finish_crc16_ccitt(struct hash_algo *algo, void *ctx, in hash_finish_crc16_ccitt() [all …]
|
| /u-boot/arch/x86/lib/ |
| A D | acpi_table.c | 131 int acpi_write_madt(struct acpi_ctx *ctx, const struct acpi_writer *entry) in acpi_write_madt() 171 int acpi_write_tcpa(struct acpi_ctx *ctx, const struct acpi_writer *entry) in acpi_write_tcpa() 230 static int acpi_write_tpm2(struct acpi_ctx *ctx, in acpi_write_tpm2() 461 static int acpi_write_fadt(struct acpi_ctx *ctx, in acpi_write_fadt() 518 int acpi_write_hpet(struct acpi_ctx *ctx) in acpi_write_hpet() 535 int acpi_write_dbg2_pci_uart(struct acpi_ctx *ctx, struct udevice *dev, in acpi_write_dbg2_pci_uart() 618 void acpi_create_dmar_rmrr(struct acpi_ctx *ctx, uint segment, u64 bar, in acpi_create_dmar_rmrr() 632 void acpi_dmar_drhd_fixup(struct acpi_ctx *ctx, void *base) in acpi_dmar_drhd_fixup() 639 void acpi_dmar_rmrr_fixup(struct acpi_ctx *ctx, void *base) in acpi_dmar_rmrr_fixup() 664 int acpi_create_dmar_ds_pci_br(struct acpi_ctx *ctx, pci_dev_t bdf) in acpi_create_dmar_ds_pci_br() [all …]
|
| A D | acpigen.c | 11 void acpigen_write_empty_pct(struct acpi_ctx *ctx) in acpigen_write_empty_pct() 53 void acpigen_write_empty_ptc(struct acpi_ctx *ctx) in acpigen_write_empty_ptc()
|
| /u-boot/lib/ecdsa/ |
| A D | ecdsa-libcrypto.c | 37 static int alloc_ctx(struct signer *ctx, const struct image_sign_info *info) in alloc_ctx() 55 static void free_ctx(struct signer *ctx) in free_ctx() 114 static int read_key(struct signer *ctx, const char *key_name) in read_key() 143 static int prepare_ctx(struct signer *ctx, const struct image_sign_info *info) in prepare_ctx() 178 static int do_sign(struct signer *ctx, struct image_sign_info *info, in do_sign() 192 static int ecdsa_check_signature(struct signer *ctx, struct image_sign_info *info) in ecdsa_check_signature() 210 static int do_verify(struct signer *ctx, struct image_sign_info *info, in do_verify() 230 struct signer ctx; in ecdsa_sign() local 250 struct signer ctx; in ecdsa_verify() local 261 static int do_add(struct signer *ctx, void *fdt, const char *key_node_name) in do_add() [all …]
|
| /u-boot/lib/crypto/ |
| A D | pkcs7_parser.c | 129 struct pkcs7_parse_context *ctx; in pkcs7_parse_message() local 220 struct pkcs7_parse_context *ctx = context; in pkcs7_note_OID() local 239 struct pkcs7_parse_context *ctx = context; in pkcs7_sig_note_digest_algo() local 277 struct pkcs7_parse_context *ctx = context; in pkcs7_sig_note_pkey_algo() local 298 struct pkcs7_parse_context *ctx = context; in pkcs7_check_content_type() local 315 struct pkcs7_parse_context *ctx = context; in pkcs7_note_signeddata_version() local 349 struct pkcs7_parse_context *ctx = context; in pkcs7_note_signerinfo_version() local 392 struct pkcs7_parse_context *ctx = context; in pkcs7_extract_cert() local 432 struct pkcs7_parse_context *ctx = context; in pkcs7_note_certificate_list() local 450 struct pkcs7_parse_context *ctx = context; in pkcs7_note_content() local [all …]
|
| A D | x509_cert_parser.c | 77 struct x509_parse_context *ctx; in x509_cert_parse() local 170 struct x509_parse_context *ctx = context; in x509_note_OID() local 190 struct x509_parse_context *ctx = context; in x509_note_tbs_certificate() local 207 struct x509_parse_context *ctx = context; in x509_note_pkey_algo() local 269 struct x509_parse_context *ctx = context; in x509_note_signature() local 301 struct x509_parse_context *ctx = context; in x509_note_serial() local 314 struct x509_parse_context *ctx = context; in x509_extract_name_segment() local 418 struct x509_parse_context *ctx = context; in x509_note_issuer() local 428 struct x509_parse_context *ctx = context; in x509_note_subject() local 441 struct x509_parse_context *ctx = context; in x509_note_params() local [all …]
|
| A D | mscode_parser.c | 29 struct pefile_context *ctx = _ctx; in mscode_parse() local 78 struct pefile_context *ctx = context; in mscode_note_digest_algo() local 126 struct pefile_context *ctx = context; in mscode_note_digest() local
|
| /u-boot/cmd/ |
| A D | pxe.c | 29 static int do_get_tftp(struct pxe_context *ctx, const char *file_path, in do_get_tftp() 63 static int pxe_dhcp_option_path(struct pxe_context *ctx, unsigned long pxefile_addr_r) in pxe_dhcp_option_path() 77 static int pxe_uuid_path(struct pxe_context *ctx, unsigned long pxefile_addr_r) in pxe_uuid_path() 95 static int pxe_mac_path(struct pxe_context *ctx, unsigned long pxefile_addr_r) in pxe_mac_path() 115 static int pxe_ipaddr_paths(struct pxe_context *ctx, unsigned long pxefile_addr_r) in pxe_ipaddr_paths() 137 struct pxe_context ctx; in pxe_get() local 257 struct pxe_context ctx; in do_pxe_boot() local
|
| /u-boot/arch/x86/cpu/intel_common/ |
| A D | acpi.c | 34 int acpi_fill_mcfg(struct acpi_ctx *ctx) in acpi_fill_mcfg() 173 struct acpi_ctx *ctx) in intel_southbridge_write_acpi_tables() 200 int southbridge_inject_dsdt(const struct udevice *dev, struct acpi_ctx *ctx) in southbridge_inject_dsdt() 248 void generate_p_state_entries(struct acpi_ctx *ctx, int core, in generate_p_state_entries() 332 void generate_t_state_entries(struct acpi_ctx *ctx, int core, in generate_t_state_entries() 352 int acpi_generate_cpu_header(struct acpi_ctx *ctx, int core_id, in acpi_generate_cpu_header() 368 int acpi_generate_cpu_package_final(struct acpi_ctx *ctx, int cores_per_package) in acpi_generate_cpu_package_final()
|
| /u-boot/drivers/core/ |
| A D | acpi.c | 136 static int add_item(struct acpi_ctx *ctx, struct udevice *dev, in add_item() 169 int acpi_add_other_item(struct acpi_ctx *ctx, const struct acpi_writer *writer, in acpi_add_other_item() 222 static int sort_acpi_item_type(struct acpi_ctx *ctx, void *start, in sort_acpi_item_type() 298 int acpi_recurse_method(struct acpi_ctx *ctx, struct udevice *parent, in acpi_recurse_method() 332 int acpi_fill_ssdt(struct acpi_ctx *ctx) in acpi_fill_ssdt() 347 int acpi_inject_dsdt(struct acpi_ctx *ctx) in acpi_inject_dsdt() 368 int acpi_write_dev_tables(struct acpi_ctx *ctx) in acpi_write_dev_tables() 380 int acpi_setup_nhlt(struct acpi_ctx *ctx, struct nhlt *nhlt) in acpi_setup_nhlt()
|
| /u-boot/common/spl/ |
| A D | spl_fit.c | 70 static int spl_fit_get_image_name(const struct spl_fit_info *ctx, in spl_fit_get_image_name() 149 static int spl_fit_get_image_node(const struct spl_fit_info *ctx, in spl_fit_get_image_node() 224 const struct spl_fit_info *ctx, int node, in spl_load_fit_image() 362 const struct spl_fit_info *ctx) in spl_fit_append_fdt() 462 static int spl_fit_record_loadable(const struct spl_fit_info *ctx, int index, in spl_fit_record_loadable() 569 static int spl_fit_upload_fpga(struct spl_fit_info *ctx, int node, in spl_fit_upload_fpga() 603 static int spl_fit_load_fpga(struct spl_fit_info *ctx, in spl_fit_load_fpga() 628 static int spl_simple_fit_read(struct spl_fit_info *ctx, in spl_simple_fit_read() 663 static int spl_simple_fit_parse(struct spl_fit_info *ctx) in spl_simple_fit_parse() 693 struct spl_fit_info ctx; in spl_load_simple_fit() local
|
| /u-boot/boot/ |
| A D | pxe_utils.c | 100 static int get_relfile(struct pxe_context *ctx, const char *file_path, in get_relfile() 147 int get_pxe_file(struct pxe_context *ctx, const char *file_path, in get_pxe_file() 175 int get_pxelinux_path(struct pxe_context *ctx, const char *file, in get_pxelinux_path() 208 static int get_relfile_envaddr(struct pxe_context *ctx, const char *file_path, in get_relfile_envaddr() 389 static void label_boot_fdtoverlay(struct pxe_context *ctx, in label_boot_fdtoverlay() 492 static int label_boot(struct pxe_context *ctx, struct pxe_label *label) in label_boot() 1510 static void boot_unattempted_labels(struct pxe_context *ctx, in boot_unattempted_labels() 1524 void handle_pxe_menu(struct pxe_context *ctx, struct pxe_menu *cfg) in handle_pxe_menu() 1579 int pxe_setup_ctx(struct pxe_context *ctx, struct cmd_tbl *cmdtp, in pxe_setup_ctx() 1610 void pxe_destroy_ctx(struct pxe_context *ctx) in pxe_destroy_ctx() [all …]
|