Home
last modified time | relevance | path

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

/openbmc/linux/drivers/nvdimm/
H A Dpfn_devs.c709 nd_pfn->npfns = le64_to_cpu(pfn_sb->npfns); in __nvdimm_setup_pfn()
711 nd_pfn->npfns = PHYS_PFN((range_len(range) - offset)); in __nvdimm_setup_pfn()
712 if (le64_to_cpu(nd_pfn->pfn_sb->npfns) > nd_pfn->npfns) in __nvdimm_setup_pfn()
715 le64_to_cpu(nd_pfn->pfn_sb->npfns), in __nvdimm_setup_pfn()
716 nd_pfn->npfns); in __nvdimm_setup_pfn()
733 unsigned long npfns, align; in nd_pfn_init() local
770 npfns = PHYS_PFN(size - SZ_8K); in nd_pfn_init()
786 unsigned long page_map_size = MAX_STRUCT_PAGE_SIZE * npfns; in nd_pfn_init()
805 page_map_size = sizeof(struct page) * npfns; in nd_pfn_init()
825 npfns = PHYS_PFN(size - offset - end_trunc); in nd_pfn_init()
[all …]
H A Dpfn.h24 __le64 npfns; member
H A Dnd.h472 unsigned long npfns; member
/openbmc/linux/drivers/iommu/iommufd/
H A Dpages.c269 u32 *npfns; member
280 batch->npfns[0] = 0; in batch_clear()
294 batch->npfns[batch->end - 1] < keep_pfns); in batch_clear_carry()
298 (batch->npfns[batch->end - 1] - keep_pfns); in batch_clear_carry()
299 batch->npfns[0] = keep_pfns; in batch_clear_carry()
308 WARN_ON(batch->total_pfns != batch->npfns[0]); in batch_skip_carry()
311 batch->npfns[0] -= skip_pfns; in batch_skip_carry()
318 const size_t elmsz = sizeof(*batch->pfns) + sizeof(*batch->npfns); in __batch_init()
327 batch->npfns = (u32 *)(batch->pfns + batch->array_size); in __batch_init()
352 const unsigned int MAX_NPFNS = type_max(typeof(*batch->npfns)); in batch_add_pfn()
[all …]
/openbmc/linux/drivers/infiniband/core/
H A Dumem_odp.c62 size_t ndmas, npfns; in ib_init_umem_odp() local
77 npfns = (end - start) >> PAGE_SHIFT; in ib_init_umem_odp()
79 npfns, sizeof(*umem_odp->pfn_list), GFP_KERNEL); in ib_init_umem_odp()