Lines Matching refs:hv

26 	struct hyperv_drm_device *hv = to_hv(fb->dev);  in hyperv_blit_to_vram_rect()  local
27 struct iosys_map dst = IOSYS_MAP_INIT_VADDR_IOMEM(hv->vram); in hyperv_blit_to_vram_rect()
30 if (!drm_dev_enter(&hv->dev, &idx)) in hyperv_blit_to_vram_rect()
55 struct hyperv_drm_device *hv = to_hv(connector->dev); in hyperv_connector_get_modes() local
61 drm_set_preferred_mode(connector, hv->preferred_width, in hyperv_connector_get_modes()
62 hv->preferred_height); in hyperv_connector_get_modes()
79 static inline int hyperv_conn_init(struct hyperv_drm_device *hv) in hyperv_conn_init() argument
81 drm_connector_helper_add(&hv->connector, &hyperv_connector_helper_funcs); in hyperv_conn_init()
82 return drm_connector_init(&hv->dev, &hv->connector, in hyperv_conn_init()
87 static int hyperv_check_size(struct hyperv_drm_device *hv, int w, int h, in hyperv_check_size() argument
90 u32 pitch = w * (hv->screen_depth / 8); in hyperv_check_size()
95 if (pitch * h > hv->fb_size) in hyperv_check_size()
105 struct hyperv_drm_device *hv = to_hv(pipe->crtc.dev); in hyperv_pipe_enable() local
108 hyperv_hide_hw_ptr(hv->hdev); in hyperv_pipe_enable()
109 hyperv_update_situation(hv->hdev, 1, hv->screen_depth, in hyperv_pipe_enable()
120 struct hyperv_drm_device *hv = to_hv(pipe->crtc.dev); in hyperv_pipe_check() local
126 if (fb->pitches[0] * fb->height > hv->fb_size) { in hyperv_pipe_check()
127 drm_err(&hv->dev, "fb size requested by %s for %dX%d (pitch %d) greater than %ld\n", in hyperv_pipe_check()
128 current->comm, fb->width, fb->height, fb->pitches[0], hv->fb_size); in hyperv_pipe_check()
138 struct hyperv_drm_device *hv = to_hv(pipe->crtc.dev); in hyperv_pipe_update() local
145 hyperv_update_dirt(hv->hdev, &rect); in hyperv_pipe_update()
165 static inline int hyperv_pipe_init(struct hyperv_drm_device *hv) in hyperv_pipe_init() argument
169 ret = drm_simple_display_pipe_init(&hv->dev, in hyperv_pipe_init()
170 &hv->pipe, in hyperv_pipe_init()
175 &hv->connector); in hyperv_pipe_init()
179 drm_plane_enable_fb_damage_clips(&hv->pipe.plane); in hyperv_pipe_init()
188 struct hyperv_drm_device *hv = to_hv(dev); in hyperv_mode_valid() local
190 if (hyperv_check_size(hv, mode->hdisplay, mode->vdisplay, NULL)) in hyperv_mode_valid()
203 int hyperv_mode_config_init(struct hyperv_drm_device *hv) in hyperv_mode_config_init() argument
205 struct drm_device *dev = &hv->dev; in hyperv_mode_config_init()
216 dev->mode_config.max_width = hv->screen_width_max; in hyperv_mode_config_init()
217 dev->mode_config.max_height = hv->screen_height_max; in hyperv_mode_config_init()
219 dev->mode_config.preferred_depth = hv->screen_depth; in hyperv_mode_config_init()
224 ret = hyperv_conn_init(hv); in hyperv_mode_config_init()
230 ret = hyperv_pipe_init(hv); in hyperv_mode_config_init()