Lines Matching refs:death

456 	struct binder_ref_death *death;  member
1598 if (ref->death) { in binder_cleanup_ref_olocked()
1603 binder_dequeue_work(ref->proc, &ref->death->work); in binder_cleanup_ref_olocked()
1732 kfree(ref->death); in binder_free_ref()
3579 struct binder_ref_death *death = NULL; in binder_thread_write() local
3592 death = kzalloc(sizeof(*death), GFP_KERNEL); in binder_thread_write()
3593 if (death == NULL) { in binder_thread_write()
3617 kfree(death); in binder_thread_write()
3633 if (ref->death) { in binder_thread_write()
3638 kfree(death); in binder_thread_write()
3642 INIT_LIST_HEAD(&death->work.entry); in binder_thread_write()
3643 death->cookie = cookie; in binder_thread_write()
3644 ref->death = death; in binder_thread_write()
3646 ref->death->work.type = BINDER_WORK_DEAD_BINDER; in binder_thread_write()
3650 &ref->death->work, &proc->todo); in binder_thread_write()
3655 if (ref->death == NULL) { in binder_thread_write()
3662 death = ref->death; in binder_thread_write()
3663 if (death->cookie != cookie) { in binder_thread_write()
3666 (u64)death->cookie, in binder_thread_write()
3672 ref->death = NULL; in binder_thread_write()
3674 if (list_empty(&death->work.entry)) { in binder_thread_write()
3675 death->work.type = BINDER_WORK_CLEAR_DEATH_NOTIFICATION; in binder_thread_write()
3681 &death->work); in binder_thread_write()
3684 &death->work, in binder_thread_write()
3690 BUG_ON(death->work.type != BINDER_WORK_DEAD_BINDER); in binder_thread_write()
3691 death->work.type = BINDER_WORK_DEAD_BINDER_AND_CLEAR; in binder_thread_write()
3701 struct binder_ref_death *death = NULL; in binder_thread_write() local
3716 death = tmp_death; in binder_thread_write()
3723 death); in binder_thread_write()
3724 if (death == NULL) { in binder_thread_write()
3730 binder_dequeue_work_ilocked(&death->work); in binder_thread_write()
3731 if (death->work.type == BINDER_WORK_DEAD_BINDER_AND_CLEAR) { in binder_thread_write()
3732 death->work.type = BINDER_WORK_CLEAR_DEATH_NOTIFICATION; in binder_thread_write()
3737 thread, &death->work); in binder_thread_write()
3740 &death->work, in binder_thread_write()
4037 struct binder_ref_death *death; in binder_thread_read() local
4041 death = container_of(w, struct binder_ref_death, work); in binder_thread_read()
4046 cookie = death->cookie; in binder_thread_read()
4057 kfree(death); in binder_thread_read()
4228 struct binder_ref_death *death; in binder_release_work() local
4230 death = container_of(w, struct binder_ref_death, work); in binder_release_work()
4233 (u64)death->cookie); in binder_release_work()
4234 kfree(death); in binder_release_work()
4850 int death = 0; in binder_node_release() local
4888 if (!ref->death) { in binder_node_release()
4893 death++; in binder_node_release()
4895 BUG_ON(!list_empty(&ref->death->work.entry)); in binder_node_release()
4896 ref->death->work.type = BINDER_WORK_DEAD_BINDER; in binder_node_release()
4897 binder_enqueue_work_ilocked(&ref->death->work, in binder_node_release()
4905 node->debug_id, refs, death); in binder_node_release()
5214 ref->data.weak, ref->death); in print_binder_ref_olocked()