| H A D | binder_alloc.c | 61 VISIBLE_IF_KUNIT size_t binder_alloc_buffer_size(struct binder_alloc *alloc, in binder_alloc_buffer_size() argument 64 if (list_is_last(&buffer->entry, &alloc->buffers)) in binder_alloc_buffer_size() 65 return alloc->vm_start + alloc->buffer_size - buffer->user_data; in binder_alloc_buffer_size() 70 static void binder_insert_free_buffer(struct binder_alloc *alloc, in binder_insert_free_buffer() argument 73 struct rb_node **p = &alloc->free_buffers.rb_node; in binder_insert_free_buffer() 81 new_buffer_size = binder_alloc_buffer_size(alloc, new_buffer); in binder_insert_free_buffer() 85 alloc->pid, new_buffer_size, new_buffer); in binder_insert_free_buffer() 92 buffer_size = binder_alloc_buffer_size(alloc, buffer); in binder_insert_free_buffer() 100 rb_insert_color(&new_buffer->rb_node, &alloc in binder_insert_free_buffer() 104 binder_insert_allocated_buffer_locked(struct binder_alloc * alloc,struct binder_buffer * new_buffer) binder_insert_allocated_buffer_locked() argument 129 binder_alloc_prepare_to_free_locked(struct binder_alloc * alloc,unsigned long user_ptr) binder_alloc_prepare_to_free_locked() argument 169 binder_alloc_prepare_to_free(struct binder_alloc * alloc,unsigned long user_ptr) binder_alloc_prepare_to_free() argument 177 binder_set_installed_page(struct binder_alloc * alloc,unsigned long index,struct page * page) binder_set_installed_page() argument 186 binder_get_installed_page(struct binder_alloc * alloc,unsigned long index) binder_get_installed_page() argument 192 binder_lru_freelist_add(struct binder_alloc * alloc,unsigned long start,unsigned long end) binder_lru_freelist_add() argument 222 binder_alloc_set_mapped(struct binder_alloc * alloc,bool state) binder_alloc_set_mapped() argument 228 binder_alloc_is_mapped(struct binder_alloc * alloc) binder_alloc_is_mapped() argument 234 binder_page_lookup(struct binder_alloc * alloc,unsigned long addr) binder_page_lookup() argument 254 binder_page_insert(struct binder_alloc * alloc,unsigned long addr,struct page * page) binder_page_insert() argument 281 binder_page_alloc(struct binder_alloc * alloc,unsigned long index) binder_page_alloc() argument 312 binder_install_single_page(struct binder_alloc * alloc,unsigned long index,unsigned long addr) binder_install_single_page() argument 361 binder_install_buffer_pages(struct binder_alloc * alloc,struct binder_buffer * buffer,size_t size) binder_install_buffer_pages() argument 392 binder_lru_freelist_del(struct binder_alloc * alloc,unsigned long start,unsigned long end) binder_lru_freelist_del() argument 425 debug_no_space_locked(struct binder_alloc * alloc) debug_no_space_locked() argument 462 debug_low_async_space_locked(struct binder_alloc * alloc) debug_low_async_space_locked() argument 516 binder_alloc_new_buf_locked(struct binder_alloc * alloc,struct binder_buffer * new_buffer,size_t size,int is_async) binder_alloc_new_buf_locked() argument 647 binder_alloc_new_buf(struct binder_alloc * alloc,size_t data_size,size_t offsets_size,size_t extra_buffers_size,int is_async) binder_alloc_new_buf() argument 712 binder_delete_free_buffer(struct binder_alloc * alloc,struct binder_buffer * buffer) binder_delete_free_buffer() argument 739 binder_free_buf_locked(struct binder_alloc * alloc,struct binder_buffer * buffer) binder_free_buf_locked() argument 811 binder_alloc_get_page(struct binder_alloc * alloc,struct binder_buffer * buffer,binder_size_t buffer_offset,pgoff_t * pgoffp) binder_alloc_get_page() argument 833 binder_alloc_clear_buf(struct binder_alloc * alloc,struct binder_buffer * buffer) binder_alloc_clear_buf() argument 860 binder_alloc_free_buf(struct binder_alloc * alloc,struct binder_buffer * buffer) binder_alloc_free_buf() argument 894 binder_alloc_mmap_handler(struct binder_alloc * alloc,struct vm_area_struct * vma) binder_alloc_mmap_handler() argument 964 binder_alloc_deferred_release(struct binder_alloc * alloc) binder_alloc_deferred_release() argument 1042 binder_alloc_print_allocated(struct seq_file * m,struct binder_alloc * alloc) binder_alloc_print_allocated() argument 1065 binder_alloc_print_pages(struct seq_file * m,struct binder_alloc * alloc) binder_alloc_print_pages() argument 1100 binder_alloc_get_allocated_count(struct binder_alloc * alloc) binder_alloc_get_allocated_count() argument 1120 binder_alloc_vma_close(struct binder_alloc * alloc) binder_alloc_vma_close() argument 1141 struct binder_alloc *alloc = mdata->alloc; binder_alloc_free_page() local 1233 __binder_alloc_init(struct binder_alloc * alloc,struct list_lru * freelist) __binder_alloc_init() argument 1252 binder_alloc_init(struct binder_alloc * alloc) binder_alloc_init() argument 1304 check_buffer(struct binder_alloc * alloc,struct binder_buffer * buffer,binder_size_t offset,size_t bytes) check_buffer() argument 1330 binder_alloc_copy_user_to_buffer(struct binder_alloc * alloc,struct binder_buffer * buffer,binder_size_t buffer_offset,const void __user * from,size_t bytes) binder_alloc_copy_user_to_buffer() argument 1361 binder_alloc_do_buffer_copy(struct binder_alloc * alloc,bool to_buffer,struct binder_buffer * buffer,binder_size_t buffer_offset,void * ptr,size_t bytes) binder_alloc_do_buffer_copy() argument 1392 binder_alloc_copy_to_buffer(struct binder_alloc * alloc,struct binder_buffer * buffer,binder_size_t buffer_offset,void * src,size_t bytes) binder_alloc_copy_to_buffer() argument 1402 binder_alloc_copy_from_buffer(struct binder_alloc * alloc,void * dest,struct binder_buffer * buffer,binder_size_t buffer_offset,size_t bytes) binder_alloc_copy_from_buffer() argument [all...] |