Home
last modified time | relevance | path

Searched refs:lock_limit (Results 1 – 4 of 4) 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
129 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in usnic_uiom_get_pages()
131 if ((locked > lock_limit) && !capable(CAP_IPC_LOCK)) { in usnic_uiom_get_pages()
/drivers/vhost/
Dvdpa.c710 unsigned long lock_limit, sz2pin, nchunks, i; in vhost_vdpa_pa_map() local
731 lock_limit = PFN_DOWN(rlimit(RLIMIT_MEMLOCK)); in vhost_vdpa_pa_map()
732 if (npages + atomic64_read(&dev->mm->pinned_vm) > lock_limit) { in vhost_vdpa_pa_map()