Home
last modified time | relevance | path

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

/linux/drivers/edac/
H A Dedac_mc.h42 #define MiB_TO_PAGES(mb) ((mb) << (20 - PAGE_SHIFT)) macro
45 #define MiB_TO_PAGES(mb) ((mb) >> (PAGE_SHIFT - 20)) macro
H A Dghes_edac.c121 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()
H A Di7300_edac.c649 dimm->nr_pages = MiB_TO_PAGES(dinfo->megabytes); in decode_mtr()
H A Dskx_common.c378 npages = MiB_TO_PAGES(size); in skx_get_dimm_info()
H A Dpnd2_edac.c1231 dimm->nr_pages = MiB_TO_PAGES(capacity >> (20 - 3)); in apl_get_dimm_config()
1297 dimm->nr_pages = MiB_TO_PAGES(capacity >> (20 - 3)); in dnv_get_dimm_config()
H A Digen6_edac.c1024 dimm->nr_pages = MiB_TO_PAGES(dsize >> 20); in igen6_get_dimm_config()
H A Di7core_edac.c602 npages = MiB_TO_PAGES(size); in get_dimm_config()
H A Dsb_edac.c1662 npages = MiB_TO_PAGES(size); in __populate_dimms()