Lines Matching refs:dma
42 drm_device_dma_t *dma = dev->dma; in i810_addbufs_agp() local
57 if (!dma) return -EINVAL; in i810_addbufs_agp()
84 entry = &dma->bufs[order]; in i810_addbufs_agp()
113 buf->idx = dma->buf_count + entry->buf_count; in i810_addbufs_agp()
145 dma->buflist = drm_realloc(dma->buflist, in i810_addbufs_agp()
146 dma->buf_count * sizeof(*dma->buflist), in i810_addbufs_agp()
147 (dma->buf_count + entry->buf_count) in i810_addbufs_agp()
148 * sizeof(*dma->buflist), in i810_addbufs_agp()
150 for (i = dma->buf_count; i < dma->buf_count + entry->buf_count; i++) in i810_addbufs_agp()
151 dma->buflist[i] = &entry->buflist[i - dma->buf_count]; in i810_addbufs_agp()
153 dma->buf_count += entry->buf_count; in i810_addbufs_agp()
154 dma->byte_count += byte_count; in i810_addbufs_agp()
171 dma->flags = _DRM_DMA_USE_AGP; in i810_addbufs_agp()
196 drm_device_dma_t *dma = dev->dma; in i810_infobufs() local
201 if (!dma) return -EINVAL; in i810_infobufs()
217 if (dma->bufs[i].buf_count) ++count; in i810_infobufs()
224 if (dma->bufs[i].buf_count) { in i810_infobufs()
226 &dma->bufs[i].buf_count, in i810_infobufs()
227 sizeof(dma->bufs[0] in i810_infobufs()
230 &dma->bufs[i].buf_size, in i810_infobufs()
231 sizeof(dma->bufs[0].buf_size)) || in i810_infobufs()
233 &dma->bufs[i] in i810_infobufs()
235 sizeof(dma->bufs[0] in i810_infobufs()
239 &dma->bufs[i] in i810_infobufs()
241 sizeof(dma->bufs[0] in i810_infobufs()
247 dma->bufs[i].buf_count, in i810_infobufs()
248 dma->bufs[i].buf_size, in i810_infobufs()
249 dma->bufs[i].freelist.low_mark, in i810_infobufs()
250 dma->bufs[i].freelist.high_mark); in i810_infobufs()
270 drm_device_dma_t *dma = dev->dma; in i810_markbufs() local
275 if (!dma) return -EINVAL; in i810_markbufs()
286 entry = &dma->bufs[order]; in i810_markbufs()
304 drm_device_dma_t *dma = dev->dma; in i810_freebufs() local
310 if (!dma) return -EINVAL; in i810_freebufs()
323 if (idx < 0 || idx >= dma->buf_count) { in i810_freebufs()
325 idx, dma->buf_count - 1); in i810_freebufs()
328 buf = dma->buflist[idx]; in i810_freebufs()