Lines Matching refs:init
1358 static int radeon_do_init_cp(drm_device_t *dev, drm_radeon_init_t *init)
1370 if (init->is_pci && (dev_priv->flags & RADEON_IS_AGP)) {
1375 !init->is_pci) {
1386 dev_priv->usec_timeout = init->usec_timeout;
1393 switch (init->func) {
1405 dev_priv->cp_mode = init->cp_mode;
1412 if ((init->cp_mode != RADEON_CSQ_PRIBM_INDDIS) &&
1413 (init->cp_mode != RADEON_CSQ_PRIBM_INDBM)) {
1414 DRM_DEBUG("BAD cp_mode (%x)!\n", init->cp_mode);
1419 switch (init->fb_bpp) {
1428 dev_priv->front_offset = init->front_offset;
1429 dev_priv->front_pitch = init->front_pitch;
1430 dev_priv->back_offset = init->back_offset;
1431 dev_priv->back_pitch = init->back_pitch;
1433 switch (init->depth_bpp) {
1442 dev_priv->depth_offset = init->depth_offset;
1443 dev_priv->depth_pitch = init->depth_pitch;
1478 dev_priv->ring_offset = init->ring_offset;
1479 dev_priv->ring_rptr_offset = init->ring_rptr_offset;
1480 dev_priv->buffers_offset = init->buffers_offset;
1481 dev_priv->gart_textures_offset = init->gart_textures_offset;
1489 dev_priv->cp_ring = drm_core_findmap(dev, init->ring_offset);
1492 init->ring_offset);
1496 dev_priv->ring_rptr = drm_core_findmap(dev, init->ring_rptr_offset);
1499 init->ring_rptr_offset);
1503 dev->agp_buffer_token = init->buffers_offset;
1504 dev->agp_buffer_map = drm_core_findmap(dev, init->buffers_offset);
1507 init->buffers_offset);
1512 if (init->gart_textures_offset) {
1514 drm_core_findmap(dev, init->gart_textures_offset);
1517 "offset=0x%lx\n", init->gart_textures_offset);
1525 init->sarea_priv_offset);
1577 dev_priv->gart_size = init->gart_size;
1639 init->ring_size / sizeof (u32));
1640 dev_priv->ring.size = init->ring_size;
1641 dev_priv->ring.size_l2qw = drm_order(init->ring_size / 8);
1688 DRM_ERROR("failed to init PCI GART!\n");
1802 drm_radeon_init_t init;
1813 init.func = init32.func;
1814 init.sarea_priv_offset = init32.sarea_priv_offset;
1815 init.is_pci = init32.is_pci;
1816 init.cp_mode = init32.cp_mode;
1817 init.gart_size = init32.gart_size;
1818 init.ring_size = init32.ring_size;
1819 init.usec_timeout = init32.usec_timeout;
1820 init.fb_bpp = init32.fb_bpp;
1821 init.front_offset = init32.front_offset;
1822 init.front_pitch = init32.front_pitch;
1823 init.back_offset = init32.back_offset;
1824 init.back_pitch = init32.back_pitch;
1825 init.depth_bpp = init32.depth_bpp;
1826 init.depth_offset = init32.depth_offset;
1827 init.depth_pitch = init32.depth_pitch;
1828 init.ring_offset = init32.ring_offset;
1829 init.ring_rptr_offset = init32.ring_rptr_offset;
1830 init.buffers_offset = init32.buffers_offset;
1831 init.gart_textures_offset = init32.gart_textures_offset;
1834 DRM_COPYFROM_WITH_RETURN(&init, (void *) data, sizeof (init));
1839 if (init.func == RADEON_INIT_R300_CP)
1842 switch (init.func) {
1846 return (radeon_do_init_cp(dev, &init));
1993 DRM_DEBUG("radeon_cp_reset called before init done\n");