Lines Matching refs:death

397 	struct binder_ref_death *death;  member
1507 if (ref->death) { in binder_cleanup_ref_olocked()
1512 binder_dequeue_work(ref->proc, &ref->death->work); in binder_cleanup_ref_olocked()
1641 kfree(ref->death); in binder_free_ref()
3843 struct binder_ref_death *death = NULL; in binder_thread_write() local
3856 death = kzalloc(sizeof(*death), GFP_KERNEL); in binder_thread_write()
3857 if (death == NULL) { in binder_thread_write()
3881 kfree(death); in binder_thread_write()
3897 if (ref->death) { in binder_thread_write()
3902 kfree(death); in binder_thread_write()
3906 INIT_LIST_HEAD(&death->work.entry); in binder_thread_write()
3907 death->cookie = cookie; in binder_thread_write()
3908 ref->death = death; in binder_thread_write()
3910 ref->death->work.type = BINDER_WORK_DEAD_BINDER; in binder_thread_write()
3914 &ref->death->work, &proc->todo); in binder_thread_write()
3919 if (ref->death == NULL) { in binder_thread_write()
3926 death = ref->death; in binder_thread_write()
3927 if (death->cookie != cookie) { in binder_thread_write()
3930 (u64)death->cookie, in binder_thread_write()
3936 ref->death = NULL; in binder_thread_write()
3938 if (list_empty(&death->work.entry)) { in binder_thread_write()
3939 death->work.type = BINDER_WORK_CLEAR_DEATH_NOTIFICATION; in binder_thread_write()
3945 &death->work); in binder_thread_write()
3948 &death->work, in binder_thread_write()
3954 BUG_ON(death->work.type != BINDER_WORK_DEAD_BINDER); in binder_thread_write()
3955 death->work.type = BINDER_WORK_DEAD_BINDER_AND_CLEAR; in binder_thread_write()
3965 struct binder_ref_death *death = NULL; in binder_thread_write() local
3980 death = tmp_death; in binder_thread_write()
3987 death); in binder_thread_write()
3988 if (death == NULL) { in binder_thread_write()
3994 binder_dequeue_work_ilocked(&death->work); in binder_thread_write()
3995 if (death->work.type == BINDER_WORK_DEAD_BINDER_AND_CLEAR) { in binder_thread_write()
3996 death->work.type = BINDER_WORK_CLEAR_DEATH_NOTIFICATION; in binder_thread_write()
4001 thread, &death->work); in binder_thread_write()
4004 &death->work, in binder_thread_write()
4368 struct binder_ref_death *death; in binder_thread_read() local
4372 death = container_of(w, struct binder_ref_death, work); in binder_thread_read()
4377 cookie = death->cookie; in binder_thread_read()
4388 kfree(death); in binder_thread_read()
4602 struct binder_ref_death *death; in binder_release_work() local
4604 death = container_of(w, struct binder_ref_death, work); in binder_release_work()
4607 (u64)death->cookie); in binder_release_work()
4608 kfree(death); in binder_release_work()
5335 int death = 0; in binder_node_release() local
5373 if (!ref->death) { in binder_node_release()
5378 death++; in binder_node_release()
5380 BUG_ON(!list_empty(&ref->death->work.entry)); in binder_node_release()
5381 ref->death->work.type = BINDER_WORK_DEAD_BINDER; in binder_node_release()
5382 binder_enqueue_work_ilocked(&ref->death->work, in binder_node_release()
5390 node->debug_id, refs, death); in binder_node_release()
5684 ref->data.weak, ref->death); in print_binder_ref_olocked()