Lines Matching refs:fp

1259 		struct flat_binder_object *fp;
1261 if (*offp > buffer->data_size - sizeof(*fp) ||
1262 buffer->data_size < sizeof(*fp) ||
1268 fp = (struct flat_binder_object *)(buffer->data + *offp);
1269 switch (fp->type) {
1272 struct binder_node *node = binder_get_node(proc, fp->binder);
1276 debug_id, (u64)fp->binder);
1282 binder_dec_node(node, fp->type == BINDER_TYPE_BINDER, 0);
1286 struct binder_ref *ref = binder_get_ref(proc, fp->handle);
1290 debug_id, fp->handle);
1296 binder_dec_ref(ref, fp->type == BINDER_TYPE_HANDLE);
1301 " fd %d\n", fp->handle);
1303 task_close_fd(proc, fp->handle);
1308 debug_id, fp->type);
1524 struct flat_binder_object *fp;
1526 if (*offp > t->buffer->data_size - sizeof(*fp) ||
1528 t->buffer->data_size < sizeof(*fp) ||
1534 sizeof(*fp)));
1538 fp = (struct flat_binder_object *)(t->buffer->data + *offp);
1540 switch (fp->type) {
1544 struct binder_node *node = binder_get_node(proc, fp->binder);
1547 node = binder_new_node(proc, fp->binder, fp->cookie);
1552 node->min_priority = fp->flags & FLAT_BINDER_FLAG_PRIORITY_MASK;
1553 node->accept_fds = !!(fp->flags & FLAT_BINDER_FLAG_ACCEPTS_FDS);
1555 if (fp->cookie != node->cookie) {
1558 (u64)fp->binder, node->debug_id,
1559 (u64)fp->cookie, (u64)node->cookie);
1572 if (fp->type == BINDER_TYPE_BINDER)
1573 fp->type = BINDER_TYPE_HANDLE;
1575 fp->type = BINDER_TYPE_WEAK_HANDLE;
1576 fp->handle = ref->desc;
1577 binder_inc_ref(ref, fp->type == BINDER_TYPE_HANDLE,
1588 struct binder_ref *ref = binder_get_ref(proc, fp->handle);
1593 thread->pid, fp->handle);
1602 if (fp->type == BINDER_TYPE_HANDLE)
1603 fp->type = BINDER_TYPE_BINDER;
1605 fp->type = BINDER_TYPE_WEAK_BINDER;
1606 fp->binder = ref->node->ptr;
1607 fp->cookie = ref->node->cookie;
1608 binder_inc_node(ref->node, fp->type == BINDER_TYPE_BINDER, 0, NULL);
1622 fp->handle = new_ref->desc;
1623 binder_inc_ref(new_ref, fp->type == BINDER_TYPE_HANDLE, NULL);
1640 proc->pid, thread->pid, fp->handle);
1646 proc->pid, thread->pid, fp->handle);
1651 file = fget(fp->handle);
1654 proc->pid, thread->pid, fp->handle);
1670 trace_binder_transaction_fd(t, fp->handle, target_fd);
1672 " fd %d -> %d\n", fp->handle, target_fd);
1674 fp->handle = target_fd;
1679 proc->pid, thread->pid, fp->type);