Lines Matching refs:to_native

263                 let resource_id = info.resource_id.to_native();  in process_gpu_command()
267 format: info.format.to_native(), in process_gpu_command()
269 width: info.width.to_native(), in process_gpu_command()
270 height: info.height.to_native(), in process_gpu_command()
282 self.virtio_gpu.unref_resource(info.resource_id.to_native()) in process_gpu_command()
285 info.scanout_id.to_native(), in process_gpu_command()
286 info.resource_id.to_native(), in process_gpu_command()
290 self.virtio_gpu.flush_resource(info.resource_id.to_native()) in process_gpu_command()
293 let resource_id = info.resource_id.to_native(); in process_gpu_command()
295 info.r.x.to_native(), in process_gpu_command()
296 info.r.y.to_native(), in process_gpu_command()
297 info.r.width.to_native(), in process_gpu_command()
298 info.r.height.to_native(), in process_gpu_command()
305 let entry_count = info.nr_entries.to_native() as usize; in process_gpu_command()
310 let addr = GuestAddress(entry.addr.to_native()); in process_gpu_command()
311 let len = entry.length.to_native() as usize; in process_gpu_command()
318 .attach_backing(info.resource_id.to_native(), mem, vecs) in process_gpu_command()
325 self.virtio_gpu.detach_backing(info.resource_id.to_native()) in process_gpu_command()
328 info.resource_id.to_native(), in process_gpu_command()
336 let resource_id = info.resource_id.to_native(); in process_gpu_command()
341 .get_capset_info(info.capset_index.to_native()), in process_gpu_command()
344 .get_capset(info.capset_id.to_native(), info.capset_version.to_native()), in process_gpu_command()
347 .create_context(info.hdr.ctx_id.to_native(), info.context_init.to_native()), in process_gpu_command()
349 self.virtio_gpu.destroy_context(info.hdr.ctx_id.to_native()) in process_gpu_command()
353 .context_attach_resource(info.hdr.ctx_id.to_native(), info.resource_id.to_native()), in process_gpu_command()
356 .context_detach_resource(info.hdr.ctx_id.to_native(), info.resource_id.to_native()), in process_gpu_command()
358 let resource_id = info.resource_id.to_native(); in process_gpu_command()
360 target: info.target.to_native(), in process_gpu_command()
361 format: info.format.to_native(), in process_gpu_command()
362 bind: info.bind.to_native(), in process_gpu_command()
363 width: info.width.to_native(), in process_gpu_command()
364 height: info.height.to_native(), in process_gpu_command()
365 depth: info.depth.to_native(), in process_gpu_command()
366 array_size: info.array_size.to_native(), in process_gpu_command()
367 last_level: info.last_level.to_native(), in process_gpu_command()
368 nr_samples: info.nr_samples.to_native(), in process_gpu_command()
369 flags: info.flags.to_native(), in process_gpu_command()
376 let ctx_id = info.hdr.ctx_id.to_native(); in process_gpu_command()
377 let resource_id = info.resource_id.to_native(); in process_gpu_command()
380 x: info.box_.x.to_native(), in process_gpu_command()
381 y: info.box_.y.to_native(), in process_gpu_command()
382 z: info.box_.z.to_native(), in process_gpu_command()
383 w: info.box_.w.to_native(), in process_gpu_command()
384 h: info.box_.h.to_native(), in process_gpu_command()
385 d: info.box_.d.to_native(), in process_gpu_command()
386 level: info.level.to_native(), in process_gpu_command()
387 stride: info.stride.to_native(), in process_gpu_command()
388 layer_stride: info.layer_stride.to_native(), in process_gpu_command()
389 offset: info.offset.to_native(), in process_gpu_command()
396 let ctx_id = info.hdr.ctx_id.to_native(); in process_gpu_command()
397 let resource_id = info.resource_id.to_native(); in process_gpu_command()
400 x: info.box_.x.to_native(), in process_gpu_command()
401 y: info.box_.y.to_native(), in process_gpu_command()
402 z: info.box_.z.to_native(), in process_gpu_command()
403 w: info.box_.w.to_native(), in process_gpu_command()
404 h: info.box_.h.to_native(), in process_gpu_command()
405 d: info.box_.d.to_native(), in process_gpu_command()
406 level: info.level.to_native(), in process_gpu_command()
407 stride: info.stride.to_native(), in process_gpu_command()
408 layer_stride: info.layer_stride.to_native(), in process_gpu_command()
409 offset: info.offset.to_native(), in process_gpu_command()
417 let cmd_size = info.size.to_native() as usize; in process_gpu_command()
421 .submit_command(info.hdr.ctx_id.to_native(), &mut cmd_buf[..]) in process_gpu_command()
432 let resource_id = info.resource_id.to_native(); in process_gpu_command()
433 let ctx_id = info.hdr.ctx_id.to_native(); in process_gpu_command()
436 blob_mem: info.blob_mem.to_native(), in process_gpu_command()
437 blob_flags: info.blob_flags.to_native(), in process_gpu_command()
438 blob_id: info.blob_id.to_native(), in process_gpu_command()
439 size: info.size.to_native(), in process_gpu_command()
442 let entry_count = info.nr_entries.to_native(); in process_gpu_command()
453 let addr = GuestAddress(entry.addr.to_native()); in process_gpu_command()
454 let len = entry.length.to_native() as usize; in process_gpu_command()
470 let scanout_id = info.scanout_id.to_native(); in process_gpu_command()
471 let resource_id = info.resource_id.to_native(); in process_gpu_command()
472 let virtio_gpu_format = info.format.to_native(); in process_gpu_command()
473 let width = info.width.to_native(); in process_gpu_command()
474 let height = info.width.to_native(); in process_gpu_command()
490 offsets[plane_index] = info.offsets[plane_index].to_native(); in process_gpu_command()
491 strides[plane_index] = info.strides[plane_index].to_native(); in process_gpu_command()
506 let resource_id = info.resource_id.to_native(); in process_gpu_command()
507 let offset = info.offset.to_native(); in process_gpu_command()
511 let resource_id = info.resource_id.to_native(); in process_gpu_command()
552 virtio_gpu_cmd_str(likely_type.to_native()) in process_queue()
595 if ctrl_hdr.flags.to_native() & VIRTIO_GPU_FLAG_FENCE != 0 { in process_descriptor()
596 flags = ctrl_hdr.flags.to_native(); in process_descriptor()
597 fence_id = ctrl_hdr.fence_id.to_native(); in process_descriptor()
598 ctx_id = ctrl_hdr.ctx_id.to_native(); in process_descriptor()
600 info = ctrl_hdr.info.to_native(); in process_descriptor()
1095 if (cfg.events_clear.to_native() & VIRTIO_GPU_EVENT_DISPLAY) != 0 { in write_config()