search for: nouveau_mem_alloc_block

Displaying 1 result from an estimated 1 matches for "nouveau_mem_alloc_block".

2008 Mar 09
0
[PATCH 4/4] nouveau: clean up nouveau_mem_alloc function
...n nouveau_addmap(dev, block, block->start, type); } +static struct mem_block * +__nouveau_mem_alloc(struct drm_device *dev, int type, struct mem_block *heap, + uint64_t size, int alignment, int flags, + struct drm_file *file_priv) +{ + struct mem_block *block; + int err; + + block = nouveau_mem_alloc_block(heap, size, alignment, file_priv); + if (!block) + return NULL; + block->flags = type; + + /* + * Does the block need mapping? + */ + if (!(flags & NOUVEAU_MEM_MAPPED)) + return block; + + switch (type) { + case NOUVEAU_MEM_AGP: + err = nouveau_addmap_agp(dev, block); + break; + ca...