Lines Matching full:hv

27 	struct hyperv_drm_device *hv = to_hv(fb->dev);  in hyperv_blit_to_vram_rect()  local
28 struct iosys_map dst = IOSYS_MAP_INIT_VADDR_IOMEM(hv->vram); in hyperv_blit_to_vram_rect()
31 if (!drm_dev_enter(&hv->dev, &idx)) in hyperv_blit_to_vram_rect()
56 struct hyperv_drm_device *hv = to_hv(connector->dev); in hyperv_connector_get_modes() local
62 drm_set_preferred_mode(connector, hv->preferred_width, in hyperv_connector_get_modes()
63 hv->preferred_height); in hyperv_connector_get_modes()
80 static inline int hyperv_conn_init(struct hyperv_drm_device *hv) in hyperv_conn_init() argument
82 drm_connector_helper_add(&hv->connector, &hyperv_connector_helper_funcs); in hyperv_conn_init()
83 return drm_connector_init(&hv->dev, &hv->connector, in hyperv_conn_init()
88 static int hyperv_check_size(struct hyperv_drm_device *hv, int w, int h, in hyperv_check_size() argument
91 u32 pitch = w * (hv->screen_depth / 8); in hyperv_check_size()
96 if (pitch * h > hv->fb_size) in hyperv_check_size()
106 struct hyperv_drm_device *hv = to_hv(pipe->crtc.dev); in hyperv_pipe_enable() local
109 hyperv_hide_hw_ptr(hv->hdev); in hyperv_pipe_enable()
110 hyperv_update_situation(hv->hdev, 1, hv->screen_depth, in hyperv_pipe_enable()
121 struct hyperv_drm_device *hv = to_hv(pipe->crtc.dev); in hyperv_pipe_check() local
127 if (fb->pitches[0] * fb->height > hv->fb_size) { in hyperv_pipe_check()
128 drm_err(&hv->dev, "fb size requested by %s for %dX%d (pitch %d) greater than %ld\n", in hyperv_pipe_check()
129 current->comm, fb->width, fb->height, fb->pitches[0], hv->fb_size); in hyperv_pipe_check()
139 struct hyperv_drm_device *hv = to_hv(pipe->crtc.dev); in hyperv_pipe_update() local
146 hyperv_update_dirt(hv->hdev, &rect); in hyperv_pipe_update()
166 static inline int hyperv_pipe_init(struct hyperv_drm_device *hv) in hyperv_pipe_init() argument
170 ret = drm_simple_display_pipe_init(&hv->dev, in hyperv_pipe_init()
171 &hv->pipe, in hyperv_pipe_init()
176 &hv->connector); in hyperv_pipe_init()
180 drm_plane_enable_fb_damage_clips(&hv->pipe.plane); in hyperv_pipe_init()
189 struct hyperv_drm_device *hv = to_hv(dev); in hyperv_mode_valid() local
191 if (hyperv_check_size(hv, mode->hdisplay, mode->vdisplay, NULL)) in hyperv_mode_valid()
204 int hyperv_mode_config_init(struct hyperv_drm_device *hv) in hyperv_mode_config_init() argument
206 struct drm_device *dev = &hv->dev; in hyperv_mode_config_init()
217 dev->mode_config.max_width = hv->screen_width_max; in hyperv_mode_config_init()
218 dev->mode_config.max_height = hv->screen_height_max; in hyperv_mode_config_init()
220 dev->mode_config.preferred_depth = hv->screen_depth; in hyperv_mode_config_init()
225 ret = hyperv_conn_init(hv); in hyperv_mode_config_init()
231 ret = hyperv_pipe_init(hv); in hyperv_mode_config_init()