Lines Matching full:hv
25 struct hyperv_drm_device *hv = to_hv(fb->dev); in hyperv_blit_to_vram_rect() local
29 if (!drm_dev_enter(&hv->dev, &idx)) in hyperv_blit_to_vram_rect()
32 drm_fb_memcpy_dstclip(hv->vram, fb->pitches[0], vmap, fb, rect); in hyperv_blit_to_vram_rect()
51 struct hyperv_drm_device *hv = to_hv(connector->dev); in hyperv_connector_get_modes() local
57 drm_set_preferred_mode(connector, hv->preferred_width, in hyperv_connector_get_modes()
58 hv->preferred_height); in hyperv_connector_get_modes()
75 static inline int hyperv_conn_init(struct hyperv_drm_device *hv) in hyperv_conn_init() argument
77 drm_connector_helper_add(&hv->connector, &hyperv_connector_helper_funcs); in hyperv_conn_init()
78 return drm_connector_init(&hv->dev, &hv->connector, in hyperv_conn_init()
83 static int hyperv_check_size(struct hyperv_drm_device *hv, int w, int h, in hyperv_check_size() argument
86 u32 pitch = w * (hv->screen_depth / 8); in hyperv_check_size()
91 if (pitch * h > hv->fb_size) in hyperv_check_size()
101 struct hyperv_drm_device *hv = to_hv(pipe->crtc.dev); in hyperv_pipe_enable() local
104 hyperv_hide_hw_ptr(hv->hdev); in hyperv_pipe_enable()
105 hyperv_update_situation(hv->hdev, 1, hv->screen_depth, in hyperv_pipe_enable()
116 struct hyperv_drm_device *hv = to_hv(pipe->crtc.dev); in hyperv_pipe_check() local
122 if (fb->pitches[0] * fb->height > hv->fb_size) in hyperv_pipe_check()
131 struct hyperv_drm_device *hv = to_hv(pipe->crtc.dev); in hyperv_pipe_update() local
138 hyperv_update_dirt(hv->hdev, &rect); in hyperv_pipe_update()
158 static inline int hyperv_pipe_init(struct hyperv_drm_device *hv) in hyperv_pipe_init() argument
162 ret = drm_simple_display_pipe_init(&hv->dev, in hyperv_pipe_init()
163 &hv->pipe, in hyperv_pipe_init()
168 &hv->connector); in hyperv_pipe_init()
172 drm_plane_enable_fb_damage_clips(&hv->pipe.plane); in hyperv_pipe_init()
181 struct hyperv_drm_device *hv = to_hv(dev); in hyperv_mode_valid() local
183 if (hyperv_check_size(hv, mode->hdisplay, mode->vdisplay, NULL)) in hyperv_mode_valid()
196 int hyperv_mode_config_init(struct hyperv_drm_device *hv) in hyperv_mode_config_init() argument
198 struct drm_device *dev = &hv->dev; in hyperv_mode_config_init()
209 dev->mode_config.max_width = hv->screen_width_max; in hyperv_mode_config_init()
210 dev->mode_config.max_height = hv->screen_height_max; in hyperv_mode_config_init()
212 dev->mode_config.preferred_depth = hv->screen_depth; in hyperv_mode_config_init()
217 ret = hyperv_conn_init(hv); in hyperv_mode_config_init()
223 ret = hyperv_pipe_init(hv); in hyperv_mode_config_init()