Home
last modified time | relevance | path

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

12345678910>>...60

/hardware/google/graphics/common/libv4l2/
Dexynos_v4l2.c184 int ret = -1; in exynos_v4l2_close() local
191 ret = close(fd); in exynos_v4l2_close()
195 return ret; in exynos_v4l2_close()
200 int ret = -1; in exynos_v4l2_enuminput() local
211 ret = ioctl(fd, VIDIOC_ENUMINPUT, &input, 32); in exynos_v4l2_enuminput()
212 if (ret) { in exynos_v4l2_enuminput()
228 int ret = -1; in exynos_v4l2_s_input() local
235 return ret; in exynos_v4l2_s_input()
240 ret = ioctl(fd, VIDIOC_S_INPUT, &input); in exynos_v4l2_s_input()
241 if (ret){ in exynos_v4l2_s_input()
[all …]
Dexynos_subdev.c75 int ret = -1; in exynos_subdev_get_node_num() local
124 ret = i; in exynos_subdev_get_node_num()
128 return ret; in exynos_subdev_get_node_num()
202 int ret = -1; in exynos_subdev_close() local
207 ret = close(fd); in exynos_subdev_close()
209 return ret; in exynos_subdev_close()
218 int ret = -1; in exynos_subdev_enum_frame_size() local
222 return ret; in exynos_subdev_enum_frame_size()
227 return ret; in exynos_subdev_enum_frame_size()
230 ret = ioctl(fd, VIDIOC_SUBDEV_ENUM_FRAME_SIZE, frame_size_enum); in exynos_subdev_enum_frame_size()
[all …]
/hardware/google/graphics/common/libgscaler/
Dexynos_subdev.c78 int ret = -1; in exynos_subdev_get_node_num() local
127 ret = i; in exynos_subdev_get_node_num()
131 return ret; in exynos_subdev_get_node_num()
205 int ret = -1; in exynos_subdev_close() local
210 ret = close(fd); in exynos_subdev_close()
212 return ret; in exynos_subdev_close()
221 int ret = -1; in exynos_subdev_enum_frame_size() local
225 return ret; in exynos_subdev_enum_frame_size()
230 return ret; in exynos_subdev_enum_frame_size()
233 ret = ioctl(fd, VIDIOC_SUBDEV_ENUM_FRAME_SIZE, frame_size_enum); in exynos_subdev_enum_frame_size()
[all …]
/hardware/google/camera/common/hal/aidl_service/
Dlibc_wrappers.cc42 int ret = real_function(pathname, mode); in mkfifo() local
43 ALOGI("mkfifo (%s,%d) == %d", pathname, mode, ret); in mkfifo()
44 return ret; in mkfifo()
49 int ret = real_function(pathname, mode); in access() local
50 ALOGI("access (%s,%d) == %d", pathname, mode, ret); in access()
51 return ret; in access()
56 int ret = real_function(pathname, mode); in mkdir() local
57 ALOGI("mkdir (%s,%d) == %d", pathname, mode, ret); in mkdir()
58 return ret; in mkdir()
63 int ret = real_function(pathname); in rmdir() local
[all …]
/hardware/google/gfxstream/common/vulkan/include/vulkan/
Dvk_enum_string_helper.h1537 std::string ret; in string_VkAccessFlags() local
1541 if( !ret.empty()) ret.append("|"); in string_VkAccessFlags()
1542 ret.append(string_VkAccessFlagBits(static_cast<VkAccessFlagBits>(1U << index))); in string_VkAccessFlags()
1547 if( ret.empty()) ret.append(string_VkAccessFlagBits(static_cast<VkAccessFlagBits>(0))); in string_VkAccessFlags()
1548 return ret; in string_VkAccessFlags()
1659 std::string ret; in string_VkImageAspectFlags() local
1663 if( !ret.empty()) ret.append("|"); in string_VkImageAspectFlags()
1664ret.append(string_VkImageAspectFlagBits(static_cast<VkImageAspectFlagBits>(1U << index))); in string_VkImageAspectFlags()
1669 … if( ret.empty()) ret.append(string_VkImageAspectFlagBits(static_cast<VkImageAspectFlagBits>(0))); in string_VkImageAspectFlags()
1670 return ret; in string_VkImageAspectFlags()
[all …]
/hardware/qcom/wlan/wcn6740/qcwcn/wifi_hal/
Dwificonfig.cpp59 wifi_error ret; in wifi_extended_dtim_config_set() local
79 ret = wifiConfigCommand->create(); in wifi_extended_dtim_config_set()
80 if (ret != WIFI_SUCCESS) { in wifi_extended_dtim_config_set()
82 "Error:%d", ret); in wifi_extended_dtim_config_set()
87 ret = wifiConfigCommand->set_iface_id(ifaceInfo->name); in wifi_extended_dtim_config_set()
88 if (ret != WIFI_SUCCESS) { in wifi_extended_dtim_config_set()
90 "Error:%d", ret); in wifi_extended_dtim_config_set()
97 ret = WIFI_ERROR_UNKNOWN; in wifi_extended_dtim_config_set()
99 "VENDOR_DATA. Error:%d", ret); in wifi_extended_dtim_config_set()
103 ret = wifiConfigCommand->put_u32( in wifi_extended_dtim_config_set()
[all …]
Droam.cpp41 wifi_error ret = mMsg.create(NL80211_CMD_VENDOR, 0, 0); in create() local
42 if (ret != WIFI_SUCCESS) in create()
43 return ret; in create()
46 ret = mMsg.put_u32(NL80211_ATTR_VENDOR_ID, mVendor_id); in create()
47 if (ret != WIFI_SUCCESS) in create()
48 return ret; in create()
50 ret = mMsg.put_u32(NL80211_ATTR_VENDOR_SUBCMD, mSubcmd); in create()
51 if (ret != WIFI_SUCCESS) in create()
52 return ret; in create()
56 return ret; in create()
[all …]
/hardware/qcom/wlan/legacy/qcwcn/wifi_hal/
Dwificonfig.cpp46 wifi_error ret; in wifi_extended_dtim_config_set() local
66 ret = wifiConfigCommand->create(); in wifi_extended_dtim_config_set()
67 if (ret != WIFI_SUCCESS) { in wifi_extended_dtim_config_set()
69 "Error:%d", ret); in wifi_extended_dtim_config_set()
74 ret = wifiConfigCommand->set_iface_id(ifaceInfo->name); in wifi_extended_dtim_config_set()
75 if (ret != WIFI_SUCCESS) { in wifi_extended_dtim_config_set()
77 "Error:%d", ret); in wifi_extended_dtim_config_set()
85 "VENDOR_DATA. Error:%d", ret); in wifi_extended_dtim_config_set()
89 ret = wifiConfigCommand->put_u32( in wifi_extended_dtim_config_set()
91 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
94 ret = nanCommand->create(); in nan_enable_request()
95 if (ret != WIFI_SUCCESS) in nan_enable_request()
99 ret = nanCommand->set_iface_id(ifaceInfo->name); in nan_enable_request()
100 if (ret != WIFI_SUCCESS) in nan_enable_request()
103 ret = nanCommand->putNanEnable(id, msg); in nan_enable_request()
104 if (ret != WIFI_SUCCESS) { in nan_enable_request()
[all …]
Droam.cpp36 wifi_error ret = mMsg.create(NL80211_CMD_VENDOR, 0, 0); in create() local
37 if (ret != WIFI_SUCCESS) in create()
38 return ret; in create()
41 ret = mMsg.put_u32(NL80211_ATTR_VENDOR_ID, mVendor_id); in create()
42 if (ret != WIFI_SUCCESS) in create()
43 return ret; in create()
45 ret = mMsg.put_u32(NL80211_ATTR_VENDOR_SUBCMD, mSubcmd); in create()
46 if (ret != WIFI_SUCCESS) in create()
47 return ret; in create()
51 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/google/graphics/common/libhwc2.1/libdrmresource/drm/
Ddrmplane.cpp42 int ret = drm_->GetPlaneProperty(*this, "type", &p); in Init() local
43 if (ret) { in Init()
45 return ret; in Init()
49 std::tie(ret, type) = p.value(); in Init()
50 if (ret) { in Init()
52 return ret; in Init()
65 ret = drm_->GetPlaneProperty(*this, "CRTC_ID", &crtc_property_); in Init()
66 if (ret) { in Init()
68 return ret; in Init()
71 ret = drm_->GetPlaneProperty(*this, "FB_ID", &fb_property_); in Init()
[all …]
/hardware/qcom/sm7250/display/sde-drm/
Ddrm_manager.cpp74 int ret = s_drm_instance ? s_drm_instance->Init(fd) : DRM_ERR_INVALID; in GetInstance() local
75 if (ret) { in GetInstance()
154 int ret = -ENODEV; in GetConnectorsInfo() local
160 ret = GetConnectorInfo(iter, &info); in GetConnectorsInfo()
161 if (!ret) { in GetConnectorsInfo()
168 return ret; in GetConnectorsInfo()
178 int ret = -ENODEV; in GetEncodersInfo() local
183 ret = GetEncoderInfo(iter, &info); in GetEncodersInfo()
184 if (!ret) { in GetEncodersInfo()
191 return ret; in GetEncodersInfo()
[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 …]
/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 …]
/hardware/google/gfxstream/guest/mesa/include/android_stub/log/
Dlog_event_list.h106 int ret; variable
112 explicit android_log_event_list(int tag) : ret(0) { in android_log_event_list()
121 if (retval < 0) ret = retval; in close()
132 return ret; in status()
137 if (retval < 0) ret = retval; in begin()
138 return ret; in begin()
142 if (retval < 0) ret = retval; in end()
143 return ret; in end()
148 if (retval < 0) ret = retval;
154 if (retval < 0) ret = retval;
[all …]
/hardware/google/gchips/gralloc4/src/core/
Dalign_structs.py35 ret = []
40 ret.append(current_line)
43 ret.append(current_line)
44 return ret
59 ret = ""
64 ret = ret + c
67 ret = ret + c
68 return ret
74 ret = ""
77 ret = ret + ", "
[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>>...60