Home
last modified time | relevance | path

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

1234

/hardware/ti/omap3/liboverlay/
Dv4l2_utils.c136 int ret; in v4l2_overlay_dump_state() local
140 ret = ioctl(fd, VIDIOC_G_FMT, &format); in v4l2_overlay_dump_state()
141 if (ret < 0) in v4l2_overlay_dump_state()
147 ret = ioctl(fd, VIDIOC_G_FMT, &format); in v4l2_overlay_dump_state()
148 if (ret < 0) in v4l2_overlay_dump_state()
154 ret = ioctl(fd, VIDIOC_G_CROP, &crop); in v4l2_overlay_dump_state()
155 if (ret < 0) in v4l2_overlay_dump_state()
179 int ret; in v4l2_overlay_ioctl() local
180 ret = ioctl(fd, req, arg); in v4l2_overlay_ioctl()
181 if (ret < 0) { in v4l2_overlay_ioctl()
[all …]
Doverlay.cpp268 int ret = 0; in create_shared_data() local
269 if ((ret = pthread_mutexattr_init(&p->attr)) != 0) { in create_shared_data()
272 if (ret == 0 && (ret = pthread_mutexattr_setpshared(&p->attr, PTHREAD_PROCESS_SHARED)) != 0) { in create_shared_data()
275 if (ret == 0 && (ret = pthread_mutex_init(&p->lock, &p->attr)) != 0) { in create_shared_data()
278 if (ret != 0) { in create_shared_data()
371 int ret; in enable_streaming() local
374 ret = enable_streaming_locked(shared, ovly_fd); in enable_streaming()
376 return ret; in enable_streaming()
381 int ret = 0; in disable_streaming_locked() local
384 ret = v4l2_overlay_stream_off( ovly_fd ); in disable_streaming_locked()
[all …]
/hardware/ril/reference-ril/
Dat_tok.c72 char *ret = NULL; in nextTok() local
77 ret = NULL; in nextTok()
80 ret = strsep(p_cur, "\""); in nextTok()
83 ret = strsep(p_cur, ","); in nextTok()
86 return ret; in nextTok()
99 char *ret; in at_tok_nextint_base() local
105 ret = nextTok(p_cur); in at_tok_nextint_base()
107 if (ret == NULL) { in at_tok_nextint_base()
114 l = strtoul(ret, &end, base); in at_tok_nextint_base()
116 l = strtol(ret, &end, base); in at_tok_nextint_base()
[all …]
Datchannel.c338 char *ret; in readline() local
411 ret = s_ATBufferCur; in readline()
416 LOGD("AT< %s\n", ret); in readline()
417 return ret; in readline()
589 int ret; in at_open() local
604 ret = ioctl(fd, OMAP_CSMI_TTY_ENABLE_ACK); in at_open()
605 if(ret == 0) { in at_open()
616 ret = read(fd, sync_buf, sizeof(sync_buf)); in at_open()
617 if(ret > 0) in at_open()
618 read_count += ret; in at_open()
[all …]
Dreference-ril.c605 int ret; local
618 ret = at_send_command(cmd, NULL);
657 int ret; local
666 ret = at_send_command(cmd, NULL);
1581 int ret; local
1586 ret = SIM_NOT_READY;
1593 ret = SIM_NOT_READY;
1602 ret = SIM_ABSENT;
1606 ret = SIM_NOT_READY;
1616 ret = SIM_NOT_READY;
[all …]
/hardware/broadcom/wlan/bcm4329/src/dhd/sys/
Ddhd_cdc.c77 int ret; in dhdcdc_msg() local
91 ret = dhd_bus_txctl(dhd->bus, (uchar*)&prot->msg, len); in dhdcdc_msg()
93 return ret; in dhdcdc_msg()
99 int ret; in dhdcdc_cmplt() local
105 ret = dhd_bus_rxctl(dhd->bus, (uchar*)&prot->msg, len+sizeof(cdc_ioctl_t)); in dhdcdc_cmplt()
106 if (ret < 0) in dhdcdc_cmplt()
110 return ret; in dhdcdc_cmplt()
119 int ret = 0, retries = 0; in dhdcdc_query_ioctl() local
152 if ((ret = dhdcdc_msg(dhd)) < 0) { in dhdcdc_query_ioctl()
153 DHD_ERROR(("dhdcdc_query_ioctl: dhdcdc_msg failed w/status %d\n", ret)); in dhdcdc_query_ioctl()
[all …]
Ddhd_linux.c477 int ret = NOTIFY_DONE; in dhd_sleep_pm_callback() local
483 ret = NOTIFY_OK; in dhd_sleep_pm_callback()
488 ret = NOTIFY_OK; in dhd_sleep_pm_callback()
492 return ret; in dhd_sleep_pm_callback()
756 int ret; in _dhd_set_multicast_list() local
810 ret = dhd_prot_ioctl(&dhd->pub, ifidx, &ioc, ioc.buf, ioc.len); in _dhd_set_multicast_list()
811 if (ret < 0) { in _dhd_set_multicast_list()
845 ret = dhd_prot_ioctl(&dhd->pub, ifidx, &ioc, ioc.buf, ioc.len); in _dhd_set_multicast_list()
846 if (ret < 0) { in _dhd_set_multicast_list()
864 ret = dhd_prot_ioctl(&dhd->pub, ifidx, &ioc, ioc.buf, ioc.len); in _dhd_set_multicast_list()
[all …]
Ddhd_custom_gpio.c158 int ret = 0; in dhd_custom_get_mac_address() local
166 ret = wifi_get_mac_addr(buf); in dhd_custom_get_mac_address()
177 return ret; in dhd_custom_get_mac_address()
/hardware/ti/wlan/wl1271/wpa_supplicant_lib/
Ddriver_ti.c476 int ret = -1; in prepare_filter_struct() local
508 ret = 0; in prepare_filter_struct()
510 return ret; in prepare_filter_struct()
593 int ret = -1, prev_events, flags; in wpa_driver_tista_driver_cmd() local
599 ret = wpa_driver_tista_driver_start(priv); in wpa_driver_tista_driver_cmd()
600 if( ret == 0 ) { in wpa_driver_tista_driver_cmd()
604 return( TI2WPA_STATUS(ret) ); in wpa_driver_tista_driver_cmd()
616 ret = wpa_driver_tista_driver_stop(priv); in wpa_driver_tista_driver_cmd()
617 if( ret == 0 ) { in wpa_driver_tista_driver_cmd()
625 ret = 0; in wpa_driver_tista_driver_cmd()
[all …]
/hardware/broadcom/wlan/bcm4329/src/dhd/exe/
Ddhdu.c459 int ret; in dhd_check() local
462 if ((ret = dhd_get(dhd, DHD_GET_MAGIC, &val, sizeof(int)) < 0)) in dhd_check()
463 return ret; in dhd_check()
466 if ((ret = dhd_get(dhd, DHD_GET_VERSION, &val, sizeof(int)) < 0)) in dhd_check()
467 return ret; in dhd_check()
532 int ret = 0; in dhd_pktgen() local
541 if ((ret = dhd_var_getbuf(dhd, "pktgen", NULL, 0, &ptr)) != 0) in dhd_pktgen()
542 return ret; in dhd_pktgen()
562 ret = -1; in dhd_pktgen()
569 ret = -1; in dhd_pktgen()
[all …]
Ddhdu_linux.c68 int ret = 0; in dhd_ioctl() local
82 if ((ret = ioctl(s, SIOCDEVPRIVATE, ifr)) < 0) { in dhd_ioctl()
84 ret = IOCTL_ERROR; in dhd_ioctl()
90 return ret; in dhd_ioctl()
97 int ret; in dhd_get_dev_type() local
111 if ((ret = ioctl(s, SIOCETHTOOL, &ifr)) < 0) { in dhd_get_dev_type()
123 return ret; in dhd_get_dev_type()
/hardware/libhardware_legacy/qemu/
Dqemu.c78 int fd, ret, namelen = strlen(name); in qemu_channel_open_qemud() local
142 int ret; in qemu_channel_open_tty() local
144 ret = snprintf(key, sizeof key, "ro.kernel.android.%s", name); in qemu_channel_open_tty()
145 if (ret >= (int)sizeof key) in qemu_channel_open_tty()
153 ret = snprintf(channel->device, sizeof channel->device, in qemu_channel_open_tty()
155 if (ret >= (int)sizeof channel->device) { in qemu_channel_open_tty()
256 int ret; in qemu_command_format() local
259 ret = qemu_command_format(buffer, buffer_size, format, args); in qemu_command_format()
261 return ret; in qemu_command_format()
331 int ret, fd, len, result = -1; in qemu_control_query() local
[all …]
/hardware/ti/wlan/wl1271/CUDK/os/linux/src/
Dipc_wpa.c132 S32 ret; in IpcWpa_Command() local
134ret = wpa_ctrl_request(pIpcWpa->pWpaCtrl, (char*)cmd, os_strlen(cmd), (char*)Resp, (size_t*)&RespL… in IpcWpa_Command()
136 if (ret == -2) in IpcWpa_Command()
141 else if (ret < 0) in IpcWpa_Command()
143 os_error_printf(CU_MSG_ERROR, (PS8)"'%s' command failed (%d).\n", cmd, ret); in IpcWpa_Command()
161 S32 ret; in IpcWpa_CommandWithResp() local
164ret = wpa_ctrl_request(pIpcWpa->pWpaCtrl, (char*)cmd, os_strlen(cmd), (char*)pResp, (size_t*)pResp… in IpcWpa_CommandWithResp()
166 if (ret == -2) in IpcWpa_CommandWithResp()
171 else if (ret < 0) in IpcWpa_CommandWithResp()
/hardware/ril/rild/
Dradiooptions.c98 int ret = send(fd, (const void *)&num_socket_args, sizeof(int), 0); in main() local
99 if(ret != sizeof(int)) { in main()
108 ret = send(fd, &len, sizeof(int), 0); in main()
109 if (ret != sizeof(int)) { in main()
114 ret = send(fd, argv[1 + i], sizeof(char) * len, 0); in main()
115 if (ret != len * sizeof(char)) { in main()
/hardware/libhardware_legacy/wifi/
Dwifi.c84 int ret; in insmod() local
90 ret = init_module(module, size, args); in insmod()
94 return ret; in insmod()
99 int ret = -1; in rmmod() local
103 ret = delete_module(modname, O_NONBLOCK | O_EXCL); in rmmod()
104 if (ret < 0 && errno == EAGAIN) in rmmod()
110 if (ret != 0) in rmmod()
113 return ret; in rmmod()
404 int ret; in wifi_send_command() local
410 ret = wpa_ctrl_request(ctrl, cmd, strlen(cmd), reply, reply_len, NULL); in wifi_send_command()
[all …]
/hardware/ti/omap3/omx/audio/src/openmax_il/wbamr_enc/src/
DOMX_WbAmrEnc_CompThread.c94 int ret = 0; in WBAMRENC_CompThread() local
166 ret = read(pComponentPrivate->dataPipe[0], &pBufHeader, sizeof(pBufHeader)); in WBAMRENC_CompThread()
168 if (ret == -1) { in WBAMRENC_CompThread()
182 ret = read(pComponentPrivate->cmdPipe[0], &command, sizeof (command)); in WBAMRENC_CompThread()
184 if (ret == -1) { in WBAMRENC_CompThread()
190 ret = read(pComponentPrivate->cmdDataPipe[0], &commandData, sizeof (commandData)); in WBAMRENC_CompThread()
192 if (ret == -1) { in WBAMRENC_CompThread()
/hardware/ril/mock-ril/src/cpp/
Dworker.cpp93 int ret; in Run() local
97 ret = pthread_attr_init(&attr_); in Run()
98 if (ret != 0) { in Run()
99 LOGE("RIL_Init X: pthread_attr_init failed err=%s", strerror(ret)); in Run()
102 ret = pthread_attr_setdetachstate(&attr_, PTHREAD_CREATE_DETACHED); in Run()
103 if (ret != 0) { in Run()
105 strerror(ret)); in Run()
108 ret = pthread_create(&tid_, &attr_, in Run()
110 if (ret != 0) { in Run()
111 LOGE("RIL_Init X: pthread_create failed err=%s", strerror(ret)); in Run()
/hardware/msm7k/dspcrashd/
Ddspcrashd.c56 ssize_t ret; in dump_dmesg() local
64 while((ret = write(fd, p, n))) { in dump_dmesg()
65 if (ret < 0) { in dump_dmesg()
70 p += ret; in dump_dmesg()
71 n -= ret; in dump_dmesg()
/hardware/ti/wlan/wl1271/platforms/os/linux/src/
Dosapi.c606 int ret = 0; in os_wake_lock_timeout() local
611 ret = drv->wl_packet; in os_wake_lock_timeout()
621 return ret; in os_wake_lock_timeout()
637 int ret = 0; in os_wake_lock_timeout_enable() local
641 ret = drv->wl_packet = 1; in os_wake_lock_timeout_enable()
644 return ret; in os_wake_lock_timeout_enable()
659 int ret = 0; in os_wake_lock() local
669 ret = drv->wl_count; in os_wake_lock()
673 return ret; in os_wake_lock()
688 int ret = 0; in os_wake_unlock() local
[all …]
/hardware/ril/libril/
Dril.cpp297 int ret; in issueLocalRequest() local
305 ret = pthread_mutex_lock(&s_pendingRequestsMutex); in issueLocalRequest()
306 assert (ret == 0); in issueLocalRequest()
311 ret = pthread_mutex_unlock(&s_pendingRequestsMutex); in issueLocalRequest()
312 assert (ret == 0); in issueLocalRequest()
328 int ret; in processCommandBuffer() local
353 ret = pthread_mutex_lock(&s_pendingRequestsMutex); in processCommandBuffer()
354 assert (ret == 0); in processCommandBuffer()
359 ret = pthread_mutex_unlock(&s_pendingRequestsMutex); in processCommandBuffer()
360 assert (ret == 0); in processCommandBuffer()
[all …]
/hardware/libhardware_legacy/vibrator/
Dvibrator.c28 int nwr, ret, fd; in sendit() local
42 ret = write(fd, value, nwr); in sendit()
46 return (ret == nwr) ? 0 : -1; in sendit()
/hardware/broadcom/wlan/bcm4329/src/wl/sys/
Dwl_iw.c318 int ret = -EINVAL; in dev_wlc_ioctl() local
322 return ret; in dev_wlc_ioctl()
339 ret = dev_open(dev); in dev_wlc_ioctl()
340 if (ret) { in dev_wlc_ioctl()
341 WL_ERROR(("%s: Error dev_open: %d\n", __func__, ret)); in dev_wlc_ioctl()
343 return ret; in dev_wlc_ioctl()
349 ret = dev->do_ioctl(dev, &ifr, SIOCDEVPRIVATE); in dev_wlc_ioctl()
351 ret = dev->netdev_ops->ndo_do_ioctl(dev, &ifr, SIOCDEVPRIVATE); in dev_wlc_ioctl()
361 return ret; in dev_wlc_ioctl()
864 int ret = 0; local
[all …]
/hardware/broadcom/wlan/bcm4329/src/bcmsdio/sys/
Dbcmsdh_sdmmc_linux.c90 int ret = 0; in bcmsdh_sdmmc_probe() local
105 ret = bcmsdh_probe(&sdmmc_dev); in bcmsdh_sdmmc_probe()
113 ret = bcmsdh_probe(&sdmmc_dev); in bcmsdh_sdmmc_probe()
116 return ret; in bcmsdh_sdmmc_probe()
/hardware/broadcom/wlan/bcm4329/src/include/
Dlinuxver.h241 void *ret; in pci_alloc_consistent() local
244 ret = (void *)__get_free_pages(gfp, get_order(size)); in pci_alloc_consistent()
246 if (ret != NULL) { in pci_alloc_consistent()
247 memset(ret, 0, size); in pci_alloc_consistent()
248 *dma_handle = virt_to_bus(ret); in pci_alloc_consistent()
250 return ret; in pci_alloc_consistent()
/hardware/ti/omap3/omx/audio/src/openmax_il/g726_dec/src/
DOMX_G726Dec_CompThread.c149 int ret; in G726DEC_ComponentThread() local
153 ret = read(pComponentPrivate->dataPipe[0], &pBufHeader, sizeof(pBufHeader)); in G726DEC_ComponentThread()
154 if (ret == -1) { in G726DEC_ComponentThread()

1234