Searched refs:mode_cmd (Results 1 – 1 of 1) sorted by relevance
| /f-stack/freebsd/arm/nvidia/drm2/ |
| H A D | tegra_fb.c | 91 fb_alloc(struct drm_device *drm, struct drm_mode_fb_cmd2 *mode_cmd, in fb_alloc() argument 103 drm_helper_mode_fill_fb_struct(&fb->drm_fb, mode_cmd); in fb_alloc() 126 struct drm_mode_fb_cmd2 mode_cmd; in tegra_fb_probe() local 142 memset(&mode_cmd, 0, sizeof(mode_cmd)); in tegra_fb_probe() 143 mode_cmd.width = sizes->surface_width; in tegra_fb_probe() 144 mode_cmd.height = sizes->surface_height; in tegra_fb_probe() 145 mode_cmd.pitches[0] = roundup(sizes->surface_width * bpp, in tegra_fb_probe() 147 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in tegra_fb_probe() 149 size = mode_cmd.pitches[0] * mode_cmd.height; in tegra_fb_probe() 165 rv = fb_alloc(drm_dev, &mode_cmd, &bo, 1, &fb); in tegra_fb_probe()
|