Home
last modified time | relevance | path

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

1234

/external/virglrenderer/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…
/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()
Du_handle_table.c70 ht->objects = (void **)CALLOC(HANDLE_TABLE_INITIAL_SIZE, sizeof(void *)); in handle_table_create()
/external/mesa3d/src/gallium/state_trackers/omx_bellagio/
Dvid_dec.c74 comp->name = CALLOC(1, OMX_MAX_STRINGNAME_SIZE); in vid_dec_LoaderComponent()
78 comp->name_specific = CALLOC(comp->name_specific_length, sizeof(char *)); in vid_dec_LoaderComponent()
82 comp->role_specific = CALLOC(comp->name_specific_length, sizeof(char *)); in vid_dec_LoaderComponent()
86 comp->name_specific[0] = CALLOC(1, OMX_MAX_STRINGNAME_SIZE); in vid_dec_LoaderComponent()
90 comp->name_specific[1] = CALLOC(1, OMX_MAX_STRINGNAME_SIZE); in vid_dec_LoaderComponent()
94 comp->name_specific[2] = CALLOC(1, OMX_MAX_STRINGNAME_SIZE); in vid_dec_LoaderComponent()
98 comp->role_specific[0] = CALLOC(1, OMX_MAX_STRINGNAME_SIZE); in vid_dec_LoaderComponent()
102 comp->role_specific[1] = CALLOC(1, OMX_MAX_STRINGNAME_SIZE); in vid_dec_LoaderComponent()
106 comp->role_specific[2] = CALLOC(1, OMX_MAX_STRINGNAME_SIZE); in vid_dec_LoaderComponent()
150 priv = comp->pComponentPrivate = CALLOC(1, sizeof(vid_dec_PrivateType)); in vid_dec_Constructor()
[all …]
Dvid_enc.c107 comp->name = CALLOC(1, OMX_MAX_STRINGNAME_SIZE); in vid_enc_LoaderComponent()
111 comp->name_specific = CALLOC(1, sizeof(char *)); in vid_enc_LoaderComponent()
115 comp->role_specific = CALLOC(1, sizeof(char *)); in vid_enc_LoaderComponent()
119 comp->name_specific[0] = CALLOC(1, OMX_MAX_STRINGNAME_SIZE); in vid_enc_LoaderComponent()
123 comp->role_specific[0] = CALLOC(1, OMX_MAX_STRINGNAME_SIZE); in vid_enc_LoaderComponent()
156 priv = comp->pComponentPrivate = CALLOC(1, sizeof(vid_enc_PrivateType)); in vid_enc_Constructor()
205 priv->ports = CALLOC(2, sizeof(omx_base_PortType *)); in vid_enc_Constructor()
210 priv->ports[i] = CALLOC(1, sizeof(omx_base_video_PortType)); in vid_enc_Constructor()
803 (*buf)->pOutputPortPrivate = CALLOC(1, sizeof(struct output_buf_private)); in vid_enc_AllocateOutBuffer()
/external/mesa3d/src/mesa/state_tracker/
Dst_cb_perfmon.c75 stm->active_counters = CALLOC(num_active_counters, in init_perf_monitor()
81 batch = CALLOC(max_batch_counters, sizeof(*batch)); in init_perf_monitor()
115 stm->batch_result = CALLOC(num_batch_counters, sizeof(stm->batch_result->batch[0])); in init_perf_monitor()
358 groups = CALLOC(num_groups, sizeof(*groups)); in st_InitPerfMonitorGroups()
362 stgroups = CALLOC(num_groups, sizeof(*stgroups)); in st_InitPerfMonitorGroups()
380 counters = CALLOC(group_info.num_queries, sizeof(*counters)); in st_InitPerfMonitorGroups()
385 stcounters = CALLOC(group_info.num_queries, sizeof(*stcounters)); in st_InitPerfMonitorGroups()
/external/mesa3d/src/gallium/auxiliary/postprocess/
Dpp_init.c59 ppq = CALLOC(1, sizeof(struct pp_queue_t)); in pp_init()
66 ppq->pp_queue = CALLOC(num_filters, sizeof(pp_func)); in pp_init()
72 ppq->shaders = CALLOC(num_filters, sizeof(void *)); in pp_init()
73 ppq->filters = CALLOC(num_filters, sizeof(unsigned int)); in pp_init()
97 CALLOC(pp_filters[i].shaders + 1, sizeof(void *)); in pp_init()
Dpp_program.c52 p = CALLOC(1, sizeof(struct pp_program)); in pp_init_prog()
/external/mesa3d/src/gallium/drivers/r600/
Dcompute_memory_pool.c53 CALLOC(sizeof(struct compute_memory_pool), 1); in compute_memory_pool_new()
61 CALLOC(sizeof(struct list_head), 1); in compute_memory_pool_new()
63 CALLOC(sizeof(struct list_head), 1); in compute_memory_pool_new()
632 CALLOC(sizeof(struct compute_memory_item), 1); in compute_memory_alloc()
/external/mesa3d/src/gallium/drivers/softpipe/
Dsp_compute.c190 local_mem = CALLOC(1, cs->shader.req_local_mem); in softpipe_launch_grid()
193 machines = CALLOC(sizeof(struct tgsi_exec_machine *), num_threads_in_group); in softpipe_launch_grid()
Dsp_tile_cache.c198 tc->transfer = CALLOC(tc->num_maps, sizeof(struct pipe_transfer *)); in sp_tile_cache_set_surface()
199 tc->transfer_map = CALLOC(tc->num_maps, sizeof(void *)); in sp_tile_cache_set_surface()
202 tc->clear_flags = CALLOC(1, tc->clear_flags_size); in sp_tile_cache_set_surface()
/external/mesa3d/src/gallium/state_trackers/vdpau/
Ddevice.c58 dev = CALLOC(1, sizeof(vlVdpDevice)); in vdp_imp_device_create_x11()
173 pqt = CALLOC(1, sizeof(vlVdpPresentationQueue)); in vlVdpPresentationQueueTargetCreateX11()
Dbitmap.c66 vlsurface = CALLOC(1, sizeof(vlVdpBitmapSurface)); in vlVdpBitmapSurfaceCreate()
/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/gallium/state_trackers/nine/
Dvertexdeclaration9.c195 This->decls = CALLOC(This->nelems+1, sizeof(D3DVERTEXELEMENT9)); in NineVertexDeclaration9_ctor()
196 This->elems = CALLOC(This->nelems, sizeof(struct pipe_vertex_element)); in NineVertexDeclaration9_ctor()
197 This->usage_map = CALLOC(This->nelems, sizeof(uint16_t)); in NineVertexDeclaration9_ctor()
Ddevice9.c225 This->swapchains = CALLOC(This->nswapchains, in NineDevice9_ctor()
382 This->state.vs_const_f = CALLOC(NINE_MAX_CONST_F_SWVP * sizeof(float[4]),1); in NineDevice9_ctor()
383 This->context.vs_const_f_swvp = CALLOC(NINE_MAX_CONST_F_SWVP * sizeof(float[4]),1); in NineDevice9_ctor()
386 This->state.vs_lconstf_temp = CALLOC(NINE_MAX_CONST_F_SWVP * sizeof(float[4]),1); in NineDevice9_ctor()
387 This->context.vs_lconstf_temp = CALLOC(NINE_MAX_CONST_F_SWVP * sizeof(float[4]),1); in NineDevice9_ctor()
388 This->state.vs_const_i = CALLOC(NINE_MAX_CONST_I_SWVP * sizeof(int[4]), 1); in NineDevice9_ctor()
389 This->context.vs_const_i = CALLOC(NINE_MAX_CONST_I_SWVP * sizeof(int[4]), 1); in NineDevice9_ctor()
390 This->state.vs_const_b = CALLOC(NINE_MAX_CONST_B_SWVP * sizeof(BOOL), 1); in NineDevice9_ctor()
391 This->context.vs_const_b = CALLOC(NINE_MAX_CONST_B_SWVP * sizeof(BOOL), 1); in NineDevice9_ctor()
393 This->state.vs_const_f = CALLOC(NINE_MAX_CONST_F * sizeof(float[4]), 1); in NineDevice9_ctor()
[all …]
/external/mesa3d/src/amd/common/
Dac_binary.c54 binary->global_symbol_offsets = CALLOC(symbol_count, sizeof(uint64_t)); in parse_symbol_table()
90 binary->relocs = CALLOC(binary->reloc_count, in parse_relocs()
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/InstCombine/
Dmemset-1.ll26 ; CHECK-NEXT: [[CALLOC:%.*]] = call i8* @calloc(i32 1, i32 [[SIZE:%.*]])
27 ; CHECK-NEXT: ret i8* [[CALLOC]]
/external/mesa3d/src/gallium/state_trackers/va/
Dcontext.c119 drv = CALLOC(1, sizeof(vlVaDriver)); in VA_DRIVER_INIT_FUNC()
232 context = CALLOC(1, sizeof(vlVaContext)); in vlVaCreateContext()
Dimage.c116 img = CALLOC(1, sizeof(VAImage)); in vlVaCreateImage()
222 img = CALLOC(1, sizeof(VAImage)); in vlVaDeriveImage()
267 img_buf = CALLOC(1, sizeof(vlVaBuffer)); in vlVaDeriveImage()
/external/mesa3d/src/gallium/drivers/svga/
Dsvga_resource_texture.c957 tex->defined = CALLOC(template->depth0 * template->array_size, in svga_texture_create()
964 tex->rendered_to = CALLOC(template->depth0 * template->array_size, in svga_texture_create()
970 tex->dirty = CALLOC(template->depth0 * template->array_size, in svga_texture_create()
1220 tex->defined = CALLOC(template->depth0 * template->array_size, in svga_texture_from_handle()
1236 tex->rendered_to = CALLOC(1, sizeof(tex->rendered_to[0])); in svga_texture_from_handle()
1240 tex->dirty = CALLOC(1, sizeof(tex->dirty[0])); in svga_texture_from_handle()
/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()
Dpb_bufmgr_slab.c330 slab->buffers = CALLOC(numBuffers, sizeof(*slab->buffers)); in pb_slab_create()
566 mgr->buckets = CALLOC(mgr->numBuckets, sizeof(*mgr->buckets)); in pb_slab_range_manager_create()
Dpb_slab.c218 slabs->groups = CALLOC(num_groups, sizeof(*slabs->groups)); in pb_slabs_init()

1234