| /rk3399_ARM-atf/plat/mediatek/lib/mtk_init/ |
| H A D | mtk_init.c | 21 const struct initcall *entry; in mtk_init_one_level() local 30 for (entry = initcall_list[level]; in mtk_init_one_level() 31 (entry != NULL) && (entry < initcall_list[level + 1]); in mtk_init_one_level() 32 entry++) { in mtk_init_one_level() 33 INFO("calling %s\n", entry->name); in mtk_init_one_level() 34 error = entry->fn(); in mtk_init_one_level() 36 ERROR("init %s fail, errno:%d\n", entry->name, error); in mtk_init_one_level()
|
| /rk3399_ARM-atf/lib/cpus/ |
| H A D | errata_common.c | 37 struct erratum_entry *entry, *end; in find_erratum_entry() local 42 entry = cpu_ops->errata_list_start; in find_erratum_entry() 43 assert(entry != NULL); in find_erratum_entry() 50 while ((entry <= end)) { in find_erratum_entry() 51 if (entry->id == errata_id) { in find_erratum_entry() 52 return entry; in find_erratum_entry() 54 entry += 1; in find_erratum_entry() 208 struct erratum_entry *entry; in check_erratum_applies() local 213 entry = find_erratum_entry(errata_id); in check_erratum_applies() 215 if (entry == NULL) { in check_erratum_applies() [all …]
|
| H A D | errata_report.c | 70 struct erratum_entry *entry = cpu_ops->errata_list_start; in generic_errata_report() local 74 for (; entry != end; entry += 1) { in generic_errata_report() 75 uint64_t status = entry->check_func(rev_var); in generic_errata_report() 77 assert(entry->id != 0); in generic_errata_report() 84 if (status == ERRATA_APPLIES && entry->chosen == 0) { in generic_errata_report() 88 print_status(status, cpu_ops->cpu_str, entry->cve, entry->id); in generic_errata_report()
|
| /rk3399_ARM-atf/drivers/partition/ |
| H A D | gpt.c | 43 int parse_gpt_entry(gpt_entry_t *gpt_entry, partition_entry_t *entry) in parse_gpt_entry() argument 47 assert((gpt_entry != NULL) && (entry != NULL)); in parse_gpt_entry() 53 zeromem(entry, sizeof(partition_entry_t)); in parse_gpt_entry() 54 result = unicode_to_ascii(gpt_entry->name, (uint8_t *)entry->name); in parse_gpt_entry() 58 entry->start = (uint64_t)gpt_entry->first_lba * in parse_gpt_entry() 60 entry->length = (uint64_t)(gpt_entry->last_lba - in parse_gpt_entry() 63 guidcpy(&entry->part_guid, &gpt_entry->unique_uuid); in parse_gpt_entry() 64 guidcpy(&entry->type_guid, &gpt_entry->type_uuid); in parse_gpt_entry()
|
| H A D | partition.c | 205 static int load_gpt_entry(uintptr_t image_handle, gpt_entry_t *entry) in load_gpt_entry() argument 210 assert(entry != NULL); in load_gpt_entry() 211 result = io_read(image_handle, (uintptr_t)entry, sizeof(gpt_entry_t), in load_gpt_entry() 230 gpt_entry_t entry; in load_partition_gpt() local 243 result = load_gpt_entry(image_handle, &entry); in load_partition_gpt() 250 result = parse_gpt_entry(&entry, &list.list[i]); in load_partition_gpt() 265 calc_crc = tf_crc32(calc_crc, (uint8_t *)&entry, sizeof(gpt_entry_t)); in load_partition_gpt() 286 result = load_gpt_entry(image_handle, &entry); in load_partition_gpt() 293 calc_crc = tf_crc32(calc_crc, (uint8_t *)&entry, sizeof(gpt_entry_t)); in load_partition_gpt()
|
| /rk3399_ARM-atf/lib/debugfs/ |
| H A D | devfip.c | 96 static int get_entry(chan_t *c, struct fip_entry *entry) in get_entry() argument 100 n = devtab[c->index]->read(c, entry, sizeof(struct fip_entry)); in get_entry() 109 if (entry->size == 0) { in get_entry() 124 struct fip_entry entry; in fipgen() local 148 r = get_entry(&nc, &entry); in fipgen() 153 off += sizeof(entry); in fipgen() 158 &entry.uuid, sizeof(uuid_t)) == 0) { in fipgen() 165 entry.size, n, O_READ); in fipgen() 168 make_dir_entry(c, dir, unk, entry.size, n, O_READ); in fipgen() 249 struct fip_entry entry; in fipmount() local [all …]
|
| /rk3399_ARM-atf/lib/xlat_tables_v2/ |
| H A D | xlat_tables_utils.c | 350 uint64_t *entry; in xlat_get_mem_attributes_internal() local 367 entry = find_xlat_table_entry(base_va, in xlat_get_mem_attributes_internal() 372 if (entry == NULL) { in xlat_get_mem_attributes_internal() 378 *addr_pa = *entry & TABLE_ADDR_MASK; in xlat_get_mem_attributes_internal() 382 *table_entry = entry; in xlat_get_mem_attributes_internal() 389 desc = *entry; in xlat_get_mem_attributes_internal() 543 const uint64_t *entry; in xlat_change_mem_attributes_ctx() local 547 entry = find_xlat_table_entry(base_va, in xlat_change_mem_attributes_ctx() 552 if (entry == NULL) { in xlat_change_mem_attributes_ctx() 557 desc = *entry; in xlat_change_mem_attributes_ctx() [all …]
|
| /rk3399_ARM-atf/lib/coreboot/ |
| H A D | coreboot_table.c | 135 cb_entry_t *entry = ptr; in coreboot_table_setup() local 142 switch (read_le32(&entry->tag)) { in coreboot_table_setup() 144 size = read_le32(&entry->size) - in coreboot_table_setup() 150 memcpy(&coreboot_memranges, &entry->memranges, size); in coreboot_table_setup() 153 memcpy(&coreboot_serial, &entry->serial, in coreboot_table_setup() 157 setup_cbmem_console(read_le64(&entry->uint64)); in coreboot_table_setup() 164 ptr += read_le32(&entry->size); in coreboot_table_setup()
|
| /rk3399_ARM-atf/services/std_svc/errata_abi/ |
| H A D | errata_abi_main.c | 171 struct erratum_entry *entry; in verify_errata_implemented() local 182 entry = find_erratum_entry(errata_id); in verify_errata_implemented() 183 if (entry == NULL) in verify_errata_implemented() 186 if (entry->check_func(rev_var)) { in verify_errata_implemented() 187 if (entry->chosen & WA_ENABLED_MASK) in verify_errata_implemented() 188 if (entry->chosen & SPLIT_WA_MASK) in verify_errata_implemented()
|
| /rk3399_ARM-atf/plat/st/common/ |
| H A D | bl2_io_storage.c | 545 const partition_entry_t *entry; in bl2_plat_handle_pre_image_load() local 549 entry = get_partition_entry_by_type(&fip_guid); in bl2_plat_handle_pre_image_load() 550 if (entry == NULL) { in bl2_plat_handle_pre_image_load() 551 entry = get_partition_entry(FIP_IMAGE_NAME); in bl2_plat_handle_pre_image_load() 552 if (entry == NULL) { in bl2_plat_handle_pre_image_load() 560 image_block_spec.offset = entry->start; in bl2_plat_handle_pre_image_load() 561 image_block_spec.length = entry->length; in bl2_plat_handle_pre_image_load() 743 const partition_entry_t *entry __maybe_unused; in plat_fwu_set_images_source() 770 entry = get_partition_entry_by_guid(img_guid); in plat_fwu_set_images_source() 771 if (entry == NULL) { in plat_fwu_set_images_source() [all …]
|
| /rk3399_ARM-atf/drivers/io/ |
| H A D | io_fip.c | 38 fip_toc_entry_t entry; member 303 if (current_fip_file.entry.offset_address != 0U) { in fip_file_open() 329 (uintptr_t)¤t_fip_file.entry, in fip_file_open() 330 sizeof(current_fip_file.entry), in fip_file_open() 333 if (compare_uuids(¤t_fip_file.entry.uuid, in fip_file_open() 342 (compare_uuids(¤t_fip_file.entry.uuid, in fip_file_open() 354 current_fip_file.entry.offset_address = 0; in fip_file_open() 372 *length = ((fip_file_state_t *)entity->info)->entry.size; in fip_file_len() 404 file_offset = fp->entry.offset_address + fp->file_pos; in fip_file_read() 440 if (current_fip_file.entry.offset_address != 0U) { in fip_file_close()
|
| /rk3399_ARM-atf/plat/hisilicon/hikey/ |
| H A D | hikey_io_storage.c | 281 const partition_entry_t *entry; in hikey_set_fip_addr() local 285 entry = get_partition_entry(name); in hikey_set_fip_addr() 286 if (entry == NULL) { in hikey_set_fip_addr() 290 emmc_fip_spec.offset = entry->start; in hikey_set_fip_addr() 291 emmc_fip_spec.length = entry->length; in hikey_set_fip_addr()
|
| /rk3399_ARM-atf/tools/stm32image/ |
| H A D | stm32image.c | 191 uint32_t loadaddr, uint32_t entry, in stm32image_create_header_file() argument 272 entry, version, major, minor, in stm32image_create_header_file() 288 int entry = -1; in main() local 312 entry = strtol(optarg, NULL, 0); in main() 346 if (entry == -1) { in main() 357 entry, version, major, minor, in main()
|
| /rk3399_ARM-atf/plat/arm/common/ |
| H A D | arm_io_storage.c | 188 const partition_entry_t *entry = get_partition_entry(part_name); in arm_set_image_source() local 190 if (entry == NULL) { in arm_set_image_source() 204 spec->offset = PLAT_ARM_FLASH_IMAGE_BASE + entry->start; in arm_set_image_source() 205 spec->length = entry->length; in arm_set_image_source()
|
| /rk3399_ARM-atf/plat/hisilicon/hikey960/ |
| H A D | hikey960_io_storage.c | 339 const partition_entry_t *entry; in hikey960_set_fip_addr() local 343 entry = get_partition_entry(name); in hikey960_set_fip_addr() 344 if (entry == NULL) { in hikey960_set_fip_addr() 348 ufs_fip_spec.offset = entry->start; in hikey960_set_fip_addr() 349 ufs_fip_spec.length = entry->length; in hikey960_set_fip_addr()
|
| /rk3399_ARM-atf/plat/mediatek/drivers/apusys/mt8196/ |
| H A D | apusys_power.c | 20 static void apu_w_are(int entry, uint32_t reg, uint32_t data) in apu_w_are() argument 24 are_entry_addr = APUSYS_BASE + APU_ARE + ARE_REG_SIZE * ARE_ENTRY(entry); in apu_w_are() 198 int entry = 0; in apu_are_init() local 205 for (entry = ARE_CONF_START; entry < ARE_CONF_END; entry += 4) in apu_are_init() 206 mmio_write_32(APUSYS_BASE + APU_ARE + entry, 0); in apu_are_init()
|
| /rk3399_ARM-atf/plat/mediatek/drivers/cpu_pm/cpcv5_4/ |
| H A D | mt_smp.c | 45 uintptr_t entry) in mt_smp_core_bootup_address_set() argument 50 mmio_write_32(pwr_ctrl->rvbaraddr_l, entry); in mt_smp_core_bootup_address_set()
|
| /rk3399_ARM-atf/plat/mediatek/drivers/cpu_pm/cpcv3_2/ |
| H A D | mt_smp.c | 38 void mt_smp_core_bootup_address_set(struct cpu_pwr_ctrl *pwr_ctrl, uintptr_t entry) in mt_smp_core_bootup_address_set() argument 43 mmio_write_32(pwr_ctrl->rvbaraddr_l, entry); in mt_smp_core_bootup_address_set()
|
| H A D | mt_smp.h | 27 void mt_smp_core_bootup_address_set(struct cpu_pwr_ctrl *pwr_ctrl, uintptr_t entry);
|
| /rk3399_ARM-atf/plat/rockchip/rk3368/include/ |
| H A D | plat.ld.S | 25 *(.pmusram.entry)
|
| /rk3399_ARM-atf/plat/rockchip/rk3328/include/ |
| H A D | plat.ld.S | 25 *(.pmusram.entry)
|
| /rk3399_ARM-atf/plat/rockchip/rk3568/include/ |
| H A D | plat.ld.S | 25 KEEP(*(.pmusram.entry))
|
| /rk3399_ARM-atf/plat/rockchip/px30/include/ |
| H A D | plat.ld.S | 26 KEEP(*(.pmusram.entry))
|
| /rk3399_ARM-atf/plat/imx/imx8m/ |
| H A D | imx_hab.c | 64 enum hab_status (*entry)(void); member 96 return g_hab_rvt_api->entry(); in imx_hab_handler()
|
| /rk3399_ARM-atf/plat/rockchip/rk3576/include/ |
| H A D | plat.ld.S | 25 KEEP(*(.pmusram.entry))
|