Home
last modified time | relevance | path

Searched refs:err (Results 1 – 25 of 134) sorted by relevance

123456

/device/google/cuttlefish/guest/hals/ril/reference-ril/
Dreference-ril.c475 int err; in callFromCLCCLine() local
479 err = at_tok_start(&line); in callFromCLCCLine()
480 if (err < 0) goto error; in callFromCLCCLine()
482 err = at_tok_nextint(&line, &(p_call->index)); in callFromCLCCLine()
483 if (err < 0) goto error; in callFromCLCCLine()
485 err = at_tok_nextbool(&line, &(p_call->isMT)); in callFromCLCCLine()
486 if (err < 0) goto error; in callFromCLCCLine()
488 err = at_tok_nextint(&line, &state); in callFromCLCCLine()
489 if (err < 0) goto error; in callFromCLCCLine()
491 err = clccStateToRILState(state, &(p_call->state)); in callFromCLCCLine()
[all …]
Datchannel.c108 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/amlogic/yukawa/hal/bootctrl/
Dbootloader_message.cpp38 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 …]
Dbootloader_message.h190 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/google/contexthub/firmware/os/core/
Dspi.c49 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 …]
DhostIntfSpi.c38 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/opengl-transport/host/commands/emugen/
DEntryPoint.cpp208 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/trout/hal/sensors/2.1/
Diio_utils.cpp149 int err = check_file(device_dir); in enable_sensor() local
150 if (!err) { in enable_sensor()
154 err = sysfs_write_uint(enable_file, enable); in enable_sensor()
157 return err; in enable_sensor()
245 int err; in get_sensor_scale() local
250 err = sysfs_opendir(device_dir, &dp); in get_sensor_scale()
251 if (err) return err; in get_sensor_scale()
257 err = sysfs_read_float(filename, scale); in get_sensor_scale()
260 return err; in get_sensor_scale()
267 int err; in load_iio_devices() local
[all …]
DSensorsSubHal.cpp104 int err; in SensorsSubHal() local
107 err = load_iio_devices(DEFAULT_IIO_DIR, &iio_devices, isSensorSupported); in SensorsSubHal()
108 if (err == 0) { in SensorsSubHal()
110 err = scan_elements(iio_device.sysfspath, &iio_device); in SensorsSubHal()
111 if (err == 0) { in SensorsSubHal()
112 err = enable_sensor(iio_device.sysfspath, false); in SensorsSubHal()
113 if (err == 0) { in SensorsSubHal()
127 iio_device.sysfspath.c_str(), false, err); in SensorsSubHal()
131 iio_device.sysfspath.c_str(), err); in SensorsSubHal()
135 ALOGE("SensorsSubHal: load_iio_devices returned error %d", err); in SensorsSubHal()
/device/amlogic/yukawa/hal/hdmicec/
Dhdmi_cec_test_hal.c34 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/generic/goldfish-opengl/system/codecs/c2/decoders/base/
DSimpleC2Component.cpp71 static void Reply(const sp<AMessage> &msg, int32_t *err = nullptr) { in Reply() argument
75 if (err) { in Reply()
76 reply->setInt32("err", *err); in Reply()
107 int32_t err = thiz->onInit(); in onMessageReceived() local
108 Reply(msg, &err); in onMessageReceived()
116 int32_t err = thiz->onStop(); in onMessageReceived() local
118 Reply(msg, &err); in onMessageReceived()
325 int32_t err; in start() local
326 CHECK(reply->findInt32("err", &err)); in start()
327 if (err != C2_OK) { in start()
[all …]
/device/google/contexthub/firmware/lib/libm/
Dwf_pow.c43 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 …]
Dwf_exp.c58 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/google/cuttlefish/tools/
Dcreate_base_image.go84 user, err := user.Current()
85 if err != nil {
86 panic(err)
153 b, err := exec.Command("/bin/sh", "-c", cmd).CombinedOutput()
157 if err != nil {
158 return "", err
167 out, err := shell(cmd)
168 if err != nil {
169 panic(err)
179 out, err := shell(cmd)
[all …]
/device/google/coral/json-c/
Djson_tokener.c98 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/redbull/json-c/
Djson_tokener.c98 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/sunfish/json-c/
Djson_tokener.c98 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/sensorhal/
Ddirectchannel.cpp89 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/linaro/dragonboard/shared/utils/qrtr/
Dqrtr.py30 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/linaro/poplar/wifi/wifi_hal/
Dcpp_bindings.cpp601 int err = create(); /* create the message */ in requestResponse() local
602 if (err < 0) { in requestResponse()
603 return err; in requestResponse()
610 int err = 0; in requestResponse() local
616 err = nl_send_auto_complete(mInfo->cmd_sock, request.getMessage()); /* send message */ in requestResponse()
617 if (err < 0) in requestResponse()
620 err = 1; in requestResponse()
623 nl_cb_err(cb, NL_CB_CUSTOM, error_handler, &err); in requestResponse()
624 nl_cb_set(cb, NL_CB_FINISH, NL_CB_CUSTOM, finish_handler, &err); in requestResponse()
625 nl_cb_set(cb, NL_CB_ACK, NL_CB_CUSTOM, ack_handler, &err); in requestResponse()
[all …]
/device/amlogic/yukawa/hal/gralloc/legacy/
Dalloc_device.cpp47 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()
/device/linaro/hikey/gralloc960/legacy/
Dalloc_device.cpp47 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()
120 err = -ENOMEM; in alloc_device_alloc()
125 err = 0; in alloc_device_alloc()
129 return err; in alloc_device_alloc()
/device/generic/goldfish-opengl/system/codecs/c2/decoders/vpxdec/
DC2GoldfishVpxDec.cpp514 status_t err = initDecoder(); in onInit() local
515 return err == OK ? C2_OK : C2_CORRUPTED; in onInit()
527 c2_status_t err = onFlush_sm(); in onReset() local
528 if (err != C2_OK) { in onReset()
708 c2_status_t err = in finishWork() local
710 if (err == C2_OK) { in finishWork()
821 vpx_codec_err_t err = vpx_codec_decode( in process() local
823 if (err != 0) { in process()
832 status_t err = outputBuffer(pool, work); in process() local
833 if (err == NOT_ENOUGH_DATA) { in process()
[all …]
/device/google/contexthub/firmware/os/inc/
Dspi_priv.h58 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/amlogic/yukawa/hal/gralloc/
Dframebuffer_device.cpp385 int err = init_frame_buffer_locked(module); in init_frame_buffer() local
387 return err; in init_frame_buffer()
428 int err = 0; in fb_alloc_from_ion_module() local
435 err = mali_gralloc_ion_allocate(m, gralloc_buffer_descriptor, 1, pHandle, &shared); in fb_alloc_from_ion_module()
437 return err; in fb_alloc_from_ion_module()
447 int err = init_frame_buffer_locked(m); in fb_alloc_framebuffer_locked() local
449 if (err < 0) in fb_alloc_framebuffer_locked()
451 return err; in fb_alloc_framebuffer_locked()
528 …int err = fb_alloc_framebuffer_locked(m, consumer_usage, producer_usage, pHandle, stride, byte_str… in fb_alloc_framebuffer() local
530 return err; in fb_alloc_framebuffer()

123456