Home
last modified time | relevance | path

Searched refs:ret (Results 1 – 25 of 831) sorted by relevance

12345678910>>...34

/hardware/qcom/wlan/qcwcn/wifi_hal/
Dwificonfig.cpp43 wifi_error ret; in wifi_extended_dtim_config_set() local
63 ret = wifiConfigCommand->create(); in wifi_extended_dtim_config_set()
64 if (ret != WIFI_SUCCESS) { in wifi_extended_dtim_config_set()
66 "Error:%d", ret); in wifi_extended_dtim_config_set()
71 ret = wifiConfigCommand->set_iface_id(ifaceInfo->name); in wifi_extended_dtim_config_set()
72 if (ret != WIFI_SUCCESS) { in wifi_extended_dtim_config_set()
74 "Error:%d", ret); in wifi_extended_dtim_config_set()
82 "VENDOR_DATA. Error:%d", ret); in wifi_extended_dtim_config_set()
86 ret = wifiConfigCommand->put_u32( in wifi_extended_dtim_config_set()
88 if (ret != WIFI_SUCCESS) { in wifi_extended_dtim_config_set()
[all …]
Dnan.cpp46 wifi_error ret; in nan_register_handler() local
56 ret = nanCommand->setCallbackHandler(handlers); in nan_register_handler()
57 return ret; in nan_register_handler()
72 wifi_error ret; in nan_enable_request() local
86 ret = nanCommand->create(); in nan_enable_request()
87 if (ret != WIFI_SUCCESS) in nan_enable_request()
91 ret = nanCommand->set_iface_id(ifaceInfo->name); in nan_enable_request()
92 if (ret != WIFI_SUCCESS) in nan_enable_request()
95 ret = nanCommand->putNanEnable(id, msg); in nan_enable_request()
96 if (ret != WIFI_SUCCESS) { in nan_enable_request()
[all …]
Droam.cpp34 wifi_error ret = mMsg.create(NL80211_CMD_VENDOR, 0, 0); in create() local
35 if (ret != WIFI_SUCCESS) in create()
36 return ret; in create()
39 ret = mMsg.put_u32(NL80211_ATTR_VENDOR_ID, mVendor_id); in create()
40 if (ret != WIFI_SUCCESS) in create()
41 return ret; in create()
43 ret = mMsg.put_u32(NL80211_ATTR_VENDOR_SUBCMD, mSubcmd); in create()
44 if (ret != WIFI_SUCCESS) in create()
45 return ret; in create()
49 return ret; in create()
[all …]
Drtt.cpp46 wifi_error ret; in wifi_get_rtt_capabilities() local
74 ret = (wifi_error)lowiWifiHalApi->get_rtt_capabilities(iface, capabilities); in wifi_get_rtt_capabilities()
75 if (ret != WIFI_SUCCESS) in wifi_get_rtt_capabilities()
77 "returned error:%d. Exit.", ret); in wifi_get_rtt_capabilities()
79 return ret; in wifi_get_rtt_capabilities()
89 wifi_error ret; in wifi_rtt_range_request() local
129 ret = (wifi_error)lowiWifiHalApi->rtt_range_request(id, iface, in wifi_rtt_range_request()
132 if (ret != WIFI_SUCCESS) in wifi_rtt_range_request()
134 "returned error:%d. Exit.", ret); in wifi_rtt_range_request()
136 return ret; in wifi_rtt_range_request()
[all …]
Dwifi_hal.cpp147 int *ret = (int *)arg; in finish_handler() local
148 *ret = 0; in finish_handler()
155 int *ret = (int *)arg; in error_handler() local
156 *ret = err->error; in error_handler()
169 wifi_error ret; in acquire_supported_features() local
179 ret = supportedFeatures.create(); in acquire_supported_features()
180 if (ret != WIFI_SUCCESS) in acquire_supported_features()
183 ret = supportedFeatures.set_iface_id(iinfo->name); in acquire_supported_features()
184 if (ret != WIFI_SUCCESS) in acquire_supported_features()
187 ret = supportedFeatures.requestResponse(); in acquire_supported_features()
[all …]
/hardware/invensense/6515/libsensors_iio/software/simple_apps/mpu_iio/
Dmpu_iio.c190 int ret; in enable_flick() local
192 ret = write_sysfs_int_and_verify("flick_int_on", p, on); in enable_flick()
193 if (ret < 0) in enable_flick()
194 return ret; in enable_flick()
195 ret = write_sysfs_int_and_verify("flick_upper", p, 3147790); in enable_flick()
196 if (ret < 0) in enable_flick()
197 return ret; in enable_flick()
198 ret = write_sysfs_int_and_verify("flick_lower", p, -3147790); in enable_flick()
199 if (ret < 0) in enable_flick()
200 return ret; in enable_flick()
[all …]
/hardware/invensense/6515/libsensors_iio/software/simple_apps/stress_iio/
Dstress_iio.c158 int ret; in inv_set_rate() local
161 ret = write_sysfs_int_and_verify("accel_rate", dev_dir_name, 5); in inv_set_rate()
162 ret = write_sysfs_int_and_verify("gyro_rate", dev_dir_name, 5); in inv_set_rate()
164 ret = write_sysfs_int_and_verify("compass_rate", dev_dir_name, 10); in inv_set_rate()
166 ret = write_sysfs_int_and_verify("pressure_rate", dev_dir_name, 30); in inv_set_rate()
167 ret = write_sysfs_int_and_verify("ped_q_rate", dev_dir_name, 5); in inv_set_rate()
168 ret = write_sysfs_int_and_verify("six_axes_q_rate", dev_dir_name, 5); in inv_set_rate()
169 ret = write_sysfs_int_and_verify("three_axes_q_rate", dev_dir_name, 5); in inv_set_rate()
175 int ret; in setup_offset_and_bias() local
177 ret = write_sysfs_int_and_verify("in_accel_x_offset", dev_dir_name, 0); in setup_offset_and_bias()
[all …]
Diio_utils.h104 int ret; in iioutils_get_type() local
111 ret = asprintf(&scan_el_dir, FORMAT_SCAN_ELEMENTS_DIR, device_dir); in iioutils_get_type()
112 if (ret < 0) { in iioutils_get_type()
113 ret = -ENOMEM; in iioutils_get_type()
116 ret = asprintf(&builtname, FORMAT_TYPE_FILE, name); in iioutils_get_type()
117 if (ret < 0) { in iioutils_get_type()
118 ret = -ENOMEM; in iioutils_get_type()
121 ret = asprintf(&builtname_generic, FORMAT_TYPE_FILE, generic_name); in iioutils_get_type()
122 if (ret < 0) { in iioutils_get_type()
123 ret = -ENOMEM; in iioutils_get_type()
[all …]
/hardware/qcom/data/ipacfg-mgr/msm8998/ipanat/test/
Dipa_nat_test020.c49 int ret; in ipa_nat_test020() local
65 ret = ipa_nat_add_ipv4_tbl(pub_ip_add, total_entries, &tbl_hdl); in ipa_nat_test020()
66 CHECK_ERR(ret); in ipa_nat_test020()
69 ret = ipa_nat_add_ipv4_rule(tbl_hdl, &ipv4_rule, &rule_hdl1); in ipa_nat_test020()
70 CHECK_ERR(ret); in ipa_nat_test020()
72 ret = ipa_nat_add_ipv4_rule(tbl_hdl, &ipv4_rule, &rule_hdl2); in ipa_nat_test020()
73 CHECK_ERR(ret); in ipa_nat_test020()
75 ret = ipa_nat_add_ipv4_rule(tbl_hdl, &ipv4_rule, &rule_hdl3); in ipa_nat_test020()
76 CHECK_ERR(ret); in ipa_nat_test020()
78 ret = ipa_nat_add_ipv4_rule(tbl_hdl, &ipv4_rule, &rule_hdl4); in ipa_nat_test020()
[all …]
Dipa_nat_test022.c52 int ret; in ipa_nat_test022() local
79 ret = ipa_nat_add_ipv4_tbl(pub_ip_add, total_entries, &tbl_hdl); in ipa_nat_test022()
80 CHECK_ERR1(ret, tbl_hdl); in ipa_nat_test022()
83 ret = ipa_nat_add_ipv4_rule(tbl_hdl, &ipv4_rule, &rule_hdl1); in ipa_nat_test022()
84 CHECK_ERR1(ret, tbl_hdl); in ipa_nat_test022()
86 ret = ipa_nat_add_ipv4_rule(tbl_hdl, &ipv4_rule, &rule_hdl2); in ipa_nat_test022()
87 CHECK_ERR1(ret, tbl_hdl); in ipa_nat_test022()
89 ret = ipa_nat_add_ipv4_rule(tbl_hdl, &ipv4_rule, &rule_hdl3); in ipa_nat_test022()
90 CHECK_ERR1(ret, tbl_hdl); in ipa_nat_test022()
93 ret = ipa_nat_del_ipv4_rule(tbl_hdl, rule_hdl1); in ipa_nat_test022()
[all …]
Dipa_nat_test014.c49 int ret; in ipa_nat_test014() local
66 ret = ipa_nat_add_ipv4_tbl(pub_ip_add, total_entries, &tbl_hdl); in ipa_nat_test014()
67 CHECK_ERR(ret); in ipa_nat_test014()
70 ret = ipa_nat_add_ipv4_rule(tbl_hdl, &ipv4_rule, &rule_hdl1); in ipa_nat_test014()
71 CHECK_ERR(ret); in ipa_nat_test014()
73 ret = ipa_nat_add_ipv4_rule(tbl_hdl, &ipv4_rule, &rule_hdl2); in ipa_nat_test014()
74 CHECK_ERR(ret); in ipa_nat_test014()
76 ret = ipa_nat_add_ipv4_rule(tbl_hdl, &ipv4_rule, &rule_hdl3); in ipa_nat_test014()
77 CHECK_ERR(ret); in ipa_nat_test014()
79 ret = ipa_nat_del_ipv4_rule(tbl_hdl, rule_hdl1); in ipa_nat_test014()
[all …]
Dipa_nat_test017.c50 int ret; in ipa_nat_test017() local
67 ret = ipa_nat_add_ipv4_tbl(pub_ip_add, total_entries, &tbl_hdl); in ipa_nat_test017()
68 CHECK_ERR(ret); in ipa_nat_test017()
71 ret = ipa_nat_add_ipv4_rule(tbl_hdl, &ipv4_rule, &rule_hdl1); in ipa_nat_test017()
72 CHECK_ERR(ret); in ipa_nat_test017()
74 ret = ipa_nat_add_ipv4_rule(tbl_hdl, &ipv4_rule, &rule_hdl2); in ipa_nat_test017()
75 CHECK_ERR(ret); in ipa_nat_test017()
77 ret = ipa_nat_add_ipv4_rule(tbl_hdl, &ipv4_rule, &rule_hdl3); in ipa_nat_test017()
78 CHECK_ERR(ret); in ipa_nat_test017()
80 ret = ipa_nat_del_ipv4_rule(tbl_hdl, rule_hdl2); in ipa_nat_test017()
[all …]
Dipa_nat_test018.c50 int ret; in ipa_nat_test018() local
67 ret = ipa_nat_add_ipv4_tbl(pub_ip_add, total_entries, &tbl_hdl); in ipa_nat_test018()
68 CHECK_ERR(ret); in ipa_nat_test018()
71 ret = ipa_nat_add_ipv4_rule(tbl_hdl, &ipv4_rule, &rule_hdl1); in ipa_nat_test018()
72 CHECK_ERR(ret); in ipa_nat_test018()
74 ret = ipa_nat_add_ipv4_rule(tbl_hdl, &ipv4_rule, &rule_hdl2); in ipa_nat_test018()
75 CHECK_ERR(ret); in ipa_nat_test018()
77 ret = ipa_nat_add_ipv4_rule(tbl_hdl, &ipv4_rule, &rule_hdl3); in ipa_nat_test018()
78 CHECK_ERR(ret); in ipa_nat_test018()
80 ret = ipa_nat_del_ipv4_rule(tbl_hdl, rule_hdl3); in ipa_nat_test018()
[all …]
Dipa_nat_test019.c50 int ret; in ipa_nat_test019() local
67 ret = ipa_nat_add_ipv4_tbl(pub_ip_add, total_entries, &tbl_hdl); in ipa_nat_test019()
68 CHECK_ERR(ret); in ipa_nat_test019()
71 ret = ipa_nat_add_ipv4_rule(tbl_hdl, &ipv4_rule, &rule_hdl1); in ipa_nat_test019()
72 CHECK_ERR(ret); in ipa_nat_test019()
74 ret = ipa_nat_add_ipv4_rule(tbl_hdl, &ipv4_rule, &rule_hdl2); in ipa_nat_test019()
75 CHECK_ERR(ret); in ipa_nat_test019()
77 ret = ipa_nat_add_ipv4_rule(tbl_hdl, &ipv4_rule, &rule_hdl3); in ipa_nat_test019()
78 CHECK_ERR(ret); in ipa_nat_test019()
80 ret = ipa_nat_del_ipv4_rule(tbl_hdl, rule_hdl3); in ipa_nat_test019()
[all …]
Dipa_nat_test016.c50 int ret; in ipa_nat_test016() local
67 ret = ipa_nat_add_ipv4_tbl(pub_ip_add, total_entries, &tbl_hdl); in ipa_nat_test016()
68 CHECK_ERR(ret); in ipa_nat_test016()
71 ret = ipa_nat_add_ipv4_rule(tbl_hdl, &ipv4_rule, &rule_hdl1); in ipa_nat_test016()
72 CHECK_ERR(ret); in ipa_nat_test016()
74 ret = ipa_nat_add_ipv4_rule(tbl_hdl, &ipv4_rule, &rule_hdl2); in ipa_nat_test016()
75 CHECK_ERR(ret); in ipa_nat_test016()
77 ret = ipa_nat_add_ipv4_rule(tbl_hdl, &ipv4_rule, &rule_hdl3); in ipa_nat_test016()
78 CHECK_ERR(ret); in ipa_nat_test016()
80 ret = ipa_nat_del_ipv4_rule(tbl_hdl, rule_hdl2); in ipa_nat_test016()
[all …]
Dipa_nat_test010.c49 int ret; in ipa_nat_test010() local
79 ret = ipa_nat_add_ipv4_tbl(pub_ip_add, total_entries, &tbl_hdl); in ipa_nat_test010()
80 CHECK_ERR(ret); in ipa_nat_test010()
83 ret = ipa_nat_add_ipv4_rule(tbl_hdl, &ipv4_rule, &rule_hdl); in ipa_nat_test010()
84 CHECK_ERR(ret); in ipa_nat_test010()
86 ret = ipa_nat_add_ipv4_rule(tbl_hdl, &ipv4_rule1, &rule_hdl1); in ipa_nat_test010()
87 CHECK_ERR(ret); in ipa_nat_test010()
89 ret = ipa_nat_add_ipv4_rule(tbl_hdl, &ipv4_rule2, &rule_hdl2); in ipa_nat_test010()
90 CHECK_ERR(ret); in ipa_nat_test010()
92 ret = ipa_nat_del_ipv4_rule(tbl_hdl, rule_hdl); in ipa_nat_test010()
[all …]
Dipa_nat_test013.c49 int ret; in ipa_nat_test013() local
79 ret = ipa_nat_add_ipv4_tbl(pub_ip_add, total_entries, &tbl_hdl); in ipa_nat_test013()
80 CHECK_ERR(ret); in ipa_nat_test013()
83 ret = ipa_nat_add_ipv4_rule(tbl_hdl, &ipv4_rule, &rule_hdl); in ipa_nat_test013()
84 CHECK_ERR(ret); in ipa_nat_test013()
86 ret = ipa_nat_add_ipv4_rule(tbl_hdl, &ipv4_rule1, &rule_hdl1); in ipa_nat_test013()
87 CHECK_ERR(ret); in ipa_nat_test013()
89 ret = ipa_nat_add_ipv4_rule(tbl_hdl, &ipv4_rule2, &rule_hdl2); in ipa_nat_test013()
90 CHECK_ERR(ret); in ipa_nat_test013()
92 ret = ipa_nat_del_ipv4_rule(tbl_hdl, rule_hdl2); in ipa_nat_test013()
[all …]
Dipa_nat_test011.c49 int ret; in ipa_nat_test011() local
79 ret = ipa_nat_add_ipv4_tbl(pub_ip_add, total_entries, &tbl_hdl); in ipa_nat_test011()
80 CHECK_ERR(ret); in ipa_nat_test011()
83 ret = ipa_nat_add_ipv4_rule(tbl_hdl, &ipv4_rule, &rule_hdl); in ipa_nat_test011()
84 CHECK_ERR(ret); in ipa_nat_test011()
86 ret = ipa_nat_add_ipv4_rule(tbl_hdl, &ipv4_rule1, &rule_hdl1); in ipa_nat_test011()
87 CHECK_ERR(ret); in ipa_nat_test011()
89 ret = ipa_nat_add_ipv4_rule(tbl_hdl, &ipv4_rule2, &rule_hdl2); in ipa_nat_test011()
90 CHECK_ERR(ret); in ipa_nat_test011()
92 ret = ipa_nat_del_ipv4_rule(tbl_hdl, rule_hdl1); in ipa_nat_test011()
[all …]
Dipa_nat_test012.c50 int ret; in ipa_nat_test012() local
80 ret = ipa_nat_add_ipv4_tbl(pub_ip_add, totoal_entries, &tbl_hdl); in ipa_nat_test012()
81 CHECK_ERR(ret); in ipa_nat_test012()
84 ret = ipa_nat_add_ipv4_rule(tbl_hdl, &ipv4_rule, &rule_hdl); in ipa_nat_test012()
85 CHECK_ERR(ret); in ipa_nat_test012()
87 ret = ipa_nat_add_ipv4_rule(tbl_hdl, &ipv4_rule1, &rule_hdl1); in ipa_nat_test012()
88 CHECK_ERR(ret); in ipa_nat_test012()
90 ret = ipa_nat_add_ipv4_rule(tbl_hdl, &ipv4_rule2, &rule_hdl2); in ipa_nat_test012()
91 CHECK_ERR(ret); in ipa_nat_test012()
93 ret = ipa_nat_del_ipv4_rule(tbl_hdl, rule_hdl2); in ipa_nat_test012()
[all …]
/hardware/intel/img/hwcomposer/moorefield_hdmi/ips/common/
DWsbmWrapper.c112 int ret = 0; in psbWsbmInitialize() local
122 ret = wsbmInit(wsbmNullThreadFuncs(), &vNodeFuncs); in psbWsbmInitialize()
123 if (ret) { in psbWsbmInitialize()
124 ELOGTRACE("failed to initialize Wsbm, error code %d", ret); in psbWsbmInitialize()
125 return ret; in psbWsbmInitialize()
133 ret = drmCommandWriteRead(drmFD, 6/*DRM_PSB_EXTENSION*/, &arg, sizeof(arg)); in psbWsbmInitialize()
134 if(ret || !arg.rep.exists) { in psbWsbmInitialize()
135 ELOGTRACE("failed to get device offset, error code %d", ret); in psbWsbmInitialize()
145 ret = -EINVAL; in psbWsbmInitialize()
155 return ret; in psbWsbmInitialize()
[all …]
/hardware/intel/img/hwcomposer/merrifield/ips/common/
DWsbmWrapper.c111 int ret = 0; in psbWsbmInitialize() local
121 ret = wsbmInit(wsbmNullThreadFuncs(), &vNodeFuncs); in psbWsbmInitialize()
122 if (ret) { in psbWsbmInitialize()
123 ETRACE("failed to initialize Wsbm, error code %d", ret); in psbWsbmInitialize()
124 return ret; in psbWsbmInitialize()
132 ret = drmCommandWriteRead(drmFD, 6/*DRM_PSB_EXTENSION*/, &arg, sizeof(arg)); in psbWsbmInitialize()
133 if(ret || !arg.rep.exists) { in psbWsbmInitialize()
134 ETRACE("failed to get device offset, error code %d", ret); in psbWsbmInitialize()
143 ret = -EINVAL; in psbWsbmInitialize()
153 return ret; in psbWsbmInitialize()
[all …]
/hardware/invensense/6515/libsensors_iio/software/simple_apps/devnode_parser/
Diio_utils.h106 int ret; in iioutils_get_type() local
113 ret = asprintf(&scan_el_dir, FORMAT_SCAN_ELEMENTS_DIR, device_dir); in iioutils_get_type()
114 if (ret < 0) { in iioutils_get_type()
115 ret = -ENOMEM; in iioutils_get_type()
118 ret = asprintf(&builtname, FORMAT_TYPE_FILE, name); in iioutils_get_type()
119 if (ret < 0) { in iioutils_get_type()
120 ret = -ENOMEM; in iioutils_get_type()
123 ret = asprintf(&builtname_generic, FORMAT_TYPE_FILE, generic_name); in iioutils_get_type()
124 if (ret < 0) { in iioutils_get_type()
125 ret = -ENOMEM; in iioutils_get_type()
[all …]
/hardware/interfaces/audio/common/all-versions/test/utility/include/utility/
DAssertOk.h38 inline ::testing::AssertionResult assertIsOk(const char* expr, const Return<T>& ret) { in assertIsOk() argument
39 return ::testing::AssertionResult(ret.isOk()) in assertIsOk()
40 << "Expected: " << expr << "\n to be an OK Return but it is not: " << ret.description(); in assertIsOk()
45 inline ::testing::AssertionResult continueIfIsOk(const char* expr, const Return<T>& ret, in continueIfIsOk() argument
47 auto isOkStatus = assertIsOk(expr, ret); in continueIfIsOk()
63 Result expected, const Return<Result>& ret) { in assertResult() argument
64 return continueIfIsOk(r_expr, ret, in assertResult()
65 [&] { return assertResult(e_expr, r_expr, expected, Result{ret}); }); in assertResult()
86 const Return<Result>& ret) { in assertResult() argument
87 return continueIfIsOk(r_expr, ret, in assertResult()
[all …]
/hardware/intel/common/libmix/mix_vbp/viddec_fw/fw/codecs/mp4/parser/
Dviddec_mp4_videoobjectlayer.c54 mp4_Status_t ret = MP4_STATUS_OK; in mp4_Parse_QuantMatrix() local
59 BREAK_GETBITS_REQD_MISSING(getbits, ret); in mp4_Parse_QuantMatrix()
68 return ret;; in mp4_Parse_QuantMatrix()
78 uint8_t ret=false; in mp4_pvt_valid_object_layer_verid() local
86 ret = true; in mp4_pvt_valid_object_layer_verid()
94 return ret; in mp4_pvt_valid_object_layer_verid()
101 mp4_Status_t ret = MP4_STATUS_PARSE_ERROR; in mp4_pvt_VOL_volcontrolparameters() local
108 BREAK_GETBITS_REQD_MISSING(getbits, ret); in mp4_pvt_VOL_volcontrolparameters()
118 ret = MP4_STATUS_NOTSUPPORT; in mp4_pvt_VOL_volcontrolparameters()
124 BREAK_GETBITS_REQD_MISSING(getbits, ret); in mp4_pvt_VOL_volcontrolparameters()
[all …]
Dviddec_mp4_videoobjectplane.c8 mp4_Status_t ret = MP4_STATUS_REQD_DATA_ERROR; in mp4_Parse_GroupOfVideoObjectPlane() local
17 BREAK_GETBITS_FAIL(getbits, ret); in mp4_Parse_GroupOfVideoObjectPlane()
18 ret = MP4_STATUS_OK; in mp4_Parse_GroupOfVideoObjectPlane()
41 mp4_set_hdr_bitstream_error(parser, true, ret); in mp4_Parse_GroupOfVideoObjectPlane()
57 ret = viddec_pm_append_workitem(parent, &wi); in mp4_Parse_GroupOfVideoObjectPlane()
58 if(ret == 1) in mp4_Parse_GroupOfVideoObjectPlane()
59 ret = MP4_STATUS_OK; in mp4_Parse_GroupOfVideoObjectPlane()
62 return ret; in mp4_Parse_GroupOfVideoObjectPlane()
109 mp4_Status_t ret= MP4_STATUS_PARSE_ERROR; in mp4_Sprite_dmv_length() local
114 BREAK_GETBITS_REQD_MISSING(getbits, ret); in mp4_Sprite_dmv_length()
[all …]

12345678910>>...34