Home
last modified time | relevance | path

Searched refs:mode_cmd (Results 1 – 25 of 26) sorted by relevance

12

/netbsd-src/sys/external/bsd/drm2/dist/drm/radeon/
H A Dradeon_fb.c139 struct drm_mode_fb_cmd2 *mode_cmd, in radeonfb_create_pinned_object() argument
150 int height = mode_cmd->height; in radeonfb_create_pinned_object()
153 info = drm_get_format_info(rdev->ddev, mode_cmd); in radeonfb_create_pinned_object()
157 mode_cmd->pitches[0] = radeon_align_pitch(rdev, mode_cmd->width, cpp, in radeonfb_create_pinned_object()
161 height = ALIGN(mode_cmd->height, 8); in radeonfb_create_pinned_object()
162 size = mode_cmd->pitches[0] * height; in radeonfb_create_pinned_object()
191 mode_cmd->pitches[0]); in radeonfb_create_pinned_object()
234 struct drm_mode_fb_cmd2 mode_cmd; in radeonfb_create() local
242 mode_cmd.width = sizes->surface_width; in radeonfb_create()
243 mode_cmd.height = sizes->surface_height; in radeonfb_create()
[all …]
H A Dradeon_display.c1299 const struct drm_mode_fb_cmd2 *mode_cmd, in radeon_framebuffer_init() argument
1304 drm_helper_mode_fill_fb_struct(dev, fb, mode_cmd); in radeon_framebuffer_init()
1316 const struct drm_mode_fb_cmd2 *mode_cmd) in radeon_user_framebuffer_create() argument
1322 obj = drm_gem_object_lookup(file_priv, mode_cmd->handles[0]); in radeon_user_framebuffer_create()
1325 "can't create framebuffer\n", mode_cmd->handles[0]); in radeon_user_framebuffer_create()
1341 ret = radeon_framebuffer_init(dev, fb, mode_cmd, obj); in radeon_user_framebuffer_create()
/netbsd-src/sys/external/bsd/drm2/dist/drm/
H A Ddrm_modeset_helper.c86 const struct drm_mode_fb_cmd2 *mode_cmd) in drm_helper_mode_fill_fb_struct() argument
91 fb->format = drm_get_format_info(dev, mode_cmd); in drm_helper_mode_fill_fb_struct()
92 fb->width = mode_cmd->width; in drm_helper_mode_fill_fb_struct()
93 fb->height = mode_cmd->height; in drm_helper_mode_fill_fb_struct()
95 fb->pitches[i] = mode_cmd->pitches[i]; in drm_helper_mode_fill_fb_struct()
96 fb->offsets[i] = mode_cmd->offsets[i]; in drm_helper_mode_fill_fb_struct()
98 fb->modifier = mode_cmd->modifier[0]; in drm_helper_mode_fill_fb_struct()
99 fb->flags = mode_cmd->flags; in drm_helper_mode_fill_fb_struct()
H A Ddrm_fourcc.c326 const struct drm_mode_fb_cmd2 *mode_cmd) in drm_get_format_info() argument
331 info = dev->mode_config.funcs->get_format_info(mode_cmd); in drm_get_format_info()
334 info = drm_format_info(mode_cmd->pixel_format); in drm_get_format_info()
/netbsd-src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/
H A Damdgpu_fb.c136 struct drm_mode_fb_cmd2 *mode_cmd, in amdgpufb_create_pinned_object() argument
147 int height = mode_cmd->height; in amdgpufb_create_pinned_object()
154 info = drm_get_format_info(adev->ddev, mode_cmd); in amdgpufb_create_pinned_object()
158 mode_cmd->pitches[0] = amdgpu_align_pitch(adev, mode_cmd->width, cpp, in amdgpufb_create_pinned_object()
161 height = ALIGN(mode_cmd->height, 8); in amdgpufb_create_pinned_object()
162 size = mode_cmd->pitches[0] * height; in amdgpufb_create_pinned_object()
220 struct drm_mode_fb_cmd2 mode_cmd; in amdgpufb_create() local
226 mode_cmd.width = sizes->surface_width; in amdgpufb_create()
227 mode_cmd.height = sizes->surface_height; in amdgpufb_create()
232 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in amdgpufb_create()
[all …]
H A Damdgpu_display.c545 const struct drm_mode_fb_cmd2 *mode_cmd, in amdgpu_display_framebuffer_init() argument
550 drm_helper_mode_fill_fb_struct(dev, &rfb->base, mode_cmd); in amdgpu_display_framebuffer_init()
562 const struct drm_mode_fb_cmd2 *mode_cmd) in amdgpu_display_user_framebuffer_create() argument
568 obj = drm_gem_object_lookup(file_priv, mode_cmd->handles[0]); in amdgpu_display_user_framebuffer_create()
571 "can't create framebuffer\n", mode_cmd->handles[0]); in amdgpu_display_user_framebuffer_create()
587 ret = amdgpu_display_framebuffer_init(dev, amdgpu_fb, mode_cmd, obj); in amdgpu_display_user_framebuffer_create()
H A Damdgpu_display.h48 const struct drm_mode_fb_cmd2 *mode_cmd);
H A Damdgpu_mode.h603 const struct drm_mode_fb_cmd2 *mode_cmd,
/netbsd-src/sys/external/bsd/drm2/drm/
H A Ddrm_gem_framebuffer_helper.c99 const struct drm_mode_fb_cmd2 *mode_cmd, in drm_gem_fb_create_with_funcs() argument
117 drm_helper_mode_fill_fb_struct(dev, fb, mode_cmd); in drm_gem_fb_create_with_funcs()
127 unsigned handle = mode_cmd->handles[plane]; in drm_gem_fb_create_with_funcs()
138 size = (mode_cmd->height/vsub - 1)*mode_cmd->pitches[plane] in drm_gem_fb_create_with_funcs()
139 + (mode_cmd->width/hsub)*fb->format->cpp[plane] in drm_gem_fb_create_with_funcs()
140 + mode_cmd->offsets[plane]; in drm_gem_fb_create_with_funcs()
/netbsd-src/sys/external/bsd/drm2/dist/drm/nouveau/
H A Dnouveau_display.c239 const struct drm_mode_fb_cmd2 *mode_cmd, in nouveau_framebuffer_new() argument
250 (mode_cmd->pixel_format == DRM_FORMAT_YUYV || in nouveau_framebuffer_new()
251 mode_cmd->pixel_format == DRM_FORMAT_UYVY || in nouveau_framebuffer_new()
252 mode_cmd->pixel_format == DRM_FORMAT_NV12 || in nouveau_framebuffer_new()
253 mode_cmd->pixel_format == DRM_FORMAT_NV21) && in nouveau_framebuffer_new()
254 (mode_cmd->pitches[0] & 0x3f || /* align 64 */ in nouveau_framebuffer_new()
255 mode_cmd->pitches[0] >= 0x10000 || /* at most 64k pitch */ in nouveau_framebuffer_new()
256 (mode_cmd->pitches[1] && /* pitches for planes must match */ in nouveau_framebuffer_new()
257 mode_cmd->pitches[0] != mode_cmd->pitches[1]))) { in nouveau_framebuffer_new()
260 drm_get_format_name(mode_cmd->pixel_format, in nouveau_framebuffer_new()
[all …]
H A Dnouveau_fbcon.c365 struct drm_mode_fb_cmd2 mode_cmd; in nouveau_fbcon_create() local
368 mode_cmd.width = sizes->surface_width; in nouveau_fbcon_create()
369 mode_cmd.height = sizes->surface_height; in nouveau_fbcon_create()
371 mode_cmd.pitches[0] = mode_cmd.width * (sizes->surface_bpp >> 3); in nouveau_fbcon_create()
372 mode_cmd.pitches[0] = roundup(mode_cmd.pitches[0], 256); in nouveau_fbcon_create()
374 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in nouveau_fbcon_create()
377 ret = nouveau_gem_new(&drm->client, mode_cmd.pitches[0] * in nouveau_fbcon_create()
378 mode_cmd.height, 0, NOUVEAU_GEM_DOMAIN_VRAM, in nouveau_fbcon_create()
385 ret = nouveau_framebuffer_new(dev, &mode_cmd, nvbo, &fb); in nouveau_fbcon_create()
421 nfa.nfa_fb_linebytes = mode_cmd.pitches[0]; in nouveau_fbcon_create()
/netbsd-src/sys/external/bsd/drm2/dist/include/drm/
H A Ddrm_gem_framebuffer_helper.h25 const struct drm_mode_fb_cmd2 *mode_cmd,
29 const struct drm_mode_fb_cmd2 *mode_cmd);
32 const struct drm_mode_fb_cmd2 *mode_cmd);
H A Ddrm_mode_config.h81 const struct drm_mode_fb_cmd2 *mode_cmd);
94 const struct drm_format_info *(*get_format_info)(const struct drm_mode_fb_cmd2 *mode_cmd);
H A Ddrm_modeset_helper.h38 const struct drm_mode_fb_cmd2 *mode_cmd);
H A Ddrm_fourcc.h313 const struct drm_mode_fb_cmd2 *mode_cmd);
/netbsd-src/sys/external/bsd/drm2/dist/drm/virtio/
H A Dvirtgpu_display.c73 const struct drm_mode_fb_cmd2 *mode_cmd, in virtio_gpu_framebuffer_init() argument
80 drm_helper_mode_fill_fb_struct(dev, &vgfb->base, mode_cmd); in virtio_gpu_framebuffer_init()
303 const struct drm_mode_fb_cmd2 *mode_cmd) in virtio_gpu_user_framebuffer_create() argument
309 if (mode_cmd->pixel_format != DRM_FORMAT_HOST_XRGB8888 && in virtio_gpu_user_framebuffer_create()
310 mode_cmd->pixel_format != DRM_FORMAT_HOST_ARGB8888) in virtio_gpu_user_framebuffer_create()
314 obj = drm_gem_object_lookup(file_priv, mode_cmd->handles[0]); in virtio_gpu_user_framebuffer_create()
322 ret = virtio_gpu_framebuffer_init(dev, virtio_gpu_fb, mode_cmd, obj); in virtio_gpu_user_framebuffer_create()
/netbsd-src/sys/external/bsd/drm2/dist/drm/vmwgfx/
H A Dvmwgfx_fb.c506 struct drm_mode_fb_cmd2 mode_cmd; in vmw_fb_kms_framebuffer() local
518 mode_cmd.width = var->xres; in vmw_fb_kms_framebuffer()
519 mode_cmd.height = var->yres; in vmw_fb_kms_framebuffer()
520 mode_cmd.pitches[0] = ((var->bits_per_pixel + 7) / 8) * mode_cmd.width; in vmw_fb_kms_framebuffer()
521 mode_cmd.pixel_format = in vmw_fb_kms_framebuffer()
525 if (cur_fb && cur_fb->width == mode_cmd.width && in vmw_fb_kms_framebuffer()
526 cur_fb->height == mode_cmd.height && in vmw_fb_kms_framebuffer()
527 cur_fb->format->format == mode_cmd.pixel_format && in vmw_fb_kms_framebuffer()
528 cur_fb->pitches[0] == mode_cmd.pitches[0]) in vmw_fb_kms_framebuffer()
532 new_bo_size = (size_t) mode_cmd.pitches[0] * (size_t) mode_cmd.height; in vmw_fb_kms_framebuffer()
[all …]
H A Dvmwgfx_kms.c894 *mode_cmd, in vmw_kms_new_framebuffer_surface()
918 surface->base_size.width < mode_cmd->width || in vmw_kms_new_framebuffer_surface()
919 surface->base_size.height < mode_cmd->height || in vmw_kms_new_framebuffer_surface()
926 switch (mode_cmd->pixel_format) { in vmw_kms_new_framebuffer_surface()
941 drm_get_format_name(mode_cmd->pixel_format, &format_name)); in vmw_kms_new_framebuffer_surface()
960 drm_helper_mode_fill_fb_struct(dev, &vfbs->base.base, mode_cmd); in vmw_kms_new_framebuffer_surface()
962 vfbs->base.user_handle = mode_cmd->handles[0]; in vmw_kms_new_framebuffer_surface()
1148 const struct drm_mode_fb_cmd2 *mode_cmd, in vmw_create_bo_proxy() argument
1159 switch (mode_cmd->pixel_format) { in vmw_create_bo_proxy()
1179 drm_get_format_name(mode_cmd->pixel_format, &format_name)); in vmw_create_bo_proxy()
[all …]
H A Dvmwgfx_kms.h443 const struct drm_mode_fb_cmd2 *mode_cmd);
/netbsd-src/sys/external/bsd/drm2/dist/drm/i915/display/
H A Dintel_fbdev.c134 struct drm_mode_fb_cmd2 mode_cmd = {}; in intelfb_alloc() local
142 mode_cmd.width = sizes->surface_width; in intelfb_alloc()
143 mode_cmd.height = sizes->surface_height; in intelfb_alloc()
145 mode_cmd.pitches[0] = ALIGN(mode_cmd.width * in intelfb_alloc()
147 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in intelfb_alloc()
150 size = mode_cmd.pitches[0] * mode_cmd.height; in intelfb_alloc()
166 fb = intel_framebuffer_create(obj, &mode_cmd); in intelfb_alloc()
H A Dintel_display.c163 struct drm_mode_fb_cmd2 *mode_cmd);
3395 struct drm_mode_fb_cmd2 mode_cmd = { 0 }; in intel_alloc_initial_plane_obj() local
3444 mode_cmd.pixel_format = fb->format->format; in intel_alloc_initial_plane_obj()
3445 mode_cmd.width = fb->width; in intel_alloc_initial_plane_obj()
3446 mode_cmd.height = fb->height; in intel_alloc_initial_plane_obj()
3447 mode_cmd.pitches[0] = fb->pitches[0]; in intel_alloc_initial_plane_obj()
3448 mode_cmd.modifier[0] = fb->modifier; in intel_alloc_initial_plane_obj()
3449 mode_cmd.flags = DRM_MODE_FB_MODIFIERS; in intel_alloc_initial_plane_obj()
3451 if (intel_framebuffer_init(to_intel_framebuffer(fb), obj, &mode_cmd)) { in intel_alloc_initial_plane_obj()
11651 struct drm_mode_fb_cmd2 *mode_cmd) in intel_framebuffer_create() argument
[all …]
H A Dintel_display.h565 struct drm_mode_fb_cmd2 *mode_cmd);
/netbsd-src/sys/dev/scsipi/
H A Dss_mustek.c271 struct mustek_mode_select_cmd mode_cmd; in mustek_trigger_scanner() local
326 memset(&mode_cmd, 0, sizeof(mode_cmd)); in mustek_trigger_scanner()
327 mode_cmd.opcode = MUSTEK_MODE_SELECT; in mustek_trigger_scanner()
328 _lto2b(sizeof(mode_data), mode_cmd.length); in mustek_trigger_scanner()
356 error = scsipi_command(periph, (void *)&mode_cmd, sizeof(mode_cmd), in mustek_trigger_scanner()
/netbsd-src/sys/external/bsd/drm2/dist/drm/xen/
H A Dxen_drm_front_kms.c60 const struct drm_mode_fb_cmd2 *mode_cmd) in fb_create() argument
67 fb = drm_gem_fb_create_with_funcs(dev, filp, mode_cmd, &fb_funcs); in fb_create()
/netbsd-src/sys/external/bsd/drm2/dist/drm/qxl/
H A Dqxl_display.c1143 const struct drm_mode_fb_cmd2 *mode_cmd) in qxl_user_framebuffer_create() argument
1145 return drm_gem_fb_create_with_funcs(dev, file_priv, mode_cmd, in qxl_user_framebuffer_create()

12