Lines Matching defs:elts
1372 drm_r128_indices_t *elts = data;
1380 elts->idx, elts->start, elts->end, elts->discard);
1382 if (elts->idx < 0 || elts->idx >= dma->buf_count) {
1384 elts->idx, dma->buf_count - 1);
1387 if (elts->prim < 0 ||
1388 elts->prim > R128_CCE_VC_CNTL_PRIM_TYPE_TRI_TYPE2) {
1389 DRM_ERROR("buffer prim %d\n", elts->prim);
1396 buf = dma->buflist[elts->idx];
1405 DRM_ERROR("sending pending buffer %d\n", elts->idx);
1409 count = (elts->end - elts->start) / sizeof(u16);
1410 elts->start -= R128_INDEX_PRIM_OFFSET;
1412 if (elts->start & 0x7) {
1413 DRM_ERROR("misaligned buffer 0x%x\n", elts->start);
1416 if (elts->start < buf->used) {
1417 DRM_ERROR("no header 0x%x - 0x%x\n", elts->start, buf->used);
1421 buf->used = elts->end;
1422 buf_priv->prim = elts->prim;
1423 buf_priv->discard = elts->discard;
1425 r128_cce_dispatch_indices(dev, buf, elts->start, elts->end, count);