Lines Matching defs:dev_priv
67 static int r300_emit_cliprects(drm_radeon_private_t *dev_priv,
263 r300_emit_carefully_checked_packet0(drm_radeon_private_t *dev_priv,
286 if (!radeon_check_offset(dev_priv, (u32) values[i])) {
316 static __inline__ int r300_emit_packet0(drm_radeon_private_t *dev_priv,
341 return (r300_emit_carefully_checked_packet0(dev_priv,
365 static inline int r300_emit_vpu(drm_radeon_private_t *dev_priv,
403 static inline int r300_emit_clear(drm_radeon_private_t *dev_priv,
424 static inline int r300_emit_3d_load_vbpntr(drm_radeon_private_t *dev_priv,
450 if (!radeon_check_offset(dev_priv, payload[i])) {
461 if (!radeon_check_offset(dev_priv, payload[i])) {
491 static inline int r300_emit_bitblt_multi(drm_radeon_private_t *dev_priv,
506 ret = !radeon_check_offset(dev_priv, offset);
517 ret = !radeon_check_offset(dev_priv, offset);
539 static inline int r300_emit_indx_buffer(drm_radeon_private_t *dev_priv,
552 ret = !radeon_check_offset(dev_priv, cmd[2]);
570 static __inline__ int r300_emit_raw_packet3(drm_radeon_private_t *dev_priv,
606 return (r300_emit_3d_load_vbpntr(dev_priv, cmdbuf, header));
609 return (r300_emit_bitblt_multi(dev_priv, cmdbuf));
614 return (r300_emit_indx_buffer(dev_priv, cmdbuf));
646 static __inline__ int r300_emit_packet3(drm_radeon_private_t *dev_priv,
661 ret = r300_emit_cliprects(dev_priv, cmdbuf, n);
672 ret = r300_emit_clear(dev_priv, cmdbuf);
681 ret = r300_emit_raw_packet3(dev_priv, cmdbuf);
716 static __inline__ void r300_pacify(drm_radeon_private_t *dev_priv)
737 drm_radeon_private_t *dev_priv = dev->dev_private;
740 buf_priv->age = ++dev_priv->sarea_priv->last_dispatch;
745 static int r300_scratch(drm_radeon_private_t *dev_priv,
762 dev_priv->scratch_ages[header.scratch.reg] ++;
774 &dev_priv->scratch_ages[header.scratch.reg],
801 OUT_RING(dev_priv->scratch_ages[header.scratch.reg]);
817 drm_radeon_private_t *dev_priv = dev->dev_private;
829 r300_pacify(dev_priv);
832 ret = r300_emit_cliprects(dev_priv, cmdbuf, 0);
849 ret = r300_emit_packet0(dev_priv, cmdbuf, header);
858 ret = r300_emit_vpu(dev_priv, cmdbuf, header);
867 ret = r300_emit_packet3(dev_priv, cmdbuf, header);
893 r300_pacify(dev_priv);
951 ret = r300_scratch(dev_priv, cmdbuf, header);
970 r300_pacify(dev_priv);
984 RADEON_DISPATCH_AGE(dev_priv->sarea_priv->last_dispatch);