Lines Matching refs:batch
499 drm_i915_batchbuffer_t * batch, struct drm_clip_rect *cliprects)
502 int nbox = batch->num_cliprects;
505 if ((batch->start | batch->used) & 0x7) {
517 batch->DR1, batch->DR4);
530 OUT_RING(batch->start);
533 OUT_RING(batch->start | MI_BATCH_NON_SECURE);
541 OUT_RING(batch->start | MI_BATCH_NON_SECURE);
542 OUT_RING(batch->start + batch->used - 4);
635 drm_i915_batchbuffer_t *batch = data;
647 batch->start, batch->used, batch->num_cliprects);
649 cliplen = batch->num_cliprects * sizeof(struct drm_clip_rect);
650 if (batch->num_cliprects < 0)
652 if (batch->num_cliprects != 0) {
653 cliprects = malloc(batch->num_cliprects *
657 ret = -copyin(batch->cliprects, cliprects,
658 batch->num_cliprects * sizeof(struct drm_clip_rect));
668 ret = i915_dispatch_batchbuffer(dev, batch, cliprects);