Home
last modified time | relevance | path

Searched refs:mem_chunk (Results 1 – 5 of 5) sorted by relevance

/external/bluetooth/glib/tests/
Dmemchunks.c58 void old_mem_chunk_destroy (GMemChunk *mem_chunk);
59 gpointer old_mem_chunk_alloc (GMemChunk *mem_chunk);
60 gpointer old_mem_chunk_alloc0 (GMemChunk *mem_chunk);
61 void old_mem_chunk_free (GMemChunk *mem_chunk,
63 void old_mem_chunk_clean (GMemChunk *mem_chunk);
64 void old_mem_chunk_reset (GMemChunk *mem_chunk);
65 void old_mem_chunk_print (GMemChunk *mem_chunk);
145 GMemChunk *mem_chunk; in old_mem_chunk_new() local
156 mem_chunk = g_new (GMemChunk, 1); in old_mem_chunk_new()
157 mem_chunk->name = name; in old_mem_chunk_new()
[all …]
Dslice-test.c37 void old_mem_chunk_destroy (GMemChunk *mem_chunk);
38 gpointer old_mem_chunk_alloc (GMemChunk *mem_chunk);
39 gpointer old_mem_chunk_alloc0 (GMemChunk *mem_chunk);
40 void old_mem_chunk_free (GMemChunk *mem_chunk,
42 void old_mem_chunk_clean (GMemChunk *mem_chunk);
43 void old_mem_chunk_reset (GMemChunk *mem_chunk);
44 void old_mem_chunk_print (GMemChunk *mem_chunk);
Dtestglib.c1509 GMemChunk *mem_chunk = g_mem_chunk_new ("test mem chunk", 50, 100, G_ALLOC_AND_FREE); in test_mem_chunks() local
1515 mem[i] = g_chunk_new (gchar, mem_chunk); in test_mem_chunks()
1520 g_mem_chunk_free (mem_chunk, mem[i]); in test_mem_chunks()
/external/bluetooth/glib/glib/
Dgmem.c619 GMemChunk *mem_chunk; in g_mem_chunk_new() local
622 mem_chunk = g_slice_new (GMemChunk); in g_mem_chunk_new()
623 mem_chunk->alloc_size = atom_size; in g_mem_chunk_new()
624 return mem_chunk; in g_mem_chunk_new()
628 g_mem_chunk_destroy (GMemChunk *mem_chunk) in g_mem_chunk_destroy() argument
630 g_return_if_fail (mem_chunk != NULL); in g_mem_chunk_destroy()
632 g_slice_free (GMemChunk, mem_chunk); in g_mem_chunk_destroy()
636 g_mem_chunk_alloc (GMemChunk *mem_chunk) in g_mem_chunk_alloc() argument
638 g_return_val_if_fail (mem_chunk != NULL, NULL); in g_mem_chunk_alloc()
640 return g_slice_alloc (mem_chunk->alloc_size); in g_mem_chunk_alloc()
[all …]
Dgmem.h123 #define g_chunk_free(mem, mem_chunk) G_STMT_START { \ argument
124 g_mem_chunk_free ((mem_chunk), (mem)); \
132 void g_mem_chunk_destroy (GMemChunk *mem_chunk);
133 gpointer g_mem_chunk_alloc (GMemChunk *mem_chunk);
134 gpointer g_mem_chunk_alloc0 (GMemChunk *mem_chunk);
135 void g_mem_chunk_free (GMemChunk *mem_chunk,
137 void g_mem_chunk_clean (GMemChunk *mem_chunk);
138 void g_mem_chunk_reset (GMemChunk *mem_chunk);
139 void g_mem_chunk_print (GMemChunk *mem_chunk);