Lines Matching refs:elts
2326 drm_radeon_indices_t *elts = data;
2335 DRM_CURRENTPID, elts->idx, elts->start, elts->end,
2336 elts->discard);
2338 if (elts->idx < 0 || elts->idx >= dma->buf_count) {
2340 elts->idx, dma->buf_count - 1);
2343 if (elts->prim < 0 || elts->prim > RADEON_PRIM_TYPE_3VRT_LINE_LIST) {
2344 DRM_ERROR("buffer prim %d\n", elts->prim);
2351 buf = dma->buflist[elts->idx];
2359 DRM_ERROR("sending pending buffer %d\n", elts->idx);
2363 count = (elts->end - elts->start) / sizeof(u16);
2364 elts->start -= RADEON_INDEX_PRIM_OFFSET;
2366 if (elts->start & 0x7) {
2367 DRM_ERROR("misaligned buffer 0x%x\n", elts->start);
2370 if (elts->start < buf->used) {
2371 DRM_ERROR("no header 0x%x - 0x%x\n", elts->start, buf->used);
2375 buf->used = elts->end;
2394 prim.start = elts->start;
2395 prim.finish = elts->end;
2396 prim.prim = elts->prim;
2402 if (elts->discard) {