Home
last modified time | relevance | path

Searched refs:res (Results 1 – 25 of 34) sorted by relevance

12

/hardware/ti/wpan/tools/kfmapp/
Dkfmapp.c130 int res; in fmapp_get_tx_ant_imp() local
134 res = ioctl(g_radio_fd,VIDIOC_G_CTRL,&vctrl); in fmapp_get_tx_ant_imp()
135 if(res < 0) in fmapp_get_tx_ant_imp()
138 return res; in fmapp_get_tx_ant_imp()
148 int res; in fmapp_get_tx_power_level() local
152 res = ioctl(g_radio_fd,VIDIOC_G_CTRL,&vctrl); in fmapp_get_tx_power_level()
153 if(res < 0) in fmapp_get_tx_power_level()
156 return res; in fmapp_get_tx_power_level()
165 int res; in fmapp_get_premphasis_filter_mode() local
169 res = ioctl(g_radio_fd,VIDIOC_G_CTRL,&vctrl); in fmapp_get_premphasis_filter_mode()
[all …]
/hardware/ti/wlan/wl1271/CUDK/configurationutility/src/
Dcu_common.c103 S32 res; in CuCommon_SetU32() local
105 res = IPC_STA_Private_Send(pCuCommon->hIpcSta, PrivateIoctlId, &Data, sizeof(U32), in CuCommon_SetU32()
108 if(res == EOALERR_IPC_STA_ERROR_SENDING_WEXT) in CuCommon_SetU32()
117 S32 res; in CuCommon_GetU32() local
119 res = IPC_STA_Private_Send(pCuCommon->hIpcSta, PrivateIoctlId, NULL, 0, in CuCommon_GetU32()
122 if(res == EOALERR_IPC_STA_ERROR_SENDING_WEXT) in CuCommon_GetU32()
131 S32 res; in CuCommon_SetU16() local
133 res = IPC_STA_Private_Send(pCuCommon->hIpcSta, PrivateIoctlId, &Data, sizeof(U16), in CuCommon_SetU16()
136 if(res == EOALERR_IPC_STA_ERROR_SENDING_WEXT) in CuCommon_SetU16()
145 S32 res; in CuCommon_SetU8() local
[all …]
/hardware/ti/wlan/wl1271/CUDK/os/linux/src/
Dcu_wext.c69 S32 res = 0; in CuWext_FillBssidList() local
75 res = 1; in CuWext_FillBssidList()
150 return res; in CuWext_FillBssidList()
181 S32 res; in CuOs_Get_SSID() local
189res = IPC_STA_Wext_Send(pCuWext->hIpcSta, SIOCGIWESSID, &pCuWext->req_data, sizeof(struct iw_point… in CuOs_Get_SSID()
190 if(res != OK) in CuOs_Get_SSID()
191 return res; in CuOs_Get_SSID()
201 S32 res,i; in CuOs_Get_BSSID() local
205res = IPC_STA_Wext_Send(pCuWext->hIpcSta, SIOCGIWAP, &pCuWext->req_data, sizeof(struct sockaddr)); in CuOs_Get_BSSID()
206 if(res != OK) in CuOs_Get_BSSID()
[all …]
Dipc_sta.c149 S32 res; in IPC_STA_Private_Send() local
167 res = ioctl(pIpcSta->STA_socket, SIOCIWFIRSTPRIV, &pIpcSta->wext_req); in IPC_STA_Private_Send()
168 if(res != OK) in IPC_STA_Private_Send()
170 … Wext private IOCTL to STA driver (ioctl_cmd = %x, res = %d, errno = %d)\n", ioctl_cmd,res,errno); in IPC_STA_Private_Send()
180 S32 res; in IPC_STA_Wext_Send() local
184 res = ioctl(pIpcSta->STA_socket, wext_request_id, &pIpcSta->wext_req); in IPC_STA_Wext_Send()
185 if(res != OK) in IPC_STA_Wext_Send()
187 …t IOCTL to STA driver (wext_request_id = 0x%x, res = %d, errno = %d)\n",wext_request_id,res,errno); in IPC_STA_Wext_Send()
/hardware/ti/wlan/wl1271/platforms/os/linux/src/
DCmdInterpretWext.c151 TI_STATUS res = TI_NOK; in cmdInterpret_convertAndExecute() local
159 return res; in cmdInterpret_convertAndExecute()
167 res = TI_OK; in cmdInterpret_convertAndExecute()
207 res = cmdDispatch_SetParam (pCmdInterpret->hCmdDispatch, pParam); in cmdInterpret_convertAndExecute()
208 CHECK_PENDING_RESULT(res,pParam) in cmdInterpret_convertAndExecute()
219 res = cmdDispatch_GetParam (pCmdInterpret->hCmdDispatch, pParam); in cmdInterpret_convertAndExecute()
220 if(res == NO_SITE_SELECTED_YET) in cmdInterpret_convertAndExecute()
221 res = TI_OK; in cmdInterpret_convertAndExecute()
223 CHECK_PENDING_RESULT(res,pParam) in cmdInterpret_convertAndExecute()
225 if (res == TI_OK) in cmdInterpret_convertAndExecute()
[all …]
Dstring.c49 int res = 0; in memcmp() local
52 if ((res = *su1 - *su2) != 0) in memcmp()
54 return res; in memcmp()
Dipc_k.c69 int res; in IPC_EventSend() local
111res = netlink_unicast(drv->wl_sock, skb, (( IPC_EVENT_PARAMS *) pEvData) ->uProcessID, MSG_DONTWAI… in IPC_EventSend()
114 if (res >= 0) in IPC_EventSend()
DWlanDrvIf.c771 int res; local
808 res = register_netdev (dev);
809 if (res != 0)
811 ti_dprintf (TIWLAN_LOG_ERROR, "register_netdev() failed : %d\n", res);
813 return res;
/hardware/invensense/mlsdk/platform/linux/
Dmlos_linux.c86 int res; in inv_create_mutex() local
91 res = pthread_mutex_init(pm, NULL); in inv_create_mutex()
92 if(res == -1) { in inv_create_mutex()
110 int res; in inv_lock_mutex() local
113 res = pthread_mutex_lock(pm); in inv_lock_mutex()
114 if(res == -1) in inv_lock_mutex()
128 int res; in inv_unlock_mutex() local
131 res = pthread_mutex_unlock(pm); in inv_unlock_mutex()
132 if(res == -1) in inv_unlock_mutex()
/hardware/libhardware/tests/camera2/
Dcamera2.cpp25 int res; in SetUpTestCase() local
28 res = hw_get_module(CAMERA_HARDWARE_MODULE_ID, in SetUpTestCase()
31 ASSERT_EQ(0, res) in SetUpTestCase()
32 << "Failure opening camera hardware module: " << res; in SetUpTestCase()
60 res = sCameraModule->get_camera_info(i, &info); in SetUpTestCase()
61 ASSERT_EQ(0, res) in SetUpTestCase()
94 int res; in openCameraDevice() local
97 res = cam_module->common.methods->open( in openCameraDevice()
101 if (res < 0 || cam_module == NULL) { in openCameraDevice()
/hardware/ti/wlan/wl1271/wpa_supplicant_lib/
Ddriver_ti.c122 s32 res; in wpa_driver_tista_private_send() local
142 res = ioctl(drv->ioctl_sock, SIOCIWFIRSTPRIV, &iwr); in wpa_driver_tista_private_send()
143 if (0 != res) in wpa_driver_tista_private_send()
145 … Wext private IOCTL to STA driver (ioctl_cmd = %x, res = %d, errno = %d)", ioctl_cmd, res, errno); in wpa_driver_tista_private_send()
154 wpa_printf(MSG_DEBUG, "wpa_driver_tista_private_send ioctl_cmd = %x res = %d", ioctl_cmd, res); in wpa_driver_tista_private_send()
163 s32 res; in wpa_driver_tista_driver_start() local
165res = wpa_driver_tista_private_send(priv, DRIVER_START_PARAM, &uDummyBuf, sizeof(uDummyBuf), NULL,… in wpa_driver_tista_driver_start()
167 if (0 != res) { in wpa_driver_tista_driver_start()
175 return res; in wpa_driver_tista_driver_start()
182 s32 res; in wpa_driver_tista_driver_stop() local
[all …]
/hardware/ti/wpan/tools/FM/service/src/jni/
DJFmTxNative.cpp111 int res; in fm_read_transmitter_capabilities() local
113 res = ioctl(radio_fd,VIDIOC_QUERYCAP,&cap); in fm_read_transmitter_capabilities()
114 if(res < 0) in fm_read_transmitter_capabilities()
367 int res; in nativeJFmTx_SetRdsTextPsMsg() local
378 res = ioctl(radio_fd, VIDIOC_S_EXT_CTRLS, &vec); in nativeJFmTx_SetRdsTextPsMsg()
379 if(res < 0) in nativeJFmTx_SetRdsTextPsMsg()
382 return res; in nativeJFmTx_SetRdsTextPsMsg()
387 return res; in nativeJFmTx_SetRdsTextPsMsg()
505 int res; in nativeJFmTx_SetRdsTextRtMsg() local
519 res = ioctl(radio_fd, VIDIOC_S_EXT_CTRLS, &vec); in nativeJFmTx_SetRdsTextRtMsg()
[all …]
DJFmRxNative.cpp310 int res; in fm_read_tuner_capabilities() local
312 res = ioctl(radio_fd,VIDIOC_QUERYCAP,&cap); in fm_read_tuner_capabilities()
313 if(res < 0) in fm_read_tuner_capabilities()
424 int fd, res; in nativeJFmRx_SetBand() local
445 res = write(fd, &curr_band, sizeof(char)); in nativeJFmRx_SetBand()
446 if(res <= 0){ in nativeJFmRx_SetBand()
637 int fd, res; in nativeJFmRx_SetRssiThreshold() local
651 res = write(fd, &rssi_lvl, sizeof(char)); in nativeJFmRx_SetRssiThreshold()
652 if(res <= 0){ in nativeJFmRx_SetRssiThreshold()
994 int fd, res; in nativeJFmRx_SetRdsAfSwitchMode() local
[all …]
/hardware/ti/wlan/mac80211/ti-utils/
Dnvs.c651 int new_nvs, res = 0; in create_nvs_file() local
665 res = 1; in create_nvs_file()
673 res = 1; in create_nvs_file()
679 return res; in create_nvs_file()
684 int new_nvs, res = 0; in update_nvs_file() local
687 res = read_nvs(nvs_file, buf, BUF_SIZE_4_NVS_FILE, NULL); in update_nvs_file()
688 if (res) { in update_nvs_file()
703 res = 1; in update_nvs_file()
711 res = 1; in update_nvs_file()
717 return res; in update_nvs_file()
[all …]
/hardware/ti/wlan/mac80211/wpa_supplicant_lib/
Ddriver_mac80211.c871 struct wpa_scan_res res; member
881 struct wext_scan_data *res) in wext_get_scan_mode() argument
884 res->res.caps |= IEEE80211_CAP_IBSS; in wext_get_scan_mode()
887 res->res.caps |= IEEE80211_CAP_ESS; in wext_get_scan_mode()
893 struct wext_scan_data *res, char *custom, in wext_get_scan_ssid() argument
903 os_memcpy(res->ssid, custom, ssid_len); in wext_get_scan_ssid()
904 res->ssid_len = ssid_len; in wext_get_scan_ssid()
910 struct wext_scan_data *res) in wext_get_scan_freq() argument
924 if (res->res.freq) { in wext_get_scan_freq()
929 res->res.freq = 2407 + 5 * iwe->u.freq.m; in wext_get_scan_freq()
[all …]
/hardware/invensense/libsensors/
DMPLSensor.cpp607 inv_error_t res; in gyroHandler() local
608 res = inv_get_float_array(INV_GYROS, s->gyro.v); in gyroHandler()
613 if (res == INV_SUCCESS) in gyroHandler()
621 inv_error_t res; in accelHandler() local
622 res = inv_get_float_array(INV_ACCELS, s->acceleration.v); in accelHandler()
629 if (res == INV_SUCCESS) in accelHandler()
635 inv_error_t res; in estimateCompassAccuracy() local
638 res = inv_get_compass_accuracy(&rv); in estimateCompassAccuracy()
642 ALOGE_IF(res != INV_SUCCESS, "error returned from inv_get_compass_accuracy"); in estimateCompassAccuracy()
651 inv_error_t res, res2; in compassHandler() local
[all …]
/hardware/ril/libril/
Dril_event.cpp57 #define timersub(a, b, res) \ argument
59 (res)->tv_sec = (a)->tv_sec - (b)->tv_sec; \
60 (res)->tv_usec = (a)->tv_usec - (b)->tv_usec; \
61 if ((res)->tv_usec < 0) { \
62 (res)->tv_usec += 1000000; \
63 (res)->tv_sec -= 1; \
/hardware/broadcom/wlan/bcm4329/wpa_supplicant_8_lib/
Ddriver_cmd_wext.c374 int res; in wpa_driver_signal_poll() local
377 res = wpa_driver_wext_driver_cmd(priv, RSSI_CMD, buf, sizeof(buf)); in wpa_driver_signal_poll()
379 if (res < 0) in wpa_driver_signal_poll()
380 return res; in wpa_driver_signal_poll()
386 res = wpa_driver_wext_driver_cmd(priv, LINKSPEED_CMD, buf, sizeof(buf)); in wpa_driver_signal_poll()
388 if (res < 0) in wpa_driver_signal_poll()
389 return res; in wpa_driver_signal_poll()
/hardware/broadcom/wlan/bcmdhd/wpa_supplicant_8_lib/
Ddriver_cmd_wext.c377 int res; in wpa_driver_signal_poll() local
380 res = wpa_driver_wext_driver_cmd(priv, RSSI_CMD, buf, sizeof(buf)); in wpa_driver_signal_poll()
382 if (res < 0) in wpa_driver_signal_poll()
383 return res; in wpa_driver_signal_poll()
389 res = wpa_driver_wext_driver_cmd(priv, LINKSPEED_CMD, buf, sizeof(buf)); in wpa_driver_signal_poll()
391 if (res < 0) in wpa_driver_signal_poll()
392 return res; in wpa_driver_signal_poll()
/hardware/qcom/media/libstagefrighthw/
DQComOMXPlugin.cpp118 OMX_ERRORTYPE res = (*mComponentNameEnum)(name, size, index); in enumerateComponents() local
120 if (res != OMX_ErrorNone) { in enumerateComponents()
121 return res; in enumerateComponents()
/hardware/ti/omap4xxx/test/CameraHal/
Dcamera_test_script.cpp283 char *res = NULL; in execute_functional_script() local
284 res = strtok(cmd + 1, "x"); in execute_functional_script()
285 width = atoi(res); in execute_functional_script()
286 res = strtok(NULL, "x"); in execute_functional_script()
287 height = atoi(res); in execute_functional_script()
511 char *res = NULL; in execute_functional_script() local
512 res = strtok(cmd + 1, "x"); in execute_functional_script()
513 width = atoi(res); in execute_functional_script()
514 res = strtok(NULL, "x"); in execute_functional_script()
515 height = atoi(res); in execute_functional_script()
/hardware/ti/wlan/wl1271/Test/
Dfwdriverdebug.c174 TI_STATUS res; in FW_DebugSendJoinCommand() local
203 res = cmdBld_CmdJoinBss (pCmdBld, in FW_DebugSendJoinCommand()
208 if (res) in FW_DebugSendJoinCommand()
213 os_printf("\n res = %d\n", res); in FW_DebugSendJoinCommand()
/hardware/msm7k/libgralloc/
Dmapper.cpp207 int res = -EINVAL; in gralloc_perform() local
208 return res; in gralloc_perform()
/hardware/libhardware_legacy/wifi/
Dwifi.c702 int res; in wifi_ctrl_recv() local
711 res = TEMP_FAILURE_RETRY(poll(rfds, 2, -1)); in wifi_ctrl_recv()
712 if (res < 0) { in wifi_ctrl_recv()
713 ALOGE("Error poll = %d", res); in wifi_ctrl_recv()
714 return res; in wifi_ctrl_recv()
/hardware/ti/omap4xxx/camera/
DBaseCameraAdapter.cpp257 status_t res = NO_ERROR; in returnFrame() local
267 if ( NO_ERROR == res) in returnFrame()
308 if ( NO_ERROR == res ) in returnFrame()
321 res = fillThisBuffer(frameBuf, frameType); in returnFrame()
1324 int res = -1; in getFrameRefCount() local
1334 res = mCaptureBuffersAvailable.valueFor( ( unsigned int ) frameBuf ); in getFrameRefCount()
1341 res = mPreviewBuffersAvailable.valueFor( ( unsigned int ) frameBuf ); in getFrameRefCount()
1347 res = mPreviewDataBuffersAvailable.valueFor( ( unsigned int ) frameBuf ); in getFrameRefCount()
1353 res = mVideoBuffersAvailable.valueFor( ( unsigned int ) frameBuf ); in getFrameRefCount()
1362 return res; in getFrameRefCount()

12