/device/amlogic/yukawa/hal/bootctrl/ |
D | bootloader_message.cpp | 38 static std::string get_misc_blk_device(std::string* err) { in get_misc_blk_device() argument 41 *err = "failed to read default fstab"; in get_misc_blk_device() 46 *err = "failed to find /misc partition"; in get_misc_blk_device() 54 static bool wait_for_device(const std::string& blk_device, std::string* err) { in wait_for_device() argument 57 err->clear(); in wait_for_device() 63 *err += android::base::StringPrintf("failed to stat %s try %d: %s\n", in wait_for_device() 70 *err += android::base::StringPrintf("failed to stat %s\n", blk_device.c_str()); in wait_for_device() 76 size_t offset, std::string* err) { in read_misc_partition() argument 77 if (!wait_for_device(misc_blk_device, err)) { in read_misc_partition() 82 *err = android::base::StringPrintf("failed to open %s: %s", misc_blk_device.c_str(), in read_misc_partition() [all …]
|
D | bootloader_message.h | 190 std::string get_bootloader_message_blk_device(std::string* err); 193 bool read_bootloader_message(bootloader_message* boot, std::string* err); 197 std::string* err); 201 std::string* err); 204 bool write_bootloader_message(const bootloader_message& boot, std::string* err); 208 const std::string& misc_blk_device, std::string* err); 212 bool write_bootloader_message(const std::vector<std::string>& options, std::string* err); 216 std::string* err); 220 bool update_bootloader_message(const std::vector<std::string>& options, std::string* err); 228 bool clear_bootloader_message(std::string* err); [all …]
|
/device/linaro/dragonboard/gralloc/ |
D | gralloc.cpp | 54 int err = 0; in gbm_init() local 60 err = -EINVAL; in gbm_init() 64 return err; in gbm_init() 71 int err; in gbm_mod_perform() local 74 err = gbm_init(dmod); in gbm_mod_perform() 75 if (err) in gbm_mod_perform() 76 return err; in gbm_mod_perform() 84 err = 0; in gbm_mod_perform() 88 err = -EINVAL; in gbm_mod_perform() 93 return err; in gbm_mod_perform() [all …]
|
/device/amlogic/yukawa/hal/hdmicec/ |
D | hdmi_cec_test_hal.c | 34 int err, type = -1; in main() local 41 err = (*hdmicec_open)(&HAL_MODULE_INFO_SYM, NULL, (struct hw_device_t **)device2); in main() 42 if (!err) { in main() 58 err = ioctl(fd, CEC_IOC_SET_DEV_TYPE, type); in main() 59 if (!err) { in main() 70 err = cec_device->add_logical_address(cec_device, CEC_ADDR_PLAYBACK_1); in main() 71 if (!err) { in main() 85 err = cec_device->send_message(cec_device, &send_msg); in main() 86 ALOGI("send_message result= %d", err); in main() 94 err = cec_device->send_message(cec_device, &send_msg); in main() [all …]
|
/device/google/cuttlefish/guest/hals/ril/reference-ril/ |
D | reference-ril.c | 435 int err; in callFromCLCCLine() local 439 err = at_tok_start(&line); in callFromCLCCLine() 440 if (err < 0) goto error; in callFromCLCCLine() 442 err = at_tok_nextint(&line, &(p_call->index)); in callFromCLCCLine() 443 if (err < 0) goto error; in callFromCLCCLine() 445 err = at_tok_nextbool(&line, &(p_call->isMT)); in callFromCLCCLine() 446 if (err < 0) goto error; in callFromCLCCLine() 448 err = at_tok_nextint(&line, &state); in callFromCLCCLine() 449 if (err < 0) goto error; in callFromCLCCLine() 451 err = clccStateToRILState(state, &(p_call->state)); in callFromCLCCLine() [all …]
|
D | atchannel.c | 108 int err; in sleepMsec() local 114 err = nanosleep (&ts, &ts); in sleepMsec() 115 } while (err < 0 && errno == EINTR); in sleepMsec() 676 int err = 0; in at_send_command_full_nolock() local 680 err = AT_ERROR_COMMAND_PENDING; in at_send_command_full_nolock() 684 err = writeline (command); in at_send_command_full_nolock() 686 if (err < 0) { in at_send_command_full_nolock() 701 err = pthread_cond_timedwait(&s_commandcond, &s_commandmutex, &ts); in at_send_command_full_nolock() 703 err = pthread_cond_wait(&s_commandcond, &s_commandmutex); in at_send_command_full_nolock() 706 if (err == ETIMEDOUT) { in at_send_command_full_nolock() [all …]
|
/device/google/contexthub/firmware/os/core/ |
D | spi.c | 49 int err; member 55 static void spiMasterDone(struct SpiDeviceState *state, int err); 58 static void spiSlaveIdle(struct SpiDeviceState *state, int err); 70 int err = dev->ops->masterStartSync(dev, cs, mode); in spiMasterStart() local 71 if (err < 0) in spiMasterStart() 72 return err; in spiMasterStart() 79 void spi_masterStartAsync_done(struct SpiDevice *dev, int err) in spi_masterStartAsync_done() argument 82 if (err) in spi_masterStartAsync_done() 83 spiMasterDone(state, err); in spi_masterStartAsync_done() 108 int err = dev->ops->masterRxTx(dev, rxBuf, txBuf, size, mode); in spiMasterNext() local [all …]
|
D | hostIntfSpi.c | 38 static void hostIntfSpiRxCallback(void *cookie, int err) in hostIntfSpiRxCallback() argument 42 callback(NANOHUB_PACKET_SIZE(packet->len), err); in hostIntfSpiRxCallback() 45 static void hostIntfSpiTxCallback(void *cookie, int err) in hostIntfSpiTxCallback() argument 48 callback(gTxSize, err); in hostIntfSpiTxCallback() 59 int err; in hostIntfSpiRxPacket() local 65 err = spiSlaveRxTx(gSpi, &gPacket, 1, hostIntfSpiRxCallback, callback); in hostIntfSpiRxPacket() 66 if (err < 0) in hostIntfSpiRxPacket() 67 callback(0, err); in hostIntfSpiRxPacket()
|
/device/generic/goldfish/radio/ril/ |
D | reference-ril.c | 324 int err; in callFromCLCCLine() local 328 err = at_tok_start(&line); in callFromCLCCLine() 329 if (err < 0) goto error; in callFromCLCCLine() 331 err = at_tok_nextint(&line, &(p_call->index)); in callFromCLCCLine() 332 if (err < 0) goto error; in callFromCLCCLine() 334 err = at_tok_nextbool(&line, &(p_call->isMT)); in callFromCLCCLine() 335 if (err < 0) goto error; in callFromCLCCLine() 337 err = at_tok_nextint(&line, &state); in callFromCLCCLine() 338 if (err < 0) goto error; in callFromCLCCLine() 340 err = clccStateToRILState(state, &(p_call->state)); in callFromCLCCLine() [all …]
|
D | atchannel.c | 109 int err; in sleepMsec() local 115 err = nanosleep (&ts, &ts); in sleepMsec() 116 } while (err < 0 && errno == EINTR); in sleepMsec() 677 int err = 0; in at_send_command_full_nolock() local 681 err = AT_ERROR_COMMAND_PENDING; in at_send_command_full_nolock() 685 err = writeline (command); in at_send_command_full_nolock() 687 if (err < 0) { in at_send_command_full_nolock() 702 err = pthread_cond_timedwait(&s_commandcond, &s_commandmutex, &ts); in at_send_command_full_nolock() 704 err = pthread_cond_wait(&s_commandcond, &s_commandmutex); in at_send_command_full_nolock() 707 if (err == ETIMEDOUT) { in at_send_command_full_nolock() [all …]
|
/device/google/contexthub/firmware/lib/libm/ |
D | wf_pow.c | 43 exc.err = 0; 52 if (exc.err != 0) 53 errno = exc.err; 64 exc.err = 0; 72 if (exc.err != 0) 73 errno = exc.err; 80 exc.err = 0; 92 if (exc.err != 0) 93 errno = exc.err; 104 exc.err = 0; [all …]
|
D | wf_exp.c | 58 exc.err = 0; 69 if (exc.err != 0) 70 errno = exc.err; 76 exc.err = 0; 84 if (exc.err != 0) 85 errno = exc.err;
|
/device/generic/opengl-transport/host/commands/emugen/ |
D | EntryPoint.cpp | 208 int err = 0; in setAttribute() local 214 err = validateVarAttr(varname, lc); in setAttribute() 215 if (err < 0) return err; in setAttribute() 224 err = validateVarAttr(varname, lc); in setAttribute() 225 if (err < 0) return err; in setAttribute() 234 err = validateVarAttr(varname, lc); in setAttribute() 235 if (err < 0) return err; in setAttribute() 259 err = validateVarAttr(varname, lc); in setAttribute() 260 if (err < 0) return err; in setAttribute() 299 err = validateVarAttr(varname, lc); in setAttribute() [all …]
|
/device/google/wahoo/folio_daemon/ |
D | main.cpp | 42 int err; in main() local 60 err = TEMP_FAILURE_RETRY(ioctl(uinputFd, UI_SET_EVBIT, EV_SW)) in main() 63 if (err != 0) { in main() 75 err = TEMP_FAILURE_RETRY(write(uinputFd, &uidev, sizeof (uidev))); in main() 76 if (err < 0) { in main() 81 err = TEMP_FAILURE_RETRY(ioctl(uinputFd, UI_DEV_CREATE)); in main() 82 if (err < 0) { in main() 125 err = ASensorEventQueue_registerSensor(eventQueue, hallSensor, in main() 127 if (err < 0) { in main() 145 err = TEMP_FAILURE_RETRY(write(uinputFd, &event, sizeof (event))); in main() [all …]
|
/device/linaro/dragonboard/qcom/qrtr/ |
D | qrtr.py | 30 err = _qrtr.qrtr_lookup(self.sock, srv, instance, ifilter, 32 if err: 37 err = _qrtr.qrtr_publish(self.sock, service, version, instance) 38 if err: 43 err = _qrtr.qrtr_new_server(self.sock, service, version, instance) 44 if err: 51 err = _qrtr.qrtr_remove_server(self.sock, *service) 52 if err: 57 err = _qrtr.qrtr_new_lookup(self.sock, service, version, instance) 58 if err: [all …]
|
/device/google/contexthub/sensorhal/ |
D | directchannel.cpp | 89 status_t err = ::hw_get_module(GRALLOC_HARDWARE_MODULE_ID, &module); in GrallocHalWrapper() local 90 ALOGE_IF(err, "couldn't load %s module (%s)", GRALLOC_HARDWARE_MODULE_ID, strerror(-err)); in GrallocHalWrapper() 93 mError = (err < 0) ? err : NO_INIT; in GrallocHalWrapper() 98 err = ::gralloc_open(module, &mAllocDevice); in GrallocHalWrapper() 99 if (err != NO_ERROR) { in GrallocHalWrapper() 100 ALOGE("cannot open alloc device (%s)", strerror(-err)); in GrallocHalWrapper() 106 err = INVALID_OPERATION; in GrallocHalWrapper() 115 err = ::gralloc1_open(module, &mGralloc1Device); in GrallocHalWrapper() 116 if (err != NO_ERROR) { in GrallocHalWrapper() 117 ALOGE("cannot open gralloc1 device (%s)", strerror(-err)); in GrallocHalWrapper() [all …]
|
/device/google/cuttlefish/guest/hals/gralloc/legacy/ |
D | gralloc.cpp | 52 int err = 0; in gralloc_alloc_buffer() local 76 err = -errno; in gralloc_alloc_buffer() 79 if (err == 0) { in gralloc_alloc_buffer() 88 err = -EIO; in gralloc_alloc_buffer() 92 ALOGE_IF(err, "gralloc failed err=%s", strerror(-err)); in gralloc_alloc_buffer() 94 return err; in gralloc_alloc_buffer() 105 int err = gralloc_alloc_buffer(dev, format, w, h, pHandle, pStrideInPixels); in gralloc_alloc() local 107 if (err < 0) { in gralloc_alloc() 108 return err; in gralloc_alloc()
|
/device/generic/goldfish-opengl/system/egl/ |
D | goldfish_sync.h | 88 int err; in goldfish_sync_queue_work() local 94 err = ioctl(goldfish_sync_fd, sQueueWorkIoctlCmd, &info); in goldfish_sync_queue_work() 96 if (err < 0 && errno == ENOTTY) { in goldfish_sync_queue_work() 98 err = ioctl(goldfish_sync_fd, sQueueWorkIoctlCmd, &info); in goldfish_sync_queue_work() 99 if (err < 0) { in goldfish_sync_queue_work() 106 return err; in goldfish_sync_queue_work()
|
/device/google/cuttlefish/host/frontend/webrtc/ |
D | adb_handler.cpp | 39 void onDisconnect(int err) override; 64 void AdbHandler::AdbConnection::onDisconnect(int err) { in onDisconnect() argument 65 LOG(VERBOSE) << "AdbConnection::onDisconnect(err=" << err << ")"; in onDisconnect() 82 auto err = setupSocket(adb_host_and_port); in AdbHandler() local 83 CHECK(!err); in AdbHandler() 113 int err; in setupSocket() local 118 err = -errno; in setupSocket() 133 err = -errno; in setupSocket() 146 return err; in setupSocket()
|
/device/google/coral/json-c/ |
D | json_tokener.c | 98 return tok->err; in json_tokener_get_error() 156 tok->err = json_tokener_success; in json_tokener_reset() 176 *error = tok->err; in json_tokener_parse_verbose() 177 if(tok->err != json_tokener_success) { in json_tokener_parse_verbose() 213 (((tok)->err = json_tokener_success), 0) \ 215 (((tok)->err = json_tokener_continue), 0) \ 246 tok->err = json_tokener_success; in json_tokener_parse_ex() 254 tok->err = json_tokener_error_size; in json_tokener_parse_ex() 306 tok->err = json_tokener_error_parse_unexpected; in json_tokener_parse_ex() 342 tok->err = json_tokener_error_parse_unexpected; in json_tokener_parse_ex() [all …]
|
/device/google/crosshatch/json-c/ |
D | json_tokener.c | 98 return tok->err; in json_tokener_get_error() 156 tok->err = json_tokener_success; in json_tokener_reset() 176 *error = tok->err; in json_tokener_parse_verbose() 177 if(tok->err != json_tokener_success) { in json_tokener_parse_verbose() 213 (((tok)->err = json_tokener_success), 0) \ 215 (((tok)->err = json_tokener_continue), 0) \ 246 tok->err = json_tokener_success; in json_tokener_parse_ex() 254 tok->err = json_tokener_error_size; in json_tokener_parse_ex() 306 tok->err = json_tokener_error_parse_unexpected; in json_tokener_parse_ex() 342 tok->err = json_tokener_error_parse_unexpected; in json_tokener_parse_ex() [all …]
|
/device/google/bonito/json-c/ |
D | json_tokener.c | 98 return tok->err; in json_tokener_get_error() 156 tok->err = json_tokener_success; in json_tokener_reset() 176 *error = tok->err; in json_tokener_parse_verbose() 177 if(tok->err != json_tokener_success) { in json_tokener_parse_verbose() 213 (((tok)->err = json_tokener_success), 0) \ 215 (((tok)->err = json_tokener_continue), 0) \ 246 tok->err = json_tokener_success; in json_tokener_parse_ex() 254 tok->err = json_tokener_error_size; in json_tokener_parse_ex() 306 tok->err = json_tokener_error_parse_unexpected; in json_tokener_parse_ex() 342 tok->err = json_tokener_error_parse_unexpected; in json_tokener_parse_ex() [all …]
|
/device/google/contexthub/firmware/os/inc/ |
D | spi_priv.h | 58 void spi_masterStartAsync_done(struct SpiDevice *dev, int err); 59 void spiMasterRxTxDone(struct SpiDevice *dev, int err); 60 void spiMasterStopAsyncDone(struct SpiDevice *dev, int err); 62 void spiSlaveStartAsyncDone(struct SpiDevice *dev, int err); 63 void spiSlaveRxTxDone(struct SpiDevice *dev, int err); 65 void spiSlaveStopAsyncDone(struct SpiDevice *dev, int err);
|
/device/generic/goldfish-opengl/shared/qemupipe/ |
D | qemu_pipe_host.cpp | 47 int err = HostGoldfishPipeDevice::get()->getErrno(); in qemu_pipe_try_again() local 48 return err == EINTR || err == EAGAIN; in qemu_pipe_try_again() 55 int err = HostGoldfishPipeDevice::get()->getErrno(); in qemu_pipe_print_error() local 56 ALOGE("pipe error: pipe %p err %d", pipe, err); in qemu_pipe_print_error()
|
/device/amlogic/yukawa/hal/gralloc/legacy/ |
D | alloc_device.cpp | 47 int err = -EINVAL; in alloc_device_alloc() local 51 return err; in alloc_device_alloc() 77 err = fb_alloc_framebuffer(m, usage, usage, pHandle, &pixel_stride, &byte_stride); in alloc_device_alloc() 79 if (err >= 0) in alloc_device_alloc() 121 err = -ENOMEM; in alloc_device_alloc() 126 err = 0; in alloc_device_alloc() 130 return err; in alloc_device_alloc()
|