/hardware/ti/omap3/liboverlay/ |
D | v4l2_utils.c | 136 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 …]
|
D | overlay.cpp | 360 int ret; in enable_streaming() local 363 ret = enable_streaming_locked(shared, ovly_fd); in enable_streaming() 365 return ret; in enable_streaming() 370 int ret = 0; in disable_streaming_locked() local 373 ret = v4l2_overlay_stream_off( ovly_fd ); in disable_streaming_locked() 374 if (ret) { in disable_streaming_locked() 375 LOGE("Stream Off Failed!/%d\n", ret); in disable_streaming_locked() 382 return ret; in disable_streaming_locked() 417 int ret; in overlay_createOverlay() local 650 int ret = 0; in overlay_commit() local [all …]
|
/hardware/ril/reference-ril/ |
D | at_tok.c | 72 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 …]
|
D | atchannel.c | 338 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 …]
|
D | reference-ril.c | 603 int ret; local 616 ret = at_send_command(cmd, NULL); 655 int ret; local 664 ret = at_send_command(cmd, NULL); 1579 int ret; local 1584 ret = SIM_NOT_READY; 1591 ret = SIM_NOT_READY; 1600 ret = SIM_ABSENT; 1604 ret = SIM_NOT_READY; 1614 ret = SIM_NOT_READY; [all …]
|
/hardware/broadcom/wlan/bcm4329/src/dhd/exe/ |
D | dhdu.c | 456 int ret; in dhd_check() local 459 if ((ret = dhd_get(dhd, DHD_GET_MAGIC, &val, sizeof(int)) < 0)) in dhd_check() 460 return ret; in dhd_check() 463 if ((ret = dhd_get(dhd, DHD_GET_VERSION, &val, sizeof(int)) < 0)) in dhd_check() 464 return ret; in dhd_check() 529 int ret = 0; in dhd_pktgen() local 538 if ((ret = dhd_var_getbuf(dhd, "pktgen", NULL, 0, &ptr)) != 0) in dhd_pktgen() 539 return ret; in dhd_pktgen() 559 ret = -1; in dhd_pktgen() 566 ret = -1; in dhd_pktgen() [all …]
|
D | dhdu_linux.c | 68 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/ |
D | qemu.c | 78 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/broadcom/wlan/bcm4329/src/dhd/sys/ |
D | dhd_cdc.c | 76 int ret; in dhdcdc_msg() local 90 ret = dhd_bus_txctl(dhd->bus, (uchar*)&prot->msg, len); in dhdcdc_msg() 92 return ret; in dhdcdc_msg() 98 int ret; in dhdcdc_cmplt() local 104 ret = dhd_bus_rxctl(dhd->bus, (uchar*)&prot->msg, len+sizeof(cdc_ioctl_t)); in dhdcdc_cmplt() 105 if (ret < 0) in dhdcdc_cmplt() 109 return ret; in dhdcdc_cmplt() 118 int ret = 0, retries = 0; in dhdcdc_query_ioctl() local 151 if ((ret = dhdcdc_msg(dhd)) < 0) { in dhdcdc_query_ioctl() 152 DHD_ERROR(("dhdcdc_query_ioctl: dhdcdc_msg failed w/status %d\n", ret)); in dhdcdc_query_ioctl() [all …]
|
D | dhd_linux.c | 587 int ret; in _dhd_set_multicast_list() local 625 ret = dhd_prot_ioctl(&dhd->pub, ifidx, &ioc, ioc.buf, ioc.len); in _dhd_set_multicast_list() 626 if (ret < 0) { in _dhd_set_multicast_list() 660 ret = dhd_prot_ioctl(&dhd->pub, ifidx, &ioc, ioc.buf, ioc.len); in _dhd_set_multicast_list() 661 if (ret < 0) { in _dhd_set_multicast_list() 679 ret = dhd_prot_ioctl(&dhd->pub, ifidx, &ioc, ioc.buf, ioc.len); in _dhd_set_multicast_list() 680 if (ret < 0) { in _dhd_set_multicast_list() 691 int ret; in _dhd_set_mac_address() local 703 ret = dhd_prot_ioctl(&dhd->pub, ifidx, &ioc, ioc.buf, ioc.len); in _dhd_set_mac_address() 704 if (ret < 0) { in _dhd_set_mac_address() [all …]
|
/hardware/libhardware_legacy/flashlight/ |
D | flashlight.c | 43 int ret = 0; in get_flashlight_enabled() local 50 ret = (value == '1'); in get_flashlight_enabled() 54 return ret; in get_flashlight_enabled() 59 int nwr, ret, fd; in set_flashlight_enabled() local 69 ret = write(fd, value, nwr); in set_flashlight_enabled() 73 return (ret == nwr) ? 0 : -1; in set_flashlight_enabled() 78 int nwr, ret, fd; in enable_camera_flash() local 88 ret = write(fd, value, nwr); in enable_camera_flash() 92 return (ret == nwr) ? 0 : -1; in enable_camera_flash()
|
/hardware/libhardware_legacy/gps/ |
D | gps_qemu.c | 581 int ret; in gps_state_start() local 583 do { ret=write( s->control[0], &cmd, 1 ); } in gps_state_start() 584 while (ret < 0 && errno == EINTR); in gps_state_start() 586 if (ret != 1) in gps_state_start() 588 __FUNCTION__, ret, strerror(errno)); in gps_state_start() 596 int ret; in gps_state_stop() local 598 do { ret=write( s->control[0], &cmd, 1 ); } in gps_state_stop() 599 while (ret < 0 && errno == EINTR); in gps_state_stop() 601 if (ret != 1) in gps_state_stop() 603 __FUNCTION__, ret, strerror(errno)); in gps_state_stop() [all …]
|
/hardware/ril/rild/ |
D | radiooptions.c | 98 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/ |
D | wifi.c | 82 int ret; in insmod() local 88 ret = init_module(module, size, args); in insmod() 92 return ret; in insmod() 97 int ret = -1; in rmmod() local 101 ret = delete_module(modname, O_NONBLOCK | O_EXCL); in rmmod() 102 if (ret < 0 && errno == EAGAIN) in rmmod() 108 if (ret != 0) in rmmod() 111 return ret; in rmmod() 402 int ret; in wifi_send_command() local 408 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/ |
D | OMX_WbAmrEnc_CompThread.c | 95 int ret = 0; in WBAMRENC_CompThread() local 166 ret = read(pComponentPrivate->dataPipe[0], &pBufHeader, sizeof(pBufHeader)); in WBAMRENC_CompThread() 167 if (ret == -1) { in WBAMRENC_CompThread() 180 ret = read(pComponentPrivate->cmdPipe[0], &command, sizeof (command)); in WBAMRENC_CompThread() 181 if (ret == -1) { in WBAMRENC_CompThread() 186 ret = read(pComponentPrivate->cmdDataPipe[0], &commandData, sizeof (commandData)); in WBAMRENC_CompThread() 187 if (ret == -1) { in WBAMRENC_CompThread()
|
/hardware/ril/libril/ |
D | ril.cpp | 296 int ret; in issueLocalRequest() local 304 ret = pthread_mutex_lock(&s_pendingRequestsMutex); in issueLocalRequest() 305 assert (ret == 0); in issueLocalRequest() 310 ret = pthread_mutex_unlock(&s_pendingRequestsMutex); in issueLocalRequest() 311 assert (ret == 0); in issueLocalRequest() 327 int ret; in processCommandBuffer() local 352 ret = pthread_mutex_lock(&s_pendingRequestsMutex); in processCommandBuffer() 353 assert (ret == 0); in processCommandBuffer() 358 ret = pthread_mutex_unlock(&s_pendingRequestsMutex); in processCommandBuffer() 359 assert (ret == 0); in processCommandBuffer() [all …]
|
/hardware/libhardware_legacy/vibrator/ |
D | vibrator.c | 28 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/include/ |
D | linuxver.h | 240 void *ret; in pci_alloc_consistent() local 243 ret = (void *)__get_free_pages(gfp, get_order(size)); in pci_alloc_consistent() 245 if (ret != NULL) { in pci_alloc_consistent() 246 memset(ret, 0, size); in pci_alloc_consistent() 247 *dma_handle = virt_to_bus(ret); in pci_alloc_consistent() 249 return ret; in pci_alloc_consistent()
|
/hardware/broadcom/wlan/bcm4329/src/bcmsdio/sys/ |
D | bcmsdh_sdmmc_linux.c | 83 int ret = 0; in bcmsdh_sdmmc_probe() local 96 ret = bcmsdh_probe(&sdmmc_dev); in bcmsdh_sdmmc_probe() 104 ret = bcmsdh_probe(&sdmmc_dev); in bcmsdh_sdmmc_probe() 107 return ret; in bcmsdh_sdmmc_probe()
|
/hardware/ti/omap3/omx/audio/src/openmax_il/g726_dec/src/ |
D | OMX_G726Dec_CompThread.c | 149 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()
|
/hardware/ti/omap3/libopencorehw/ |
D | android_surface_output_omap34xx.cpp | 194 int ret; in writeFrameBuf() local 218 ret = mOverlay->queueBuffer((void*)bufEnc); in writeFrameBuf() 219 if (ret == ALL_BUFFERS_FLUSHED) { in writeFrameBuf() 232 ret = mOverlay->dequeueBuffer(&overlay_buffer); in writeFrameBuf() 233 if (ret != NO_ERROR) { in writeFrameBuf() 234 if (ret == ALL_BUFFERS_FLUSHED) in writeFrameBuf()
|
/hardware/msm7k/librpc/ |
D | clnt.c | 285 enum clnt_stat ret = RPC_SUCCESS; in clnt_call() local 304 ret = RPC_CANTENCODEARGS; in clnt_call() 315 ret = RPC_CANTENCODEARGS; in clnt_call() 327 ret = RPC_CANTSEND; in clnt_call() 343 ret = RPC_CANTRECV; in clnt_call() 352 ret = RPC_CANTRECV; in clnt_call() 359 ret = reply_header.u.dr.stat + RPC_VERSMISMATCH; in clnt_call() 365 ret = reply_header.u.ar.stat + RPC_AUTHERROR; in clnt_call() 374 ret = RPC_CANTDECODERES; in clnt_call() 394 return ret; in clnt_call()
|
/hardware/ti/omap3/omx/audio/src/openmax_il/g711_dec/src/ |
D | OMX_G711Dec_ComponentThread.c | 74 ssize_t ret = 0; in ComponentThread() local 126 ret = read(pComponentPrivate->dataPipe[0], &pBufHeader, sizeof(pBufHeader)); in ComponentThread() 128 if (ret == -1) { in ComponentThread()
|
/hardware/ti/omap3/omx/audio/src/openmax_il/g726_enc/src/ |
D | OMX_G726Enc_ComponentThread.c | 88 int ret = 0; in G726ENC_CompThread() local 163 ret = read(pComponentPrivate->dataPipe[0], &pBufHeader, sizeof(pBufHeader)); in G726ENC_CompThread() 164 if (ret == -1) { in G726ENC_CompThread()
|
/hardware/ti/omap3/omx/audio/src/openmax_il/g711_enc/src/ |
D | OMX_G711Enc_ComponentThread.c | 91 int ret = 0; in G711ENC_CompThread() local 151 ret = read(pComponentPrivate->dataPipe[0], &pBufHeader, sizeof(pBufHeader)); in G711ENC_CompThread() 152 if (ret == -1) { in G711ENC_CompThread()
|