Lines Matching refs:req

116     struct virtio_gpu_ctrl_hdr req;  in get_display_info()  local
117 memset(&req, 0, sizeof(req)); in get_display_info()
118 req.type = VIRTIO_GPU_CMD_GET_DISPLAY_INFO; in get_display_info()
122 err = send_command_response(gdev, &req, sizeof(req), (void **)&info, sizeof(*info)); in get_display_info()
167 struct virtio_gpu_resource_create_2d req; in allocate_2d_resource() local
168 memset(&req, 0, sizeof(req)); in allocate_2d_resource()
170 req.hdr.type = VIRTIO_GPU_CMD_RESOURCE_CREATE_2D; in allocate_2d_resource()
171 req.resource_id = gdev->next_resource_id++; in allocate_2d_resource()
172 *resource_id = req.resource_id; in allocate_2d_resource()
173 req.format = VIRTIO_GPU_FORMAT_B8G8R8X8_UNORM; in allocate_2d_resource()
174 req.width = width; in allocate_2d_resource()
175 req.height = height; in allocate_2d_resource()
179 err = send_command_response(gdev, &req, sizeof(req), (void **)&res, sizeof(*res)); in allocate_2d_resource()
205 struct virtio_gpu_resource_attach_backing req; in attach_backing() member
207 } req; in attach_backing() local
208 memset(&req, 0, sizeof(req)); in attach_backing()
210 req.req.hdr.type = VIRTIO_GPU_CMD_RESOURCE_ATTACH_BACKING; in attach_backing()
211 req.req.resource_id = resource_id; in attach_backing()
212 req.req.nr_entries = 1; in attach_backing()
220 req.mem.addr = pa; in attach_backing()
221 req.mem.length = buf_len; in attach_backing()
225 err = send_command_response(gdev, &req, sizeof(req), (void **)&res, sizeof(*res)); in attach_backing()
247 struct virtio_gpu_set_scanout req; in set_scanout() local
248 memset(&req, 0, sizeof(req)); in set_scanout()
250 req.hdr.type = VIRTIO_GPU_CMD_SET_SCANOUT; in set_scanout()
251 req.r.x = req.r.y = 0; in set_scanout()
252 req.r.width = width; in set_scanout()
253 req.r.height = height; in set_scanout()
254 req.scanout_id = scanout_id; in set_scanout()
255 req.resource_id = resource_id; in set_scanout()
259 err = send_command_response(gdev, &req, sizeof(req), (void **)&res, sizeof(*res)); in set_scanout()
281 struct virtio_gpu_resource_flush req; in flush_resource() local
282 memset(&req, 0, sizeof(req)); in flush_resource()
284 req.hdr.type = VIRTIO_GPU_CMD_RESOURCE_FLUSH; in flush_resource()
285 req.r.x = req.r.y = 0; in flush_resource()
286 req.r.width = width; in flush_resource()
287 req.r.height = height; in flush_resource()
288 req.resource_id = resource_id; in flush_resource()
292 err = send_command_response(gdev, &req, sizeof(req), (void **)&res, sizeof(*res)); in flush_resource()
314 struct virtio_gpu_transfer_to_host_2d req; in transfer_to_host_2d() local
315 memset(&req, 0, sizeof(req)); in transfer_to_host_2d()
317 req.hdr.type = VIRTIO_GPU_CMD_TRANSFER_TO_HOST_2D; in transfer_to_host_2d()
318 req.r.x = req.r.y = 0; in transfer_to_host_2d()
319 req.r.width = width; in transfer_to_host_2d()
320 req.r.height = height; in transfer_to_host_2d()
321 req.offset = 0; in transfer_to_host_2d()
322 req.resource_id = resource_id; in transfer_to_host_2d()
326 err = send_command_response(gdev, &req, sizeof(req), (void **)&res, sizeof(*res)); in transfer_to_host_2d()