Lines Matching refs:buflist
698 kfree(entry->buflist[i].dev_private); in drm_cleanup_buf_error()
700 kfree(entry->buflist); in drm_cleanup_buf_error()
798 entry->buflist = kcalloc(count, sizeof(*entry->buflist), GFP_KERNEL); in drm_legacy_addbufs_agp()
799 if (!entry->buflist) { in drm_legacy_addbufs_agp()
811 buf = &entry->buflist[entry->buf_count]; in drm_legacy_addbufs_agp()
845 temp_buflist = krealloc(dma->buflist, in drm_legacy_addbufs_agp()
847 sizeof(*dma->buflist), GFP_KERNEL); in drm_legacy_addbufs_agp()
855 dma->buflist = temp_buflist; in drm_legacy_addbufs_agp()
858 dma->buflist[i + dma->buf_count] = &entry->buflist[i]; in drm_legacy_addbufs_agp()
948 entry->buflist = kcalloc(count, sizeof(*entry->buflist), GFP_KERNEL); in drm_legacy_addbufs_pci()
949 if (!entry->buflist) { in drm_legacy_addbufs_pci()
957 kfree(entry->buflist); in drm_legacy_addbufs_pci()
970 kfree(entry->buflist); in drm_legacy_addbufs_pci()
1027 buf = &entry->buflist[entry->buf_count]; in drm_legacy_addbufs_pci()
1060 temp_buflist = krealloc(dma->buflist, in drm_legacy_addbufs_pci()
1062 sizeof(*dma->buflist), GFP_KERNEL); in drm_legacy_addbufs_pci()
1071 dma->buflist = temp_buflist; in drm_legacy_addbufs_pci()
1074 dma->buflist[i + dma->buf_count] = &entry->buflist[i]; in drm_legacy_addbufs_pci()
1176 entry->buflist = kcalloc(count, sizeof(*entry->buflist), GFP_KERNEL); in drm_legacy_addbufs_sg()
1177 if (!entry->buflist) { in drm_legacy_addbufs_sg()
1189 buf = &entry->buflist[entry->buf_count]; in drm_legacy_addbufs_sg()
1224 temp_buflist = krealloc(dma->buflist, in drm_legacy_addbufs_sg()
1226 sizeof(*dma->buflist), GFP_KERNEL); in drm_legacy_addbufs_sg()
1234 dma->buflist = temp_buflist; in drm_legacy_addbufs_sg()
1237 dma->buflist[i + dma->buf_count] = &entry->buflist[i]; in drm_legacy_addbufs_sg()
1482 buf = dma->buflist[idx]; in drm_legacy_freebufs()
1564 if (f(data, i, virtual, dma->buflist[i]) < 0) { in __drm_legacy_mapbufs()