Lines Matching refs:death

1101 	if (ref->death) {  in binder_cleanup_ref_olocked()
1106 binder_dequeue_work(ref->proc, &ref->death->work); in binder_cleanup_ref_olocked()
1235 kfree(ref->death); in binder_free_ref()
3497 struct binder_ref_death *death = NULL; in binder_thread_write() local
3510 death = kzalloc(sizeof(*death), GFP_KERNEL); in binder_thread_write()
3511 if (death == NULL) { in binder_thread_write()
3535 kfree(death); in binder_thread_write()
3551 if (ref->death) { in binder_thread_write()
3556 kfree(death); in binder_thread_write()
3560 INIT_LIST_HEAD(&death->work.entry); in binder_thread_write()
3561 death->cookie = cookie; in binder_thread_write()
3562 ref->death = death; in binder_thread_write()
3564 ref->death->work.type = BINDER_WORK_DEAD_BINDER; in binder_thread_write()
3568 &ref->death->work, &proc->todo); in binder_thread_write()
3573 if (ref->death == NULL) { in binder_thread_write()
3580 death = ref->death; in binder_thread_write()
3581 if (death->cookie != cookie) { in binder_thread_write()
3584 (u64)death->cookie, in binder_thread_write()
3590 ref->death = NULL; in binder_thread_write()
3592 if (list_empty(&death->work.entry)) { in binder_thread_write()
3593 death->work.type = BINDER_WORK_CLEAR_DEATH_NOTIFICATION; in binder_thread_write()
3599 &death->work); in binder_thread_write()
3602 &death->work, in binder_thread_write()
3608 BUG_ON(death->work.type != BINDER_WORK_DEAD_BINDER); in binder_thread_write()
3609 death->work.type = BINDER_WORK_DEAD_BINDER_AND_CLEAR; in binder_thread_write()
3619 struct binder_ref_death *death = NULL; in binder_thread_write() local
3634 death = tmp_death; in binder_thread_write()
3641 death); in binder_thread_write()
3642 if (death == NULL) { in binder_thread_write()
3648 binder_dequeue_work_ilocked(&death->work); in binder_thread_write()
3649 if (death->work.type == BINDER_WORK_DEAD_BINDER_AND_CLEAR) { in binder_thread_write()
3650 death->work.type = BINDER_WORK_CLEAR_DEATH_NOTIFICATION; in binder_thread_write()
3655 thread, &death->work); in binder_thread_write()
3658 &death->work, in binder_thread_write()
4027 struct binder_ref_death *death; in binder_thread_read() local
4031 death = container_of(w, struct binder_ref_death, work); in binder_thread_read()
4036 cookie = death->cookie; in binder_thread_read()
4047 kfree(death); in binder_thread_read()
4261 struct binder_ref_death *death; in binder_release_work() local
4263 death = container_of(w, struct binder_ref_death, work); in binder_release_work()
4266 (u64)death->cookie); in binder_release_work()
4267 kfree(death); in binder_release_work()
5183 int death = 0; in binder_node_release() local
5221 if (!ref->death) { in binder_node_release()
5226 death++; in binder_node_release()
5228 BUG_ON(!list_empty(&ref->death->work.entry)); in binder_node_release()
5229 ref->death->work.type = BINDER_WORK_DEAD_BINDER; in binder_node_release()
5230 binder_enqueue_work_ilocked(&ref->death->work, in binder_node_release()
5238 node->debug_id, refs, death); in binder_node_release()
5535 ref->data.weak, ref->death); in print_binder_ref_olocked()