Home
last modified time | relevance | path

Searched refs:CALLOC (Results 1 – 25 of 79) sorted by relevance

1234

/external/mesa3d/src/gallium/auxiliary/util/
Du_memory.h50 #define CALLOC(_count, _size) os_calloc(_count, _size) macro
58 #define CALLOC_STRUCT(T) (struct T *) CALLOC(1, sizeof(struct T))
60 #define CALLOC_VARIANT_LENGTH_STRUCT(T,more_size) ((struct T *) CALLOC(1, sizeof(struct T) + more…
Du_surfaces.c50 us->u.array = CALLOC(pt->last_level + 1, sizeof(struct pipe_surface *)); in util_surfaces_do_get()
61 ps = (struct pipe_surface *)CALLOC(1, surface_struct_size); in util_surfaces_do_get()
/external/mesa3d/src/gallium/auxiliary/postprocess/
Dpp_init.c59 ppq = CALLOC(1, sizeof(struct pp_queue_t)); in pp_init()
60 tmp_q = CALLOC(curpos, sizeof(pp_func)); in pp_init()
61 ppq->shaders = CALLOC(curpos, sizeof(void *)); in pp_init()
62 ppq->verts = CALLOC(curpos, sizeof(unsigned int)); in pp_init()
81 CALLOC(pp_filters[i].shaders + 1, sizeof(void *)); in pp_init()
Dpp_program.c50 p = CALLOC(1, sizeof(struct program)); in pp_init_prog()
/external/mesa3d/src/gallium/winsys/i915/sw/
Di915_sw_buffer.c17 buf->ptr = CALLOC(size, 1); in i915_sw_buffer_create()
43 buf->ptr = CALLOC(*stride * height, 1); in i915_sw_buffer_create_tiled()
/external/valgrind/coregrind/m_replacemalloc/
Dvg_replace_malloc.c683 #define CALLOC(soname, fnname) \ macro
711 CALLOC(VG_Z_LIBC_SONAME, calloc);
712 CALLOC(SO_SYN_MALLOC, calloc);
715 CALLOC(VG_Z_LIBC_SONAME, calloc);
716 CALLOC(SO_SYN_MALLOC, calloc);
721 CALLOC(VG_Z_LIBC_SONAME, calloc);
722 CALLOC(VG_Z_LIBUMEM_SO_1, calloc);
723 CALLOC(SO_SYN_MALLOC, calloc);
/external/mesa3d/src/mesa/drivers/dri/radeon/
Dradeon_queryobj.h45 radeon->query.queryobj.cmd = (uint32_t*)CALLOC((SZ) * sizeof(uint32_t)); in radeon_init_query_stateobj()
Dradeon_screen.c215 image = CALLOC(sizeof *image); in radeon_create_image_from_name()
278 image = CALLOC(sizeof *image); in radeon_create_image_from_renderbuffer()
313 image = CALLOC(sizeof *image); in radeon_create_image()
491 screen = (radeonScreenPtr) CALLOC( sizeof(*screen) ); in radeonCreateScreen2()
/external/mesa3d/src/mesa/drivers/dri/r200/
Dradeon_queryobj.h45 radeon->query.queryobj.cmd = (uint32_t*)CALLOC((SZ) * sizeof(uint32_t)); in radeon_init_query_stateobj()
Dradeon_screen.c215 image = CALLOC(sizeof *image); in radeon_create_image_from_name()
278 image = CALLOC(sizeof *image); in radeon_create_image_from_renderbuffer()
313 image = CALLOC(sizeof *image); in radeon_create_image()
491 screen = (radeonScreenPtr) CALLOC( sizeof(*screen) ); in radeonCreateScreen2()
/external/mesa3d/src/gallium/state_trackers/vdpau/
Ddevice.c55 dev = CALLOC(1, sizeof(vlVdpDevice)); in vdp_imp_device_create_x11()
116 pqt = CALLOC(1, sizeof(vlVdpPresentationQueue)); in vlVdpPresentationQueueTargetCreateX11()
Dbitmap.c65 vlsurface = CALLOC(1, sizeof(vlVdpBitmapSurface)); in vlVdpBitmapSurfaceCreate()
/external/mesa3d/src/gallium/state_trackers/va/
Dva_context.c51 driver_context = CALLOC(1,sizeof(vlVaDriverContextPriv)); in __vaDriverInit_0_31()
Dva_surface.c68 vlVaSurfacePriv *va_surface = (vlVaSurfacePriv *)CALLOC(num_surfaces,sizeof(vlVaSurfacePriv)); in vlVaCreateSurfaces()
/external/mesa3d/src/gallium/state_trackers/egl/drm/
Dmodeset.c544 drmconn->drm_modes = CALLOC(count, sizeof(*drmconn->drm_modes)); in drm_display_get_modes()
588 CALLOC(drmdpy->resources->count_connectors, sizeof(*drmdpy->connectors)); in drm_display_get_connectors()
694 CALLOC(drmdpy->resources->count_crtcs, sizeof(*drmdpy->saved_crtcs)); in drm_display_init_modeset()
701 CALLOC(drmdpy->resources->count_crtcs, sizeof(*drmdpy->shown_surfaces)); in drm_display_init_modeset()
/external/ipsec-tools/src/libipsec/
Dpfkey.c54 #define CALLOC(size, cast) (cast)calloc(1, (size)) macro
426 if ((newmsg = CALLOC((size_t)len, struct sadb_msg *)) == NULL) { in pfkey_send_getspi()
600 if ((newmsg = CALLOC((size_t)len, struct sadb_msg *)) == NULL) { in pfkey_send_delete_all()
1115 if ((newmsg = CALLOC(len, struct sadb_msg *)) == NULL) { in pfkey_send_migrate()
1277 if ((newmsg = CALLOC((size_t)len, struct sadb_msg *)) == NULL) { in pfkey_send_x1()
1465 if ((newmsg = CALLOC((size_t)len, struct sadb_msg *)) == NULL) { in pfkey_send_x2()
1545 if ((newmsg = CALLOC((size_t)len, struct sadb_msg *)) == NULL) { in pfkey_send_x3()
1616 if ((newmsg = CALLOC((size_t)len, struct sadb_msg *)) == NULL) { in pfkey_send_x4()
1671 if ((newmsg = CALLOC((size_t)len, struct sadb_msg *)) == NULL) { in pfkey_send_x5()
1783 if ((newmsg = CALLOC((size_t)reallen, struct sadb_msg *)) == 0) { in pfkey_recv()
/external/mesa3d/src/mesa/drivers/dri/i965/
Dintel_screen.c252 image = CALLOC(sizeof *image); in intel_allocate_image()
337 image = CALLOC(sizeof *image); in intel_create_image_from_renderbuffer()
444 image = CALLOC(sizeof *image); in intel_dup_image()
1067 intelScreen = CALLOC(sizeof *intelScreen); in intelInitScreen2()
1149 intelBuffer = CALLOC(sizeof *intelBuffer); in intelAllocateBuffer()
/external/mesa3d/src/mesa/drivers/dri/intel/
Dintel_screen.c252 image = CALLOC(sizeof *image); in intel_allocate_image()
337 image = CALLOC(sizeof *image); in intel_create_image_from_renderbuffer()
444 image = CALLOC(sizeof *image); in intel_dup_image()
1067 intelScreen = CALLOC(sizeof *intelScreen); in intelInitScreen2()
1149 intelBuffer = CALLOC(sizeof *intelBuffer); in intelAllocateBuffer()
/external/mesa3d/src/mesa/drivers/dri/i915/
Dintel_screen.c252 image = CALLOC(sizeof *image); in intel_allocate_image()
337 image = CALLOC(sizeof *image); in intel_create_image_from_renderbuffer()
444 image = CALLOC(sizeof *image); in intel_dup_image()
1067 intelScreen = CALLOC(sizeof *intelScreen); in intelInitScreen2()
1149 intelBuffer = CALLOC(sizeof *intelBuffer); in intelAllocateBuffer()
/external/mesa3d/src/mesa/tnl/
Dt_vb_texmat.c92 stage->privatePtr = CALLOC(sizeof(*store)); in alloc_texmat_data()
/external/mesa3d/src/gallium/drivers/r600/
Dcompute_memory_pool.c80 CALLOC(sizeof(struct compute_memory_pool), 1); in compute_memory_pool_new()
396 CALLOC(sizeof(struct compute_memory_item), 1); in compute_memory_alloc()
/external/mesa3d/src/gallium/state_trackers/egl/x11/
Dx11_screen.c357 XRectangle *rectangles = CALLOC(num_rects, sizeof(XRectangle)); in x11_drawable_copy_buffers_region()
405 *next = (__GLcontextModes *) CALLOC(1, size); in x11_context_modes_create()
/external/drm_gralloc/
Dgralloc_drm_pipe.c128 buf = CALLOC(1, sizeof(*buf)); in get_pipe_buffer_locked()
458 pm = CALLOC(1, sizeof(*pm)); in gralloc_drm_drv_create_for_pipe()
/external/mesa3d/src/gallium/state_trackers/egl/null/
Dnative_null.c102 null->configs = CALLOC(Elements(color_formats) - 1, sizeof(*null->configs)); in null_display_init_config()
/external/mesa3d/src/gallium/auxiliary/pipebuffer/
Dpb_validate.c184 vl->entries = (struct pb_validate_entry *)CALLOC(vl->size, sizeof(struct pb_validate_entry)); in pb_validate_create()

1234