Lines Matching defs:batch
528 drm_i915_batchbuffer_t * batch, struct drm_clip_rect *cliprects)
531 int nbox = batch->num_cliprects;
537 if ((batch->start | batch->used) & 0x7) {
549 batch->DR1, batch->DR4);
562 OUT_RING(batch->start);
565 OUT_RING(batch->start | MI_BATCH_NON_SECURE);
573 OUT_RING(batch->start | MI_BATCH_NON_SECURE);
574 OUT_RING(batch->start + batch->used - 4);
671 drm_i915_batchbuffer_t *batch = data;
682 batch->start, batch->used, batch->num_cliprects);
684 cliplen = batch->num_cliprects * sizeof(struct drm_clip_rect);
685 if (batch->num_cliprects < 0)
687 if (batch->num_cliprects != 0) {
688 cliprects = malloc(batch->num_cliprects *
692 ret = -copyin(batch->cliprects, cliprects,
693 batch->num_cliprects * sizeof(struct drm_clip_rect));
701 ret = i915_dispatch_batchbuffer(dev, batch, cliprects);