Lines Matching refs:dev
859 static void radeon_cp_dispatch_clear(drm_device_t *dev,
862 drm_radeon_private_t *dev_priv = dev->dev_private;
1398 static void radeon_cp_dispatch_swap(drm_device_t *dev)
1400 drm_radeon_private_t *dev_priv = dev->dev_private;
1474 static void radeon_cp_dispatch_flip(drm_device_t *dev)
1476 drm_radeon_private_t *dev_priv = dev->dev_private;
1551 static void radeon_cp_dispatch_vertex(drm_device_t *dev,
1554 drm_radeon_private_t *dev_priv = dev->dev_private;
1596 static void radeon_cp_discard_buffer(drm_device_t *dev, drm_buf_t *buf)
1598 drm_radeon_private_t *dev_priv = dev->dev_private;
1613 static void radeon_cp_dispatch_indirect(drm_device_t *dev,
1616 drm_radeon_private_t *dev_priv = dev->dev_private;
1632 ((char *)dev->agp_buffer_map->handle
1648 static void radeon_cp_dispatch_indices(drm_device_t *dev,
1651 drm_radeon_private_t *dev_priv = dev->dev_private;
1677 data = (u32 *)(uintptr_t)((char *)dev->agp_buffer_map->handle +
1694 radeon_cp_dispatch_indirect(dev, elt_buf,
1706 drm_device_t *dev, drm_radeon_texture_t *tex,
1709 drm_radeon_private_t *dev_priv = dev->dev_private;
1811 buf = radeon_freelist_get(dev);
1815 buf = radeon_freelist_get(dev);
1846 ((char *)dev->agp_buffer_map->handle + buf->offset);
1955 radeon_cp_discard_buffer(dev, buf);
1976 static void radeon_cp_dispatch_stipple(drm_device_t *dev, u32 *stipple)
1978 drm_radeon_private_t *dev_priv = dev->dev_private;
2175 drm_radeon_private_t *dev_priv = dev->dev_private;
2195 drm_radeon_private_t *dev_priv = dev->dev_private;
2215 drm_radeon_private_t *dev_priv = dev->dev_private;
2220 LOCK_TEST_WITH_RETURN(dev, fpriv);
2249 radeon_cp_dispatch_clear(dev, &clear, depth_boxes);
2258 static int radeon_do_init_pageflip(drm_device_t *dev)
2260 drm_radeon_private_t *dev_priv = dev->dev_private;
2284 static int radeon_do_cleanup_pageflip(drm_device_t *dev)
2286 drm_radeon_private_t *dev_priv = dev->dev_private;
2289 radeon_cp_dispatch_flip(dev);
2303 drm_radeon_private_t *dev_priv = dev->dev_private;
2305 LOCK_TEST_WITH_RETURN(dev, fpriv);
2310 (void) radeon_do_init_pageflip(dev);
2312 radeon_cp_dispatch_flip(dev);
2322 drm_radeon_private_t *dev_priv = dev->dev_private;
2325 LOCK_TEST_WITH_RETURN(dev, fpriv);
2332 radeon_cp_dispatch_swap(dev);
2343 drm_radeon_private_t *dev_priv = dev->dev_private;
2345 drm_device_dma_t *dma = dev->dma;
2350 LOCK_TEST_WITH_RETURN(dev, fpriv);
2416 radeon_cp_dispatch_vertex(dev, buf, &prim);
2420 radeon_cp_discard_buffer(dev, buf);
2431 drm_radeon_private_t *dev_priv = dev->dev_private;
2433 drm_device_dma_t *dma = dev->dma;
2439 LOCK_TEST_WITH_RETURN(dev, fpriv);
2516 radeon_cp_dispatch_indices(dev, buf, &prim);
2518 radeon_cp_discard_buffer(dev, buf);
2529 drm_radeon_private_t *dev_priv = dev->dev_private;
2534 LOCK_TEST_WITH_RETURN(dev, fpriv);
2582 ret = radeon_cp_dispatch_texture(fpriv, dev, &tex, &image, mode);
2592 drm_radeon_private_t *dev_priv = dev->dev_private;
2596 LOCK_TEST_WITH_RETURN(dev, fpriv);
2617 radeon_cp_dispatch_stipple(dev, mask);
2627 drm_radeon_private_t *dev_priv = dev->dev_private;
2628 drm_device_dma_t *dma = dev->dma;
2633 LOCK_TEST_WITH_RETURN(dev, fpriv);
2689 radeon_cp_dispatch_indirect(dev, buf, indirect.start, indirect.end);
2691 radeon_cp_discard_buffer(dev, buf);
2702 drm_radeon_private_t *dev_priv = dev->dev_private;
2704 drm_device_dma_t *dma = dev->dma;
2710 LOCK_TEST_WITH_RETURN(dev, fpriv);
2799 radeon_cp_dispatch_indices(dev, buf, &tclprim);
2804 radeon_cp_dispatch_vertex(dev, buf, &tclprim);
2812 radeon_cp_discard_buffer(dev, buf);
2946 radeon_emit_packet3(drm_device_t *dev, drm_file_t *filp_priv,
2949 drm_radeon_private_t *dev_priv = dev->dev_private;
2970 static int radeon_emit_packet3_cliprect(drm_device_t *dev,
2975 drm_radeon_private_t *dev_priv = dev->dev_private;
3033 radeon_emit_wait(drm_device_t *dev, int flags)
3035 drm_radeon_private_t *dev_priv = dev->dev_private;
3066 drm_radeon_private_t *dev_priv = dev->dev_private;
3067 drm_device_dma_t *dma = dev->dma;
3075 LOCK_TEST_WITH_RETURN(dev, fpriv);
3129 temp = r300_do_cp_cmdbuf(dev, fpriv, &cmdbuf);
3186 radeon_cp_discard_buffer(dev, buf);
3191 if (radeon_emit_packet3(dev, fpriv, &cmdbuf)) {
3200 (dev, fpriv, &cmdbuf, orig_nbox)) {
3216 if (radeon_emit_wait(dev, header.wait.flags)) {
3253 drm_radeon_private_t *dev_priv = dev->dev_private;
3295 value = dev->irq;
3319 value = (long)dev->lock.hw_lock;
3340 value = radeon_vblank_crtc_get(dev);
3357 drm_radeon_private_t *dev_priv = dev->dev_private;
3404 return (radeon_vblank_crtc_set(dev, sp.value));
3422 radeon_driver_preclose(drm_device_t *dev, drm_file_t *filp)
3424 if (dev->dev_private) {
3425 drm_radeon_private_t *dev_priv = dev->dev_private;
3427 (void) radeon_do_cleanup_pageflip(dev);
3436 radeon_driver_lastclose(drm_device_t *dev)
3438 radeon_do_release(dev);
3442 radeon_driver_open(drm_device_t *dev, drm_file_t *filp_priv)
3444 drm_radeon_private_t *dev_priv = dev->dev_private;
3465 radeon_driver_postclose(drm_device_t *dev, drm_file_t *filp_priv)