Lines Matching refs:init
375 static int r128_do_init_cce( drm_device_t *dev, drm_r128_init_t *init ) in r128_do_init_cce() argument
392 dev_priv->is_pci = init->is_pci; in r128_do_init_cce()
401 dev_priv->usec_timeout = init->usec_timeout; in r128_do_init_cce()
410 dev_priv->cce_mode = init->cce_mode; in r128_do_init_cce()
420 if ( ( init->cce_mode != R128_PM4_192BM ) && in r128_do_init_cce()
421 ( init->cce_mode != R128_PM4_128BM_64INDBM ) && in r128_do_init_cce()
422 ( init->cce_mode != R128_PM4_64BM_128INDBM ) && in r128_do_init_cce()
423 ( init->cce_mode != R128_PM4_64BM_64VCBM_64INDBM ) ) { in r128_do_init_cce()
430 switch ( init->cce_mode ) { in r128_do_init_cce()
451 switch ( init->fb_bpp ) { in r128_do_init_cce()
460 dev_priv->front_offset = init->front_offset; in r128_do_init_cce()
461 dev_priv->front_pitch = init->front_pitch; in r128_do_init_cce()
462 dev_priv->back_offset = init->back_offset; in r128_do_init_cce()
463 dev_priv->back_pitch = init->back_pitch; in r128_do_init_cce()
465 switch ( init->depth_bpp ) { in r128_do_init_cce()
475 dev_priv->depth_offset = init->depth_offset; in r128_do_init_cce()
476 dev_priv->depth_pitch = init->depth_pitch; in r128_do_init_cce()
477 dev_priv->span_offset = init->span_offset; in r128_do_init_cce()
498 DRM_FIND_MAP( dev_priv->fb, init->fb_offset ); in r128_do_init_cce()
505 DRM_FIND_MAP( dev_priv->mmio, init->mmio_offset ); in r128_do_init_cce()
512 DRM_FIND_MAP( dev_priv->cce_ring, init->ring_offset ); in r128_do_init_cce()
519 DRM_FIND_MAP( dev_priv->ring_rptr, init->ring_rptr_offset ); in r128_do_init_cce()
526 DRM_FIND_MAP( dev_priv->buffers, init->buffers_offset ); in r128_do_init_cce()
536 init->agp_textures_offset ); in r128_do_init_cce()
547 init->sarea_priv_offset); in r128_do_init_cce()
581 + init->ring_size / sizeof(u32)); in r128_do_init_cce()
582 dev_priv->ring.size = init->ring_size; in r128_do_init_cce()
583 dev_priv->ring.size_l2qw = DRM(order)( init->ring_size / 8 ); in r128_do_init_cce()
651 drm_r128_init_t init; in r128_cce_init() local
655 if ( copy_from_user( &init, (drm_r128_init_t *)arg, sizeof(init) ) ) in r128_cce_init()
658 switch ( init.func ) { in r128_cce_init()
660 return r128_do_init_cce( dev, &init ); in r128_cce_init()