Home
last modified time | relevance | path

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

/drivers/infiniband/hw/qib/
Dqib_user_pages.c57 unsigned long lock_limit; in __qib_get_user_pages() local
61 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in __qib_get_user_pages()
63 if (num_pages > lock_limit && !capable(CAP_IPC_LOCK)) { in __qib_get_user_pages()
/drivers/infiniband/hw/ipath/
Dipath_user_pages.c59 unsigned long lock_limit; in __ipath_get_user_pages() local
63 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in __ipath_get_user_pages()
65 if (num_pages > lock_limit) { in __ipath_get_user_pages()
/drivers/infiniband/core/
Dumem.c85 unsigned long lock_limit; in ib_umem_get() local
151 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in ib_umem_get()
153 if ((locked > lock_limit) && !capable(CAP_IPC_LOCK)) { in ib_umem_get()
/drivers/vfio/
Dvfio_iommu_spapr_tce.c53 unsigned long locked, lock_limit, npages; in tce_iommu_enable() local
86 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in tce_iommu_enable()
87 if (locked > lock_limit && !capable(CAP_IPC_LOCK)) { in tce_iommu_enable()
/drivers/infiniband/hw/usnic/
Dusnic_uiom.c107 unsigned long lock_limit; in usnic_uiom_get_pages() local
134 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in usnic_uiom_get_pages()
136 if ((locked > lock_limit) && !capable(CAP_IPC_LOCK)) { in usnic_uiom_get_pages()