Home
last modified time | relevance | path

Searched refs:MiB_TO_PAGES (Results 1 – 8 of 8) sorted by relevance

/linux-5.19.10/drivers/edac/
Dedac_mc.h42 #define MiB_TO_PAGES(mb) ((mb) << (20 - PAGE_SHIFT)) macro
45 #define MiB_TO_PAGES(mb) ((mb) >> (PAGE_SHIFT - 20)) macro
Dghes_edac.c122 dimm->nr_pages = MiB_TO_PAGES(32);/* Unknown */ in assign_dmi_dimm_info()
124 dimm->nr_pages = MiB_TO_PAGES(entry->extended_size); in assign_dmi_dimm_info()
127 dimm->nr_pages = MiB_TO_PAGES((entry->size & 0x7fff) << 10); in assign_dmi_dimm_info()
129 dimm->nr_pages = MiB_TO_PAGES(entry->size); in assign_dmi_dimm_info()
Dskx_common.c363 npages = MiB_TO_PAGES(size); in skx_get_dimm_info()
Di7300_edac.c649 dimm->nr_pages = MiB_TO_PAGES(dinfo->megabytes); in decode_mtr()
Dpnd2_edac.c1256 dimm->nr_pages = MiB_TO_PAGES(capacity >> (20 - 3)); in apl_get_dimm_config()
1322 dimm->nr_pages = MiB_TO_PAGES(capacity >> (20 - 3)); in dnv_get_dimm_config()
Digen6_edac.c840 dimm->nr_pages = MiB_TO_PAGES(dsize >> 20); in igen6_get_dimm_config()
Di7core_edac.c602 npages = MiB_TO_PAGES(size); in get_dimm_config()
Dsb_edac.c1652 npages = MiB_TO_PAGES(size); in __populate_dimms()