Lines Matching refs:mm

215         down_write(&pTask->mm->mmap_sem);
217 up_write(&pTask->mm->mmap_sem);
225 down_write(&pTask->mm->mmap_sem);
227 up_write(&pTask->mm->mmap_sem);
262 down_write(&pTask->mm->mmap_sem);
263 do_munmap(pTask->mm, (unsigned long)pv, cb, 0); /* should it be 1 or 0? */
264 up_write(&pTask->mm->mmap_sem);
266 down_write(&pTask->mm->mmap_sem);
267 do_munmap(pTask->mm, (unsigned long)pv, cb);
268 up_write(&pTask->mm->mmap_sem);
572 if (pTask && pTask->mm)
573 down_read(&pTask->mm->mmap_sem);
583 if (pTask && pTask->mm)
584 up_read(&pTask->mm->mmap_sem);
595 if (pTask && pTask->mm)
616 if (pTask && pTask->mm)
1004 down_read(&pTask->mm->mmap_sem);
1010 pTask->mm, /* Whose pages. */
1041 up_read(&pTask->mm->mmap_sem);
1063 up_read(&pTask->mm->mmap_sem);
1348 * @param mm The memory context.
1352 static int rtR0MemObjLinuxFixPte(struct mm_struct *mm, unsigned long ulAddr, RTHCPHYS Phys)
1357 spin_lock(&mm->page_table_lock);
1359 pgd = pgd_offset(mm, ulAddr);
1380 spin_unlock(&mm->page_table_lock);
1439 down_write(&pTask->mm->mmap_sem);
1450 struct vm_area_struct *vma = find_vma(pTask->mm, ulAddrCur); /* this is probably the same for all the pages... */
1461 * See remap_pfn_range() in mm/memory.c */
1472 rc = rtR0MemObjLinuxFixPte(pTask->mm, ulAddrCur, Phys);
1502 struct vm_area_struct *vma = find_vma(pTask->mm, ulAddrCur); /* this is probably the same for all the pages... */
1515 rc = rtR0MemObjLinuxFixPte(pTask->mm, ulAddrCur, Phys);
1544 pTask->mm->numa_next_reset = jiffies + 0x7fffffffUL;
1546 pTask->mm->numa_next_scan = jiffies + 0x7fffffffUL;
1549 pTask->mm->numa_next_reset = jiffies + 0x7fffffffffffffffUL;
1551 pTask->mm->numa_next_scan = jiffies + 0x7fffffffffffffffUL;
1556 up_write(&pTask->mm->mmap_sem);