Searched refs:MiB_TO_PAGES (Results 1 – 8 of 8) sorted by relevance
42 #define MiB_TO_PAGES(mb) ((mb) << (20 - PAGE_SHIFT)) macro45 #define MiB_TO_PAGES(mb) ((mb) >> (PAGE_SHIFT - 20)) macro
121 dimm->nr_pages = MiB_TO_PAGES(32);/* Unknown */ in assign_dmi_dimm_info()123 dimm->nr_pages = MiB_TO_PAGES(entry->extended_size); in assign_dmi_dimm_info()126 dimm->nr_pages = MiB_TO_PAGES((entry->size & 0x7fff) << 10); in assign_dmi_dimm_info()128 dimm->nr_pages = MiB_TO_PAGES(entry->size); in assign_dmi_dimm_info()
370 npages = MiB_TO_PAGES(size); in skx_get_dimm_info()
649 dimm->nr_pages = MiB_TO_PAGES(dinfo->megabytes); in decode_mtr()
1234 dimm->nr_pages = MiB_TO_PAGES(capacity >> (20 - 3)); in apl_get_dimm_config()1300 dimm->nr_pages = MiB_TO_PAGES(capacity >> (20 - 3)); in dnv_get_dimm_config()
840 dimm->nr_pages = MiB_TO_PAGES(dsize >> 20); in igen6_get_dimm_config()
602 npages = MiB_TO_PAGES(size); in get_dimm_config()
1660 npages = MiB_TO_PAGES(size); in __populate_dimms()