Lines Matching refs:MAP
288 #define VMM_MAP_ITER(VMM,PT,PTEI,PTEN,MAP,FILL,BASE,SIZE,NEXT) do { \ argument
291 u64 _ptes = ((SIZE) - MAP->off) >> MAP->page->shift; \
292 u64 _addr = ((BASE) + MAP->off); \
295 MAP->off += PTEN << MAP->page->shift; \
298 MAP->off = 0; \
304 FILL(VMM, PT, PTEI, _ptes, MAP, _addr); \
311 #define VMM_MAP_ITER_MEM(VMM,PT,PTEI,PTEN,MAP,FILL) \ argument
312 VMM_MAP_ITER(VMM,PT,PTEI,PTEN,MAP,FILL, \
313 ((u64)MAP->mem->offset << NVKM_RAM_MM_SHIFT), \
314 ((u64)MAP->mem->length << NVKM_RAM_MM_SHIFT), \
315 (MAP->mem = MAP->mem->next))
316 #define VMM_MAP_ITER_DMA(VMM,PT,PTEI,PTEN,MAP,FILL) \ argument
317 VMM_MAP_ITER(VMM,PT,PTEI,PTEN,MAP,FILL, \
318 *MAP->dma, PAGE_SIZE, MAP->dma++)
319 #define VMM_MAP_ITER_SGL(VMM,PT,PTEI,PTEN,MAP,FILL) \ argument
320 VMM_MAP_ITER(VMM,PT,PTEI,PTEN,MAP,FILL, \
321 sg_dma_address(MAP->sgl), sg_dma_len(MAP->sgl), \
322 (MAP->sgl = sg_next(MAP->sgl)))