/hardware/qcom/audio/legacy/libalsa-intf/ |
D | alsaucm_test.c | 163 int err, i; in process_cmd() local 206 err = snd_use_case_mgr_open(&uc_mgr, identifier); in process_cmd() 207 if (err < 0) { in process_cmd() 208 … fprintf(stderr, "%s: error failed to open sound card %s: %d\n", cmd->cmd_str, identifier, err); in process_cmd() 209 return err; in process_cmd() 215 err = snd_use_case_card_list(&list); in process_cmd() 216 if (err < 0) { in process_cmd() 217 fprintf(stderr, "%s: error failed to get card list: %d\n", cmd->cmd_str, err); in process_cmd() 218 return err; in process_cmd() 220 if (err == 0) { in process_cmd() [all …]
|
/hardware/qcom/display/msm8960/libgralloc/ |
D | ionalloc.cpp | 68 int err = 0; in alloc_buffer() local 83 err = open_device(); in alloc_buffer() 84 if (err) in alloc_buffer() 85 return err; in alloc_buffer() 87 err = -errno; in alloc_buffer() 89 return err; in alloc_buffer() 95 err = -errno; in alloc_buffer() 99 return err; in alloc_buffer() 106 err = -errno; in alloc_buffer() 110 return err; in alloc_buffer() [all …]
|
D | mapper.cpp | 67 int err = memalloc->map_buffer(&mappedAddress, size, in gralloc_map() local 69 if(err || mappedAddress == MAP_FAILED) { in gralloc_map() 79 err = memalloc->map_buffer(&mappedAddress, size, in gralloc_map() 81 if(err || mappedAddress == MAP_FAILED) { in gralloc_map() 97 int err = -EINVAL; in gralloc_unmap() local 102 err = memalloc->unmap_buffer(base, size, hnd->offset); in gralloc_unmap() 103 if (err) { in gralloc_unmap() 108 err = memalloc->unmap_buffer(base, size, hnd->offset_metadata); in gralloc_unmap() 109 if (err) { in gralloc_unmap() 145 int err = gralloc_map(module, handle); in gralloc_register_buffer() local [all …]
|
D | gpu.cpp | 59 int err = 0; in gralloc_alloc_buffer() local 79 err = mAllocCtrl->allocate(data, usage); in gralloc_alloc_buffer() 81 if (!err) { in gralloc_alloc_buffer() 156 ALOGE_IF(err, "gralloc failed err=%s", strerror(-err)); in gralloc_alloc_buffer() 158 return err; in gralloc_alloc_buffer() 240 int err = gralloc_alloc_framebuffer_locked(size, usage, pHandle); in gralloc_alloc_framebuffer() local 242 return err; in gralloc_alloc_framebuffer() 291 int err = 0; in alloc_impl() local 293 err = gralloc_alloc_framebuffer(size, usage, pHandle); in alloc_impl() 295 err = gralloc_alloc_buffer(size, usage, pHandle, bufferType, in alloc_impl() [all …]
|
/hardware/qcom/display/msm8x26/libgralloc/ |
D | ionalloc.cpp | 68 int err = 0; in alloc_buffer() local 83 err = open_device(); in alloc_buffer() 84 if (err) in alloc_buffer() 85 return err; in alloc_buffer() 87 err = -errno; in alloc_buffer() 89 return err; in alloc_buffer() 95 err = -errno; in alloc_buffer() 99 return err; in alloc_buffer() 106 err = -errno; in alloc_buffer() 110 return err; in alloc_buffer() [all …]
|
D | mapper.cpp | 67 int err = memalloc->map_buffer(&mappedAddress, size, in gralloc_map() local 69 if(err || mappedAddress == MAP_FAILED) { in gralloc_map() 79 err = memalloc->map_buffer(&mappedAddress, size, in gralloc_map() 81 if(err || mappedAddress == MAP_FAILED) { in gralloc_map() 97 int err = -EINVAL; in gralloc_unmap() local 102 err = memalloc->unmap_buffer(base, size, hnd->offset); in gralloc_unmap() 103 if (err) { in gralloc_unmap() 108 err = memalloc->unmap_buffer(base, size, hnd->offset_metadata); in gralloc_unmap() 109 if (err) { in gralloc_unmap() 145 int err = gralloc_map(module, handle); in gralloc_register_buffer() local [all …]
|
D | gpu.cpp | 59 int err = 0; in gralloc_alloc_buffer() local 79 err = mAllocCtrl->allocate(data, usage); in gralloc_alloc_buffer() 81 if (!err) { in gralloc_alloc_buffer() 156 ALOGE_IF(err, "gralloc failed err=%s", strerror(-err)); in gralloc_alloc_buffer() 158 return err; in gralloc_alloc_buffer() 240 int err = gralloc_alloc_framebuffer_locked(size, usage, pHandle); in gralloc_alloc_framebuffer() local 242 return err; in gralloc_alloc_framebuffer() 291 int err = 0; in alloc_impl() local 293 err = gralloc_alloc_framebuffer(size, usage, pHandle); in alloc_impl() 295 err = gralloc_alloc_buffer(size, usage, pHandle, bufferType, in alloc_impl() [all …]
|
/hardware/qcom/display/msm8974/libgralloc/ |
D | ionalloc.cpp | 68 int err = 0; in alloc_buffer() local 88 err = open_device(); in alloc_buffer() 89 if (err) in alloc_buffer() 90 return err; in alloc_buffer() 92 err = -errno; in alloc_buffer() 94 return err; in alloc_buffer() 100 err = -errno; in alloc_buffer() 104 return err; in alloc_buffer() 111 err = -errno; in alloc_buffer() 115 return err; in alloc_buffer() [all …]
|
D | mapper.cpp | 67 int err = memalloc->map_buffer(&mappedAddress, size, in gralloc_map() local 69 if(err || mappedAddress == MAP_FAILED) { in gralloc_map() 79 err = memalloc->map_buffer(&mappedAddress, size, in gralloc_map() 81 if(err || mappedAddress == MAP_FAILED) { in gralloc_map() 97 int err = -EINVAL; in gralloc_unmap() local 102 err = memalloc->unmap_buffer(base, size, hnd->offset); in gralloc_unmap() 103 if (err) { in gralloc_unmap() 108 err = memalloc->unmap_buffer(base, size, hnd->offset_metadata); in gralloc_unmap() 109 if (err) { in gralloc_unmap() 145 int err = gralloc_map(module, handle); in gralloc_register_buffer() local [all …]
|
D | gpu.cpp | 58 int err = 0; in gralloc_alloc_buffer() local 80 err = mAllocCtrl->allocate(data, usage); in gralloc_alloc_buffer() 82 if (!err) { in gralloc_alloc_buffer() 162 ALOGE_IF(err, "gralloc failed err=%s", strerror(-err)); in gralloc_alloc_buffer() 164 return err; in gralloc_alloc_buffer() 246 int err = gralloc_alloc_framebuffer_locked(size, usage, pHandle); in gralloc_alloc_framebuffer() local 248 return err; in gralloc_alloc_framebuffer() 306 int err = 0; in alloc_impl() local 308 err = gralloc_alloc_framebuffer(size, usage, pHandle); in alloc_impl() 310 err = gralloc_alloc_buffer(size, usage, pHandle, bufferType, in alloc_impl() [all …]
|
/hardware/ril/reference-ril/ |
D | reference-ril.c | 271 int err; in callFromCLCCLine() local 275 err = at_tok_start(&line); in callFromCLCCLine() 276 if (err < 0) goto error; in callFromCLCCLine() 278 err = at_tok_nextint(&line, &(p_call->index)); in callFromCLCCLine() 279 if (err < 0) goto error; in callFromCLCCLine() 281 err = at_tok_nextbool(&line, &(p_call->isMT)); in callFromCLCCLine() 282 if (err < 0) goto error; in callFromCLCCLine() 284 err = at_tok_nextint(&line, &state); in callFromCLCCLine() 285 if (err < 0) goto error; in callFromCLCCLine() 287 err = clccStateToRILState(state, &(p_call->state)); in callFromCLCCLine() [all …]
|
D | atchannel.c | 115 int err; in sleepMsec() local 121 err = nanosleep (&ts, &ts); in sleepMsec() 122 } while (err < 0 && errno == EINTR); in sleepMsec() 725 int err = 0; in at_send_command_full_nolock() local 731 err = AT_ERROR_COMMAND_PENDING; in at_send_command_full_nolock() 735 err = writeline (command); in at_send_command_full_nolock() 737 if (err < 0) { in at_send_command_full_nolock() 755 err = pthread_cond_timeout_np(&s_commandcond, &s_commandmutex, timeoutMsec); in at_send_command_full_nolock() 757 err = pthread_cond_timedwait(&s_commandcond, &s_commandmutex, &ts); in at_send_command_full_nolock() 760 err = pthread_cond_wait(&s_commandcond, &s_commandmutex); in at_send_command_full_nolock() [all …]
|
/hardware/libhardware/tests/nusensors/ |
D | nusensors.cpp | 62 int err; in main() local 66 err = hw_get_module(SENSORS_HARDWARE_MODULE_ID, (hw_module_t const**)&module); in main() 67 if (err != 0) { in main() 68 printf("hw_get_module() failed (%s)\n", strerror(-err)); in main() 72 err = sensors_open(&module->common, &device); in main() 73 if (err != 0) { in main() 74 printf("sensors_open() failed (%s)\n", strerror(-err)); in main() 104 err = device->activate(device, list[i].handle, 0); in main() 105 if (err != 0) { in main() 107 list[i].name, strerror(-err)); in main() [all …]
|
/hardware/broadcom/wlan/bcmdhd/dhdutil/ |
D | dhdu_nl80211.c | 38 static int dhd_nl_error_handler(struct sockaddr_nl *nla, struct nlmsgerr *err, void *arg) in dhd_nl_error_handler() argument 41 *ret = err->error; in dhd_nl_error_handler() 72 goto err; in dhd_nl_sock_connect() 78 goto err; in dhd_nl_sock_connect() 83 goto err; in dhd_nl_sock_connect() 88 err: in dhd_nl_sock_connect() 104 int err; in dhd_nl_do_testmode() local 116 err = nl_send_auto_complete(dhd_nli->nl, msg); in dhd_nl_do_testmode() 117 if (err < 0) in dhd_nl_do_testmode() 120 err = 1; in dhd_nl_do_testmode() [all …]
|
D | miniopt.c | 61 int err = 0; in miniopt() local 72 err = -1; in miniopt() 82 err = -1; in miniopt() 98 err = 1; in miniopt() 111 err = 1; in miniopt() 122 err = 1; in miniopt() 132 err = 1; in miniopt() 154 if (err == 1) in miniopt() 157 return err; in miniopt()
|
D | ucode_download.c | 36 int err = 0; in dload_generic_data() local 52 err = wlu_iovar_setbuf(wl, "generic_dload", dload_buf, len, buf, in dload_generic_data() 56 return err; in dload_generic_data() 66 int err = 0, ucode_offset, chunk_offset; in dload_ucode_part() local 71 err = wlu_iovar_getint(wl, "ucdload_chunk_len", in dload_ucode_part() 73 if (err) { in dload_ucode_part() 75 return err; in dload_ucode_part() 99 err = dload_generic_data(wl, DL_TYPE_UCODE, new_buf, size2alloc); in dload_ucode_part() 100 if (err) { in dload_ucode_part() 109 return err; in dload_ucode_part() [all …]
|
/hardware/qcom/audio/legacy/alsa_sound/ |
D | AudioUsbALSA.cpp | 97 int err = 1; in getCap() local 122 err = read(fd, read_buf, BUFFSIZE); in getCap() 236 int err; in exitPlaybackThread() local 238 err = closeDevice(mproxyPlaybackHandle); in exitPlaybackThread() 239 if (err) { in exitPlaybackThread() 242 err = closeDevice(musbPlaybackHandle); in exitPlaybackThread() 243 if (err) { in exitPlaybackThread() 259 int err; in exitRecordingThread() local 261 err = closeDevice(mproxyRecordingHandle); in exitRecordingThread() 262 if (err) { in exitRecordingThread() [all …]
|
D | alsa_default.cpp | 234 status_t err = NO_ERROR; in setHDMIChannelCount() local 259 return err; in setHDMIChannelCount() 399 int err = 0, index, mods_size; in switchDevice() local 480 err = csd_disable_device(); in switchDevice() 481 if (err < 0) in switchDevice() 483 ALOGE("csd_client_disable_device, failed, error %d", err); in switchDevice() 599 err = csd_enable_device(rx_dev_id, tx_dev_id, mDevSettingsFlag); in switchDevice() 600 if (err < 0) in switchDevice() 602 ALOGE("csd_client_disable_device failed, error %d", err); in switchDevice() 633 int err = NO_ERROR; in s_open() local [all …]
|
D | ALSAMixer.cpp | 100 int err; in initMixer() local 102 if ((err = snd_mixer_open(mixer, 0)) < 0) { in initMixer() 103 ALOGE("Unable to open mixer: %s", snd_strerror(err)); in initMixer() 104 return err; in initMixer() 107 if ((err = snd_mixer_attach(*mixer, name)) < 0) { in initMixer() 109 name, snd_strerror(err)); in initMixer() 111 if ((err = snd_mixer_attach(*mixer, "hw:00")) < 0) { in initMixer() 113 snd_strerror(err)); in initMixer() 117 return err; in initMixer() 121 if ((err = snd_mixer_selem_register(*mixer, NULL, NULL)) < 0) { in initMixer() [all …]
|
/hardware/ti/wlan/mac80211/ti-utils/ |
D | calibrator.c | 59 int err; in nl80211_init() local 69 err = -ENOLINK; in nl80211_init() 75 err = -ENOMEM; in nl80211_init() 82 err = -ENOENT; in nl80211_init() 92 return err; in nl80211_init() 253 static int error_handler(struct sockaddr_nl *nla, struct nlmsgerr *err, in error_handler() argument 257 *ret = err->error; in error_handler() 285 int err, o_argc; in __handle_cmd() local 426 err = 2; in __handle_cmd() 444 err = cmd->handler(state, cb, msg, argc, argv); in __handle_cmd() [all …]
|
/hardware/samsung_slsi/exynos5/gralloc/ |
D | gralloc.cpp | 138 int bpp = 0, vstride, fd, err; in gralloc_alloc_rgb() local 194 err = ion_alloc_fd(ionfd, size, alignment, heap_mask, ion_flags, in gralloc_alloc_rgb() 199 return err; in gralloc_alloc_rgb() 207 int err, fd; in gralloc_alloc_framework_yuv() local 224 err = ion_alloc_fd(ionfd, size, 0, heap_mask, ion_flags, &fd); in gralloc_alloc_framework_yuv() 225 if (err) in gralloc_alloc_framework_yuv() 226 return err; in gralloc_alloc_framework_yuv() 229 return err; in gralloc_alloc_framework_yuv() 237 int err, planes, fd, fd1, fd2 = 0; in gralloc_alloc_yuv() local 294 err = ion_alloc_fd(ionfd, luma_size, 0, heap_mask, ion_flags, &fd); in gralloc_alloc_yuv() [all …]
|
/hardware/libhardware/modules/gralloc/ |
D | gralloc.cpp | 114 int err = mapFrameBufferLocked(m); in gralloc_alloc_framebuffer_locked() local 115 if (err < 0) { in gralloc_alloc_framebuffer_locked() 116 return err; in gralloc_alloc_framebuffer_locked() 163 int err = gralloc_alloc_framebuffer_locked(dev, size, usage, pHandle); in gralloc_alloc_framebuffer() local 165 return err; in gralloc_alloc_framebuffer() 171 int err = 0; in gralloc_alloc_buffer() local 179 err = -errno; in gralloc_alloc_buffer() 182 if (err == 0) { in gralloc_alloc_buffer() 186 err = mapBuffer(module, hnd); in gralloc_alloc_buffer() 187 if (err == 0) { in gralloc_alloc_buffer() [all …]
|
/hardware/ti/omap3/omx/system/src/openmax_il/common/inc/ |
D | OMX_TI_Debug.h | 145 FILE *err; /* error output file - used for the error domain member 176 (dbg).err = stderr; \ 191 (dbg).err = stderr; \ 198 char line[80], *ptr, *end, out[75], err[75]; \ 199 out[0] = err[0] = '\0'; \ 209 strcpy(err, ptr); \ 226 if (!strcmp(err, "stderr")) {} \ 227 else if (!strcmp(err, "stdout")) (dbg).err = stdout; \ 228 else if (!strcmp(err, "null")) (dbg).err = NULL; \ 229 else if (!strcmp(err, out)) (dbg).err = (dbg).out; \ [all …]
|
/hardware/ti/omap4xxx/camera/ |
D | ANativeWindowDisplayAdapter.cpp | 526 status_t err; in allocateBuffer() local 541 err = mANativeWindow->set_usage(mANativeWindow, CAMHAL_GRALLOC_USAGE); in allocateBuffer() 542 if (err != 0) { in allocateBuffer() 543 ALOGE("native_window_set_usage failed: %s (%d)", strerror(-err), -err); in allocateBuffer() 545 if ( ENODEV == err ) { in allocateBuffer() 555 err = mANativeWindow->set_buffer_count(mANativeWindow, numBufs); in allocateBuffer() 556 if (err != 0) { in allocateBuffer() 557 ALOGE("native_window_set_buffer_count failed: %s (%d)", strerror(-err), -err); in allocateBuffer() 559 if ( ENODEV == err ) { in allocateBuffer() 571 err = mANativeWindow->set_buffers_geometry( in allocateBuffer() [all …]
|
/hardware/ti/omap3/libstagefrighthw/ |
D | TIOMXPlugin.cpp | 109 OMX_ERRORTYPE err = (*mGetRolesOfComponentHandle)( in getRolesOfComponent() local 112 if (err != OMX_ErrorNone) { in getRolesOfComponent() 113 return err; in getRolesOfComponent() 123 err = (*mGetRolesOfComponentHandle)( in getRolesOfComponent() 126 if (err == OMX_ErrorNone && numRoles != numRoles2) { in getRolesOfComponent() 127 err = OMX_ErrorUndefined; in getRolesOfComponent() 131 if (err == OMX_ErrorNone) { in getRolesOfComponent() 144 return err; in getRolesOfComponent()
|