Lines Matching refs:pMemLnxToMap
1255 PRTR0MEMOBJLNX pMemLnxToMap = (PRTR0MEMOBJLNX)pMemToMap;
1267 pMemLnx = (PRTR0MEMOBJLNX)rtR0MemObjNew(sizeof(*pMemLnx), RTR0MEMOBJTYPE_MAPPING, NULL, pMemLnxToMap->Core.cb);
1270 if (pMemLnxToMap->cPages)
1278 pMemLnx->Core.pv = vmap(&pMemLnxToMap->apPages[0], pMemLnxToMap->cPages, VM_MAP, fPg);
1280 pMemLnx->Core.pv = vmap(&pMemLnxToMap->apPages[0], pMemLnxToMap->cPages, VM_ALLOC, fPg);
1299 if (!pMemLnxToMap->Core.pv)
1300 rc = rtR0MemObjLinuxVMap(pMemLnxToMap, !!(fProt & RTMEM_PROT_EXEC));
1303 Assert(pMemLnxToMap->Core.pv);
1304 pMemLnx->Core.pv = pMemLnxToMap->Core.pv;
1314 Assert(pMemLnxToMap->Core.enmType == RTR0MEMOBJTYPE_PHYS && !pMemLnxToMap->Core.u.Phys.fAllocated);
1315 pMemLnx->Core.pv = pMemLnxToMap->Core.u.Phys.uCachePolicy == RTMEM_CACHE_POLICY_MMIO
1316 ? ioremap_nocache(pMemLnxToMap->Core.u.Phys.PhysBase, pMemLnxToMap->Core.cb)
1317 : ioremap(pMemLnxToMap->Core.u.Phys.PhysBase, pMemLnxToMap->Core.cb);
1390 PRTR0MEMOBJLNX pMemLnxToMap = (PRTR0MEMOBJLNX)pMemToMap;
1420 pMemLnx = (PRTR0MEMOBJLNX)rtR0MemObjNew(sizeof(*pMemLnx), RTR0MEMOBJTYPE_MAPPING, NULL, pMemLnxToMap->Core.cb);
1427 pv = rtR0MemObjLinuxDoMmap(R3PtrFixed, pMemLnxToMap->Core.cb, uAlignment, pTask, fProt);
1436 const size_t cPages = pMemLnxToMap->Core.cb >> PAGE_SHIFT;
1442 if (pMemLnxToMap->cPages)
1447 RTHCPHYS Phys = page_to_phys(pMemLnxToMap->apPages[iPage]);
1459 rc = vm_insert_page(vma, ulAddrCur, pMemLnxToMap->apPages[iPage]);
1468 rc = remap_pfn_range(vma, ulAddrCur, page_to_pfn(pMemLnxToMap->apPages[iPage]), PAGE_SIZE, fPg);
1488 if (pMemLnxToMap->Core.enmType == RTR0MEMOBJTYPE_PHYS)
1489 Phys = pMemLnxToMap->Core.u.Phys.PhysBase;
1490 else if (pMemLnxToMap->Core.enmType == RTR0MEMOBJTYPE_CONT)
1491 Phys = pMemLnxToMap->Core.u.Cont.Phys;
1494 AssertMsgFailed(("%d\n", pMemLnxToMap->Core.enmType));
1572 rtR0MemObjLinuxDoMunmap(pv, pMemLnxToMap->Core.cb, pTask);