Lines Matching refs:dma
2245 struct drm_device_dma *dma = dev->dma;
2257 if (vertex->idx < 0 || vertex->idx >= dma->buf_count) {
2259 vertex->idx, dma->buf_count - 1);
2270 buf = dma->buflist[vertex->idx];
2324 struct drm_device_dma *dma = dev->dma;
2338 if (elts->idx < 0 || elts->idx >= dma->buf_count) {
2340 elts->idx, dma->buf_count - 1);
2351 buf = dma->buflist[elts->idx];
2397 prim.offset = 0; /* offset from start of dma buffers */
2462 struct drm_device_dma *dma = dev->dma;
2473 if (indirect->idx < 0 || indirect->idx >= dma->buf_count) {
2475 indirect->idx, dma->buf_count - 1);
2479 buf = dma->buflist[indirect->idx];
2531 struct drm_device_dma *dma = dev->dma;
2544 if (vertex->idx < 0 || vertex->idx >= dma->buf_count) {
2546 vertex->idx, dma->buf_count - 1);
2553 buf = dma->buflist[vertex->idx];
2844 struct drm_device_dma *dma = dev->dma;
2925 idx = header->dma.buf_idx;
2926 if (idx < 0 || idx >= dma->buf_count) {
2928 idx, dma->buf_count - 1);
2932 buf = dma->buflist[idx];
3156 * DRM infrastructure takes care of reclaiming dma buffers.