• Home
  • Raw
  • Download

Lines Matching refs:buf_count

579 	if (entry->buf_count) {  in drm_cleanup_buf_error()
580 for (i = 0; i < entry->buf_count; i++) { in drm_cleanup_buf_error()
585 entry->buf_count = 0; in drm_cleanup_buf_error()
668 if (entry->buf_count) { in drm_addbufs_agp()
692 while (entry->buf_count < count) { in drm_addbufs_agp()
693 buf = &entry->buflist[entry->buf_count]; in drm_addbufs_agp()
694 buf->idx = dma->buf_count + entry->buf_count; in drm_addbufs_agp()
711 entry->buf_count = count; in drm_addbufs_agp()
718 DRM_DEBUG("buffer %d @ %p\n", entry->buf_count, buf->address); in drm_addbufs_agp()
721 entry->buf_count++; in drm_addbufs_agp()
728 (dma->buf_count + entry->buf_count) * in drm_addbufs_agp()
739 for (i = 0; i < entry->buf_count; i++) { in drm_addbufs_agp()
740 dma->buflist[i + dma->buf_count] = &entry->buflist[i]; in drm_addbufs_agp()
743 dma->buf_count += entry->buf_count; in drm_addbufs_agp()
748 DRM_DEBUG("dma->buf_count : %d\n", dma->buf_count); in drm_addbufs_agp()
749 DRM_DEBUG("entry->buf_count : %d\n", entry->buf_count); in drm_addbufs_agp()
753 request->count = entry->buf_count; in drm_addbufs_agp()
817 if (entry->buf_count) { in drm_addbufs_pci()
866 while (entry->buf_count < count) { in drm_addbufs_pci()
872 entry->buf_count = count; in drm_addbufs_pci()
889 offset + size <= total && entry->buf_count < count; in drm_addbufs_pci()
890 offset += alignment, ++entry->buf_count) { in drm_addbufs_pci()
891 buf = &entry->buflist[entry->buf_count]; in drm_addbufs_pci()
892 buf->idx = dma->buf_count + entry->buf_count; in drm_addbufs_pci()
909 entry->buf_count = count; in drm_addbufs_pci()
919 entry->buf_count, buf->address); in drm_addbufs_pci()
925 (dma->buf_count + entry->buf_count) * in drm_addbufs_pci()
937 for (i = 0; i < entry->buf_count; i++) { in drm_addbufs_pci()
938 dma->buflist[i + dma->buf_count] = &entry->buflist[i]; in drm_addbufs_pci()
949 dma->buf_count += entry->buf_count; in drm_addbufs_pci()
956 request->count = entry->buf_count; in drm_addbufs_pci()
1027 if (entry->buf_count) { in drm_addbufs_sg()
1052 while (entry->buf_count < count) { in drm_addbufs_sg()
1053 buf = &entry->buflist[entry->buf_count]; in drm_addbufs_sg()
1054 buf->idx = dma->buf_count + entry->buf_count; in drm_addbufs_sg()
1072 entry->buf_count = count; in drm_addbufs_sg()
1079 DRM_DEBUG("buffer %d @ %p\n", entry->buf_count, buf->address); in drm_addbufs_sg()
1082 entry->buf_count++; in drm_addbufs_sg()
1089 (dma->buf_count + entry->buf_count) * in drm_addbufs_sg()
1100 for (i = 0; i < entry->buf_count; i++) { in drm_addbufs_sg()
1101 dma->buflist[i + dma->buf_count] = &entry->buflist[i]; in drm_addbufs_sg()
1104 dma->buf_count += entry->buf_count; in drm_addbufs_sg()
1109 DRM_DEBUG("dma->buf_count : %d\n", dma->buf_count); in drm_addbufs_sg()
1110 DRM_DEBUG("entry->buf_count : %d\n", entry->buf_count); in drm_addbufs_sg()
1114 request->count = entry->buf_count; in drm_addbufs_sg()
1182 if (entry->buf_count) { in drm_addbufs_fb()
1207 while (entry->buf_count < count) { in drm_addbufs_fb()
1208 buf = &entry->buflist[entry->buf_count]; in drm_addbufs_fb()
1209 buf->idx = dma->buf_count + entry->buf_count; in drm_addbufs_fb()
1226 entry->buf_count = count; in drm_addbufs_fb()
1233 DRM_DEBUG("buffer %d @ %p\n", entry->buf_count, buf->address); in drm_addbufs_fb()
1236 entry->buf_count++; in drm_addbufs_fb()
1243 (dma->buf_count + entry->buf_count) * in drm_addbufs_fb()
1254 for (i = 0; i < entry->buf_count; i++) { in drm_addbufs_fb()
1255 dma->buflist[i + dma->buf_count] = &entry->buflist[i]; in drm_addbufs_fb()
1258 dma->buf_count += entry->buf_count; in drm_addbufs_fb()
1263 DRM_DEBUG("dma->buf_count : %d\n", dma->buf_count); in drm_addbufs_fb()
1264 DRM_DEBUG("entry->buf_count : %d\n", entry->buf_count); in drm_addbufs_fb()
1268 request->count = entry->buf_count; in drm_addbufs_fb()
1356 if (dma->bufs[i].buf_count) in drm_infobufs()
1364 if (dma->bufs[i].buf_count) { in drm_infobufs()
1370 &from->buf_count, in drm_infobufs()
1371 sizeof(from->buf_count)) || in drm_infobufs()
1385 dma->bufs[i].buf_count, in drm_infobufs()
1433 if (request->low_mark < 0 || request->low_mark > entry->buf_count) in drm_markbufs()
1435 if (request->high_mark < 0 || request->high_mark > entry->buf_count) in drm_markbufs()
1475 if (idx < 0 || idx >= dma->buf_count) { in drm_freebufs()
1477 idx, dma->buf_count - 1); in drm_freebufs()
1531 if (request->count >= dma->buf_count) { in drm_mapbufs()
1560 for (i = 0; i < dma->buf_count; i++) { in drm_mapbufs()
1587 request->count = dma->buf_count; in drm_mapbufs()