Home
last modified time | relevance | path

Searched refs:alloc_size (Results 1 – 21 of 21) sorted by relevance

/external/dbus/dbus/
Ddbus-mempool.c215 int alloc_size; in _dbus_mem_pool_alloc() local
224 alloc_size = sizeof (DBusMemBlock) - ELEMENT_PADDING + in _dbus_mem_pool_alloc()
228 block = dbus_malloc0 (alloc_size); in _dbus_mem_pool_alloc()
230 block = dbus_malloc (alloc_size); in _dbus_mem_pool_alloc()
273 int alloc_size; in _dbus_mem_pool_alloc() local
286 alloc_size = sizeof (DBusMemBlock) - ELEMENT_PADDING + pool->block_size; in _dbus_mem_pool_alloc()
300 block = dbus_malloc0 (alloc_size); in _dbus_mem_pool_alloc()
302 block = dbus_malloc (alloc_size); in _dbus_mem_pool_alloc()
/external/libusb-compat/libusb/
Dcore.c417 size_t alloc_size = sizeof(struct usb_endpoint_descriptor) * num_endpoints; in copy_interface_descriptor() local
420 dest->endpoint = malloc(alloc_size); in copy_interface_descriptor()
423 memset(dest->endpoint, 0, alloc_size); in copy_interface_descriptor()
451 size_t alloc_size = sizeof(struct usb_interface_descriptor) in copy_interface() local
455 dest->altsetting = malloc(alloc_size); in copy_interface()
458 memset(dest->altsetting, 0, alloc_size); in copy_interface()
477 size_t alloc_size = sizeof(struct usb_interface) * num_interfaces; in copy_config_descriptor() local
480 dest->interface = malloc(alloc_size); in copy_config_descriptor()
483 memset(dest->interface, 0, alloc_size); in copy_config_descriptor()
510 size_t alloc_size; in initialize_device() local
[all …]
/external/oprofile/libutil/
Dop_libiberty.c30 void * xmemdup (void const * input, size_t copy_size, size_t alloc_size) in xmemdup() argument
32 void * output = xcalloc(1, alloc_size); in xmemdup()
/external/chromium/chrome/common/
Dservice_process_util.cc234 uint32 alloc_size = sizeof(ServiceProcessSharedData); in CreateSharedData() local
236 true, alloc_size)) in CreateSharedData()
239 if (!shared_mem_service_data->Map(alloc_size)) in CreateSharedData()
242 memset(shared_mem_service_data->memory(), 0, alloc_size); in CreateSharedData()
/external/bluetooth/glib/glib/
Dgmem.c610 guint alloc_size; /* the size of an atom */ member
623 mem_chunk->alloc_size = atom_size; in g_mem_chunk_new()
640 return g_slice_alloc (mem_chunk->alloc_size); in g_mem_chunk_alloc()
648 return g_slice_alloc0 (mem_chunk->alloc_size); in g_mem_chunk_alloc0()
657 g_slice_free1 (mem_chunk->alloc_size, mem); in g_mem_chunk_free()
Dgfileutils.c608 gsize alloc_size; in get_contents_regfile() local
612 alloc_size = size + 1; in get_contents_regfile()
613 buf = g_try_malloc (alloc_size); in get_contents_regfile()
621 (gulong) alloc_size, in get_contents_regfile()
/external/libusb/libusb/os/
Dlinux_usbfs.c1348 size_t alloc_size; in submit_bulk_transfer() local
1368 alloc_size = num_urbs * sizeof(struct usbfs_urb); in submit_bulk_transfer()
1369 urbs = malloc(alloc_size); in submit_bulk_transfer()
1372 memset(urbs, 0, alloc_size); in submit_bulk_transfer()
1459 size_t alloc_size; in submit_iso_transfer() local
1490 alloc_size = num_urbs * sizeof(*urbs); in submit_iso_transfer()
1491 urbs = malloc(alloc_size); in submit_iso_transfer()
1494 memset(urbs, 0, alloc_size); in submit_iso_transfer()
1526 alloc_size = sizeof(*urb) in submit_iso_transfer()
1528 urb = malloc(alloc_size); in submit_iso_transfer()
[all …]
/external/libxml2/include/libxml/
Dxmlversion.h426 # define LIBXML_ATTR_ALLOC_SIZE(x) __attribute__((alloc_size(x)))
/external/compiler-rt/lib/asan/
Dasan_allocator.cc914 inline size_t FakeStack::ComputeSizeClass(size_t alloc_size) { in ComputeSizeClass() argument
915 size_t rounded_size = RoundUpToPowerOfTwo(alloc_size); in ComputeSizeClass()
917 CHECK(alloc_size <= (1UL << log)); in ComputeSizeClass()
918 if (!(alloc_size > (1UL << (log-1)))) { in ComputeSizeClass()
919 Printf("alloc_size %zu log %zu\n", alloc_size, log); in ComputeSizeClass()
921 CHECK(alloc_size > (1UL << (log-1))); in ComputeSizeClass()
Dasan_allocator.h129 size_t ComputeSizeClass(size_t alloc_size);
/external/kernel-headers/original/linux/
Drelay.h61 size_t alloc_size; /* total buffer size allocated */ member
/external/chromium/chrome/browser/visitedlink/
Dvisitedlink_master.cc670 uint32 alloc_size = num_entries * sizeof(Fingerprint) + sizeof(SharedHeader); in CreateURLTable() local
677 if (!shared_memory_->CreateAndMapAnonymous(alloc_size)) { in CreateURLTable()
684 memset(shared_memory_->memory(), 0, alloc_size); in CreateURLTable()
/external/libusb/libusb/
Dio.c1163 int alloc_size = sizeof(struct usbi_transfer) in libusb_alloc_transfer() local
1167 struct usbi_transfer *itransfer = malloc(alloc_size); in libusb_alloc_transfer()
1171 memset(itransfer, 0, alloc_size); in libusb_alloc_transfer()
/external/chromium/base/
Dprocess_util_mac.mm657 void* oom_killer_cfallocator_system_default(CFIndex alloc_size,
660 void* result = g_old_cfallocator_system_default(alloc_size, hint, info);
666 void* oom_killer_cfallocator_malloc(CFIndex alloc_size,
669 void* result = g_old_cfallocator_malloc(alloc_size, hint, info);
675 void* oom_killer_cfallocator_malloc_zone(CFIndex alloc_size,
678 void* result = g_old_cfallocator_malloc_zone(alloc_size, hint, info);
/external/compiler-rt/lib/asan/tests/
Dasan_test.cc290 for (size_t alloc_size = 1; alloc_size <= 8; alloc_size++) { in TEST() local
292 void *p = malloc(alloc_size); in TEST()
296 if (offset + access_size <= alloc_size) { in TEST()
299 int outside_bytes = offset > alloc_size ? (offset - alloc_size) : 0; in TEST()
/external/svox/pico/lib/
Dpicoos.c280 picoos_objsize_t raw_mem_size, picoos_objsize_t alloc_size, in picoos_raw_malloc() argument
287 if (alloc_size < 1) { in picoos_raw_malloc()
288 alloc_size = 1; in picoos_raw_malloc()
290 alloc_size = ((alloc_size + PICOOS_ALIGN_SIZE - 1) / PICOOS_ALIGN_SIZE) in picoos_raw_malloc()
293 rest = raw_mem_size - alloc_size; in picoos_raw_malloc()
298 *rest_mem = raw_mem + alloc_size; in picoos_raw_malloc()
Dpicoos.h146 picoos_objsize_t raw_mem_size, picoos_objsize_t alloc_size,
/external/chromium/net/spdy/
Dspdy_framer.cc1643 size_t alloc_size = size + SpdyFrame::size(); in ExpandControlFrameBuffer() local
1644 DCHECK_LE(alloc_size, kControlFrameBufferMaxSize); in ExpandControlFrameBuffer()
1645 if (alloc_size <= current_frame_capacity_) in ExpandControlFrameBuffer()
1647 char* new_buffer = new char[alloc_size]; in ExpandControlFrameBuffer()
1650 current_frame_capacity_ = alloc_size; in ExpandControlFrameBuffer()
/external/webkit/Source/JavaScriptCore/wtf/
DFastMalloc.cpp962 const int alloc_size = class_to_pages[cl] << kPageShift; in InitSizeClasses() local
963 const int alloc_objs = alloc_size / class_to_size[cl]; in InitSizeClasses()
965 const int max_waste = alloc_size - min_used; in InitSizeClasses()
971 max_waste * 100.0 / alloc_size in InitSizeClasses()
/external/bluetooth/glib/
DChangeLog.pre-2-181615 * glib/gmacros.h: Add macros wrapping the gcc alloc_size
DNEWS752 * G_GNUC_ALLOC_SIZE: New macro that wraps the gcc alloc_size