Lines Matching refs:handle

141     uint32_t handle;  member
170 uint32_t handle; member
380 static MTPObject *usb_mtp_object_alloc(MTPState *s, uint32_t handle, in usb_mtp_object_alloc() argument
390 o->handle = handle; in usb_mtp_object_alloc()
414 trace_usb_mtp_object_alloc(s->dev.addr, o->handle, o->path); in usb_mtp_object_alloc()
434 trace_usb_mtp_object_free(s->dev.addr, o->handle, o->path); in usb_mtp_object_free()
455 static MTPObject *usb_mtp_object_lookup(MTPState *s, uint32_t handle) in usb_mtp_object_lookup() argument
460 if (o->handle == handle) { in usb_mtp_object_lookup()
474 trace_usb_mtp_add_child(s->dev.addr, child->handle, child->path); in usb_mtp_add_child()
538 entry->handle = s->next_handle; in file_monitor_event()
560 entry->handle = o->handle; in file_monitor_event()
572 entry->handle = o->handle; in file_monitor_event()
910 trace_usb_mtp_op_get_object_handles(s->dev.addr, o->handle, o->path); in usb_mtp_get_object_handles()
913 handles[i++] = iter->handle; in usb_mtp_get_object_handles()
926 trace_usb_mtp_op_get_object_info(s->dev.addr, o->handle, o->path); in usb_mtp_get_object_info()
947 usb_mtp_add_u32(d, o->parent->handle); in usb_mtp_get_object_info()
974 trace_usb_mtp_op_get_object(s->dev.addr, o->handle, o->path); in usb_mtp_get_object()
996 trace_usb_mtp_op_get_partial_object(s->dev.addr, o->handle, o->path, in usb_mtp_get_partial_object()
1118 usb_mtp_add_u32(d, o->parent->handle); in usb_mtp_get_object_prop_value()
1126 usb_mtp_add_u64(d, o->handle); in usb_mtp_get_object_prop_value()
1190 static void usb_mtp_object_delete(MTPState *s, uint32_t handle, in usb_mtp_object_delete() argument
1209 if (handle == 0xFFFFFFF) { in usb_mtp_object_delete()
1212 o = usb_mtp_object_lookup(s, handle); in usb_mtp_object_delete()
1334 trace_usb_mtp_op_get_num_objects(s->dev.addr, o->handle, o->path); in usb_mtp_command()
1407 uint32_t handle = c->argv[1]; in usb_mtp_command() local
1408 if (handle == 0xFFFFFFFF || handle == 0) { in usb_mtp_command()
1412 o = usb_mtp_object_lookup(s, handle); in usb_mtp_command()
1423 s->dataset.parent_handle = o->handle; in usb_mtp_command()
1602 static void usb_mtp_write_data(MTPState *s, uint32_t handle) in usb_mtp_write_data() argument
1630 handle); in usb_mtp_write_data()
1734 next_handle = o->handle; in usb_mtp_write_metadata()
1994 uint32_t handle; in usb_mtp_handle_data() local
2009 handle = cpu_to_le32(e->handle); in usb_mtp_handle_data()
2011 usb_packet_copy(p, &handle, sizeof(uint32_t)); in usb_mtp_handle_data()