Home
last modified time | relevance | path

Searched refs:lock_limit (Results 1 – 6 of 6) sorted by relevance

/drivers/infiniband/hw/qib/
Dqib_user_pages.c97 unsigned long locked, lock_limit; in qib_get_user_pages() local
101 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in qib_get_user_pages()
104 if (locked > lock_limit && !capable(CAP_IPC_LOCK)) { in qib_get_user_pages()
/drivers/infiniband/core/
Dumem.c147 unsigned long lock_limit; in ib_umem_get() local
197 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in ib_umem_get()
200 if (new_pinned > lock_limit && !capable(CAP_IPC_LOCK)) { in ib_umem_get()
/drivers/infiniband/hw/usnic/
Dusnic_uiom.c93 unsigned long lock_limit; in usnic_uiom_get_pages() local
127 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in usnic_uiom_get_pages()
129 if ((locked > lock_limit) && !capable(CAP_IPC_LOCK)) { in usnic_uiom_get_pages()
/drivers/vhost/
Dvdpa.c991 unsigned long lock_limit, sz2pin, nchunks, i; in vhost_vdpa_pa_map() local
1012 lock_limit = PFN_DOWN(rlimit(RLIMIT_MEMLOCK)); in vhost_vdpa_pa_map()
1013 if (npages + atomic64_read(&dev->mm->pinned_vm) > lock_limit) { in vhost_vdpa_pa_map()
/drivers/iommu/iommufd/
Dpages.c806 unsigned long lock_limit; in incr_user_locked_vm() local
810 lock_limit = task_rlimit(pages->source_task, RLIMIT_MEMLOCK) >> in incr_user_locked_vm()
815 if (new_pages > lock_limit) in incr_user_locked_vm()
/drivers/vdpa/vdpa_user/
Dvduse_dev.c1033 unsigned long npages, lock_limit; in vduse_dev_reg_umem() local
1056 lock_limit = PFN_DOWN(rlimit(RLIMIT_MEMLOCK)); in vduse_dev_reg_umem()
1057 if (npages + atomic64_read(&current->mm->pinned_vm) > lock_limit) in vduse_dev_reg_umem()