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()
218 if (resp->type != cpu_to_le32(VIRTIO_GPU_RESP_OK_NODATA)) { in virtio_gpu_dequeue_ctrl_func()
228 if (resp->flags & cpu_to_le32(VIRTIO_GPU_FLAG_FENCE)) { in virtio_gpu_dequeue_ctrl_func()
498 cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_RESOURCE_CREATE_2D); in virtio_gpu_cmd_create_resource()
499 cmd_p->resource_id = cpu_to_le32(bo->hw_res_handle); in virtio_gpu_cmd_create_resource()
500 cmd_p->format = cpu_to_le32(params->format); in virtio_gpu_cmd_create_resource()
501 cmd_p->width = cpu_to_le32(params->width); in virtio_gpu_cmd_create_resource()
502 cmd_p->height = cpu_to_le32(params->height); in virtio_gpu_cmd_create_resource()
530 cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_RESOURCE_UNREF); in virtio_gpu_cmd_unref_resource()
531 cmd_p->resource_id = cpu_to_le32(bo->hw_res_handle); in virtio_gpu_cmd_unref_resource()
550 cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_SET_SCANOUT); in virtio_gpu_cmd_set_scanout()
551 cmd_p->resource_id = cpu_to_le32(resource_id); in virtio_gpu_cmd_set_scanout()
552 cmd_p->scanout_id = cpu_to_le32(scanout_id); in virtio_gpu_cmd_set_scanout()
553 cmd_p->r.width = cpu_to_le32(width); in virtio_gpu_cmd_set_scanout()
554 cmd_p->r.height = cpu_to_le32(height); in virtio_gpu_cmd_set_scanout()
555 cmd_p->r.x = cpu_to_le32(x); in virtio_gpu_cmd_set_scanout()
556 cmd_p->r.y = cpu_to_le32(y); in virtio_gpu_cmd_set_scanout()
575 cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_RESOURCE_FLUSH); in virtio_gpu_cmd_resource_flush()
576 cmd_p->resource_id = cpu_to_le32(resource_id); in virtio_gpu_cmd_resource_flush()
577 cmd_p->r.width = cpu_to_le32(width); in virtio_gpu_cmd_resource_flush()
578 cmd_p->r.height = cpu_to_le32(height); in virtio_gpu_cmd_resource_flush()
579 cmd_p->r.x = cpu_to_le32(x); in virtio_gpu_cmd_resource_flush()
580 cmd_p->r.y = cpu_to_le32(y); in virtio_gpu_cmd_resource_flush()
606 cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_TRANSFER_TO_HOST_2D); in virtio_gpu_cmd_transfer_to_host_2d()
607 cmd_p->resource_id = cpu_to_le32(bo->hw_res_handle); in virtio_gpu_cmd_transfer_to_host_2d()
609 cmd_p->r.width = cpu_to_le32(width); in virtio_gpu_cmd_transfer_to_host_2d()
610 cmd_p->r.height = cpu_to_le32(height); in virtio_gpu_cmd_transfer_to_host_2d()
611 cmd_p->r.x = cpu_to_le32(x); in virtio_gpu_cmd_transfer_to_host_2d()
612 cmd_p->r.y = cpu_to_le32(y); in virtio_gpu_cmd_transfer_to_host_2d()
630 cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_RESOURCE_ATTACH_BACKING); in virtio_gpu_cmd_resource_attach_backing()
631 cmd_p->resource_id = cpu_to_le32(resource_id); in virtio_gpu_cmd_resource_attach_backing()
632 cmd_p->nr_entries = cpu_to_le32(nents); in virtio_gpu_cmd_resource_attach_backing()
772 cmd_p->type = cpu_to_le32(VIRTIO_GPU_CMD_GET_DISPLAY_INFO); in virtio_gpu_cmd_get_display_info()
794 cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_GET_CAPSET_INFO); in virtio_gpu_cmd_get_capset_info()
795 cmd_p->capset_index = cpu_to_le32(idx); in virtio_gpu_cmd_get_capset_info()
867 cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_GET_CAPSET); in virtio_gpu_cmd_get_capset()
868 cmd_p->capset_id = cpu_to_le32(vgdev->capsets[idx].id); in virtio_gpu_cmd_get_capset()
869 cmd_p->capset_version = cpu_to_le32(version); in virtio_gpu_cmd_get_capset()
896 cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_GET_EDID); in virtio_gpu_cmd_get_edids()
897 cmd_p->scanout = cpu_to_le32(scanout); in virtio_gpu_cmd_get_edids()
914 cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_CTX_CREATE); in virtio_gpu_cmd_context_create()
915 cmd_p->hdr.ctx_id = cpu_to_le32(id); in virtio_gpu_cmd_context_create()
916 cmd_p->nlen = cpu_to_le32(nlen); in virtio_gpu_cmd_context_create()
917 cmd_p->context_init = cpu_to_le32(context_init); in virtio_gpu_cmd_context_create()
932 cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_CTX_DESTROY); in virtio_gpu_cmd_context_destroy()
933 cmd_p->hdr.ctx_id = cpu_to_le32(id); in virtio_gpu_cmd_context_destroy()
949 cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_CTX_ATTACH_RESOURCE); in virtio_gpu_cmd_context_attach_resource()
950 cmd_p->hdr.ctx_id = cpu_to_le32(ctx_id); in virtio_gpu_cmd_context_attach_resource()
951 cmd_p->resource_id = cpu_to_le32(bo->hw_res_handle); in virtio_gpu_cmd_context_attach_resource()
967 cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_CTX_DETACH_RESOURCE); in virtio_gpu_cmd_context_detach_resource()
968 cmd_p->hdr.ctx_id = cpu_to_le32(ctx_id); in virtio_gpu_cmd_context_detach_resource()
969 cmd_p->resource_id = cpu_to_le32(bo->hw_res_handle); in virtio_gpu_cmd_context_detach_resource()
987 cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_RESOURCE_CREATE_3D); in virtio_gpu_cmd_resource_create_3d()
988 cmd_p->resource_id = cpu_to_le32(bo->hw_res_handle); in virtio_gpu_cmd_resource_create_3d()
989 cmd_p->format = cpu_to_le32(params->format); in virtio_gpu_cmd_resource_create_3d()
990 cmd_p->width = cpu_to_le32(params->width); in virtio_gpu_cmd_resource_create_3d()
991 cmd_p->height = cpu_to_le32(params->height); in virtio_gpu_cmd_resource_create_3d()
993 cmd_p->target = cpu_to_le32(params->target); in virtio_gpu_cmd_resource_create_3d()
994 cmd_p->bind = cpu_to_le32(params->bind); in virtio_gpu_cmd_resource_create_3d()
995 cmd_p->depth = cpu_to_le32(params->depth); in virtio_gpu_cmd_resource_create_3d()
996 cmd_p->array_size = cpu_to_le32(params->array_size); in virtio_gpu_cmd_resource_create_3d()
997 cmd_p->last_level = cpu_to_le32(params->last_level); in virtio_gpu_cmd_resource_create_3d()
998 cmd_p->nr_samples = cpu_to_le32(params->nr_samples); in virtio_gpu_cmd_resource_create_3d()
999 cmd_p->flags = cpu_to_le32(params->flags); in virtio_gpu_cmd_resource_create_3d()
1031 cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_TRANSFER_TO_HOST_3D); in virtio_gpu_cmd_transfer_to_host_3d()
1032 cmd_p->hdr.ctx_id = cpu_to_le32(ctx_id); in virtio_gpu_cmd_transfer_to_host_3d()
1033 cmd_p->resource_id = cpu_to_le32(bo->hw_res_handle); in virtio_gpu_cmd_transfer_to_host_3d()
1036 cmd_p->level = cpu_to_le32(level); in virtio_gpu_cmd_transfer_to_host_3d()
1037 cmd_p->stride = cpu_to_le32(stride); in virtio_gpu_cmd_transfer_to_host_3d()
1038 cmd_p->layer_stride = cpu_to_le32(layer_stride); in virtio_gpu_cmd_transfer_to_host_3d()
1061 cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_TRANSFER_FROM_HOST_3D); in virtio_gpu_cmd_transfer_from_host_3d()
1062 cmd_p->hdr.ctx_id = cpu_to_le32(ctx_id); in virtio_gpu_cmd_transfer_from_host_3d()
1063 cmd_p->resource_id = cpu_to_le32(bo->hw_res_handle); in virtio_gpu_cmd_transfer_from_host_3d()
1066 cmd_p->level = cpu_to_le32(level); in virtio_gpu_cmd_transfer_from_host_3d()
1067 cmd_p->stride = cpu_to_le32(stride); in virtio_gpu_cmd_transfer_from_host_3d()
1068 cmd_p->layer_stride = cpu_to_le32(layer_stride); in virtio_gpu_cmd_transfer_from_host_3d()
1089 cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_SUBMIT_3D); in virtio_gpu_cmd_submit()
1090 cmd_p->hdr.ctx_id = cpu_to_le32(ctx_id); in virtio_gpu_cmd_submit()
1091 cmd_p->size = cpu_to_le32(data_size); in virtio_gpu_cmd_submit()
1111 output->cursor.pos.scanout_id = cpu_to_le32(output->index); in virtio_gpu_cursor_ping()
1164 cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_RESOURCE_ASSIGN_UUID); in virtio_gpu_cmd_resource_assign_uuid()
1165 cmd_p->resource_id = cpu_to_le32(bo->hw_res_handle); in virtio_gpu_cmd_resource_assign_uuid()
1212 cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_RESOURCE_MAP_BLOB); in virtio_gpu_cmd_map()
1213 cmd_p->resource_id = cpu_to_le32(bo->hw_res_handle); in virtio_gpu_cmd_map()
1230 cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_RESOURCE_UNMAP_BLOB); in virtio_gpu_cmd_unmap()
1231 cmd_p->resource_id = cpu_to_le32(bo->hw_res_handle); in virtio_gpu_cmd_unmap()
1249 cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_RESOURCE_CREATE_BLOB); in virtio_gpu_cmd_resource_create_blob()
1250 cmd_p->hdr.ctx_id = cpu_to_le32(params->ctx_id); in virtio_gpu_cmd_resource_create_blob()
1251 cmd_p->resource_id = cpu_to_le32(bo->hw_res_handle); in virtio_gpu_cmd_resource_create_blob()
1252 cmd_p->blob_mem = cpu_to_le32(params->blob_mem); in virtio_gpu_cmd_resource_create_blob()
1253 cmd_p->blob_flags = cpu_to_le32(params->blob_flags); in virtio_gpu_cmd_resource_create_blob()
1256 cmd_p->nr_entries = cpu_to_le32(nents); in virtio_gpu_cmd_resource_create_blob()
1280 cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_SET_SCANOUT_BLOB); in virtio_gpu_cmd_set_scanout_blob()
1281 cmd_p->resource_id = cpu_to_le32(bo->hw_res_handle); in virtio_gpu_cmd_set_scanout_blob()
1282 cmd_p->scanout_id = cpu_to_le32(scanout_id); in virtio_gpu_cmd_set_scanout_blob()
1284 cmd_p->format = cpu_to_le32(format); in virtio_gpu_cmd_set_scanout_blob()
1285 cmd_p->width = cpu_to_le32(fb->width); in virtio_gpu_cmd_set_scanout_blob()
1286 cmd_p->height = cpu_to_le32(fb->height); in virtio_gpu_cmd_set_scanout_blob()
1289 cmd_p->strides[i] = cpu_to_le32(fb->pitches[i]); in virtio_gpu_cmd_set_scanout_blob()
1290 cmd_p->offsets[i] = cpu_to_le32(fb->offsets[i]); in virtio_gpu_cmd_set_scanout_blob()
1293 cmd_p->r.width = cpu_to_le32(width); in virtio_gpu_cmd_set_scanout_blob()
1294 cmd_p->r.height = cpu_to_le32(height); in virtio_gpu_cmd_set_scanout_blob()
1295 cmd_p->r.x = cpu_to_le32(x); in virtio_gpu_cmd_set_scanout_blob()
1296 cmd_p->r.y = cpu_to_le32(y); in virtio_gpu_cmd_set_scanout_blob()