Lines Matching defs:vma
1509 struct vm_area_struct *vma,
1512 if ((vma->vm_end - vma->vm_start != PAGE_SIZE) ||
1513 !(vma->vm_flags & VM_SHARED))
1516 if (get_index(vma->vm_pgoff) != MLX5_IB_CLOCK_INFO_V1)
1519 if (vma->vm_flags & (VM_WRITE | VM_EXEC))
1542 struct vm_area_struct *vma,
1559 if (vma->vm_end - vma->vm_start != PAGE_SIZE)
1563 idx = get_extended_index(vma->vm_pgoff) + bfregi->num_static_sys_pages;
1565 idx = get_index(vma->vm_pgoff);
1578 prot = pgprot_writecombine(vma->vm_page_prot);
1581 prot = pgprot_noncached(vma->vm_page_prot);
1623 err = rdma_user_mmap_io(&context->ibucontext, vma, pfn, PAGE_SIZE,
1648 static unsigned long mlx5_vma_to_pgoff(struct vm_area_struct *vma)
1653 command = get_command(vma->vm_pgoff);
1654 idx = get_extended_index(vma->vm_pgoff);
1660 struct vm_area_struct *vma,
1670 pgoff = mlx5_vma_to_pgoff(vma);
1679 prot = pgprot_noncached(vma->vm_page_prot);
1681 prot = pgprot_writecombine(vma->vm_page_prot);
1682 ret = rdma_user_mmap_io(ucontext, vma, pfn,
1690 static int mlx5_ib_mmap(struct ib_ucontext *ibcontext, struct vm_area_struct *vma)
1697 command = get_command(vma->vm_pgoff);
1706 return uar_mmap(dev, command, vma, context);
1712 if (vma->vm_end - vma->vm_start != PAGE_SIZE)
1715 if (vma->vm_flags & VM_WRITE)
1725 return rdma_user_mmap_io(&context->ibucontext, vma, pfn,
1727 pgprot_noncached(vma->vm_page_prot),
1730 return mlx5_ib_mmap_clock_info_page(dev, vma, context);
1733 return mlx5_ib_mmap_offset(dev, vma, ibcontext);