/device/linaro/bootloader/arm-trusted-firmware/plat/xilinx/zynqmp/pm_service/ |
D | pm_svc_main.c | 89 enum pm_ret_status ret; in pm_smc_handler() local 105 ret = pm_self_suspend(pm_arg[0], pm_arg[1], pm_arg[2], in pm_smc_handler() 107 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler() 110 ret = pm_req_suspend(pm_arg[0], pm_arg[1], pm_arg[2], in pm_smc_handler() 112 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler() 115 ret = pm_req_wakeup(pm_arg[0], pm_arg[1], pm_arg[2], in pm_smc_handler() 117 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler() 120 ret = pm_force_powerdown(pm_arg[0], pm_arg[1]); in pm_smc_handler() 121 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler() 124 ret = pm_abort_suspend(pm_arg[0]); in pm_smc_handler() [all …]
|
/device/linaro/bootloader/edk2/StdLib/LibC/Locale/ |
D | localeconv.c | 34 static struct lconv ret; in localeconv() local 38 ret.int_curr_symbol = in localeconv() 40 ret.currency_symbol = in localeconv() 42 ret.mon_decimal_point = in localeconv() 44 ret.mon_thousands_sep = in localeconv() 46 ret.mon_grouping = in localeconv() 48 ret.positive_sign = in localeconv() 50 ret.negative_sign = in localeconv() 52 ret.int_frac_digits = _CurrentMonetaryLocale->int_frac_digits; in localeconv() 53 ret.frac_digits = _CurrentMonetaryLocale->frac_digits; in localeconv() [all …]
|
/device/linaro/bootloader/arm-trusted-firmware/plat/socionext/uniphier/ |
D | uniphier_io_storage.c | 189 int ret; in uniphier_io_block_setup() local 193 ret = register_io_dev_block(&uniphier_backend_dev_con); in uniphier_io_block_setup() 194 if (ret) in uniphier_io_block_setup() 195 return ret; in uniphier_io_block_setup() 203 int ret; in uniphier_io_memmap_setup() local 207 ret = mmap_add_dynamic_region(fip_offset, fip_offset, in uniphier_io_memmap_setup() 210 if (ret) in uniphier_io_memmap_setup() 211 return ret; in uniphier_io_memmap_setup() 213 ret = register_io_dev_memmap(&uniphier_backend_dev_con); in uniphier_io_memmap_setup() 214 if (ret) in uniphier_io_memmap_setup() [all …]
|
/device/linaro/bootloader/arm-trusted-firmware/drivers/emmc/ |
D | emmc.c | 30 int ret; in emmc_device_state() local 37 ret = ops->send_cmd(&cmd); in emmc_device_state() 38 assert(ret == 0); in emmc_device_state() 41 (void)ret; in emmc_device_state() 49 int ret, state; in emmc_set_ext_csd() local 55 ret = ops->send_cmd(&cmd); in emmc_set_ext_csd() 56 assert(ret == 0); in emmc_set_ext_csd() 63 (void)ret; in emmc_set_ext_csd() 68 int ret; in emmc_set_ios() local 73 ret = ops->set_ios(clk, bus_width); in emmc_set_ios() [all …]
|
/device/google/contexthub/util/stm32_flash/ |
D | stm32_bl.c | 91 uint8_t ret; in read_ack_loop() local 94 ret = handle->read_ack(handle); in read_ack_loop() 95 } while (ret != CMD_ACK && ret != CMD_NACK); in read_ack_loop() 97 return ret; in read_ack_loop() 104 uint8_t ret; in erase_sector() local 107 ret = handle->read_ack(handle); in erase_sector() 108 if (ret != CMD_ACK) in erase_sector() 109 return ret; in erase_sector() 124 ret = read_ack_loop(handle); in erase_sector() 125 if (ret != CMD_ACK) in erase_sector() [all …]
|
/device/linaro/bootloader/arm-trusted-firmware/plat/mediatek/mt8173/ |
D | plat_sip_calls.c | 42 uint32_t ret; in mt_sip_pwr_on_mtcmos() local 44 ret = mtcmos_non_cpu_ctrl(1, val); in mt_sip_pwr_on_mtcmos() 45 if (ret) in mt_sip_pwr_on_mtcmos() 53 uint32_t ret; in mt_sip_pwr_off_mtcmos() local 55 ret = mtcmos_non_cpu_ctrl(0, val); in mt_sip_pwr_off_mtcmos() 56 if (ret) in mt_sip_pwr_off_mtcmos() 76 uint64_t ret; in mediatek_plat_sip_handler() local 80 ret = mt_sip_pwr_on_mtcmos((uint32_t)x1); in mediatek_plat_sip_handler() 81 SMC_RET1(handle, ret); in mediatek_plat_sip_handler() 84 ret = mt_sip_pwr_off_mtcmos((uint32_t)x1); in mediatek_plat_sip_handler() [all …]
|
/device/linaro/bootloader/arm-trusted-firmware/plat/arm/board/common/drivers/norflash/ |
D | norflash.c | 102 int ret; in nor_word_program() local 110 ret = nor_poll_dws(base_addr, DWS_WORD_PROGRAM_RETRIES); in nor_word_program() 111 if (ret == 0) { in nor_word_program() 118 ret = -EPERM; in nor_word_program() 122 if (ret == 0) in nor_word_program() 123 ret = nor_full_status_check(base_addr); in nor_word_program() 126 return ret; in nor_word_program() 137 int ret; in nor_erase() local 144 ret = nor_poll_dws(base_addr, DWS_WORD_ERASE_RETRIES); in nor_erase() 145 if (ret == 0) in nor_erase() [all …]
|
/device/linaro/bootloader/arm-trusted-firmware/plat/arm/css/drivers/scp/ |
D | css_pm_scmi.c | 87 int lvl, ret; in css_scp_suspend() local 97 ret = scmi_sys_pwr_state_set(scmi_handle, in css_scp_suspend() 100 if (ret != SCMI_E_SUCCESS) { in css_scp_suspend() 102 ret); in css_scp_suspend() 135 ret = scmi_pwr_state_set(scmi_handle, in css_scp_suspend() 139 if (ret != SCMI_E_SUCCESS) { in css_scp_suspend() 141 ret); in css_scp_suspend() 152 int lvl = 0, ret; in css_scp_off() local 175 ret = scmi_pwr_state_set(scmi_handle, in css_scp_off() 179 if (ret != SCMI_E_QUEUED && ret != SCMI_E_SUCCESS) { in css_scp_off() [all …]
|
D | css_sds.c | 18 int ret; in css_scp_boot_image_xfer() local 21 ret = sds_init(); in css_scp_boot_image_xfer() 22 if (ret != SDS_OK) { in css_scp_boot_image_xfer() 29 ret = sds_struct_write(SDS_SCP_IMG_STRUCT_ID, SDS_SCP_IMG_ADDR_OFFSET, in css_scp_boot_image_xfer() 32 if (ret != SDS_OK) in css_scp_boot_image_xfer() 35 ret = sds_struct_write(SDS_SCP_IMG_STRUCT_ID, SDS_SCP_IMG_SIZE_OFFSET, in css_scp_boot_image_xfer() 38 if (ret != SDS_OK) in css_scp_boot_image_xfer() 43 ret = sds_struct_write(SDS_SCP_IMG_STRUCT_ID, SDS_SCP_IMG_FLAG_OFFSET, in css_scp_boot_image_xfer() 46 if (ret != SDS_OK) in css_scp_boot_image_xfer() 62 int ret, retry = CSS_SCP_READY_10US_RETRIES; in css_scp_boot_ready() local [all …]
|
/device/linaro/bootloader/arm-trusted-firmware/drivers/auth/mbedtls/ |
D | mbedtls_x509_parser.c | 144 int ret, is_critical; in cert_parse() local 159 ret = mbedtls_asn1_get_tag(&p, end, &len, MBEDTLS_ASN1_CONSTRUCTED | in cert_parse() 161 if (ret != 0) { in cert_parse() 174 ret = mbedtls_asn1_get_tag(&p, end, &len, MBEDTLS_ASN1_CONSTRUCTED | in cert_parse() 176 if (ret != 0) { in cert_parse() 185 ret = mbedtls_asn1_get_tag(&p, end, &len, in cert_parse() 188 if (ret != 0) { in cert_parse() 196 ret = mbedtls_asn1_get_tag(&p, end, &len, MBEDTLS_ASN1_INTEGER); in cert_parse() 197 if (ret != 0) { in cert_parse() 206 ret = mbedtls_asn1_get_tag(&p, end, &len, MBEDTLS_ASN1_CONSTRUCTED | in cert_parse() [all …]
|
/device/linaro/bootloader/arm-trusted-firmware/services/spd/trusty/ |
D | trusty.c | 80 struct args ret; in trusty_context_switch() local 86 ret.r7 = 0; in trusty_context_switch() 91 ret.r7 = SMC_GET_GP(ctx_smc, CTX_GPREG_X7); in trusty_context_switch() 94 ret.r6 = 0; in trusty_context_switch() 95 ret.r5 = 0; in trusty_context_switch() 96 ret.r4 = 0; in trusty_context_switch() 97 ret.r3 = r3; in trusty_context_switch() 98 ret.r2 = r2; in trusty_context_switch() 99 ret.r1 = r1; in trusty_context_switch() 100 ret.r0 = r0; in trusty_context_switch() [all …]
|
/device/linaro/bootloader/edk2/ArmPkg/Library/ArmLib/AArch64/ |
D | AArch64ArchTimerSupport.S | 20 ret 26 ret 31 ret 36 ret 41 ret 46 ret 51 ret 56 ret 61 ret 66 ret [all …]
|
D | ArmLibSupport.S | 24 ret 28 ret 34 ret 40 ret 44 ret 49 ret 51 ret 56 ret 58 ret 68 ret [all …]
|
D | AArch64Support.S | 29 ret 34 ret 39 ret 43 ret 48 ret 53 ret 58 ret 63 ret 70 ret 97 ret [all …]
|
/device/generic/goldfish/ril/ |
D | at_tok.c | 72 char *ret = NULL; in nextTok() local 77 ret = NULL; in nextTok() 80 ret = strsep(p_cur, "\""); in nextTok() 83 ret = strsep(p_cur, ","); in nextTok() 86 return ret; in nextTok() 99 char *ret; in at_tok_nextint_base() local 105 ret = nextTok(p_cur); in at_tok_nextint_base() 107 if (ret == NULL) { in at_tok_nextint_base() 114 l = strtoul(ret, &end, base); in at_tok_nextint_base() 116 l = strtol(ret, &end, base); in at_tok_nextint_base() [all …]
|
/device/google/contexthub/contexthubhal/ |
D | nanohubhal.cpp | 89 int ret; in rwrite() local 92 ret = write(fd, buf, len); in rwrite() 93 } while (ret < 0 && errno == EINTR); in rwrite() 95 if (ret != len) { in rwrite() 104 int ret; in rread() local 107 ret = read(fd, buf, len); in rread() 108 } while (ret < 0 && errno == EINTR); in rread() 110 return ret; in rread() 134 int ret = read(pfd.fd, buf, sizeof(buf)); in discard_inotify_evt() local 135 ALOGD("Discarded %d bytes of inotify data", ret); in discard_inotify_evt() [all …]
|
/device/linaro/bootloader/arm-trusted-firmware/plat/hisilicon/hikey960/ |
D | hikey960_boardid.c | 98 int ret; in get_value() local 100 ret = get_adc(channel, value); in get_value() 101 if (ret) in get_value() 102 return ret; in get_value() 105 ret = ((*value & HKADC_VALID_VALUE) * HKADC_VREF_1V8) / HKADC_ACCURACY; in get_value() 106 *value = ret; in get_value() 112 int ret; in adcin_data_remap() local 115 ret = BOARDID_VALUE0; in adcin_data_remap() 117 ret = BOARDID_VALUE1; in adcin_data_remap() 119 ret = BOARDID_VALUE2; in adcin_data_remap() [all …]
|
/device/linaro/bootloader/arm-trusted-firmware/plat/nvidia/tegra/soc/t186/drivers/mce/ |
D | mce.c | 160 int32_t ret = 0; in mce_command_handler() local 172 ret = ops->enter_cstate(cpu_ari_base, arg0, arg1); in mce_command_handler() 173 if (ret < 0) { in mce_command_handler() 174 ERROR("%s: enter_cstate failed(%d)\n", __func__, ret); in mce_command_handler() 188 ret = ops->update_cstate_info(cpu_ari_base, (uint32_t)arg0, in mce_command_handler() 191 if (ret < 0) { in mce_command_handler() 193 __func__, ret); in mce_command_handler() 203 ret = ops->update_crossover_time(cpu_ari_base, arg0, arg1); in mce_command_handler() 204 if (ret < 0) { in mce_command_handler() 206 __func__, ret); in mce_command_handler() [all …]
|
D | ari.c | 83 int32_t ret = 0; in ari_request_wait() local 97 ret = 0; in ari_request_wait() 103 ret = 0; in ari_request_wait() 132 return ret; in ari_request_wait() 137 int32_t ret = 0; in ari_enter_cstate() local 145 ret = EINVAL; in ari_enter_cstate() 151 ret = ari_request_wait(ari_base, ARI_EVT_MASK_STANDBYWFI_BIT, in ari_enter_cstate() 155 return ret; in ari_enter_cstate() 198 int32_t ret = 0; in ari_update_crossover_time() local 203 ret = EINVAL; in ari_update_crossover_time() [all …]
|
/device/google/contexthub/firmware/os/core/ |
D | floatRt.c | 62 uint64_t ret; in floatToUint64() local 78 ret = (word & ((1 << MANTISSA_BITS) - 1)) | (1 << MANTISSA_BITS); in floatToUint64() 83 ret >>= MANTISSA_BITS - e; in floatToUint64() 85 ret <<= e - MANTISSA_BITS; in floatToUint64() 87 return ret; in floatToUint64() 94 uint64_t ret; in floatToInt64() local 106 ret = 0x7FFFFFFFFFFFFFFFULL; in floatToInt64() 110 ret = (word & ((1 << MANTISSA_BITS) - 1)) | (1 << MANTISSA_BITS); in floatToInt64() 115 ret >>= MANTISSA_BITS - e; in floatToInt64() 117 ret <<= e - MANTISSA_BITS; in floatToInt64() [all …]
|
/device/google/contexthub/firmware/os/cpu/cortexm4/ |
D | cpuMath.c | 8 uint64_t ret; in cpuMathUint44Div1000ToUint32_slow_path() local 10 ret = val * multLo; in cpuMathUint44Div1000ToUint32_slow_path() 11 ret >>= 32; in cpuMathUint44Div1000ToUint32_slow_path() 12 ret += val * multHi; in cpuMathUint44Div1000ToUint32_slow_path() 14 return ret >> 12; in cpuMathUint44Div1000ToUint32_slow_path() 47 uint64_t try, ret; \ 52 ret = cpuMathUint64TimesUint64Lsr64(num, denomRecip); \ 53 try = (ret + 1) * denom; \ 54 if (try <= num && try >= ret * denom) \ 55 ret++; \ [all …]
|
/device/google/bonito/usb/ |
D | UsbGadget.cpp | 196 int ret = 0; in unlinkFunctions() local 206 ret = remove(filepath); in unlinkFunctions() 207 if (ret) { in unlinkFunctions() 214 return ret; in unlinkFunctions() 219 int ret; in addEpollFd() local 224 ret = epoll_ctl(epfd, EPOLL_CTL_ADD, fd, &event); in addEpollFd() 225 if (ret) ALOGE("epoll_ctl error %d", errno); in addEpollFd() 227 return ret; in addEpollFd() 232 Return<void> ret = callback->getCurrentUsbFunctionsCb( in getCurrentUsbFunctions() local 236 if (!ret.isOk()) in getCurrentUsbFunctions() [all …]
|
/device/google/crosshatch/usb/ |
D | UsbGadget.cpp | 196 int ret = 0; in unlinkFunctions() local 206 ret = remove(filepath); in unlinkFunctions() 207 if (ret) { in unlinkFunctions() 214 return ret; in unlinkFunctions() 219 int ret; in addEpollFd() local 224 ret = epoll_ctl(epfd, EPOLL_CTL_ADD, fd, &event); in addEpollFd() 225 if (ret) ALOGE("epoll_ctl error %d", errno); in addEpollFd() 227 return ret; in addEpollFd() 232 Return<void> ret = callback->getCurrentUsbFunctionsCb( in getCurrentUsbFunctions() local 236 if (!ret.isOk()) in getCurrentUsbFunctions() [all …]
|
/device/google/marlin/camera/QCamera2/stack/mm-jpeg-interface/src/ |
D | mm_jpegdec.c | 121 OMX_ERRORTYPE ret = OMX_ErrorNone; in mm_jpegdec_session_send_buffers() local 129 ret = OMX_UseBuffer(p_session->omx_handle, &(p_session->p_in_omx_buf[i]), 0, in mm_jpegdec_session_send_buffers() 132 if (ret) { in mm_jpegdec_session_send_buffers() 133 LOGE("Error %d", ret); in mm_jpegdec_session_send_buffers() 134 return ret; in mm_jpegdec_session_send_buffers() 139 return ret; in mm_jpegdec_session_send_buffers() 156 OMX_ERRORTYPE ret = OMX_ErrorNone; in mm_jpegdec_session_free_buffers() local 163 ret = OMX_FreeBuffer(p_session->omx_handle, 0, p_session->p_in_omx_buf[i]); in mm_jpegdec_session_free_buffers() 164 if (ret) { in mm_jpegdec_session_free_buffers() 165 LOGE("Error %d", ret); in mm_jpegdec_session_free_buffers() [all …]
|
/device/google/wahoo/usb/ |
D | UsbGadget.cpp | 180 int ret = 0; in unlinkFunctions() local 190 ret = remove(filepath); in unlinkFunctions() 191 if (ret) { in unlinkFunctions() 198 return ret; in unlinkFunctions() 203 int ret; in addEpollFd() local 208 ret = epoll_ctl(epfd, EPOLL_CTL_ADD, fd, &event); in addEpollFd() 209 if (ret) ALOGE("epoll_ctl error %d", errno); in addEpollFd() 211 return ret; in addEpollFd() 216 Return<void> ret = callback->getCurrentUsbFunctionsCb( in getCurrentUsbFunctions() local 220 if (!ret.isOk()) in getCurrentUsbFunctions() [all …]
|