Searched refs:npfns (Results 1 – 4 of 4) sorted by relevance
699 nd_pfn->npfns = le64_to_cpu(pfn_sb->npfns); in __nvdimm_setup_pfn()701 nd_pfn->npfns = PHYS_PFN((range_len(range) - offset)); in __nvdimm_setup_pfn()702 if (le64_to_cpu(nd_pfn->pfn_sb->npfns) > nd_pfn->npfns) in __nvdimm_setup_pfn()705 le64_to_cpu(nd_pfn->pfn_sb->npfns), in __nvdimm_setup_pfn()706 nd_pfn->npfns); in __nvdimm_setup_pfn()723 unsigned long npfns, align; in nd_pfn_init() local760 npfns = PHYS_PFN(size - SZ_8K); in nd_pfn_init()776 unsigned long page_map_size = MAX_STRUCT_PAGE_SIZE * npfns; in nd_pfn_init()795 page_map_size = sizeof(struct page) * npfns; in nd_pfn_init()815 npfns = PHYS_PFN(size - offset - end_trunc); in nd_pfn_init()[all …]
24 __le64 npfns; member
472 unsigned long npfns; member
278 u32 *npfns; member284 enum { MAX_NPFNS = type_max(typeof(((struct pfn_batch *)0)->npfns[0])) };291 batch->npfns[0] = 0; in batch_clear()306 batch->npfns[batch->end - 1] < keep_pfns); in batch_clear_carry()310 (batch->npfns[batch->end - 1] - keep_pfns); in batch_clear_carry()311 batch->npfns[0] = keep_pfns; in batch_clear_carry()320 WARN_ON(batch->total_pfns != batch->npfns[0]); in batch_skip_carry()323 batch->npfns[0] -= skip_pfns; in batch_skip_carry()330 const size_t elmsz = sizeof(*batch->pfns) + sizeof(*batch->npfns); in __batch_init()339 batch->npfns = (u32 *)(batch->pfns + batch->array_size); in __batch_init()[all …]