Lines Matching refs:msg
241 struct synthvid_msg *msg) in synthvid_send() argument
246 msg->pipe_hdr.type = PIPE_MSG_DATA; in synthvid_send()
247 msg->pipe_hdr.size = msg->vid_hdr.size; in synthvid_send()
249 ret = vmbus_sendpacket(hdev->channel, msg, in synthvid_send()
250 msg->vid_hdr.size + sizeof(struct pipe_msg_hdr), in synthvid_send()
265 struct synthvid_msg msg; in synthvid_send_situ() local
270 memset(&msg, 0, sizeof(struct synthvid_msg)); in synthvid_send_situ()
272 msg.vid_hdr.type = SYNTHVID_SITUATION_UPDATE; in synthvid_send_situ()
273 msg.vid_hdr.size = sizeof(struct synthvid_msg_hdr) + in synthvid_send_situ()
275 msg.situ.user_ctx = 0; in synthvid_send_situ()
276 msg.situ.video_output_count = 1; in synthvid_send_situ()
277 msg.situ.video_output[0].active = 1; in synthvid_send_situ()
278 msg.situ.video_output[0].vram_offset = 0; in synthvid_send_situ()
279 msg.situ.video_output[0].depth_bits = info->var.bits_per_pixel; in synthvid_send_situ()
280 msg.situ.video_output[0].width_pixels = info->var.xres; in synthvid_send_situ()
281 msg.situ.video_output[0].height_pixels = info->var.yres; in synthvid_send_situ()
282 msg.situ.video_output[0].pitch_bytes = info->fix.line_length; in synthvid_send_situ()
284 synthvid_send(hdev, &msg); in synthvid_send_situ()
292 struct synthvid_msg msg; in synthvid_send_ptr() local
294 memset(&msg, 0, sizeof(struct synthvid_msg)); in synthvid_send_ptr()
295 msg.vid_hdr.type = SYNTHVID_POINTER_POSITION; in synthvid_send_ptr()
296 msg.vid_hdr.size = sizeof(struct synthvid_msg_hdr) + in synthvid_send_ptr()
298 msg.ptr_pos.is_visible = 1; in synthvid_send_ptr()
299 msg.ptr_pos.video_output = 0; in synthvid_send_ptr()
300 msg.ptr_pos.image_x = 0; in synthvid_send_ptr()
301 msg.ptr_pos.image_y = 0; in synthvid_send_ptr()
302 synthvid_send(hdev, &msg); in synthvid_send_ptr()
304 memset(&msg, 0, sizeof(struct synthvid_msg)); in synthvid_send_ptr()
305 msg.vid_hdr.type = SYNTHVID_POINTER_SHAPE; in synthvid_send_ptr()
306 msg.vid_hdr.size = sizeof(struct synthvid_msg_hdr) + in synthvid_send_ptr()
308 msg.ptr_shape.part_idx = CURSOR_COMPLETE; in synthvid_send_ptr()
309 msg.ptr_shape.is_argb = 1; in synthvid_send_ptr()
310 msg.ptr_shape.width = 1; in synthvid_send_ptr()
311 msg.ptr_shape.height = 1; in synthvid_send_ptr()
312 msg.ptr_shape.hot_x = 0; in synthvid_send_ptr()
313 msg.ptr_shape.hot_y = 0; in synthvid_send_ptr()
314 msg.ptr_shape.data[0] = 0; in synthvid_send_ptr()
315 msg.ptr_shape.data[1] = 1; in synthvid_send_ptr()
316 msg.ptr_shape.data[2] = 1; in synthvid_send_ptr()
317 msg.ptr_shape.data[3] = 1; in synthvid_send_ptr()
318 synthvid_send(hdev, &msg); in synthvid_send_ptr()
327 struct synthvid_msg msg; in synthvid_update() local
329 memset(&msg, 0, sizeof(struct synthvid_msg)); in synthvid_update()
331 msg.vid_hdr.type = SYNTHVID_DIRT; in synthvid_update()
332 msg.vid_hdr.size = sizeof(struct synthvid_msg_hdr) + in synthvid_update()
334 msg.dirt.video_output = 0; in synthvid_update()
335 msg.dirt.dirt_count = 1; in synthvid_update()
336 msg.dirt.rect[0].x1 = 0; in synthvid_update()
337 msg.dirt.rect[0].y1 = 0; in synthvid_update()
338 msg.dirt.rect[0].x2 = info->var.xres; in synthvid_update()
339 msg.dirt.rect[0].y2 = info->var.yres; in synthvid_update()
341 synthvid_send(hdev, &msg); in synthvid_update()
356 struct synthvid_msg *msg; in synthvid_recv_sub() local
362 msg = (struct synthvid_msg *)par->recv_buf; in synthvid_recv_sub()
365 if (msg->vid_hdr.type == SYNTHVID_VERSION_RESPONSE || in synthvid_recv_sub()
366 msg->vid_hdr.type == SYNTHVID_VRAM_LOCATION_ACK) { in synthvid_recv_sub()
367 memcpy(par->init_buf, msg, MAX_VMBUS_PKT_SIZE); in synthvid_recv_sub()
373 if (msg->vid_hdr.type == SYNTHVID_FEATURE_CHANGE) { in synthvid_recv_sub()
379 par->update = msg->feature_chg.is_dirt_needed; in synthvid_recv_sub()
417 struct synthvid_msg *msg = (struct synthvid_msg *)par->init_buf; in synthvid_negotiate_ver() local
421 memset(msg, 0, sizeof(struct synthvid_msg)); in synthvid_negotiate_ver()
422 msg->vid_hdr.type = SYNTHVID_VERSION_REQUEST; in synthvid_negotiate_ver()
423 msg->vid_hdr.size = sizeof(struct synthvid_msg_hdr) + in synthvid_negotiate_ver()
425 msg->ver_req.version = ver; in synthvid_negotiate_ver()
426 synthvid_send(hdev, msg); in synthvid_negotiate_ver()
434 if (!msg->ver_resp.is_accepted) { in synthvid_negotiate_ver()
491 struct synthvid_msg *msg = (struct synthvid_msg *)par->init_buf; in synthvid_send_config() local
496 memset(msg, 0, sizeof(struct synthvid_msg)); in synthvid_send_config()
497 msg->vid_hdr.type = SYNTHVID_VRAM_LOCATION; in synthvid_send_config()
498 msg->vid_hdr.size = sizeof(struct synthvid_msg_hdr) + in synthvid_send_config()
500 msg->vram.user_ctx = msg->vram.vram_gpa = info->fix.smem_start; in synthvid_send_config()
501 msg->vram.is_vram_gpa_specified = 1; in synthvid_send_config()
502 synthvid_send(hdev, msg); in synthvid_send_config()
510 if (msg->vram_ack.user_ctx != info->fix.smem_start) { in synthvid_send_config()