32 #define VIA_MM_ALIGN_SHIFT 4
33 #define VIA_MM_ALIGN_MASK ((1 << VIA_MM_ALIGN_SHIFT) - 1)
52 DRM_DEBUG(
"offset = %u, size = %u\n", agp->
offset, agp->
size);
68 DRM_DEBUG(
"offset = %u, size = %u\n", fb->
offset, fb->
size);
82 if (dev->ctx_count == 1 && dev->dev_private) {
83 DRM_DEBUG(
"Last Context\n");
111 struct drm_file *
file)
118 unsigned long tmpSize;
121 DRM_ERROR(
"Unknown memory type allocation\n");
128 (
"Attempt to allocate from uninitialized memory manager.\n");
163 list_add(&item->
owner_list, &file_priv->obj_list);
169 mem->
index = user_key;
182 DRM_DEBUG(
"Video memory allocation failed\n");
206 DRM_DEBUG(
"free = 0x%lx\n", mem->
index);
213 struct drm_file *
file)
218 if (!(file->minor->master && file->master->lock.hw_lock))
224 if (list_empty(&file_priv->
obj_list)) {