Lines Matching refs:elts
1410 drm_r128_indices_t elts;
1420 DRM_COPY_FROM_USER_IOCTL(elts, (drm_r128_indices_t __user *) data,
1421 sizeof(elts));
1424 elts.idx, elts.start, elts.end, elts.discard);
1426 if (elts.idx < 0 || elts.idx >= dma->buf_count) {
1428 elts.idx, dma->buf_count - 1);
1431 if (elts.prim < 0 || elts.prim > R128_CCE_VC_CNTL_PRIM_TYPE_TRI_TYPE2) {
1432 DRM_ERROR("buffer prim %d\n", elts.prim);
1439 buf = dma->buflist[elts.idx];
1448 DRM_ERROR("sending pending buffer %d\n", elts.idx);
1452 count = (elts.end - elts.start) / sizeof(u16);
1453 elts.start -= R128_INDEX_PRIM_OFFSET;
1455 if (elts.start & 0x7) {
1456 DRM_ERROR("misaligned buffer 0x%x\n", elts.start);
1459 if (elts.start < buf->used) {
1460 DRM_ERROR("no header 0x%x - 0x%x\n", elts.start, buf->used);
1464 buf->used = elts.end;
1465 buf_priv->prim = elts.prim;
1466 buf_priv->discard = elts.discard;
1468 r128_cce_dispatch_indices(dev, buf, elts.start, elts.end, count);