aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/drm/mga_state.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/drm/mga_state.c')
-rw-r--r--drivers/char/drm/mga_state.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/char/drm/mga_state.c b/drivers/char/drm/mga_state.c
index 4cb95ecd465c..d3f8aade07b3 100644
--- a/drivers/char/drm/mga_state.c
+++ b/drivers/char/drm/mga_state.c
@@ -619,7 +619,7 @@ static void mga_dma_dispatch_swap(struct drm_device * dev)
619 619
620 FLUSH_DMA(); 620 FLUSH_DMA();
621 621
622 DRM_DEBUG("%s... done.\n", __FUNCTION__); 622 DRM_DEBUG("... done.\n");
623} 623}
624 624
625static void mga_dma_dispatch_vertex(struct drm_device * dev, struct drm_buf * buf) 625static void mga_dma_dispatch_vertex(struct drm_device * dev, struct drm_buf * buf)
@@ -631,7 +631,7 @@ static void mga_dma_dispatch_vertex(struct drm_device * dev, struct drm_buf * bu
631 u32 length = (u32) buf->used; 631 u32 length = (u32) buf->used;
632 int i = 0; 632 int i = 0;
633 DMA_LOCALS; 633 DMA_LOCALS;
634 DRM_DEBUG("vertex: buf=%d used=%d\n", buf->idx, buf->used); 634 DRM_DEBUG("buf=%d used=%d\n", buf->idx, buf->used);
635 635
636 if (buf->used) { 636 if (buf->used) {
637 buf_priv->dispatched = 1; 637 buf_priv->dispatched = 1;
@@ -678,7 +678,7 @@ static void mga_dma_dispatch_indices(struct drm_device * dev, struct drm_buf * b
678 u32 address = (u32) buf->bus_address; 678 u32 address = (u32) buf->bus_address;
679 int i = 0; 679 int i = 0;
680 DMA_LOCALS; 680 DMA_LOCALS;
681 DRM_DEBUG("indices: buf=%d start=%d end=%d\n", buf->idx, start, end); 681 DRM_DEBUG("buf=%d start=%d end=%d\n", buf->idx, start, end);
682 682
683 if (start != end) { 683 if (start != end) {
684 buf_priv->dispatched = 1; 684 buf_priv->dispatched = 1;
@@ -955,7 +955,7 @@ static int mga_dma_iload(struct drm_device *dev, void *data, struct drm_file *fi
955#if 0 955#if 0
956 if (mga_do_wait_for_idle(dev_priv) < 0) { 956 if (mga_do_wait_for_idle(dev_priv) < 0) {
957 if (MGA_DMA_DEBUG) 957 if (MGA_DMA_DEBUG)
958 DRM_INFO("%s: -EBUSY\n", __FUNCTION__); 958 DRM_INFO("-EBUSY\n");
959 return -EBUSY; 959 return -EBUSY;
960 } 960 }
961#endif 961#endif
@@ -1014,7 +1014,7 @@ static int mga_getparam(struct drm_device *dev, void *data, struct drm_file *fil
1014 int value; 1014 int value;
1015 1015
1016 if (!dev_priv) { 1016 if (!dev_priv) {
1017 DRM_ERROR("%s called with no initialization\n", __FUNCTION__); 1017 DRM_ERROR("called with no initialization\n");
1018 return -EINVAL; 1018 return -EINVAL;
1019 } 1019 }
1020 1020
@@ -1046,7 +1046,7 @@ static int mga_set_fence(struct drm_device *dev, void *data, struct drm_file *fi
1046 DMA_LOCALS; 1046 DMA_LOCALS;
1047 1047
1048 if (!dev_priv) { 1048 if (!dev_priv) {
1049 DRM_ERROR("%s called with no initialization\n", __FUNCTION__); 1049 DRM_ERROR("called with no initialization\n");
1050 return -EINVAL; 1050 return -EINVAL;
1051 } 1051 }
1052 1052
@@ -1075,7 +1075,7 @@ file_priv)
1075 u32 *fence = data; 1075 u32 *fence = data;
1076 1076
1077 if (!dev_priv) { 1077 if (!dev_priv) {
1078 DRM_ERROR("%s called with no initialization\n", __FUNCTION__); 1078 DRM_ERROR("called with no initialization\n");
1079 return -EINVAL; 1079 return -EINVAL;
1080 } 1080 }
1081 1081