/trusted-firmware-a-3.6.0-3.5.0/drivers/synopsys/ufs/ |
D | dw_ufs.c | 21 int result; in dwufs_phy_init() local 65 result = ufshc_dme_get(VS_MPHY_DISABLE_OFFSET, 0, &data); in dwufs_phy_init() 66 assert((result == 0) && (data == VS_MPHY_DISABLE_MPHYDIS)); in dwufs_phy_init() 71 result = ufshc_dme_get(TX_FSM_STATE_OFFSET, 0, &fsm0); in dwufs_phy_init() 72 assert(result == 0); in dwufs_phy_init() 73 result = ufshc_dme_get(TX_FSM_STATE_OFFSET, 1, &fsm1); in dwufs_phy_init() 74 assert(result == 0); in dwufs_phy_init() 86 result = ufshc_dme_get(VS_MK2_EXTN_SUPPORT_OFFSET, 0, &data); in dwufs_phy_init() 87 assert((result == 0) && (data == 0)); in dwufs_phy_init() 92 (void)result; in dwufs_phy_init() [all …]
|
/trusted-firmware-a-3.6.0-3.5.0/drivers/partition/ |
D | partition.c | 53 int result; in load_mbr_header() local 57 result = io_seek(image_handle, IO_SEEK_SET, MBR_OFFSET); in load_mbr_header() 58 if (result != 0) { in load_mbr_header() 59 WARN("Failed to seek (%i)\n", result); in load_mbr_header() 60 return result; in load_mbr_header() 62 result = io_read(image_handle, (uintptr_t)&mbr_sector, in load_mbr_header() 64 if (result != 0) { in load_mbr_header() 65 WARN("Failed to read data (%i)\n", result); in load_mbr_header() 66 return result; in load_mbr_header() 87 int result; in load_gpt_header() local [all …]
|
/trusted-firmware-a-3.6.0-3.5.0/plat/hisilicon/poplar/ |
D | plat_storage.c | 142 int result; in open_emmc() local 145 result = io_dev_init(emmc_dev_handle, (uintptr_t)NULL); in open_emmc() 146 if (result == 0) { in open_emmc() 147 result = io_open(emmc_dev_handle, spec, &local_image_handle); in open_emmc() 148 if (result == 0) { in open_emmc() 158 return result; in open_emmc() 163 int result; in open_mmap() local 166 result = io_dev_init(mmap_dev_handle, (uintptr_t)NULL); in open_mmap() 167 if (result == 0) { in open_mmap() 168 result = io_open(mmap_dev_handle, spec, &local_image_handle); in open_mmap() [all …]
|
/trusted-firmware-a-3.6.0-3.5.0/drivers/fwu/ |
D | fwu.c | 77 int result; in fwu_metadata_load() local 84 result = plat_fwu_set_metadata_image_source(image_id, in fwu_metadata_load() 87 if (result != 0) { in fwu_metadata_load() 89 image_id, result); in fwu_metadata_load() 90 return result; in fwu_metadata_load() 93 result = io_open(dev_handle, image_spec, &image_handle); in fwu_metadata_load() 94 if (result != 0) { in fwu_metadata_load() 96 image_id, result); in fwu_metadata_load() 97 return result; in fwu_metadata_load() 100 result = io_read(image_handle, (uintptr_t)&metadata, in fwu_metadata_load() [all …]
|
/trusted-firmware-a-3.6.0-3.5.0/drivers/io/ |
D | io_encrypted.c | 85 int result; in enc_dev_init() local 89 result = plat_get_image_source(image_id, &backend_dev_handle, in enc_dev_init() 91 if (result != 0) { in enc_dev_init() 93 image_id, result); in enc_dev_init() 97 return result; in enc_dev_init() 111 int result; in enc_file_open() local 118 result = io_open(backend_dev_handle, backend_image_spec, in enc_file_open() 120 if (result != 0) { in enc_file_open() 121 WARN("Failed to open backend device (%i)\n", result); in enc_file_open() 122 result = -ENOENT; in enc_file_open() [all …]
|
D | io_fip.c | 126 int result = -ENOENT; in find_first_fip_state() local 132 result = 0; in find_first_fip_state() 137 return result; in find_first_fip_state() 144 int result = -ENOMEM; in allocate_dev_info() local 151 result = find_first_fip_state(0, &index); in allocate_dev_info() 152 assert(result == 0); in allocate_dev_info() 161 return result; in allocate_dev_info() 167 int result; in free_dev_info() local 174 result = find_first_fip_state(state->dev_spec, &index); in free_dev_info() 175 if (result == 0) { in free_dev_info() [all …]
|
D | io_storage.c | 94 int result = -ENOENT; in find_first_entity() local 97 result = 0; in find_first_entity() 102 return result; in find_first_entity() 109 int result = -ENOMEM; in allocate_entity() local 114 result = find_first_entity(NULL, &index); in allocate_entity() 115 assert(result == 0); in allocate_entity() 121 return result; in allocate_entity() 128 int result; in free_entity() local 132 result = find_first_entity(entity, &index); in free_entity() 133 if (result == 0) { in free_entity() [all …]
|
/trusted-firmware-a-3.6.0-3.5.0/drivers/renesas/common/emmc/ |
D | emmc_mount.c | 55 EMMC_ERROR_CODE result; in emmc_card_init() local 70 result = emmc_set_request_mmc_clock(&freq); in emmc_card_init() 71 if (result != EMMC_SUCCESS) { in emmc_card_init() 82 result = emmc_send_idle_cmd(0x00000000); in emmc_card_init() 83 if (result != EMMC_SUCCESS) { in emmc_card_init() 85 return result; in emmc_card_init() 93 result = in emmc_card_init() 95 if (result != EMMC_SUCCESS) { in emmc_card_init() 97 return result; in emmc_card_init() 124 result = emmc_exec_cmd(EMMC_R1_ERROR_MASK, mmc_drv_obj.response); in emmc_card_init() [all …]
|
D | emmc_init.c | 74 EMMC_ERROR_CODE result; in emmc_dev_finalize() local 82 result = rcar_emmc_memcard_power(FALSE); in emmc_dev_finalize() 98 return result; in emmc_dev_finalize() 127 EMMC_ERROR_CODE result; in emmc_reset_controller() local 133 result = emmc_dev_init(); in emmc_reset_controller() 134 if (result == EMMC_SUCCESS) { in emmc_reset_controller() 138 return result; in emmc_reset_controller() 144 EMMC_ERROR_CODE result; in emmc_terminate() local 146 result = emmc_dev_finalize(); in emmc_terminate() 150 return result; in emmc_terminate() [all …]
|
D | emmc_read.c | 22 EMMC_ERROR_CODE result; in emmc_multiple_block_read() local 36 result = emmc_exec_cmd(EMMC_R1_ERROR_MASK, mmc_drv_obj.response); in emmc_multiple_block_read() 37 if (result != EMMC_SUCCESS) { in emmc_multiple_block_read() 38 return result; in emmc_multiple_block_read() 50 result = emmc_exec_cmd(EMMC_R1_ERROR_MASK, mmc_drv_obj.response); in emmc_multiple_block_read() 51 if (result != EMMC_SUCCESS) { in emmc_multiple_block_read() 52 return result; /* CMD18 error code */ in emmc_multiple_block_read() 57 result = emmc_exec_cmd(EMMC_R1_ERROR_MASK, mmc_drv_obj.response); in emmc_multiple_block_read() 58 if (result != EMMC_SUCCESS) { in emmc_multiple_block_read() 59 return result; in emmc_multiple_block_read() [all …]
|
/trusted-firmware-a-3.6.0-3.5.0/plat/imx/common/ |
D | imx_io_storage.c | 208 int result; in open_fip() local 212 result = io_dev_init(fip_dev_handle, (uintptr_t)FIP_IMAGE_ID); in open_fip() 213 if (result == 0) { in open_fip() 214 result = io_open(fip_dev_handle, spec, &local_image_handle); in open_fip() 215 if (result == 0) { in open_fip() 220 return result; in open_fip() 226 int result; in open_mmc() local 229 result = io_dev_init(mmc_dev_handle, (uintptr_t)NULL); in open_mmc() 230 if (result == 0) { in open_mmc() 231 result = io_open(mmc_dev_handle, spec, &local_handle); in open_mmc() [all …]
|
/trusted-firmware-a-3.6.0-3.5.0/drivers/renesas/common/iic_dvfs/ |
D | iic_dvfs.c | 192 int32_t result = DVFS_PROCESS; in IIC_DVFS_FUNC() local 236 return result; in IIC_DVFS_FUNC() 242 int32_t result; in IIC_DVFS_FUNC() local 245 result = dvfs_check_error(state, err, DVFS_WRITE_MODE); in IIC_DVFS_FUNC() 246 if (result == DVFS_ERROR) { in IIC_DVFS_FUNC() 247 return result; in IIC_DVFS_FUNC() 252 return result; in IIC_DVFS_FUNC() 263 return result; in IIC_DVFS_FUNC() 269 int32_t result; in IIC_DVFS_FUNC() local 271 result = dvfs_check_error(state, err, DVFS_WRITE_MODE); in IIC_DVFS_FUNC() [all …]
|
/trusted-firmware-a-3.6.0-3.5.0/plat/intel/soc/common/ |
D | socfpga_storage.c | 105 int result; in check_dev() local 108 result = io_dev_init(boot_dev_handle, (uintptr_t)NULL); in check_dev() 109 if (result == 0) { in check_dev() 110 result = io_open(boot_dev_handle, spec, &local_handle); in check_dev() 111 if (result == 0) in check_dev() 114 return result; in check_dev() 119 int result; in check_fip() local 122 result = io_dev_init(fip_dev_handle, (uintptr_t)FIP_IMAGE_ID); in check_fip() 123 if (result == 0) { in check_fip() 124 result = io_open(fip_dev_handle, spec, &local_image_handle); in check_fip() [all …]
|
/trusted-firmware-a-3.6.0-3.5.0/plat/st/stm32mp1/services/ |
D | bsec_svc.c | 20 uint32_t result; in bsec_main() local 25 result = bsec_read_otp(ret_otp_value, x2); in bsec_main() 29 result = bsec_program_otp(x3, x2); in bsec_main() 33 result = bsec_write_otp(x3, x2); in bsec_main() 37 result = bsec_read_otp(&tmp_data, x2); in bsec_main() 38 if (result != BSEC_OK) { in bsec_main() 42 result = bsec_shadow_register(x2); in bsec_main() 43 if (result != BSEC_OK) { in bsec_main() 47 result = bsec_read_otp(ret_otp_value, x2); in bsec_main() 48 if (result != BSEC_OK) { in bsec_main() [all …]
|
/trusted-firmware-a-3.6.0-3.5.0/plat/hisilicon/hikey960/ |
D | hikey960_io_storage.c | 239 int result; in check_ufs() local 242 result = io_dev_init(ufs_dev_handle, (uintptr_t)NULL); in check_ufs() 243 if (result == 0) { in check_ufs() 244 result = io_open(ufs_dev_handle, spec, &local_handle); in check_ufs() 245 if (result == 0) in check_ufs() 248 return result; in check_ufs() 253 int result; in check_fip() local 257 result = io_dev_init(fip_dev_handle, (uintptr_t)FIP_IMAGE_ID); in check_fip() 258 if (result == 0) { in check_fip() 259 result = io_open(fip_dev_handle, spec, &local_image_handle); in check_fip() [all …]
|
/trusted-firmware-a-3.6.0-3.5.0/plat/arm/common/ |
D | arm_io_storage.c | 41 int result; in open_fip() local 45 result = io_dev_init(fip_dev_handle, (uintptr_t)FIP_IMAGE_ID); in open_fip() 46 if (result == 0) { in open_fip() 47 result = io_open(fip_dev_handle, spec, &local_image_handle); in open_fip() 48 if (result == 0) { in open_fip() 53 return result; in open_fip() 58 int result; in open_memmap() local 61 result = io_dev_init(memmap_dev_handle, (uintptr_t)NULL); in open_memmap() 62 if (result == 0) { in open_memmap() 63 result = io_open(memmap_dev_handle, spec, &local_image_handle); in open_memmap() [all …]
|
/trusted-firmware-a-3.6.0-3.5.0/tools/fiptool/ |
D | win_posix.c | 119 int result = RET_END_OPT_LIST; in getopt() local 129 result = getopt_1char(argc, argv, opstring, arg[1]); in getopt() 132 return result; in getopt() 147 int result = 0; in optmatch() local 149 while ((result == 0) && (*optname != 0) && (*argval != 0)) in optmatch() 150 result = (*argval++) - (*optname++); in optmatch() 151 return result; in optmatch() 162 int result = RET_UNKNOWN_OPT; in getopt_1long() local 198 result = longopts[loptn].val; in getopt_1long() 206 optopt = result; in getopt_1long() [all …]
|
/trusted-firmware-a-3.6.0-3.5.0/plat/imx/common/sci/svc/timer/ |
D | timer_rpc_clnt.c | 34 uint8_t result; in sc_timer_set_wdog_timeout() local 44 result = RPC_R8(&msg); in sc_timer_set_wdog_timeout() 45 return (sc_err_t)result; in sc_timer_set_wdog_timeout() 52 uint8_t result; in sc_timer_set_wdog_pre_timeout() local 62 result = RPC_R8(&msg); in sc_timer_set_wdog_pre_timeout() 63 return (sc_err_t)result; in sc_timer_set_wdog_pre_timeout() 69 uint8_t result; in sc_timer_start_wdog() local 79 result = RPC_R8(&msg); in sc_timer_start_wdog() 80 return (sc_err_t)result; in sc_timer_start_wdog() 86 uint8_t result; in sc_timer_stop_wdog() local [all …]
|
/trusted-firmware-a-3.6.0-3.5.0/plat/hisilicon/hikey/ |
D | hikey_io_storage.c | 229 int result; in check_emmc() local 232 result = io_dev_init(emmc_dev_handle, (uintptr_t)NULL); in check_emmc() 233 if (result == 0) { in check_emmc() 234 result = io_open(emmc_dev_handle, spec, &local_handle); in check_emmc() 235 if (result == 0) in check_emmc() 238 return result; in check_emmc() 243 int result; in check_fip() local 247 result = io_dev_init(fip_dev_handle, (uintptr_t)FIP_IMAGE_ID); in check_fip() 248 if (result == 0) { in check_fip() 249 result = io_open(fip_dev_handle, spec, &local_image_handle); in check_fip() [all …]
|
/trusted-firmware-a-3.6.0-3.5.0/plat/imx/common/sci/svc/rm/ |
D | rm_rpc_clnt.c | 36 uint8_t result; in sc_rm_partition_alloc() local 50 result = RPC_R8(&msg); in sc_rm_partition_alloc() 55 return (sc_err_t)result; in sc_rm_partition_alloc() 61 uint8_t result; in sc_rm_set_confidential() local 72 result = RPC_R8(&msg); in sc_rm_set_confidential() 73 return (sc_err_t)result; in sc_rm_set_confidential() 79 uint8_t result; in sc_rm_partition_free() local 89 result = RPC_R8(&msg); in sc_rm_partition_free() 90 return (sc_err_t)result; in sc_rm_partition_free() 96 uint8_t result; in sc_rm_get_did() local [all …]
|
/trusted-firmware-a-3.6.0-3.5.0/plat/marvell/armada/common/ |
D | marvell_io_storage.c | 120 int result; in open_fip() local 124 result = io_dev_init(fip_dev_handle, (uintptr_t)FIP_IMAGE_ID); in open_fip() 125 if (result == 0) { in open_fip() 126 result = io_open(fip_dev_handle, spec, &local_image_handle); in open_fip() 127 if (result == 0) { in open_fip() 132 return result; in open_fip() 138 int result; in open_memmap() local 141 result = io_dev_init(memmap_dev_handle, (uintptr_t)NULL); in open_memmap() 142 if (result == 0) { in open_memmap() 143 result = io_open(memmap_dev_handle, spec, &local_image_handle); in open_memmap() [all …]
|
/trusted-firmware-a-3.6.0-3.5.0/plat/imx/common/sci/svc/pm/ |
D | pm_rpc_clnt.c | 35 uint8_t result; in sc_pm_set_sys_power_mode() local 45 result = RPC_R8(&msg); in sc_pm_set_sys_power_mode() 46 return (sc_err_t)result; in sc_pm_set_sys_power_mode() 53 uint8_t result; in sc_pm_set_partition_power_mode() local 64 result = RPC_R8(&msg); in sc_pm_set_partition_power_mode() 65 return (sc_err_t)result; in sc_pm_set_partition_power_mode() 72 uint8_t result; in sc_pm_get_sys_power_mode() local 82 result = RPC_R8(&msg); in sc_pm_get_sys_power_mode() 87 return (sc_err_t)result; in sc_pm_get_sys_power_mode() 94 uint8_t result; in sc_pm_set_resource_power_mode() local [all …]
|
/trusted-firmware-a-3.6.0-3.5.0/drivers/ufs/ |
D | ufs.c | 45 int result = 0; in ufs_uic_error_handler() local 54 result = -EAGAIN; in ufs_uic_error_handler() 63 result = -EAGAIN; in ufs_uic_error_handler() 69 result = -EAGAIN; in ufs_uic_error_handler() 74 result = -EAGAIN; in ufs_uic_error_handler() 79 result = -EAGAIN; in ufs_uic_error_handler() 82 return result; in ufs_uic_error_handler() 97 int result; in ufs_error_handler() local 100 result = ufs_uic_error_handler(ignore_linereset); in ufs_error_handler() 101 if (result != 0) { in ufs_error_handler() [all …]
|
/trusted-firmware-a-3.6.0-3.5.0/plat/arm/board/fvp_r/ |
D | fvp_r_io_storage.c | 54 int result; in open_semihosting() local 58 result = io_dev_init(sh_dev_handle, (uintptr_t)NULL); in open_semihosting() 59 if (result == 0) { in open_semihosting() 60 result = io_open(sh_dev_handle, spec, &local_image_handle); in open_semihosting() 61 if (result == 0) { in open_semihosting() 66 return result; in open_semihosting() 97 int result = open_semihosting((const uintptr_t)&sh_file_spec[image_id]); in plat_arm_get_alt_image_source() local 99 if (result == 0) { in plat_arm_get_alt_image_source() 104 return result; in plat_arm_get_alt_image_source()
|
/trusted-firmware-a-3.6.0-3.5.0/drivers/st/bsec/ |
D | bsec2.c | 247 uint32_t result; in bsec_set_config() local 266 result = bsec_power_safmem((bool)cfg->power & in bsec_set_config() 268 if (result != BSEC_OK) { in bsec_set_config() 269 return result; in bsec_set_config() 329 uint32_t result; in bsec_shadow_register() local 337 result = bsec_read_sr_lock(otp, &value); in bsec_shadow_register() 338 if (result != BSEC_OK) { in bsec_shadow_register() 339 ERROR("BSEC: %u Sticky-read bit read Error %u\n", otp, result); in bsec_shadow_register() 340 return result; in bsec_shadow_register() 349 result = bsec_power_safmem(true); in bsec_shadow_register() [all …]
|