Lines Matching refs:death
1152 if (ref->death) { in binder_cleanup_ref_olocked()
1157 binder_dequeue_work(ref->proc, &ref->death->work); in binder_cleanup_ref_olocked()
1286 kfree(ref->death); in binder_free_ref()
4050 struct binder_ref_death *death = NULL; in binder_thread_write() local
4063 death = kzalloc(sizeof(*death), GFP_KERNEL); in binder_thread_write()
4064 if (death == NULL) { in binder_thread_write()
4088 kfree(death); in binder_thread_write()
4104 if (ref->death) { in binder_thread_write()
4109 kfree(death); in binder_thread_write()
4113 INIT_LIST_HEAD(&death->work.entry); in binder_thread_write()
4114 death->cookie = cookie; in binder_thread_write()
4115 ref->death = death; in binder_thread_write()
4117 ref->death->work.type = BINDER_WORK_DEAD_BINDER; in binder_thread_write()
4121 &ref->death->work, &proc->todo); in binder_thread_write()
4126 if (ref->death == NULL) { in binder_thread_write()
4133 death = ref->death; in binder_thread_write()
4134 if (death->cookie != cookie) { in binder_thread_write()
4137 (u64)death->cookie, in binder_thread_write()
4143 ref->death = NULL; in binder_thread_write()
4145 if (list_empty(&death->work.entry)) { in binder_thread_write()
4146 death->work.type = BINDER_WORK_CLEAR_DEATH_NOTIFICATION; in binder_thread_write()
4152 &death->work); in binder_thread_write()
4155 &death->work, in binder_thread_write()
4161 BUG_ON(death->work.type != BINDER_WORK_DEAD_BINDER); in binder_thread_write()
4162 death->work.type = BINDER_WORK_DEAD_BINDER_AND_CLEAR; in binder_thread_write()
4172 struct binder_ref_death *death = NULL; in binder_thread_write() local
4187 death = tmp_death; in binder_thread_write()
4194 death); in binder_thread_write()
4195 if (death == NULL) { in binder_thread_write()
4201 binder_dequeue_work_ilocked(&death->work); in binder_thread_write()
4202 if (death->work.type == BINDER_WORK_DEAD_BINDER_AND_CLEAR) { in binder_thread_write()
4203 death->work.type = BINDER_WORK_CLEAR_DEATH_NOTIFICATION; in binder_thread_write()
4208 thread, &death->work); in binder_thread_write()
4211 &death->work, in binder_thread_write()
4570 struct binder_ref_death *death; in binder_thread_read() local
4574 death = container_of(w, struct binder_ref_death, work); in binder_thread_read()
4579 cookie = death->cookie; in binder_thread_read()
4590 kfree(death); in binder_thread_read()
4804 struct binder_ref_death *death; in binder_release_work() local
4806 death = container_of(w, struct binder_ref_death, work); in binder_release_work()
4809 (u64)death->cookie); in binder_release_work()
4810 kfree(death); in binder_release_work()
5735 int death = 0; in binder_node_release() local
5773 if (!ref->death) { in binder_node_release()
5778 death++; in binder_node_release()
5780 BUG_ON(!list_empty(&ref->death->work.entry)); in binder_node_release()
5781 ref->death->work.type = BINDER_WORK_DEAD_BINDER; in binder_node_release()
5782 binder_enqueue_work_ilocked(&ref->death->work, in binder_node_release()
5790 node->debug_id, refs, death); in binder_node_release()
6087 ref->data.weak, ref->death); in print_binder_ref_olocked()