• Home
  • Raw
  • Download

Lines Matching refs:new_buffer

74 				      struct binder_buffer *new_buffer)  in binder_insert_free_buffer()  argument
82 BUG_ON(!new_buffer->free); in binder_insert_free_buffer()
84 new_buffer_size = binder_alloc_buffer_size(alloc, new_buffer); in binder_insert_free_buffer()
88 alloc->pid, new_buffer_size, new_buffer); in binder_insert_free_buffer()
102 rb_link_node(&new_buffer->rb_node, parent, p); in binder_insert_free_buffer()
103 rb_insert_color(&new_buffer->rb_node, &alloc->free_buffers); in binder_insert_free_buffer()
107 struct binder_alloc *alloc, struct binder_buffer *new_buffer) in binder_insert_allocated_buffer_locked() argument
113 BUG_ON(new_buffer->free); in binder_insert_allocated_buffer_locked()
120 if (new_buffer->data < buffer->data) in binder_insert_allocated_buffer_locked()
122 else if (new_buffer->data > buffer->data) in binder_insert_allocated_buffer_locked()
127 rb_link_node(&new_buffer->rb_node, parent, p); in binder_insert_allocated_buffer_locked()
128 rb_insert_color(&new_buffer->rb_node, &alloc->allocated_buffers); in binder_insert_allocated_buffer_locked()
448 struct binder_buffer *new_buffer; in binder_alloc_new_buf_locked() local
450 new_buffer = kzalloc(sizeof(*buffer), GFP_KERNEL); in binder_alloc_new_buf_locked()
451 if (!new_buffer) { in binder_alloc_new_buf_locked()
456 new_buffer->data = (u8 *)buffer->data + size; in binder_alloc_new_buf_locked()
457 list_add(&new_buffer->entry, &buffer->entry); in binder_alloc_new_buf_locked()
458 new_buffer->free = 1; in binder_alloc_new_buf_locked()
459 binder_insert_free_buffer(alloc, new_buffer); in binder_alloc_new_buf_locked()