/device/google/coral/usb/ |
D | UsbGadget.cpp | 49 Return<void> ret = callback->getCurrentUsbFunctionsCb( in getCurrentUsbFunctions() local 52 if (!ret.isOk()) in getCurrentUsbFunctions() 53 ALOGE("Call to getCurrentUsbFunctionsCb failed %s", ret.description().c_str()); in getCurrentUsbFunctions() 71 V1_0::Status ret = Status::SUCCESS; in validateAndSetVidPid() local 77 ret = setVidPid("0x05C6", "0x901B"); in validateAndSetVidPid() 81 ret = Status::CONFIGURATION_NOT_SUPPORTED; in validateAndSetVidPid() 83 ret = setVidPid("0x18d1", "0x4ee1"); in validateAndSetVidPid() 89 ret = setVidPid("0x05C6", "0x903A"); in validateAndSetVidPid() 93 ret = Status::CONFIGURATION_NOT_SUPPORTED; in validateAndSetVidPid() 95 ret = setVidPid("0x18d1", "0x4ee2"); in validateAndSetVidPid() [all …]
|
/device/google/contexthub/util/stm32_flash/ |
D | stm32_bl.c | 91 uint8_t ret; in read_ack_loop() local 94 ret = handle->read_ack(handle); in read_ack_loop() 95 } while (ret != CMD_ACK && ret != CMD_NACK); in read_ack_loop() 97 return ret; in read_ack_loop() 104 uint8_t ret; in erase_sector() local 107 ret = handle->read_ack(handle); in erase_sector() 108 if (ret != CMD_ACK) in erase_sector() 109 return ret; in erase_sector() 124 ret = read_ack_loop(handle); in erase_sector() 125 if (ret != CMD_ACK) in erase_sector() [all …]
|
/device/google/cuttlefish/guest/hals/camera/ |
D | GrallocModule.cpp | 37 int ret = hw_get_module(GRALLOC_HARDWARE_MODULE_ID, &module); in GrallocModule() local 38 if (ret) { in GrallocModule() 39 ALOGE("%s: Failed to get gralloc module: %d", __FUNCTION__, ret); in GrallocModule() 53 auto ret = mGralloc3->importBuffer( in import() local 61 if (!ret.isOk() || error != V3Error::NONE) { in import() 69 int ret = mGralloc0->registerBuffer(mGralloc0, handle); in import() local 70 if (ret) { in import() 71 ALOGE("%s: Failed to import gralloc0 buffer: %d.", __FUNCTION__, ret); in import() 75 return ret; in import() 86 auto ret = mGralloc3->freeBuffer(native_handle); in release() local [all …]
|
/device/linaro/dragonboard/qcom/rmtfs/ |
D | rmtfs.c | 63 int ret; in rmtfs_open() local 65 ret = qmi_decode_message(&req, &txn, pkt, QMI_REQUEST, in rmtfs_open() 67 if (ret < 0) { in rmtfs_open() 95 ret = qrtr_sendto(sock, pkt->node, pkt->port, in rmtfs_open() 97 if (ret < 0) in rmtfs_open() 99 strerror(-ret)); in rmtfs_open() 110 int ret; in rmtfs_close() local 112 ret = qmi_decode_message(&req, &txn, pkt, QMI_REQUEST, in rmtfs_close() 114 if (ret < 0) { in rmtfs_close() 141 ret = qrtr_sendto(sock, pkt->node, pkt->port, in rmtfs_close() [all …]
|
D | sharedmem.c | 60 int ret; in rmtfs_mem_open_rfsa() local 73 ret = fstat(fd, &sb); in rmtfs_mem_open_rfsa() 74 if (ret < 0) { in rmtfs_mem_open_rfsa() 95 ret = parse_hex_sysattr(dev, "phys_addr", &rmem->address); in rmtfs_mem_open_rfsa() 96 if (ret < 0) { in rmtfs_mem_open_rfsa() 98 saved_errno = -ret; in rmtfs_mem_open_rfsa() 102 ret = parse_hex_sysattr(dev, "size", &rmem->size); in rmtfs_mem_open_rfsa() 103 if (ret < 0) { in rmtfs_mem_open_rfsa() 105 saved_errno = -ret; in rmtfs_mem_open_rfsa() 130 int ret; in rmtfs_mem_open_uio() local [all …]
|
D | rproc.c | 32 int ret; in rproc_init() local 92 ret = pipe(rproc_pipe); in rproc_init() 93 if (ret < 0) { in rproc_init() 103 ssize_t ret; in do_rproc_start() local 105 ret = pwrite(rproc_state_fd, "start", 5, 0); in do_rproc_start() 106 if (ret < 4) in do_rproc_start() 119 ssize_t ret; in do_rproc_stop() local 121 ret = pwrite(rproc_state_fd, "stop", 4, 0); in do_rproc_stop() 122 if (ret < 4) in do_rproc_stop() 125 ret = write(rproc_pipe[1], "Y", 1); in do_rproc_stop() [all …]
|
/device/google/contexthub/contexthubhal/ |
D | nanohubhal.cpp | 89 int ret; in rwrite() local 92 ret = write(fd, buf, len); in rwrite() 93 } while (ret < 0 && errno == EINTR); in rwrite() 95 if (ret != len) { in rwrite() 104 int ret; in rread() local 107 ret = read(fd, buf, len); in rread() 108 } while (ret < 0 && errno == EINTR); in rread() 110 return ret; in rread() 134 int ret = read(pfd.fd, buf, sizeof(buf)); in discard_inotify_evt() local 135 ALOGD("Discarded %d bytes of inotify data", ret); in discard_inotify_evt() [all …]
|
/device/generic/goldfish/radio/librilutils/ |
D | record_stream.c | 47 RecordStream *ret; in record_stream_new() local 51 ret = (RecordStream *)calloc(1, sizeof(RecordStream)); in record_stream_new() 53 ret->fd = fd; in record_stream_new() 54 ret->maxRecordLen = maxRecordLen; in record_stream_new() 55 ret->buffer = (unsigned char *)malloc (maxRecordLen + HEADER_SIZE); in record_stream_new() 57 ret->unconsumed = ret->buffer; in record_stream_new() 58 ret->read_end = ret->buffer; in record_stream_new() 59 ret->buffer_end = ret->buffer + maxRecordLen + HEADER_SIZE; in record_stream_new() 61 return ret; in record_stream_new() 130 void *ret; in record_stream_get_next() local [all …]
|
/device/google/cuttlefish/guest/hals/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 …]
|
/device/generic/goldfish/radio/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 …]
|
/device/linaro/dragonboard/qcom/pd-mapper/ |
D | json.c | 152 int ret; in json_parse_value() local 156 ret = json_parse_object(value); in json_parse_value() 157 if (ret) in json_parse_value() 160 ret = json_parse_array(value); in json_parse_value() 161 if (ret) in json_parse_value() 164 ret = json_parse_string(value); in json_parse_value() 165 if (ret) in json_parse_value() 168 ret = json_parse_number(value); in json_parse_value() 169 if (ret) in json_parse_value() 172 ret = json_parse_keyword(value); in json_parse_value() [all …]
|
D | pd-mapper.c | 65 int ret; in handle_get_domain_list() local 67 ret = qmi_decode_message(&req, &txn, pkt, QMI_REQUEST, in handle_get_domain_list() 70 if (ret < 0) { in handle_get_domain_list() 112 ret = qrtr_sendto(sock, pkt->node, pkt->port, in handle_get_domain_list() 114 if (ret < 0) { in handle_get_domain_list() 117 strerror(-ret)); in handle_get_domain_list() 137 int ret; in pd_load_map() local 147 ret = json_get_number(sr_domain, "qmi_instance_id", &number); in pd_load_map() 148 if (ret) in pd_load_map() 149 return ret; in pd_load_map() [all …]
|
/device/google/bonito/usb/ |
D | UsbGadget.cpp | 196 int ret = 0; in unlinkFunctions() local 206 ret = remove(filepath); in unlinkFunctions() 207 if (ret) { in unlinkFunctions() 214 return ret; in unlinkFunctions() 219 int ret; in addEpollFd() local 224 ret = epoll_ctl(epfd, EPOLL_CTL_ADD, fd, &event); in addEpollFd() 225 if (ret) ALOGE("epoll_ctl error %d", errno); in addEpollFd() 227 return ret; in addEpollFd() 232 Return<void> ret = callback->getCurrentUsbFunctionsCb( in getCurrentUsbFunctions() local 236 if (!ret.isOk()) in getCurrentUsbFunctions() [all …]
|
/device/google/crosshatch/usb/ |
D | UsbGadget.cpp | 196 int ret = 0; in unlinkFunctions() local 206 ret = remove(filepath); in unlinkFunctions() 207 if (ret) { in unlinkFunctions() 214 return ret; in unlinkFunctions() 219 int ret; in addEpollFd() local 224 ret = epoll_ctl(epfd, EPOLL_CTL_ADD, fd, &event); in addEpollFd() 225 if (ret) ALOGE("epoll_ctl error %d", errno); in addEpollFd() 227 return ret; in addEpollFd() 232 Return<void> ret = callback->getCurrentUsbFunctionsCb( in getCurrentUsbFunctions() local 236 if (!ret.isOk()) in getCurrentUsbFunctions() [all …]
|
/device/google/contexthub/firmware/os/core/ |
D | floatRt.c | 62 uint64_t ret; in floatToUint64() local 78 ret = (word & ((1 << MANTISSA_BITS) - 1)) | (1 << MANTISSA_BITS); in floatToUint64() 83 ret >>= MANTISSA_BITS - e; in floatToUint64() 85 ret <<= e - MANTISSA_BITS; in floatToUint64() 87 return ret; in floatToUint64() 94 uint64_t ret; in floatToInt64() local 106 ret = 0x7FFFFFFFFFFFFFFFULL; in floatToInt64() 110 ret = (word & ((1 << MANTISSA_BITS) - 1)) | (1 << MANTISSA_BITS); in floatToInt64() 115 ret >>= MANTISSA_BITS - e; in floatToInt64() 117 ret <<= e - MANTISSA_BITS; in floatToInt64() [all …]
|
/device/generic/goldfish/wifi/mac80211_create_radios/ |
D | main.cpp | 110 int ret; in buildCreateRadioMessage() local 111 ret = nla_put(msg.get(), HWSIM_ATTR_PERM_ADDR, ETH_ALEN, mac); in buildCreateRadioMessage() 112 if (ret) { RETURN_NL_ERROR("nla_put(HWSIM_ATTR_PERM_ADDR)", ret, nullptr); } in buildCreateRadioMessage() 114 ret = nla_put_flag(msg.get(), HWSIM_ATTR_SUPPORT_P2P_DEVICE); in buildCreateRadioMessage() 115 if (ret) { RETURN_NL_ERROR("nla_put(HWSIM_ATTR_SUPPORT_P2P_DEVICE)", ret, nullptr); } in buildCreateRadioMessage() 133 int ret = nl_send_auto(socket, msg.get()); in createRadios() local 134 if (ret < 0) { RETURN_NL_ERROR("nl_send_auto", ret, 1); } in createRadios() 147 int ret; in manageRadios() local 148 ret = genl_connect(socket.get()); in manageRadios() 149 if (ret) { RETURN_NL_ERROR("genl_connect", ret, 1); } in manageRadios() [all …]
|
/device/google/wahoo/usb/ |
D | UsbGadget.cpp | 180 int ret = 0; in unlinkFunctions() local 190 ret = remove(filepath); in unlinkFunctions() 191 if (ret) { in unlinkFunctions() 198 return ret; in unlinkFunctions() 203 int ret; in addEpollFd() local 208 ret = epoll_ctl(epfd, EPOLL_CTL_ADD, fd, &event); in addEpollFd() 209 if (ret) ALOGE("epoll_ctl error %d", errno); in addEpollFd() 211 return ret; in addEpollFd() 216 Return<void> ret = callback->getCurrentUsbFunctionsCb( in getCurrentUsbFunctions() local 220 if (!ret.isOk()) in getCurrentUsbFunctions() [all …]
|
/device/amlogic/yukawa/hal/hdmicec/ |
D | hdmi_cec.c | 61 int ret; in hdmicec_add_logical_address() local 68 ret = ioctl(ctx->cec_fd, CEC_ADAP_G_LOG_ADDRS, &laddrs); in hdmicec_add_logical_address() 69 if (ret) in hdmicec_add_logical_address() 70 return ret; in hdmicec_add_logical_address() 130 ret = ioctl(ctx->cec_fd, CEC_ADAP_S_LOG_ADDRS, &laddrs); in hdmicec_add_logical_address() 131 if (ret) { in hdmicec_add_logical_address() 133 return ret; in hdmicec_add_logical_address() 145 int ret; in hdmicec_clear_logical_address() local 148 ret = ioctl(ctx->cec_fd, CEC_ADAP_S_LOG_ADDRS, &laddrs); in hdmicec_clear_logical_address() 149 if (ret) in hdmicec_clear_logical_address() [all …]
|
/device/google/contexthub/firmware/os/cpu/cortexm4/ |
D | cpuMath.c | 8 uint64_t ret; in cpuMathUint44Div1000ToUint32_slow_path() local 10 ret = val * multLo; in cpuMathUint44Div1000ToUint32_slow_path() 11 ret >>= 32; in cpuMathUint44Div1000ToUint32_slow_path() 12 ret += val * multHi; in cpuMathUint44Div1000ToUint32_slow_path() 14 return ret >> 12; in cpuMathUint44Div1000ToUint32_slow_path() 47 uint64_t try, ret; \ 52 ret = cpuMathUint64TimesUint64Lsr64(num, denomRecip); \ 53 try = (ret + 1) * denom; \ 54 if (try <= num && try >= ret * denom) \ 55 ret++; \ [all …]
|
/device/linaro/hikey/gralloc960/ |
D | mali_gralloc_public_interface.cpp | 54 int ret = 0; in mali_gralloc_create_descriptor() local 55 ret = mali_gralloc_create_descriptor_internal(outDescriptor); in mali_gralloc_create_descriptor() 57 return ret; in mali_gralloc_create_descriptor() 62 int ret = 0; in mali_gralloc_destroy_descriptor() local 63 ret = mali_gralloc_destroy_descriptor_internal(descriptor); in mali_gralloc_destroy_descriptor() 65 return ret; in mali_gralloc_destroy_descriptor() 71 int ret = 0; in mali_gralloc_set_consumer_usage() local 72 ret = mali_gralloc_set_consumerusage_internal(descriptor, usage); in mali_gralloc_set_consumer_usage() 74 return ret; in mali_gralloc_set_consumer_usage() 80 int ret = 0; in mali_gralloc_set_dimensions() local [all …]
|
/device/amlogic/yukawa/hal/gralloc/ |
D | mali_gralloc_public_interface.cpp | 54 int ret = 0; in mali_gralloc_create_descriptor() local 55 ret = mali_gralloc_create_descriptor_internal(outDescriptor); in mali_gralloc_create_descriptor() 57 return ret; in mali_gralloc_create_descriptor() 62 int ret = 0; in mali_gralloc_destroy_descriptor() local 63 ret = mali_gralloc_destroy_descriptor_internal(descriptor); in mali_gralloc_destroy_descriptor() 65 return ret; in mali_gralloc_destroy_descriptor() 71 int ret = 0; in mali_gralloc_set_consumer_usage() local 72 ret = mali_gralloc_set_consumerusage_internal(descriptor, usage); in mali_gralloc_set_consumer_usage() 74 return ret; in mali_gralloc_set_consumer_usage() 80 int ret = 0; in mali_gralloc_set_dimensions() local [all …]
|
/device/linaro/dragonboard/qcom/tqftpserv/ |
D | tqftpserv.c | 215 int ret; in handle_rrq() local 269 ret = connect(sock, (struct sockaddr *)sq, sizeof(*sq)); in handle_rrq() 270 if (ret < 0) { in handle_rrq() 318 int ret; in handle_wrq() local 346 ret = connect(sock, (struct sockaddr *)sq, sizeof(*sq)); in handle_wrq() 347 if (ret < 0) { in handle_wrq() 358 ret = tftp_send_ack(client->sock, 0); in handle_wrq() 359 if (ret < 0) { in handle_wrq() 382 int ret; in handle_reader() local 387 ret = -errno; in handle_reader() [all …]
|
/device/generic/goldfish-opengl/android-emu/android/base/threads/ |
D | AndroidThreadStore.cpp | 81 int ret = -1; in registerKey() local 84 ret = mLastIndex++; in registerKey() 85 mDestructors[ret] = destroy; in registerKey() 88 D("Exiting newKey=%d\n", ret); in registerKey() 89 return ret; in registerKey() 117 void* ret = (*array)[key]; in getValue() local 118 D("Exiting keyValue=%p\n", ret); in getValue() 119 return ret; in getValue() 212 void* ret = gGlobalState->getValue(mKey); in get() local 213 D("Exiting this=%p value=%p\n", this, ret); in get() [all …]
|
/device/google/cuttlefish/guest/hals/gps/ |
D | gps_thread.h | 66 int ret; in epoll_register() local 68 ret = epoll_ctl(epoll_fd, EPOLL_CTL_ADD, fd, &ev); in epoll_register() 69 } while (ret < 0 && errno == EINTR); in epoll_register() 70 return ret; in epoll_register() 74 int ret; in epoll_deregister() local 76 ret = epoll_ctl(epoll_fd, EPOLL_CTL_DEL, fd, NULL); in epoll_deregister() 77 } while (ret < 0 && errno == EINTR); in epoll_deregister() 78 return ret; in epoll_deregister()
|
/device/generic/goldfish-opengl/system/OpenglSystemCommon/ |
D | VirtioGpuPipeStream.cpp | 97 int ret = drmIoctl(m_fd, DRM_IOCTL_VIRTGPU_RESOURCE_CREATE, &create); in connect() local 98 if (ret) { in connect() 100 __func__, ret, strerror(errno)); in connect() 127 int ret = drmIoctl(m_fd, DRM_IOCTL_VIRTGPU_MAP, &map); in connect() local 128 if (ret) { in connect() 130 __func__, ret, strerror(errno)); in connect() 140 __func__, ret, strerror(errno)); in connect() 310 int ret = 0; in recv() local 315 ret += res; in recv() 327 if (ret == 0) in recv() [all …]
|