Lines Matching refs:elts
1390 drm_r128_indices_t *elts = data;
1398 elts->idx, elts->start, elts->end, elts->discard);
1400 if (elts->idx < 0 || elts->idx >= dma->buf_count) {
1402 elts->idx, dma->buf_count - 1);
1405 if (elts->prim < 0 ||
1406 elts->prim > R128_CCE_VC_CNTL_PRIM_TYPE_TRI_TYPE2) {
1407 DRM_ERROR("buffer prim %d\n", elts->prim);
1414 buf = dma->buflist[elts->idx];
1423 DRM_ERROR("sending pending buffer %d\n", elts->idx);
1427 count = (elts->end - elts->start) / sizeof(u16);
1428 elts->start -= R128_INDEX_PRIM_OFFSET;
1430 if (elts->start & 0x7) {
1431 DRM_ERROR("misaligned buffer 0x%x\n", elts->start);
1434 if (elts->start < buf->used) {
1435 DRM_ERROR("no header 0x%x - 0x%x\n", elts->start, buf->used);
1439 buf->used = elts->end;
1440 buf_priv->prim = elts->prim;
1441 buf_priv->discard = elts->discard;
1443 r128_cce_dispatch_indices(dev, buf, elts->start, elts->end, count);