Home
last modified time | relevance | path

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

12345

/hardware/msm7k/libgralloc-qsd8k/
Dpmemalloc.cpp86 int err = 0; in init_pmem_area_locked() local
90 err = deps.getPmemTotalSize(fd, &size); in init_pmem_area_locked()
91 if (err < 0) { in init_pmem_area_locked()
93 err); in init_pmem_area_locked()
103 err = -deps.getErrno(); in init_pmem_area_locked()
114 err = -deps.getErrno(); in init_pmem_area_locked()
117 return err; in init_pmem_area_locked()
125 int err = master_fd; in init_pmem_area() local
126 if (err == MASTER_FD_INIT) { in init_pmem_area()
128 err = init_pmem_area_locked(); in init_pmem_area()
[all …]
Dgpu.cpp58 int err = deps.mapFrameBufferLocked(m); in gralloc_alloc_framebuffer_locked() local
59 if (err < 0) { in gralloc_alloc_framebuffer_locked()
60 return err; in gralloc_alloc_framebuffer_locked()
108 int err = gralloc_alloc_framebuffer_locked(size, usage, pHandle); in gralloc_alloc_framebuffer() local
110 return err; in gralloc_alloc_framebuffer()
116 int err = 0; in gralloc_alloc_buffer() local
165 err = pma->alloc_pmem_buffer(size, usage, &base, &offset, &fd); in gralloc_alloc_buffer()
166 if (err < 0) { in gralloc_alloc_buffer()
171 err = 0; in gralloc_alloc_buffer()
182 err = -errno; in gralloc_alloc_buffer()
[all …]
/hardware/qcom/audio/legacy/libalsa-intf/
Dalsaucm_test.c163 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/libgralloc/
Dionalloc.cpp68 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 …]
Dmapper.cpp67 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 …]
Dgpu.cpp59 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/msm7k/libgralloc/
Dgralloc.cpp138 int err = mapFrameBufferLocked(m); in gralloc_alloc_framebuffer_locked() local
139 if (err < 0) { in gralloc_alloc_framebuffer_locked()
140 return err; in gralloc_alloc_framebuffer_locked()
188 int err = gralloc_alloc_framebuffer_locked(dev, size, usage, pHandle); in gralloc_alloc_framebuffer() local
190 return err; in gralloc_alloc_framebuffer()
196 int err = 0; in init_pmem_area_locked() local
213 err = -errno; in init_pmem_area_locked()
221 err = -errno; in init_pmem_area_locked()
223 return err; in init_pmem_area_locked()
229 int err = m->pmem_master; in init_pmem_area() local
[all …]
/hardware/ril/reference-ril/
Dreference-ril.c263 int err; in callFromCLCCLine() local
267 err = at_tok_start(&line); in callFromCLCCLine()
268 if (err < 0) goto error; in callFromCLCCLine()
270 err = at_tok_nextint(&line, &(p_call->index)); in callFromCLCCLine()
271 if (err < 0) goto error; in callFromCLCCLine()
273 err = at_tok_nextbool(&line, &(p_call->isMT)); in callFromCLCCLine()
274 if (err < 0) goto error; in callFromCLCCLine()
276 err = at_tok_nextint(&line, &state); in callFromCLCCLine()
277 if (err < 0) goto error; in callFromCLCCLine()
279 err = clccStateToRILState(state, &(p_call->state)); in callFromCLCCLine()
[all …]
Datchannel.c115 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/
Dnusensors.cpp62 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/
Ddhdu_nl80211.c38 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 …]
Dminiopt.c61 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()
Ducode_download.c36 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 …]
Ddhdu_linux.c445 int err = 0; in main() local
476 return err; in main()
481 return err; in main()
519 return err; in main()
535 err = process_args(&ifr, argv); in main()
536 return err; in main()
541 err = process_args(&ifr, argv); in main()
542 if ((err == BCME_SERIAL_PORT_ERR) && (remote_type == REMOTE_DONGLE)) { in main()
544 err = process_args((struct ifreq*)&ifr, argv); in main()
546 return err; in main()
[all …]
/hardware/qcom/audio/legacy/alsa_sound/
DAudioUsbALSA.cpp97 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 …]
Dalsa_default.cpp234 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 …]
DALSAMixer.cpp100 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/
Dcalibrator.c59 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/
Dgralloc.cpp138 int bpp = 0, vstride, fd, err; in gralloc_alloc_rgb() local
181 err = ion_alloc_fd(ionfd, size, alignment, heap_mask, ion_flags, in gralloc_alloc_rgb()
186 return err; in gralloc_alloc_rgb()
194 int err, fd; in gralloc_alloc_framework_yuv() local
211 err = ion_alloc_fd(ionfd, size, 0, heap_mask, ion_flags, &fd); in gralloc_alloc_framework_yuv()
212 if (err) in gralloc_alloc_framework_yuv()
213 return err; in gralloc_alloc_framework_yuv()
216 return err; in gralloc_alloc_framework_yuv()
224 int err, planes, fd, fd1, fd2 = 0; in gralloc_alloc_yuv() local
281 err = ion_alloc_fd(ionfd, luma_size, 0, heap_mask, ion_flags, &fd); in gralloc_alloc_yuv()
[all …]
/hardware/libhardware/modules/gralloc/
Dgralloc.cpp114 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/
DOMX_TI_Debug.h145 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/
DANativeWindowDisplayAdapter.cpp526 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/
DTIOMXPlugin.cpp109 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()
/hardware/msm7k/libstagefrighthw/
DQComOMXPlugin.cpp109 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()
/hardware/invensense/libsensors_iio/
DMPLSupport.cpp99 int err = 0; in enable_sysfs_sensor() local
105 err = errno; in enable_sysfs_sensor()
107 c, nb, strerror(err), err); in enable_sysfs_sensor()
112 return err; in enable_sysfs_sensor()
127 int err = errno; in write_attribute_sensor() local
128 LOGE("HAL:write fd %d returned '%s' (%d)", fd, strerror(err), err); in write_attribute_sensor()

12345