Home
last modified time | relevance | path

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

12345678910>>...41

/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.cpp33 wifi_error ret = mMsg.create(NL80211_CMD_VENDOR, 0, 0); in create() local
34 if (ret != WIFI_SUCCESS) in create()
35 return ret; in create()
38 ret = mMsg.put_u32(NL80211_ATTR_VENDOR_ID, mVendor_id); in create()
39 if (ret != WIFI_SUCCESS) in create()
40 return ret; in create()
42 ret = mMsg.put_u32(NL80211_ATTR_VENDOR_SUBCMD, mSubcmd); in create()
43 if (ret != WIFI_SUCCESS) in create()
44 return ret; in create()
48 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 …]
/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 …]
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/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/sdm845/data/ipacfg-mgr/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_test015.c51 int ret; in ipa_nat_test015() local
69 ret = ipa_nat_add_ipv4_tbl(pub_ip_add, total_entries, &tbl_hdl); in ipa_nat_test015()
70 CHECK_ERR(ret); in ipa_nat_test015()
73 ret = ipa_nat_add_ipv4_rule(tbl_hdl, &ipv4_rule, &rule_hdl1); in ipa_nat_test015()
74 CHECK_ERR(ret); in ipa_nat_test015()
76 ret = ipa_nat_add_ipv4_rule(tbl_hdl, &ipv4_rule, &rule_hdl2); in ipa_nat_test015()
77 CHECK_ERR(ret); in ipa_nat_test015()
79 ret = ipa_nat_add_ipv4_rule(tbl_hdl, &ipv4_rule, &rule_hdl3); in ipa_nat_test015()
80 CHECK_ERR(ret); in ipa_nat_test015()
82 ret = ipa_nat_del_ipv4_rule(tbl_hdl, rule_hdl1); in ipa_nat_test015()
[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_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 …]
/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_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_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 …]
/hardware/qcom/sm8150/data/ipacfg-mgr/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_test015.c51 int ret; in ipa_nat_test015() local
69 ret = ipa_nat_add_ipv4_tbl(pub_ip_add, total_entries, &tbl_hdl); in ipa_nat_test015()
70 CHECK_ERR(ret); in ipa_nat_test015()
73 ret = ipa_nat_add_ipv4_rule(tbl_hdl, &ipv4_rule, &rule_hdl1); in ipa_nat_test015()
74 CHECK_ERR(ret); in ipa_nat_test015()
76 ret = ipa_nat_add_ipv4_rule(tbl_hdl, &ipv4_rule, &rule_hdl2); in ipa_nat_test015()
77 CHECK_ERR(ret); in ipa_nat_test015()
79 ret = ipa_nat_add_ipv4_rule(tbl_hdl, &ipv4_rule, &rule_hdl3); in ipa_nat_test015()
80 CHECK_ERR(ret); in ipa_nat_test015()
82 ret = ipa_nat_del_ipv4_rule(tbl_hdl, rule_hdl1); in ipa_nat_test015()
[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_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_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 …]
/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/st/nfc/1.1/
Dhal_st21nfc.cc89 int ret; in async_callback_thread_fct() local
92 ret = pthread_mutex_lock(&pcb_data->mutex); in async_callback_thread_fct()
93 if (ret != 0) { in async_callback_thread_fct()
100 ret = pthread_cond_wait(&pcb_data->cond, &pcb_data->mutex); in async_callback_thread_fct()
101 if (ret != 0) { in async_callback_thread_fct()
112 ret = pthread_cond_signal(&pcb_data->cond); in async_callback_thread_fct()
113 if (ret != 0) { in async_callback_thread_fct()
120 ret = pthread_mutex_unlock(&pcb_data->mutex); in async_callback_thread_fct()
121 if (ret != 0) { in async_callback_thread_fct()
130 ret = pthread_mutex_lock(&pcb_data->mutex); in async_callback_thread_fct()
[all …]

12345678910>>...41