Lines Matching defs:init
805 static int mga_do_init_dma(struct drm_device * dev, drm_mga_init_t * init)
814 if (init->sgram) {
819 dev_priv->maccess = init->maccess;
821 dev_priv->fb_cpp = init->fb_cpp;
822 dev_priv->front_offset = init->front_offset;
823 dev_priv->front_pitch = init->front_pitch;
824 dev_priv->back_offset = init->back_offset;
825 dev_priv->back_pitch = init->back_pitch;
827 dev_priv->depth_cpp = init->depth_cpp;
828 dev_priv->depth_offset = init->depth_offset;
829 dev_priv->depth_pitch = init->depth_pitch;
833 dev_priv->texture_offset = init->texture_offset[0];
834 dev_priv->texture_size = init->texture_size[0];
847 dev_priv->status = drm_core_findmap(dev, init->status_offset);
852 dev_priv->mmio = drm_core_findmap(dev, init->mmio_offset);
857 dev_priv->warp = drm_core_findmap(dev, init->warp_offset);
862 dev_priv->primary = drm_core_findmap(dev, init->primary_offset);
867 dev->agp_buffer_token = init->buffers_offset;
869 drm_core_findmap(dev, init->buffers_offset);
882 init->sarea_priv_offset);
901 DRM_ERROR("failed to init WARP engine: %d!\n", ret);
1017 drm_mga_init_t *init = data;
1022 switch (init->func) {
1024 err = mga_do_init_dma(dev, init);