• Home
  • Raw
  • Download

Lines Matching refs:buffer_size

65 		return alloc->buffer + alloc->buffer_size - buffer->user_data;  in binder_alloc_buffer_size()
75 size_t buffer_size; in binder_insert_free_buffer() local
91 buffer_size = binder_alloc_buffer_size(alloc, buffer); in binder_insert_free_buffer()
93 if (new_buffer_size < buffer_size) in binder_insert_free_buffer()
357 if (num_buffers > 50 || total_alloc_size > alloc->buffer_size / 4) { in debug_low_async_space_locked()
379 size_t buffer_size; in binder_alloc_new_buf_locked() local
435 buffer_size = binder_alloc_buffer_size(alloc, buffer); in binder_alloc_new_buf_locked()
437 if (size < buffer_size) { in binder_alloc_new_buf_locked()
440 } else if (size > buffer_size) in binder_alloc_new_buf_locked()
458 buffer_size = binder_alloc_buffer_size(alloc, buffer); in binder_alloc_new_buf_locked()
460 total_alloc_size += buffer_size; in binder_alloc_new_buf_locked()
461 if (buffer_size > largest_alloc_size) in binder_alloc_new_buf_locked()
462 largest_alloc_size = buffer_size; in binder_alloc_new_buf_locked()
467 buffer_size = binder_alloc_buffer_size(alloc, buffer); in binder_alloc_new_buf_locked()
469 total_free_size += buffer_size; in binder_alloc_new_buf_locked()
470 if (buffer_size > largest_free_size) in binder_alloc_new_buf_locked()
471 largest_free_size = buffer_size; in binder_alloc_new_buf_locked()
485 buffer_size = binder_alloc_buffer_size(alloc, buffer); in binder_alloc_new_buf_locked()
490 alloc->pid, size, buffer, buffer_size); in binder_alloc_new_buf_locked()
493 (((uintptr_t)buffer->user_data + buffer_size) & PAGE_MASK); in binder_alloc_new_buf_locked()
494 WARN_ON(n && buffer_size != size); in binder_alloc_new_buf_locked()
504 if (buffer_size != size) { in binder_alloc_new_buf_locked()
537 if (alloc->free_async_space < alloc->buffer_size / 10) { in binder_alloc_new_buf_locked()
652 size_t size, buffer_size; in binder_free_buf_locked() local
654 buffer_size = binder_alloc_buffer_size(alloc, buffer); in binder_free_buf_locked()
662 alloc->pid, buffer, size, buffer_size); in binder_free_buf_locked()
665 BUG_ON(size > buffer_size); in binder_free_buf_locked()
668 BUG_ON(buffer->user_data > alloc->buffer + alloc->buffer_size); in binder_free_buf_locked()
671 alloc->free_async_space += buffer_size; in binder_free_buf_locked()
680 buffer->user_data + buffer_size) & PAGE_MASK)); in binder_free_buf_locked()
760 if (alloc->buffer_size) { in binder_alloc_mmap_handler()
765 alloc->buffer_size = min_t(unsigned long, vma->vm_end - vma->vm_start, in binder_alloc_mmap_handler()
771 alloc->pages = kcalloc(alloc->buffer_size / PAGE_SIZE, in binder_alloc_mmap_handler()
791 alloc->free_async_space = alloc->buffer_size / 2; in binder_alloc_mmap_handler()
804 alloc->buffer_size = 0; in binder_alloc_mmap_handler()
854 for (i = 0; i < alloc->buffer_size / PAGE_SIZE; i++) { in binder_alloc_deferred_release()
932 for (i = 0; i < alloc->buffer_size / PAGE_SIZE; i++) { in binder_alloc_print_pages()
1133 size_t buffer_size = binder_alloc_buffer_size(alloc, buffer); in check_buffer() local
1135 return buffer_size >= bytes && in check_buffer()
1136 offset <= buffer_size - bytes && in check_buffer()