/hardware/intel/img/hwcomposer/merrifield/ips/common/ |
H A D | Wsbm.cpp | 38 int ret = psbWsbmInitialize(mDrmFD); local 39 if (ret) { 59 int ret = psbWsbmAllocateTTMBuffer(size, align, buf); local 60 if (ret) { 70 int ret = psbWsbmAllocateFromUB(size, align, buf, user_pt); local 71 if (ret) { 81 int ret = psbWsbmDestroyTTMBuffer(buf); local 82 if (ret) { 102 int ret = psbWsbmWrapTTMBuffer(handle, buf); local 103 if (ret) { 113 int ret = psbWsbmUnReference(buf); local 129 int ret = psbWsbmWaitIdle(buf); local [all...] |
H A D | WsbmWrapper.c | 111 int ret = 0; local 121 ret = wsbmInit(wsbmNullThreadFuncs(), &vNodeFuncs); 122 if (ret) { 123 ETRACE("failed to initialize Wsbm, error code %d", ret); 124 return ret; 132 ret = drmCommandWriteRead(drmFD, 6/*DRM_PSB_EXTENSION*/, &arg, sizeof(arg)); 133 if(ret || !arg.rep.exists) { 134 ETRACE("failed to get device offset, error code %d", ret); 143 ret = -EINVAL; 153 return ret; 159 int ret = 0; local 198 int ret = 0; local 235 int ret = 0; local 266 int ret = 0; local 291 int ret = 0; local [all...] |
/hardware/intel/img/hwcomposer/moorefield_hdmi/ips/common/ |
H A D | Wsbm.cpp | 38 int ret = psbWsbmInitialize(mDrmFD); local 39 if (ret) { 59 int ret = psbWsbmAllocateTTMBuffer(size, align, buf); local 60 if (ret) { 70 int ret = psbWsbmAllocateFromUB(size, align, buf, user_pt); local 71 if (ret) { 81 int ret = psbWsbmDestroyTTMBuffer(buf); local 82 if (ret) { 102 int ret = psbWsbmWrapTTMBuffer(handle, buf); local 103 if (ret) { 113 int ret = psbWsbmUnReference(buf); local 129 int ret = psbWsbmWaitIdle(buf); local [all...] |
H A D | WsbmWrapper.c | 112 int ret = 0; local 122 ret = wsbmInit(wsbmNullThreadFuncs(), &vNodeFuncs); 123 if (ret) { 124 ELOGTRACE("failed to initialize Wsbm, error code %d", ret); 125 return ret; 133 ret = drmCommandWriteRead(drmFD, 6/*DRM_PSB_EXTENSION*/, &arg, sizeof(arg)); 134 if(ret || !arg.rep.exists) { 135 ELOGTRACE("failed to get device offset, error code %d", ret); 145 ret = -EINVAL; 155 return ret; 161 int ret = 0; local 199 int ret = 0; local 235 int ret = 0; local 266 int ret = 0; local 291 int ret = 0; local [all...] |
/hardware/qcom/wlan/qcwcn/wifi_hal/ |
H A D | nan.cpp | 46 wifi_error ret; local 56 ret = nanCommand->setCallbackHandler(handlers); 57 return ret; 72 wifi_error ret; local 86 ret = nanCommand->create(); 87 if (ret != WIFI_SUCCESS) 91 ret = nanCommand->set_iface_id(ifaceInfo->name); 92 if (ret != WIFI_SUCCESS) 95 ret = nanCommand->putNanEnable(id, msg); 96 if (ret ! 114 wifi_error ret; local 157 wifi_error ret; local 200 wifi_error ret; local 243 wifi_error ret; local 286 wifi_error ret; local 329 wifi_error ret; local 372 wifi_error ret; local 415 wifi_error ret; local 458 wifi_error ret; local 504 wifi_error ret; local 546 wifi_error ret; local 570 wifi_error ret; local 614 wifi_error ret; local 661 wifi_error ret; local 700 wifi_error ret; local 749 wifi_error ret; local 797 wifi_error ret; local 932 wifi_error ret; local 1048 wifi_error ret; local 1171 wifi_error ret = mMsg.create(NL80211_CMD_VENDOR, 0, 0); local [all...] |
H A D | wificonfig.cpp | 43 wifi_error ret; local 63 ret = wifiConfigCommand->create(); 64 if (ret != WIFI_SUCCESS) { 66 "Error:%d", ret); 71 ret = wifiConfigCommand->set_iface_id(ifaceInfo->name); 72 if (ret != WIFI_SUCCESS) { 74 "Error:%d", ret); 82 "VENDOR_DATA. Error:%d", ret); 86 ret = wifiConfigCommand->put_u32( 88 if (ret ! 113 wifi_error ret; local 166 wifi_error ret; local 233 wifi_error ret; local 296 wifi_error ret; local 382 wifi_error ret; local 456 wifi_error ret = mMsg.create(NL80211_CMD_VENDOR, 0, 0); local 473 wifi_error ret = mMsg.create(cmdId, 0, 0); local 488 int *ret = (int *)arg; local 498 int *ret = (int *)arg; local 509 int *ret = (int *)arg; local [all...] |
H A D | roam.cpp | 34 wifi_error ret = mMsg.create(NL80211_CMD_VENDOR, 0, 0); local 35 if (ret != WIFI_SUCCESS) 36 return ret; 39 ret = mMsg.put_u32(NL80211_ATTR_VENDOR_ID, mVendor_id); 40 if (ret != WIFI_SUCCESS) 41 return ret; 43 ret = mMsg.put_u32(NL80211_ATTR_VENDOR_SUBCMD, mSubcmd); 44 if (ret != WIFI_SUCCESS) 45 return ret; 49 return ret; 61 wifi_error ret; local 152 wifi_error ret; local 257 wifi_error ret; local 310 wifi_error ret; local [all...] |
H A D | rtt.cpp | 46 wifi_error ret; local 74 ret = (wifi_error)lowiWifiHalApi->get_rtt_capabilities(iface, capabilities); 75 if (ret != WIFI_SUCCESS) 77 "returned error:%d. Exit.", ret); 79 return ret; 89 wifi_error ret; local 129 ret = (wifi_error)lowiWifiHalApi->rtt_range_request(id, iface, 132 if (ret != WIFI_SUCCESS) 134 "returned error:%d. Exit.", ret); 136 return ret; 145 wifi_error ret; local 191 wifi_error ret; local 230 wifi_error ret; local 271 wifi_error ret; local 311 wifi_error ret; local 346 wifi_error ret; local [all...] |
H A D | wifihal_vendor.cpp | 48 wifi_error ret = mMsg.create(NL80211_CMD_VENDOR, 0, 0); local 49 if (ret != WIFI_SUCCESS) { 50 return ret; 53 ret = mMsg.put_u32(NL80211_ATTR_VENDOR_ID, mVendor_id); 54 if (ret != WIFI_SUCCESS) 58 ret = mMsg.put_u32(NL80211_ATTR_VENDOR_SUBCMD, mSubcmd); 59 if (ret != WIFI_SUCCESS) 63 return ret; 248 wifi_error ret; local 263 ret 297 wifi_error ret; local 345 wifi_error ret; local [all...] |
/hardware/invensense/6515/libsensors_iio/software/simple_apps/stress_iio/ |
H A D | stress_iio.c | 158 int ret; local 161 ret = write_sysfs_int_and_verify("accel_rate", dev_dir_name, 5); 162 ret = write_sysfs_int_and_verify("gyro_rate", dev_dir_name, 5); 164 ret = write_sysfs_int_and_verify("compass_rate", dev_dir_name, 10); 166 ret = write_sysfs_int_and_verify("pressure_rate", dev_dir_name, 30); 167 ret = write_sysfs_int_and_verify("ped_q_rate", dev_dir_name, 5); 168 ret = write_sysfs_int_and_verify("six_axes_q_rate", dev_dir_name, 5); 169 ret = write_sysfs_int_and_verify("three_axes_q_rate", dev_dir_name, 5); 175 int ret; local 177 ret 222 int ret; local 332 int ret; local 341 int ret; local 351 int ret; local 362 int ret; local 372 int ret; local 386 int ret; local 393 int ret; local 401 int ret; local 414 int ret; local 425 int ret; local 441 int ret; local 467 int ret; local 494 int ret; local 714 int ret, fp,read_size; local 906 int ret; local 920 int ret, c, i; local [all...] |
H A D | iio_utils.h | 104 int ret; local 111 ret = asprintf(&scan_el_dir, FORMAT_SCAN_ELEMENTS_DIR, device_dir); 112 if (ret < 0) { 113 ret = -ENOMEM; 116 ret = asprintf(&builtname, FORMAT_TYPE_FILE, name); 117 if (ret < 0) { 118 ret = -ENOMEM; 121 ret = asprintf(&builtname_generic, FORMAT_TYPE_FILE, generic_name); 122 if (ret < 0) { 123 ret 199 int ret; local 285 int ret; local 436 int ret; local 492 int ret; local 519 int ret = 0; local 578 int ret; local 600 long long ret; local 622 float ret = 0; local 646 int ret; local 675 int ret; local [all...] |
/hardware/interfaces/vibrator/1.0/default/ |
H A D | Vibrator.cpp | 38 int32_t ret = mDevice->vibrator_on(mDevice, timeout_ms); local 39 if (ret != 0) { 40 ALOGE("on command failed : %s", strerror(-ret)); 47 int32_t ret = mDevice->vibrator_off(mDevice); local 48 if (ret != 0) { 49 ALOGE("off command failed : %s", strerror(-ret)); 72 int ret = hw_get_module(VIBRATOR_HARDWARE_MODULE_ID, &hw_module); local 73 if (ret == 0) { 74 ret = vibrator_open(hw_module, &vib_device); 75 if (ret ! [all...] |
/hardware/qcom/data/ipacfg-mgr/msm8998/ipanat/test/ |
H A D | ipa_nat_test008.c | 49 int ret; local 72 ret = ipa_nat_add_ipv4_tbl(pub_ip_add, total_entries, &tbl_hdl); 73 CHECK_ERR(ret); 76 ret = ipa_nat_add_ipv4_rule(tbl_hdl, &ipv4_rule, &rule_hdl); 77 CHECK_ERR(ret); 79 ret = ipa_nat_add_ipv4_rule(tbl_hdl, &ipv4_rule1, &rule_hdl1); 80 CHECK_ERR(ret); 82 ret = ipa_nat_del_ipv4_rule(tbl_hdl, rule_hdl); 83 CHECK_ERR(ret); 85 ret [all...] |
H A D | ipa_nat_test009.c | 49 int ret; local 73 ret = ipa_nat_add_ipv4_tbl(pub_ip_add, total_entries, &tbl_hdl); 74 CHECK_ERR(ret); 77 ret = ipa_nat_add_ipv4_rule(tbl_hdl, &ipv4_rule, &rule_hdl); 78 CHECK_ERR(ret); 80 ret = ipa_nat_add_ipv4_rule(tbl_hdl, &ipv4_rule1, &rule_hdl1); 81 CHECK_ERR(ret); 83 ret = ipa_nat_del_ipv4_rule(tbl_hdl, rule_hdl1); 84 CHECK_ERR(ret); 86 ret [all...] |
/hardware/invensense/6515/libsensors_iio/software/simple_apps/mpu_iio/ |
H A D | mpu_iio.c | 190 int ret; local 192 ret = write_sysfs_int_and_verify("flick_int_on", p, on); 193 if (ret < 0) 194 return ret; 195 ret = write_sysfs_int_and_verify("flick_upper", p, 3147790); 196 if (ret < 0) 197 return ret; 198 ret = write_sysfs_int_and_verify("flick_lower", p, -3147790); 199 if (ret < 0) 200 return ret; 241 int ret; local 567 int ret, c, i, j, toread; local [all...] |
/hardware/interfaces/health/2.0/utils/libhealthhalutils/ |
H A D | HealthHalUtils.cpp | 29 auto ret = IHealth::getService(instanceName); local 30 if (ret != nullptr) { 31 return ret;
|
/hardware/interfaces/tests/msgq/1.0/ |
H A D | ITestMsgQ.hal | 29 * @return ret True if the setup is successful. 34 generates(bool ret, fmq_sync<uint16_t> mqDesc); 45 * @return ret True if successful. 49 getFmqUnsyncWrite(bool configureFmq) generates(bool ret, fmq_unsync<uint16_t> mqDesc); 57 * @return ret True if the write operation was successful. 59 requestWriteFmqSync(int32_t count) generates(bool ret); 67 * @return ret True if the read operation was successful. 69 requestReadFmqSync(int32_t count) generates(bool ret); 77 * @return ret True if the write operation was successful. 79 requestWriteFmqUnsync(int32_t count) generates(bool ret); [all...] |
/hardware/interfaces/bluetooth/1.0/default/ |
H A D | hci_protocol.cc | 34 ssize_t ret = local 37 if (ret == -1) { 42 } else if (ret == 0) { 48 transmitted_length += ret; 49 length -= ret;
|
/hardware/intel/common/wrs_omxil_core/utils/src/ |
H A D | thread.cpp | 49 int ret = 0; local 53 ret = pthread_create(&id, NULL, Instance, this); 54 if (!ret) 59 return ret; 64 int ret = 0; local 68 ret = pthread_join(id, NULL); 73 return ret;
|
/hardware/interfaces/audio/common/all-versions/test/utility/include/utility/ |
H A D | AssertOk.h | 38 inline ::testing::AssertionResult assertIsOk(const char* expr, const Return<T>& ret) { argument 39 return ::testing::AssertionResult(ret.isOk()) 40 << "Expected: " << expr << "\n to be an OK Return but it is not: " << ret.description(); 45 inline ::testing::AssertionResult continueIfIsOk(const char* expr, const Return<T>& ret, argument 47 auto isOkStatus = assertIsOk(expr, ret); 63 Result expected, const Return<Result>& ret) { 64 return continueIfIsOk(r_expr, ret, 65 [&] { return assertResult(e_expr, r_expr, expected, Result{ret}); }); 86 const Return<Result>& ret) { 87 return continueIfIsOk(r_expr, ret, 62 assertResult(const char* e_expr, const char* r_expr, Result expected, const Return<Result>& ret) argument 84 assertResult(const char* e_expr, const char* r_expr, const std::initializer_list<Result>& expected, const Return<Result>& ret) argument 91 assertOk(const char* expr, const Return<void>& ret) argument 102 assertOk(const char* expr, const Return<Result>& ret) argument [all...] |
/hardware/interfaces/boot/1.0/default/ |
H A D | BootControl.cpp | 43 int ret = mModule->markBootSuccessful(mModule); local 45 cr.success = (ret == 0); 46 cr.errMsg = strerror(-ret); 52 int ret = mModule->setActiveBootSlot(mModule, slot); local 54 cr.success = (ret == 0); 55 cr.errMsg = strerror(-ret); 61 int ret = mModule->setSlotAsUnbootable(mModule, slot); local 63 cr.success = (ret == 0); 64 cr.errMsg = strerror(-ret); 70 int32_t ret local 78 int32_t ret = mModule->isSlotMarkedSuccessful(mModule, slot); local 97 int ret = 0; local [all...] |
/hardware/ril/librilutils/ |
H A D | record_stream.c | 47 RecordStream *ret; local 51 ret = (RecordStream *)calloc(1, sizeof(RecordStream)); 53 ret->fd = fd; 54 ret->maxRecordLen = maxRecordLen; 55 ret->buffer = (unsigned char *)malloc (maxRecordLen + HEADER_SIZE); 57 ret->unconsumed = ret->buffer; 58 ret->read_end = ret->buffer; 59 ret 130 void *ret; local [all...] |
/hardware/intel/common/libmix/mix_vbp/viddec_fw/fw/codecs/mp4/parser/ |
H A D | viddec_mp4_videoobjectplane.c | 8 mp4_Status_t ret = MP4_STATUS_REQD_DATA_ERROR; local 17 BREAK_GETBITS_FAIL(getbits, ret); 18 ret = MP4_STATUS_OK; 41 mp4_set_hdr_bitstream_error(parser, true, ret); 57 ret = viddec_pm_append_workitem(parent, &wi); 58 if(ret == 1) 59 ret = MP4_STATUS_OK; 62 return ret; 109 mp4_Status_t ret= MP4_STATUS_PARSE_ERROR; local 114 BREAK_GETBITS_REQD_MISSING(getbits, ret); 147 mp4_Status_t ret = MP4_STATUS_OK; local 212 mp4_Status_t ret= MP4_STATUS_OK; local 233 mp4_Status_t ret= MP4_STATUS_PARSE_ERROR; local [all...] |
/hardware/intel/common/omx-components/videocodec/ |
H A D | OMXComponentDefines.h | 33 ret = CheckTypeHeader((P), sizeof(*(P)));\ 34 if (ret != OMX_ErrorNone) {\ 36 return ret;\ 58 if (ret != OMX_ErrorNone) {\ 59 LOGE(FUNC" failed: Error code = 0x%x", ret);\ 60 return ret;\ 86 if (ret != BS_SUCCESS) { \ 87 LOGE(FUNC" Failed. ret = 0x%08x\n", ret); \ 92 if (ret ! [all...] |
/hardware/nxp/secure_element/libese-spi/p73/spm/ |
H A D | phNxpEse_Spm.cpp | 95 int32_t ret = -1; local 99 ret = phPalEse_ioctl(phPalEse_e_ChipRst, pEseDeviceHandle, arg); 102 if (ret < 0) { 108 if (ret < 0) { 129 if (ret < 0) { 149 if (ret < 0) { 170 if (ret < 0) { 190 int32_t ret = -1; local 195 ret = phPalEse_ioctl(phPalEse_e_ChipRst, pEseDeviceHandle, 0); 196 if (ret < 230 int32_t ret = -1; local 252 int32_t ret = -1; local 276 int32_t ret = -1; local 299 int32_t ret = -1; local 328 int ret = -1; local [all...] |