Lines Matching defs:init
352 static int r128_do_init_cce(struct drm_device * dev, drm_r128_init_t * init)
364 dev_priv->is_pci = init->is_pci;
373 dev_priv->usec_timeout = init->usec_timeout;
382 dev_priv->cce_mode = init->cce_mode;
392 if ((init->cce_mode != R128_PM4_192BM) &&
393 (init->cce_mode != R128_PM4_128BM_64INDBM) &&
394 (init->cce_mode != R128_PM4_64BM_128INDBM) &&
395 (init->cce_mode != R128_PM4_64BM_64VCBM_64INDBM)) {
402 switch (init->cce_mode) {
423 switch (init->fb_bpp) {
432 dev_priv->front_offset = init->front_offset;
433 dev_priv->front_pitch = init->front_pitch;
434 dev_priv->back_offset = init->back_offset;
435 dev_priv->back_pitch = init->back_pitch;
437 switch (init->depth_bpp) {
447 dev_priv->depth_offset = init->depth_offset;
448 dev_priv->depth_pitch = init->depth_pitch;
449 dev_priv->span_offset = init->span_offset;
469 dev_priv->mmio = drm_core_findmap(dev, init->mmio_offset);
476 dev_priv->cce_ring = drm_core_findmap(dev, init->ring_offset);
483 dev_priv->ring_rptr = drm_core_findmap(dev, init->ring_rptr_offset);
490 dev->agp_buffer_token = init->buffers_offset;
491 dev->agp_buffer_map = drm_core_findmap(dev, init->buffers_offset);
501 drm_core_findmap(dev, init->agp_textures_offset);
512 init->sarea_priv_offset);
547 + init->ring_size / sizeof(u32));
548 dev_priv->ring.size = init->ring_size;
549 dev_priv->ring.size_l2qw = drm_order(init->ring_size / 8);
571 DRM_ERROR("failed to init PCI GART!\n");
632 drm_r128_init_t *init = data;
638 switch (init->func) {
640 return r128_do_init_cce(dev, init);
715 DRM_DEBUG("called before init done\n");