Home
last modified time | relevance | path

Searched refs:private_size (Results 1 – 25 of 41) sorted by relevance

12

/third_party/glib/glib/
Dgerror.c523 gsize private_size; member
554 info->private_size = ALIGN_STRUCT (error_type_private_size); in error_domain_register()
670 gsize private_size; in g_error_allocate() local
678 private_size = info->private_size; in g_error_allocate()
686 private_size = 0; in g_error_allocate()
692 if (private_size > 0 && RUNNING_ON_VALGRIND) in g_error_allocate()
694 private_size += ALIGN_STRUCT (1); in g_error_allocate()
695 allocated = g_slice_alloc0 (private_size + sizeof (GError) + sizeof (gpointer)); in g_error_allocate()
696 *(gpointer *) (allocated + private_size + sizeof (GError)) = allocated + ALIGN_STRUCT (1); in g_error_allocate()
697 …VALGRIND_MALLOCLIKE_BLOCK (allocated + private_size, sizeof (GError) + sizeof (gpointer), 0, TRUE); in g_error_allocate()
[all …]
Dgrcbox.c181 gsize private_size = G_ARC_BOX_SIZE; in g_rc_box_alloc_full() local
189 if (private_size % alignment != 0) in g_rc_box_alloc_full()
191 private_offset = private_size % alignment; in g_rc_box_alloc_full()
192 private_size += (alignment - private_offset); in g_rc_box_alloc_full()
195 g_assert (block_size < (G_MAXSIZE - private_size)); in g_rc_box_alloc_full()
196 real_size = private_size + block_size; in g_rc_box_alloc_full()
217 g_assert (private_size < (G_MAXSIZE - ALIGN_STRUCT (1))); in g_rc_box_alloc_full()
218 private_size += ALIGN_STRUCT (1); in g_rc_box_alloc_full()
225 *(gpointer *) (allocated + private_size + block_size) = allocated + ALIGN_STRUCT (1); in g_rc_box_alloc_full()
227 VALGRIND_MALLOCLIKE_BLOCK (allocated + private_size, block_size + sizeof (gpointer), 0, TRUE); in g_rc_box_alloc_full()
[all …]
/third_party/glib/gobject/
Dgtype.c347 guint16 private_size; member
1138 data->instance.private_size = 0; in type_data_make_W()
1848 gint private_size; in g_type_create_instance() local
1884 private_size = node->data->instance.private_size; in g_type_create_instance()
1888 if (private_size && RUNNING_ON_VALGRIND) in g_type_create_instance()
1890 private_size += ALIGN_STRUCT (1); in g_type_create_instance()
1893 allocated = g_slice_alloc0 (private_size + ivar_size + sizeof (gpointer)); in g_type_create_instance()
1895 *(gpointer *) (allocated + private_size + ivar_size) = allocated + ALIGN_STRUCT (1); in g_type_create_instance()
1898 VALGRIND_MALLOCLIKE_BLOCK (allocated + private_size, ivar_size + sizeof (gpointer), 0, TRUE); in g_type_create_instance()
1899 …VALGRIND_MALLOCLIKE_BLOCK (allocated + ALIGN_STRUCT (1), private_size - ALIGN_STRUCT (1), 0, TRUE); in g_type_create_instance()
[all …]
Dgclosure.c196 gint private_size; in g_closure_new_simple() local
201 private_size = sizeof (GRealClosure) - sizeof (GClosure); in g_closure_new_simple()
207 private_size += sizeof (gpointer); in g_closure_new_simple()
209 allocated = g_malloc0 (private_size + sizeof_closure + sizeof (gpointer)); in g_closure_new_simple()
211 *(gpointer *) (allocated + private_size + sizeof_closure) = allocated + sizeof (gpointer); in g_closure_new_simple()
213 … VALGRIND_MALLOCLIKE_BLOCK (allocated + private_size, sizeof_closure + sizeof (gpointer), 0, TRUE); in g_closure_new_simple()
214 …VALGRIND_MALLOCLIKE_BLOCK (allocated + sizeof (gpointer), private_size - sizeof (gpointer), 0, TRU… in g_closure_new_simple()
218 allocated = g_malloc0 (private_size + sizeof_closure); in g_closure_new_simple()
220 closure = (GClosure *) (allocated + private_size); in g_closure_new_simple()
/third_party/alsa-utils/axfer/
Dcontainer.c207 if (parser->private_size > 0) { in container_parser_init()
208 cntr->private_data = malloc(parser->private_size); in container_parser_init()
211 memset(cntr->private_data, 0, parser->private_size); in container_parser_init()
265 if (builder->private_size > 0) { in container_builder_init()
266 cntr->private_data = malloc(builder->private_size); in container_builder_init()
269 memset(cntr->private_data, 0, builder->private_size); in container_builder_init()
Dmapper.h33 unsigned int private_size; member
78 unsigned int private_size; member
Dwaiter.c64 waiter->private_data = malloc(entries[i].waiter->private_size); in waiter_context_init()
67 memset(waiter->private_data, 0, entries[i].waiter->private_size); in waiter_context_init()
Dcontainer.h95 unsigned int private_size; member
103 unsigned int private_size; member
Dmapper.c60 mapper->private_data = malloc(data->private_size); in mapper_context_init()
63 memset(mapper->private_data, 0, data->private_size); in mapper_context_init()
Dmapper-single.c181 .private_size = sizeof(struct single_state),
190 .private_size = sizeof(struct single_state),
Dcontainer-au.c192 .private_size = sizeof(struct parser_state),
202 .private_size = sizeof(struct builder_state),
Dwaiter.h54 unsigned int private_size; member
Dxfer.c69 xfer->private_data = malloc(entry->data->private_size); in xfer_context_init()
72 memset(xfer->private_data, 0, entry->data->private_size); in xfer_context_init()
Dmapper-multiple.c249 .private_size = sizeof(struct multiple_state),
258 .private_size = sizeof(struct multiple_state),
Dxfer-libasound-irq-mmap.c293 .private_size = sizeof(struct map_layout),
300 .private_size = sizeof(struct map_layout),
Dxfer-libasound.h78 unsigned int private_size; member
Dxfer-libasound.c712 if (state->ops->private_size > 0) { in xfer_libasound_pre_process()
713 state->private_data = malloc(state->ops->private_size); in xfer_libasound_pre_process()
716 memset(state->private_data, 0, state->ops->private_size); in xfer_libasound_pre_process()
933 .private_size = sizeof(struct libasound_state),
Dxfer.h108 unsigned int private_size; member
Dwaiter-select.c108 .private_size = sizeof(struct select_state),
Dwaiter-epoll.c106 .private_size = sizeof(struct epoll_state),
Dxfer-libasound-timer-mmap.c448 .private_size = sizeof(struct map_layout),
455 .private_size = sizeof(struct map_layout),
/third_party/alsa-utils/axfer/test/
Dgenerator.c26 unsigned int private_size) in generator_context_init() argument
32 gen->private_data = malloc(private_size); in generator_context_init()
35 memset(gen->private_data, 0, private_size); in generator_context_init()
Dgenerator.h43 unsigned int private_size);
/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dsi_compute.h36 unsigned private_size; member
/third_party/mesa3d/src/gallium/drivers/r600/
Devergreen_compute_internal.h84 unsigned private_size; member

12