Searched refs:mmap_buffer (Results 1 – 2 of 2) sorted by relevance
/external/tinyalsa/ |
D | pcm.c | 170 void *mmap_buffer; member 318 memcpy((char*)pcm->mmap_buffer + pcm_offset_bytes, in pcm_areas_copy() 589 munmap(pcm->mmap_buffer, pcm_frames_to_bytes(pcm, pcm->buffer_size)); in pcm_close() 676 pcm->mmap_buffer = mmap(NULL, pcm_frames_to_bytes(pcm, pcm->buffer_size), in pcm_open() 678 if (pcm->mmap_buffer == MAP_FAILED) { in pcm_open() 743 munmap(pcm->mmap_buffer, pcm_frames_to_bytes(pcm, pcm->buffer_size)); in pcm_open() 827 *areas = pcm->mmap_buffer; in pcm_mmap_begin()
|
/external/netperf/ |
D | netlib.c | 1392 char *mmap_buffer, *mmap_buffer_aligned; in allocate_exs_buffer_ring() local 1420 mmap_buffer = (char *) mmap ((caddr_t)NULL, mmap_size+NBPG-1, in allocate_exs_buffer_ring() 1423 if (mmap_buffer == NULL) { in allocate_exs_buffer_ring() 1427 mmap_buffer_aligned = (char *) ((uintptr_t)mmap_buffer & ~(NBPG-1)); in allocate_exs_buffer_ring() 1431 mmap_size, mmap_buffer, mmap_buffer_aligned); in allocate_exs_buffer_ring()
|