Lines Matching refs:dev
26 __FBSDID("$FreeBSD: releng/11.0/sys/dev/drm/via_map.c 207066 2010-04-22 18:21:25Z rnoland $");
28 #include "dev/drm/drmP.h"
29 #include "dev/drm/via_drm.h"
30 #include "dev/drm/via_drv.h"
32 static int via_do_init_map(struct drm_device * dev, drm_via_init_t * init)
34 drm_via_private_t *dev_priv = dev->dev_private;
38 dev_priv->sarea = drm_getsarea(dev);
41 dev->dev_private = (void *)dev_priv;
42 via_do_cleanup_map(dev);
46 dev_priv->fb = drm_core_findmap(dev, init->fb_offset);
49 dev->dev_private = (void *)dev_priv;
50 via_do_cleanup_map(dev);
53 dev_priv->mmio = drm_core_findmap(dev, init->mmio_offset);
56 dev->dev_private = (void *)dev_priv;
57 via_do_cleanup_map(dev);
69 via_init_dmablit(dev);
71 dev->dev_private = (void *)dev_priv;
75 int via_do_cleanup_map(struct drm_device * dev)
77 via_dma_cleanup(dev);
82 int via_map_init(struct drm_device *dev, void *data, struct drm_file *file_priv)
90 return via_do_init_map(dev, init);
92 return via_do_cleanup_map(dev);
98 int via_driver_load(struct drm_device *dev, unsigned long chipset)
107 dev->dev_private = (void *)dev_priv;
117 ret = drm_vblank_init(dev, 1);
127 int via_driver_unload(struct drm_device *dev)
129 drm_via_private_t *dev_priv = dev->dev_private;
134 dev->dev_private = NULL;