search for: nouveau_mem_fb

Displaying 3 results from an estimated 3 matches for "nouveau_mem_fb".

Did you mean: nouveau_mem_
2008 Mar 09
0
[PATCH 4/4] nouveau: clean up nouveau_mem_alloc function
...ap, 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; + case NOUVEAU_MEM_FB: + err = nouveau_addmap_fb(dev, block); + break; + case NOUVEAU_MEM_PCI: + err = nouveau_addmap_pci(dev, block); + break; + default: + err = -EINVAL; + break; + }; + if (err) + goto error; + + return block; +error: + nouveau_mem_free_block(block); + return NULL; +} + +static struct m...
2008 Mar 09
0
[PATCH 1/4] nouveau: add nouveau_addmap_{agp, fb, pci} functions
...p(dev, block->start, block->size, - _DRM_AGP, 0, &block->map); - else - ret = drm_addmap(dev, block->start, block->size, - _DRM_SCATTER_GATHER, 0, &block->map); - } + if (type == NOUVEAU_MEM_AGP) + ret = nouveau_addmap_agp(dev, block); else if (type == NOUVEAU_MEM_FB) - ret = drm_addmap(dev, block->start + dev_priv->fb_phys, - block->size, _DRM_FRAME_BUFFER, - 0, &block->map); + ret = nouveau_addmap_fb(dev, block); else if (type == NOUVEAU_MEM_PCI) - ret = drm_addmap(dev, block->start, block->size, - _DRM_SCATTER_GA...
2007 May 30
0
[PATCH] added comments
...bitsPerPixel >> 3); if(mem) { - if(mem->size >= size) + if(mem->size >= size) // if(mem->size == size) return mem; NVFreeMemory(pNv, mem); } @@ -214,6 +259,13 @@ NVAllocateOverlayMemory(ScrnInfoPtr pScrn, NVAllocRec *mem, int size) return NVAllocateMemory(pNv, NOUVEAU_MEM_FB, size); /* align 32? */ } +/** + * NVFreeOverlayMemory + * frees memory held by the overlay port + * this function (unlike NVAllocateOverlayMemory) is "Overlay"-specific + * + * @param pScrnInfo screen whose overlay port wants to free memory + */ static void NVFreeOverlayMemory(Scrn...