Lines Matching refs:drm_dev
127 struct drm_device *drm_dev; in tegra_fb_probe() local
136 drm_dev = helper->dev; in tegra_fb_probe()
138 drm = container_of(drm_dev, struct tegra_drm, drm_dev); in tegra_fb_probe()
151 DRM_LOCK(drm_dev); in tegra_fb_probe()
152 rv = tegra_bo_create(drm_dev, size, &bo); in tegra_fb_probe()
153 DRM_UNLOCK(drm_dev); in tegra_fb_probe()
159 device_printf(drm_dev->dev, in tegra_fb_probe()
165 rv = fb_alloc(drm_dev, &mode_cmd, &bo, 1, &fb); in tegra_fb_probe()
167 device_printf(drm_dev->dev, in tegra_fb_probe()
203 tegra_drm_fb_getinfo(struct drm_device *drm_dev) in tegra_drm_fb_getinfo() argument
208 drm = container_of(drm_dev, struct tegra_drm, drm_dev); in tegra_drm_fb_getinfo()
227 tegra_drm_fb_init(struct drm_device *drm_dev) in tegra_drm_fb_init() argument
233 drm = drm_dev->dev_private; in tegra_drm_fb_init()
234 drm = container_of(drm_dev, struct tegra_drm, drm_dev); in tegra_drm_fb_init()
239 rv = drm_fb_helper_init(drm_dev, &fb->fb_helper, in tegra_drm_fb_init()
240 drm_dev->mode_config.num_crtc, drm_dev->mode_config.num_connector); in tegra_drm_fb_init()
242 device_printf(drm_dev->dev, in tegra_drm_fb_init()
249 device_printf(drm_dev->dev, "Cannot add all connectors: %d\n", in tegra_drm_fb_init()
256 device_printf(drm_dev->dev, in tegra_drm_fb_init()
321 tegra_drm_fb_destroy(struct drm_device *drm_dev) in tegra_drm_fb_destroy() argument
327 drm = container_of(drm_dev, struct tegra_drm, drm_dev); in tegra_drm_fb_destroy()