Lines Matching refs:mode_cmd
520 *mode_cmd, in vmw_kms_new_framebuffer_surface()
543 surface->base_size.width < mode_cmd->width || in vmw_kms_new_framebuffer_surface()
544 surface->base_size.height < mode_cmd->height || in vmw_kms_new_framebuffer_surface()
551 switch (mode_cmd->depth) { in vmw_kms_new_framebuffer_surface()
565 DRM_ERROR("Invalid color depth: %d\n", mode_cmd->depth); in vmw_kms_new_framebuffer_surface()
585 vfbs->base.base.bits_per_pixel = mode_cmd->bpp; in vmw_kms_new_framebuffer_surface()
586 vfbs->base.base.pitches[0] = mode_cmd->pitch; in vmw_kms_new_framebuffer_surface()
587 vfbs->base.base.depth = mode_cmd->depth; in vmw_kms_new_framebuffer_surface()
588 vfbs->base.base.width = mode_cmd->width; in vmw_kms_new_framebuffer_surface()
589 vfbs->base.base.height = mode_cmd->height; in vmw_kms_new_framebuffer_surface()
591 vfbs->base.user_handle = mode_cmd->handle; in vmw_kms_new_framebuffer_surface()
759 const struct drm_mode_fb_cmd *mode_cmd, in vmw_create_dmabuf_proxy() argument
769 switch (mode_cmd->depth) { in vmw_create_dmabuf_proxy()
788 DRM_ERROR("Invalid framebuffer format %d\n", mode_cmd->depth); in vmw_create_dmabuf_proxy()
792 content_base_size.width = mode_cmd->pitch / bytes_pp; in vmw_create_dmabuf_proxy()
793 content_base_size.height = mode_cmd->height; in vmw_create_dmabuf_proxy()
831 *mode_cmd) in vmw_kms_new_framebuffer_dmabuf()
839 requested_size = mode_cmd->height * mode_cmd->pitch; in vmw_kms_new_framebuffer_dmabuf()
848 switch (mode_cmd->depth) { in vmw_kms_new_framebuffer_dmabuf()
852 if (mode_cmd->bpp == 32) in vmw_kms_new_framebuffer_dmabuf()
856 mode_cmd->depth, mode_cmd->bpp); in vmw_kms_new_framebuffer_dmabuf()
861 if (mode_cmd->bpp == 16) in vmw_kms_new_framebuffer_dmabuf()
865 mode_cmd->depth, mode_cmd->bpp); in vmw_kms_new_framebuffer_dmabuf()
868 DRM_ERROR("Invalid color depth: %d\n", mode_cmd->depth); in vmw_kms_new_framebuffer_dmabuf()
879 vfbd->base.base.bits_per_pixel = mode_cmd->bpp; in vmw_kms_new_framebuffer_dmabuf()
880 vfbd->base.base.pitches[0] = mode_cmd->pitch; in vmw_kms_new_framebuffer_dmabuf()
881 vfbd->base.base.depth = mode_cmd->depth; in vmw_kms_new_framebuffer_dmabuf()
882 vfbd->base.base.width = mode_cmd->width; in vmw_kms_new_framebuffer_dmabuf()
883 vfbd->base.base.height = mode_cmd->height; in vmw_kms_new_framebuffer_dmabuf()
886 vfbd->base.user_handle = mode_cmd->handle; in vmw_kms_new_framebuffer_dmabuf()
920 const struct drm_mode_fb_cmd *mode_cmd) in vmw_kms_new_framebuffer() argument
933 ret = vmw_create_dmabuf_proxy(dev_priv->dev, mode_cmd, in vmw_kms_new_framebuffer()
944 mode_cmd, in vmw_kms_new_framebuffer()
955 mode_cmd); in vmw_kms_new_framebuffer()
983 struct drm_mode_fb_cmd mode_cmd; in vmw_kms_fb_create() local
986 mode_cmd.width = mode_cmd2->width; in vmw_kms_fb_create()
987 mode_cmd.height = mode_cmd2->height; in vmw_kms_fb_create()
988 mode_cmd.pitch = mode_cmd2->pitches[0]; in vmw_kms_fb_create()
989 mode_cmd.handle = mode_cmd2->handles[0]; in vmw_kms_fb_create()
990 drm_fb_get_bpp_depth(mode_cmd2->pixel_format, &mode_cmd.depth, in vmw_kms_fb_create()
991 &mode_cmd.bpp); in vmw_kms_fb_create()
1000 mode_cmd.pitch, in vmw_kms_fb_create()
1001 mode_cmd.height)) { in vmw_kms_fb_create()
1015 user_obj = ttm_base_object_lookup(tfile, mode_cmd.handle); in vmw_kms_fb_create()
1027 mode_cmd.handle, in vmw_kms_fb_create()
1034 &mode_cmd); in vmw_kms_fb_create()