Lines Matching defs:init
681 static int savage_do_init_bci(struct drm_device *dev, drm_savage_init_t *init)
685 if (init->fb_bpp != 16 && init->fb_bpp != 32) {
686 DRM_ERROR("invalid frame buffer bpp %d!\n", init->fb_bpp);
689 if (init->depth_bpp != 16 && init->depth_bpp != 32) {
690 DRM_ERROR("invalid depth buffer bpp %d!\n", init->fb_bpp);
693 if (init->dma_type != SAVAGE_DMA_AGP &&
694 init->dma_type != SAVAGE_DMA_PCI) {
695 DRM_ERROR("invalid dma memory type %d!\n", init->dma_type);
699 dev_priv->cob_size = init->cob_size;
700 dev_priv->bci_threshold_lo = init->bci_threshold_lo;
701 dev_priv->bci_threshold_hi = init->bci_threshold_hi;
702 dev_priv->dma_type = init->dma_type;
704 dev_priv->fb_bpp = init->fb_bpp;
705 dev_priv->front_offset = init->front_offset;
706 dev_priv->front_pitch = init->front_pitch;
707 dev_priv->back_offset = init->back_offset;
708 dev_priv->back_pitch = init->back_pitch;
709 dev_priv->depth_bpp = init->depth_bpp;
710 dev_priv->depth_offset = init->depth_offset;
711 dev_priv->depth_pitch = init->depth_pitch;
713 dev_priv->texture_offset = init->texture_offset;
714 dev_priv->texture_size = init->texture_size;
722 if (init->status_offset != 0) {
723 dev_priv->status = drm_core_findmap(dev, init->status_offset);
732 if (dev_priv->dma_type == SAVAGE_DMA_AGP && init->buffers_offset) {
733 dev->agp_buffer_token = init->buffers_offset;
735 init->buffers_offset);
748 if (init->agp_textures_offset) {
750 drm_core_findmap(dev, init->agp_textures_offset);
760 if (init->cmd_dma_offset) {
773 dev_priv->cmd_dma = drm_core_findmap(dev, init->cmd_dma_offset);
822 init->sarea_priv_offset);
935 drm_savage_init_t *init = data;
939 switch (init->func) {
941 return savage_do_init_bci(dev, init);