Lines Matching refs:MAP
254 #define VMM_MAP_ITER(VMM,PT,PTEI,PTEN,MAP,FILL,BASE,SIZE,NEXT) do { \ argument
257 u64 _ptes = ((SIZE) - MAP->off) >> MAP->page->shift; \
258 u64 _addr = ((BASE) + MAP->off); \
261 MAP->off += PTEN << MAP->page->shift; \
264 MAP->off = 0; \
270 FILL(VMM, PT, PTEI, _ptes, MAP, _addr); \
277 #define VMM_MAP_ITER_MEM(VMM,PT,PTEI,PTEN,MAP,FILL) \ argument
278 VMM_MAP_ITER(VMM,PT,PTEI,PTEN,MAP,FILL, \
279 ((u64)MAP->mem->offset << NVKM_RAM_MM_SHIFT), \
280 ((u64)MAP->mem->length << NVKM_RAM_MM_SHIFT), \
281 (MAP->mem = MAP->mem->next))
282 #define VMM_MAP_ITER_DMA(VMM,PT,PTEI,PTEN,MAP,FILL) \ argument
283 VMM_MAP_ITER(VMM,PT,PTEI,PTEN,MAP,FILL, \
284 *MAP->dma, PAGE_SIZE, MAP->dma++)
285 #define VMM_MAP_ITER_SGL(VMM,PT,PTEI,PTEN,MAP,FILL) \ argument
286 VMM_MAP_ITER(VMM,PT,PTEI,PTEN,MAP,FILL, \
287 sg_dma_address(MAP->sgl), sg_dma_len(MAP->sgl), \
288 (MAP->sgl = sg_next(MAP->sgl)))