Home
last modified time | relevance | path

Searched refs:nbuf (Results 1 – 25 of 48) sorted by relevance

12

/external/mesa3d/src/gallium/state_trackers/egl/common/
Degl_g3d_image.c139 struct native_buffer nbuf; in egl_g3d_reference_drm_buffer() local
165 memset(&nbuf, 0, sizeof(nbuf)); in egl_g3d_reference_drm_buffer()
166 nbuf.type = NATIVE_BUFFER_DRM; in egl_g3d_reference_drm_buffer()
167 nbuf.u.drm.templ.target = PIPE_TEXTURE_2D; in egl_g3d_reference_drm_buffer()
168 nbuf.u.drm.templ.format = format; in egl_g3d_reference_drm_buffer()
169 nbuf.u.drm.templ.bind = PIPE_BIND_RENDER_TARGET | PIPE_BIND_SAMPLER_VIEW; in egl_g3d_reference_drm_buffer()
170 nbuf.u.drm.templ.width0 = attrs.Width; in egl_g3d_reference_drm_buffer()
171 nbuf.u.drm.templ.height0 = attrs.Height; in egl_g3d_reference_drm_buffer()
172 nbuf.u.drm.templ.depth0 = 1; in egl_g3d_reference_drm_buffer()
173 nbuf.u.drm.templ.array_size = 1; in egl_g3d_reference_drm_buffer()
[all …]
Dnative_helper.c419 struct native_buffer *nbuf) in drm_display_import_native_buffer() argument
424 switch (nbuf->type) { in drm_display_import_native_buffer()
430 wsh.handle = nbuf->u.drm.name; in drm_display_import_native_buffer()
431 wsh.stride = nbuf->u.drm.stride; in drm_display_import_native_buffer()
433 res = screen->resource_from_handle(screen, &nbuf->u.drm.templ, &wsh); in drm_display_import_native_buffer()
446 struct native_buffer *nbuf) in drm_display_export_native_buffer() argument
451 switch (nbuf->type) { in drm_display_export_native_buffer()
456 if ((nbuf->u.drm.templ.bind & res->bind) != nbuf->u.drm.templ.bind) in drm_display_export_native_buffer()
464 nbuf->u.drm.handle = wsh.handle; in drm_display_export_native_buffer()
465 nbuf->u.drm.stride = wsh.stride; in drm_display_export_native_buffer()
[all …]
Dnative_helper.h116 struct native_buffer *nbuf);
121 struct native_buffer *nbuf);
Dnative_buffer.h73 struct native_buffer *nbuf);
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/egl/common/
Degl_g3d_image.c139 struct native_buffer nbuf; in egl_g3d_reference_drm_buffer() local
165 memset(&nbuf, 0, sizeof(nbuf)); in egl_g3d_reference_drm_buffer()
166 nbuf.type = NATIVE_BUFFER_DRM; in egl_g3d_reference_drm_buffer()
167 nbuf.u.drm.templ.target = PIPE_TEXTURE_2D; in egl_g3d_reference_drm_buffer()
168 nbuf.u.drm.templ.format = format; in egl_g3d_reference_drm_buffer()
169 nbuf.u.drm.templ.bind = PIPE_BIND_RENDER_TARGET | PIPE_BIND_SAMPLER_VIEW; in egl_g3d_reference_drm_buffer()
170 nbuf.u.drm.templ.width0 = attrs.Width; in egl_g3d_reference_drm_buffer()
171 nbuf.u.drm.templ.height0 = attrs.Height; in egl_g3d_reference_drm_buffer()
172 nbuf.u.drm.templ.depth0 = 1; in egl_g3d_reference_drm_buffer()
173 nbuf.u.drm.templ.array_size = 1; in egl_g3d_reference_drm_buffer()
[all …]
Dnative_helper.c419 struct native_buffer *nbuf) in drm_display_import_native_buffer() argument
424 switch (nbuf->type) { in drm_display_import_native_buffer()
430 wsh.handle = nbuf->u.drm.name; in drm_display_import_native_buffer()
431 wsh.stride = nbuf->u.drm.stride; in drm_display_import_native_buffer()
433 res = screen->resource_from_handle(screen, &nbuf->u.drm.templ, &wsh); in drm_display_import_native_buffer()
446 struct native_buffer *nbuf) in drm_display_export_native_buffer() argument
451 switch (nbuf->type) { in drm_display_export_native_buffer()
456 if ((nbuf->u.drm.templ.bind & res->bind) != nbuf->u.drm.templ.bind) in drm_display_export_native_buffer()
464 nbuf->u.drm.handle = wsh.handle; in drm_display_export_native_buffer()
465 nbuf->u.drm.stride = wsh.stride; in drm_display_export_native_buffer()
[all …]
Dnative_helper.h116 struct native_buffer *nbuf);
121 struct native_buffer *nbuf);
Dnative_buffer.h73 struct native_buffer *nbuf);
/external/wpa_supplicant_8/src/utils/
Dwpabuf.c70 unsigned char *nbuf; in wpabuf_resize() local
72 nbuf = os_realloc(buf->buf, buf->used + add_len); in wpabuf_resize()
73 if (nbuf == NULL) in wpabuf_resize()
75 os_memset(nbuf + buf->used, 0, add_len); in wpabuf_resize()
76 buf->buf = nbuf; in wpabuf_resize()
79 nbuf = os_realloc(trace, sizeof(struct wpabuf_trace) + in wpabuf_resize()
82 if (nbuf == NULL) in wpabuf_resize()
84 trace = (struct wpabuf_trace *) nbuf; in wpabuf_resize()
86 os_memset(nbuf + sizeof(struct wpabuf_trace) + in wpabuf_resize()
90 nbuf = os_realloc(buf, sizeof(struct wpabuf) + in wpabuf_resize()
[all …]
/external/oprofile/daemon/liblegacy/
Dinit.c47 static struct op_note * nbuf; variable
120 static void opd_shutdown(struct op_buffer_head * buf, size_t size, struct op_note * nbuf, size_t ns… in opd_shutdown() argument
134 ncount = op_read_device(notedevfd, nbuf, nsize); in opd_shutdown()
137 opd_do_notes(nbuf, ncount); in opd_shutdown()
165 static void opd_do_read(struct op_buffer_head * buf, size_t size, struct op_note * nbuf, size_t nsi… in opd_do_read() argument
176 ncount = op_read_device(notedevfd, nbuf, nsize); in opd_do_read()
178 opd_do_notes(nbuf, ncount); in opd_do_read()
199 opd_shutdown(buf, size, nbuf, nsize); in opd_do_read()
341 nbuf = xmalloc(n_buf_bytesize); in opd_24_init()
365 opd_do_read(sbuf, s_buf_bytesize, nbuf, n_buf_bytesize); in opd_24_start()
[all …]
/external/libunwind/src/arm/
DGex_tables.c292 int nbuf = 0; in arm_exidx_extract() local
312 nbuf = -UNW_ESTOPUNWIND; in arm_exidx_extract()
318 buf[nbuf++] = data >> 16; in arm_exidx_extract()
319 buf[nbuf++] = data >> 8; in arm_exidx_extract()
320 buf[nbuf++] = data; in arm_exidx_extract()
343 buf[nbuf++] = data >> 16; in arm_exidx_extract()
344 buf[nbuf++] = data >> 8; in arm_exidx_extract()
345 buf[nbuf++] = data; in arm_exidx_extract()
358 buf[nbuf++] = data >> 16; in arm_exidx_extract()
359 buf[nbuf++] = data >> 8; in arm_exidx_extract()
[all …]
/external/libedit/src/
Dfgetln.c67 char *nbuf = realloc(buf, nbufsiz); in fgetln() local
69 if (nbuf == NULL) { in fgetln()
76 buf = nbuf; in fgetln()
/external/valgrind/main/coregrind/m_aspacemgr/
Daspacemgr-common.c326 Bool ML_(am_resolve_filename) ( Int fd, /*OUT*/HChar* buf, Int nbuf ) in ML_()
331 for (i = 0; i < nbuf; i++) buf[i] = 0; in ML_()
333 if (ML_(am_readlink)(tmp, buf, nbuf) > 0 && buf[0] == '/') in ML_()
341 if (nbuf > 0) { in ML_()
342 VG_(strncpy)( buf, tmp, nbuf < sizeof(tmp) ? nbuf : sizeof(tmp) ); in ML_()
343 buf[nbuf-1] = 0; in ML_()
Dpriv_aspacemgr.h122 Bool ML_(am_resolve_filename) ( Int fd, /*OUT*/HChar* buf, Int nbuf );
/external/ltrace/
Dglob.c88 char *nbuf = realloc(*bufp, nalloc); in append() local
89 if (nbuf == NULL) in append()
92 *bufp = nbuf; in append()
/external/valgrind/main/coregrind/
Dpub_core_debuginfo.h89 Bool VG_(get_fnname_raw) ( Addr a, HChar* buf, Int nbuf );
94 Bool VG_(get_fnname_no_cxx_demangle) ( Addr a, HChar* buf, Int nbuf );
/external/wpa_supplicant_8/src/crypto/
Dtls_nss.c108 u8 *nbuf; in nss_io_send() local
113 nbuf = os_realloc(conn->push_buf, conn->push_buf_len + amount); in nss_io_send()
114 if (nbuf == NULL) { in nss_io_send()
119 os_memcpy(nbuf + conn->push_buf_len, buf, amount); in nss_io_send()
120 conn->push_buf = nbuf; in nss_io_send()
/external/iproute2/lib/
Dll_map.c114 static char nbuf[IFNAMSIZ]; in ll_index_to_name() local
116 return ll_idx_n2a(idx, nbuf); in ll_index_to_name()
/external/valgrind/main/auxprogs/
Dvalgrind-listener.c128 static void copyout ( char* buf, int nbuf ) in copyout() argument
131 for (i = 0; i < nbuf; i++) { in copyout()
/external/dhcpcd/
Dif-linux.c152 char *buf = NULL, *nbuf; in get_netlink() local
178 nbuf = realloc(buf, buflen); in get_netlink()
179 if (nbuf == NULL) in get_netlink()
181 buf = nbuf; in get_netlink()
/external/valgrind/main/coregrind/m_debuginfo/
Ddebuginfo.c1425 Addr a, HChar* buf, Int nbuf, in get_sym_name() argument
1439 di->symtab[sno].pri_name, buf, nbuf ); in get_sym_name()
1449 VG_(strncpy_safely)(buf, "(below main)", nbuf); in get_sym_name()
1457 HChar* end = buf + nbuf; in get_sym_name()
1471 buf[nbuf-1] = 0; /* paranoia */ in get_sym_name()
1495 Bool VG_(get_fnname) ( Addr a, HChar* buf, Int nbuf ) in VG_()
1499 a, buf, nbuf, in VG_()
1508 Bool VG_(get_fnname_w_offset) ( Addr a, HChar* buf, Int nbuf ) in VG_()
1512 a, buf, nbuf, in VG_()
1522 Bool VG_(get_fnname_if_entry) ( Addr a, HChar* buf, Int nbuf ) in VG_()
[all …]
/external/mksh/src/
Dshf.c341 unsigned char *nbuf; in shf_emptybuf() local
352 nbuf = aresize2(shf->buf, 2, shf->wbsize, shf->areap); in shf_emptybuf()
353 shf->rp = nbuf + (shf->rp - shf->buf); in shf_emptybuf()
354 shf->wp = nbuf + (shf->wp - shf->buf); in shf_emptybuf()
358 shf->buf = nbuf; in shf_emptybuf()
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/egl/android/
Dnative_android.cpp725 struct native_buffer *nbuf) in android_display_import_buffer() argument
732 if (nbuf->type != NATIVE_BUFFER_ANDROID) in android_display_import_buffer()
735 abuf = nbuf->u.android; in android_display_import_buffer()
763 struct native_buffer *nbuf) in android_display_export_buffer() argument
/external/mesa3d/src/gallium/state_trackers/egl/android/
Dnative_android.cpp725 struct native_buffer *nbuf) in android_display_import_buffer() argument
732 if (nbuf->type != NATIVE_BUFFER_ANDROID) in android_display_import_buffer()
735 abuf = nbuf->u.android; in android_display_import_buffer()
763 struct native_buffer *nbuf) in android_display_export_buffer() argument
/external/wpa_supplicant_8/src/eap_server/
Deap_server_ttls.c991 char *nbuf; in eap_ttls_process_phase2() local
992 nbuf = os_malloc(parse.user_name_len * 4 + 1); in eap_ttls_process_phase2()
993 if (nbuf) { in eap_ttls_process_phase2()
994 printf_encode(nbuf, parse.user_name_len * 4 + 1, in eap_ttls_process_phase2()
997 eap_log_msg(sm, "TTLS-User-Name '%s'", nbuf); in eap_ttls_process_phase2()
998 os_free(nbuf); in eap_ttls_process_phase2()

12