Lines Matching refs:death

1224 	if (ref->death) {  in binder_cleanup_ref_olocked()
1229 binder_dequeue_work(ref->proc, &ref->death->work); in binder_cleanup_ref_olocked()
1364 kfree(ref->death); in binder_free_ref()
4310 struct binder_ref_death *death = NULL; in binder_thread_write() local
4323 death = kzalloc(sizeof(*death), GFP_KERNEL); in binder_thread_write()
4324 if (death == NULL) { in binder_thread_write()
4348 kfree(death); in binder_thread_write()
4364 if (ref->death) { in binder_thread_write()
4369 kfree(death); in binder_thread_write()
4373 INIT_LIST_HEAD(&death->work.entry); in binder_thread_write()
4374 death->cookie = cookie; in binder_thread_write()
4375 ref->death = death; in binder_thread_write()
4377 ref->death->work.type = BINDER_WORK_DEAD_BINDER; in binder_thread_write()
4381 &ref->death->work, &proc->todo); in binder_thread_write()
4386 if (ref->death == NULL) { in binder_thread_write()
4393 death = ref->death; in binder_thread_write()
4394 if (death->cookie != cookie) { in binder_thread_write()
4397 (u64)death->cookie, in binder_thread_write()
4403 ref->death = NULL; in binder_thread_write()
4405 if (list_empty(&death->work.entry)) { in binder_thread_write()
4406 death->work.type = BINDER_WORK_CLEAR_DEATH_NOTIFICATION; in binder_thread_write()
4412 &death->work); in binder_thread_write()
4415 &death->work, in binder_thread_write()
4421 BUG_ON(death->work.type != BINDER_WORK_DEAD_BINDER); in binder_thread_write()
4422 death->work.type = BINDER_WORK_DEAD_BINDER_AND_CLEAR; in binder_thread_write()
4432 struct binder_ref_death *death = NULL; in binder_thread_write() local
4447 death = tmp_death; in binder_thread_write()
4454 death); in binder_thread_write()
4455 if (death == NULL) { in binder_thread_write()
4461 binder_dequeue_work_ilocked(&death->work); in binder_thread_write()
4462 if (death->work.type == BINDER_WORK_DEAD_BINDER_AND_CLEAR) { in binder_thread_write()
4463 death->work.type = BINDER_WORK_CLEAR_DEATH_NOTIFICATION; in binder_thread_write()
4468 thread, &death->work); in binder_thread_write()
4471 &death->work, in binder_thread_write()
4868 struct binder_ref_death *death; in binder_thread_read() local
4872 death = container_of(w, struct binder_ref_death, work); in binder_thread_read()
4877 cookie = death->cookie; in binder_thread_read()
4888 kfree(death); in binder_thread_read()
5142 struct binder_ref_death *death; in binder_release_work() local
5144 death = container_of(w, struct binder_ref_death, work); in binder_release_work()
5147 (u64)death->cookie); in binder_release_work()
5148 kfree(death); in binder_release_work()
6124 int death = 0; in binder_node_release() local
6162 if (!ref->death) { in binder_node_release()
6167 death++; in binder_node_release()
6169 BUG_ON(!list_empty(&ref->death->work.entry)); in binder_node_release()
6170 ref->death->work.type = BINDER_WORK_DEAD_BINDER; in binder_node_release()
6171 binder_enqueue_work_ilocked(&ref->death->work, in binder_node_release()
6179 node->debug_id, refs, death); in binder_node_release()
6496 ref->data.weak, ref->death); in print_binder_ref_olocked()