Lines Matching refs:cpu_to_le32

46 	dst->x = cpu_to_le32(src->x);  in convert_to_hw_box()
47 dst->y = cpu_to_le32(src->y); in convert_to_hw_box()
48 dst->z = cpu_to_le32(src->z); in convert_to_hw_box()
49 dst->w = cpu_to_le32(src->w); in convert_to_hw_box()
50 dst->h = cpu_to_le32(src->h); in convert_to_hw_box()
51 dst->d = cpu_to_le32(src->d); in convert_to_hw_box()
224 if (resp->type != cpu_to_le32(VIRTIO_GPU_RESP_OK_NODATA)) { in virtio_gpu_dequeue_ctrl_func()
234 if (resp->flags & cpu_to_le32(VIRTIO_GPU_FLAG_FENCE)) { in virtio_gpu_dequeue_ctrl_func()
513 cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_RESOURCE_CREATE_2D); in virtio_gpu_cmd_create_resource()
514 cmd_p->resource_id = cpu_to_le32(bo->hw_res_handle); in virtio_gpu_cmd_create_resource()
515 cmd_p->format = cpu_to_le32(params->format); in virtio_gpu_cmd_create_resource()
516 cmd_p->width = cpu_to_le32(params->width); in virtio_gpu_cmd_create_resource()
517 cmd_p->height = cpu_to_le32(params->height); in virtio_gpu_cmd_create_resource()
545 cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_RESOURCE_UNREF); in virtio_gpu_cmd_unref_resource()
546 cmd_p->resource_id = cpu_to_le32(bo->hw_res_handle); in virtio_gpu_cmd_unref_resource()
565 cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_SET_SCANOUT); in virtio_gpu_cmd_set_scanout()
566 cmd_p->resource_id = cpu_to_le32(resource_id); in virtio_gpu_cmd_set_scanout()
567 cmd_p->scanout_id = cpu_to_le32(scanout_id); in virtio_gpu_cmd_set_scanout()
568 cmd_p->r.width = cpu_to_le32(width); in virtio_gpu_cmd_set_scanout()
569 cmd_p->r.height = cpu_to_le32(height); in virtio_gpu_cmd_set_scanout()
570 cmd_p->r.x = cpu_to_le32(x); in virtio_gpu_cmd_set_scanout()
571 cmd_p->r.y = cpu_to_le32(y); in virtio_gpu_cmd_set_scanout()
590 cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_RESOURCE_FLUSH); in virtio_gpu_cmd_resource_flush()
591 cmd_p->resource_id = cpu_to_le32(resource_id); in virtio_gpu_cmd_resource_flush()
592 cmd_p->r.width = cpu_to_le32(width); in virtio_gpu_cmd_resource_flush()
593 cmd_p->r.height = cpu_to_le32(height); in virtio_gpu_cmd_resource_flush()
594 cmd_p->r.x = cpu_to_le32(x); in virtio_gpu_cmd_resource_flush()
595 cmd_p->r.y = cpu_to_le32(y); in virtio_gpu_cmd_resource_flush()
621 cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_TRANSFER_TO_HOST_2D); in virtio_gpu_cmd_transfer_to_host_2d()
622 cmd_p->resource_id = cpu_to_le32(bo->hw_res_handle); in virtio_gpu_cmd_transfer_to_host_2d()
624 cmd_p->r.width = cpu_to_le32(width); in virtio_gpu_cmd_transfer_to_host_2d()
625 cmd_p->r.height = cpu_to_le32(height); in virtio_gpu_cmd_transfer_to_host_2d()
626 cmd_p->r.x = cpu_to_le32(x); in virtio_gpu_cmd_transfer_to_host_2d()
627 cmd_p->r.y = cpu_to_le32(y); in virtio_gpu_cmd_transfer_to_host_2d()
645 cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_RESOURCE_ATTACH_BACKING); in virtio_gpu_cmd_resource_attach_backing()
646 cmd_p->resource_id = cpu_to_le32(resource_id); in virtio_gpu_cmd_resource_attach_backing()
647 cmd_p->nr_entries = cpu_to_le32(nents); in virtio_gpu_cmd_resource_attach_backing()
787 cmd_p->type = cpu_to_le32(VIRTIO_GPU_CMD_GET_DISPLAY_INFO); in virtio_gpu_cmd_get_display_info()
809 cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_GET_CAPSET_INFO); in virtio_gpu_cmd_get_capset_info()
810 cmd_p->capset_index = cpu_to_le32(idx); in virtio_gpu_cmd_get_capset_info()
882 cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_GET_CAPSET); in virtio_gpu_cmd_get_capset()
883 cmd_p->capset_id = cpu_to_le32(vgdev->capsets[idx].id); in virtio_gpu_cmd_get_capset()
884 cmd_p->capset_version = cpu_to_le32(version); in virtio_gpu_cmd_get_capset()
911 cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_GET_EDID); in virtio_gpu_cmd_get_edids()
912 cmd_p->scanout = cpu_to_le32(scanout); in virtio_gpu_cmd_get_edids()
928 cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_CTX_CREATE); in virtio_gpu_cmd_context_create()
929 cmd_p->hdr.ctx_id = cpu_to_le32(id); in virtio_gpu_cmd_context_create()
930 cmd_p->nlen = cpu_to_le32(nlen); in virtio_gpu_cmd_context_create()
945 cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_CTX_DESTROY); in virtio_gpu_cmd_context_destroy()
946 cmd_p->hdr.ctx_id = cpu_to_le32(id); in virtio_gpu_cmd_context_destroy()
962 cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_CTX_ATTACH_RESOURCE); in virtio_gpu_cmd_context_attach_resource()
963 cmd_p->hdr.ctx_id = cpu_to_le32(ctx_id); in virtio_gpu_cmd_context_attach_resource()
964 cmd_p->resource_id = cpu_to_le32(bo->hw_res_handle); in virtio_gpu_cmd_context_attach_resource()
980 cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_CTX_DETACH_RESOURCE); in virtio_gpu_cmd_context_detach_resource()
981 cmd_p->hdr.ctx_id = cpu_to_le32(ctx_id); in virtio_gpu_cmd_context_detach_resource()
982 cmd_p->resource_id = cpu_to_le32(bo->hw_res_handle); in virtio_gpu_cmd_context_detach_resource()
1000 cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_RESOURCE_CREATE_3D); in virtio_gpu_cmd_resource_create_3d()
1001 cmd_p->resource_id = cpu_to_le32(bo->hw_res_handle); in virtio_gpu_cmd_resource_create_3d()
1002 cmd_p->format = cpu_to_le32(params->format); in virtio_gpu_cmd_resource_create_3d()
1003 cmd_p->width = cpu_to_le32(params->width); in virtio_gpu_cmd_resource_create_3d()
1004 cmd_p->height = cpu_to_le32(params->height); in virtio_gpu_cmd_resource_create_3d()
1006 cmd_p->target = cpu_to_le32(params->target); in virtio_gpu_cmd_resource_create_3d()
1007 cmd_p->bind = cpu_to_le32(params->bind); in virtio_gpu_cmd_resource_create_3d()
1008 cmd_p->depth = cpu_to_le32(params->depth); in virtio_gpu_cmd_resource_create_3d()
1009 cmd_p->array_size = cpu_to_le32(params->array_size); in virtio_gpu_cmd_resource_create_3d()
1010 cmd_p->last_level = cpu_to_le32(params->last_level); in virtio_gpu_cmd_resource_create_3d()
1011 cmd_p->nr_samples = cpu_to_le32(params->nr_samples); in virtio_gpu_cmd_resource_create_3d()
1012 cmd_p->flags = cpu_to_le32(params->flags); in virtio_gpu_cmd_resource_create_3d()
1044 cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_TRANSFER_TO_HOST_3D); in virtio_gpu_cmd_transfer_to_host_3d()
1045 cmd_p->hdr.ctx_id = cpu_to_le32(ctx_id); in virtio_gpu_cmd_transfer_to_host_3d()
1046 cmd_p->resource_id = cpu_to_le32(bo->hw_res_handle); in virtio_gpu_cmd_transfer_to_host_3d()
1049 cmd_p->level = cpu_to_le32(level); in virtio_gpu_cmd_transfer_to_host_3d()
1050 cmd_p->stride = cpu_to_le32(stride); in virtio_gpu_cmd_transfer_to_host_3d()
1051 cmd_p->layer_stride = cpu_to_le32(layer_stride); in virtio_gpu_cmd_transfer_to_host_3d()
1074 cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_TRANSFER_FROM_HOST_3D); in virtio_gpu_cmd_transfer_from_host_3d()
1075 cmd_p->hdr.ctx_id = cpu_to_le32(ctx_id); in virtio_gpu_cmd_transfer_from_host_3d()
1076 cmd_p->resource_id = cpu_to_le32(bo->hw_res_handle); in virtio_gpu_cmd_transfer_from_host_3d()
1079 cmd_p->level = cpu_to_le32(level); in virtio_gpu_cmd_transfer_from_host_3d()
1080 cmd_p->stride = cpu_to_le32(stride); in virtio_gpu_cmd_transfer_from_host_3d()
1081 cmd_p->layer_stride = cpu_to_le32(layer_stride); in virtio_gpu_cmd_transfer_from_host_3d()
1102 cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_SUBMIT_3D); in virtio_gpu_cmd_submit()
1103 cmd_p->hdr.ctx_id = cpu_to_le32(ctx_id); in virtio_gpu_cmd_submit()
1104 cmd_p->size = cpu_to_le32(data_size); in virtio_gpu_cmd_submit()
1124 output->cursor.pos.scanout_id = cpu_to_le32(output->index); in virtio_gpu_cursor_ping()
1177 cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_RESOURCE_ASSIGN_UUID); in virtio_gpu_cmd_resource_assign_uuid()
1178 cmd_p->resource_id = cpu_to_le32(bo->hw_res_handle); in virtio_gpu_cmd_resource_assign_uuid()
1225 cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_RESOURCE_MAP_BLOB); in virtio_gpu_cmd_map()
1226 cmd_p->resource_id = cpu_to_le32(bo->hw_res_handle); in virtio_gpu_cmd_map()
1243 cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_RESOURCE_UNMAP_BLOB); in virtio_gpu_cmd_unmap()
1244 cmd_p->resource_id = cpu_to_le32(bo->hw_res_handle); in virtio_gpu_cmd_unmap()
1262 cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_RESOURCE_CREATE_BLOB); in virtio_gpu_cmd_resource_create_blob()
1263 cmd_p->hdr.ctx_id = cpu_to_le32(params->ctx_id); in virtio_gpu_cmd_resource_create_blob()
1264 cmd_p->resource_id = cpu_to_le32(bo->hw_res_handle); in virtio_gpu_cmd_resource_create_blob()
1265 cmd_p->blob_mem = cpu_to_le32(params->blob_mem); in virtio_gpu_cmd_resource_create_blob()
1266 cmd_p->blob_flags = cpu_to_le32(params->blob_flags); in virtio_gpu_cmd_resource_create_blob()
1269 cmd_p->nr_entries = cpu_to_le32(nents); in virtio_gpu_cmd_resource_create_blob()
1293 cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_SET_SCANOUT_BLOB); in virtio_gpu_cmd_set_scanout_blob()
1294 cmd_p->resource_id = cpu_to_le32(bo->hw_res_handle); in virtio_gpu_cmd_set_scanout_blob()
1295 cmd_p->scanout_id = cpu_to_le32(scanout_id); in virtio_gpu_cmd_set_scanout_blob()
1297 cmd_p->format = cpu_to_le32(format); in virtio_gpu_cmd_set_scanout_blob()
1298 cmd_p->width = cpu_to_le32(fb->width); in virtio_gpu_cmd_set_scanout_blob()
1299 cmd_p->height = cpu_to_le32(fb->height); in virtio_gpu_cmd_set_scanout_blob()
1302 cmd_p->strides[i] = cpu_to_le32(fb->pitches[i]); in virtio_gpu_cmd_set_scanout_blob()
1303 cmd_p->offsets[i] = cpu_to_le32(fb->offsets[i]); in virtio_gpu_cmd_set_scanout_blob()
1306 cmd_p->r.width = cpu_to_le32(width); in virtio_gpu_cmd_set_scanout_blob()
1307 cmd_p->r.height = cpu_to_le32(height); in virtio_gpu_cmd_set_scanout_blob()
1308 cmd_p->r.x = cpu_to_le32(x); in virtio_gpu_cmd_set_scanout_blob()
1309 cmd_p->r.y = cpu_to_le32(y); in virtio_gpu_cmd_set_scanout_blob()