dimm 325 arch/sparc/kernel/chmc.c int dimm; dimm 330 arch/sparc/kernel/chmc.c for (dimm = 0; dimm < JB_NUM_DIMMS_PER_GROUP; dimm++) { dimm 332 arch/sparc/kernel/chmc.c prop->dimm_labels[first_dimm + dimm]); dimm 571 arch/sparc/kernel/chmc.c int dimm; dimm 576 arch/sparc/kernel/chmc.c for (dimm = 0; dimm < CHMCTRL_NDIMMS; dimm++) { dimm 578 arch/sparc/kernel/chmc.c prop->dimm_labels[first_dimm + dimm]); dimm 287 drivers/edac/altera_edac.c struct dimm_info *dimm; dimm 390 drivers/edac/altera_edac.c dimm = *mci->dimms; dimm 391 drivers/edac/altera_edac.c dimm->nr_pages = ((mem_size - 1) >> PAGE_SHIFT) + 1; dimm 392 drivers/edac/altera_edac.c dimm->grain = 8; dimm 393 drivers/edac/altera_edac.c dimm->dtype = DEV_X8; dimm 394 drivers/edac/altera_edac.c dimm->mtype = MEM_DDR3; dimm 395 drivers/edac/altera_edac.c dimm->edac_mode = EDAC_SECDED; dimm 799 drivers/edac/amd64_edac.c static int f17_get_cs_mode(int dimm, u8 ctrl, struct amd64_pvt *pvt) dimm 803 drivers/edac/amd64_edac.c if (csrow_enabled(2 * dimm, ctrl, pvt)) dimm 806 drivers/edac/amd64_edac.c if (csrow_enabled(2 * dimm + 1, ctrl, pvt)) dimm 810 drivers/edac/amd64_edac.c if (csrow_sec_enabled(2 * dimm + 1, ctrl, pvt)) dimm 818 drivers/edac/amd64_edac.c int dimm, size0, size1, cs0, cs1, cs_mode; dimm 822 drivers/edac/amd64_edac.c for (dimm = 0; dimm < 2; dimm++) { dimm 823 drivers/edac/amd64_edac.c cs0 = dimm * 2; dimm 824 drivers/edac/amd64_edac.c cs1 = dimm * 2 + 1; dimm 826 drivers/edac/amd64_edac.c cs_mode = f17_get_cs_mode(dimm, ctrl, pvt); dimm 1588 drivers/edac/amd64_edac.c int dimm, size = 0; dimm 1607 drivers/edac/amd64_edac.c dimm = csrow_nr >> 1; dimm 1611 drivers/edac/amd64_edac.c addr_mask_orig = pvt->csels[umc].csmasks_sec[dimm]; dimm 1613 drivers/edac/amd64_edac.c addr_mask_orig = pvt->csels[umc].csmasks[dimm]; dimm 1629 drivers/edac/amd64_edac.c edac_dbg(1, "CS%d DIMM%d AddrMasks:\n", csrow_nr, dimm); dimm 2168 drivers/edac/amd64_edac.c int dimm, size0, size1; dimm 2196 drivers/edac/amd64_edac.c for (dimm = 0; dimm < 4; dimm++) { dimm 2199 drivers/edac/amd64_edac.c if (dcsb[dimm*2] & DCSB_CS_ENABLE) dimm 2207 drivers/edac/amd64_edac.c DBAM_DIMM(dimm, dbam), dimm 2208 drivers/edac/amd64_edac.c dimm); dimm 2211 drivers/edac/amd64_edac.c if (dcsb[dimm*2 + 1] & DCSB_CS_ENABLE) dimm 2213 drivers/edac/amd64_edac.c DBAM_DIMM(dimm, dbam), dimm 2214 drivers/edac/amd64_edac.c dimm); dimm 2217 drivers/edac/amd64_edac.c dimm * 2, size0, dimm 2218 drivers/edac/amd64_edac.c dimm * 2 + 1, size1); dimm 2907 drivers/edac/amd64_edac.c struct dimm_info *dimm; dimm 2930 drivers/edac/amd64_edac.c dimm = mci->csrows[cs]->channels[umc]->dimm; dimm 2935 drivers/edac/amd64_edac.c dimm->nr_pages = get_csrow_nr_pages(pvt, umc, cs); dimm 2936 drivers/edac/amd64_edac.c dimm->mtype = pvt->dram_type; dimm 2937 drivers/edac/amd64_edac.c dimm->edac_mode = edac_mode; dimm 2938 drivers/edac/amd64_edac.c dimm->dtype = dev_type; dimm 2939 drivers/edac/amd64_edac.c dimm->grain = 64; dimm 2955 drivers/edac/amd64_edac.c struct dimm_info *dimm; dimm 2992 drivers/edac/amd64_edac.c csrow->channels[0]->dimm->nr_pages = nr_pages; dimm 2999 drivers/edac/amd64_edac.c csrow->channels[1]->dimm->nr_pages = row_dct1_pages; dimm 3013 drivers/edac/amd64_edac.c dimm = csrow->channels[j]->dimm; dimm 3014 drivers/edac/amd64_edac.c dimm->mtype = pvt->dram_type; dimm 3015 drivers/edac/amd64_edac.c dimm->edac_mode = edac_mode; dimm 3016 drivers/edac/amd64_edac.c dimm->grain = 64; dimm 191 drivers/edac/amd76x_edac.c struct dimm_info *dimm; dimm 197 drivers/edac/amd76x_edac.c dimm = csrow->channels[0]->dimm; dimm 210 drivers/edac/amd76x_edac.c dimm->nr_pages = (mba_mask + 1) >> PAGE_SHIFT; dimm 211 drivers/edac/amd76x_edac.c csrow->last_page = csrow->first_page + dimm->nr_pages - 1; dimm 213 drivers/edac/amd76x_edac.c dimm->grain = dimm->nr_pages << PAGE_SHIFT; dimm 214 drivers/edac/amd76x_edac.c dimm->mtype = MEM_RDDR; dimm 215 drivers/edac/amd76x_edac.c dimm->dtype = ((dms >> index) & 0x1) ? DEV_X4 : DEV_UNKNOWN; dimm 216 drivers/edac/amd76x_edac.c dimm->edac_mode = edac_mode; dimm 224 drivers/edac/armada_xp_edac.c struct dimm_info *dimm; dimm 237 drivers/edac/armada_xp_edac.c dimm = mci->dimms[i]; dimm 251 drivers/edac/armada_xp_edac.c dimm->nr_pages = 524288; dimm 254 drivers/edac/armada_xp_edac.c dimm->nr_pages = 65536; dimm 257 drivers/edac/armada_xp_edac.c dimm->nr_pages = 131072; dimm 260 drivers/edac/armada_xp_edac.c dimm->nr_pages = 262144; dimm 263 drivers/edac/armada_xp_edac.c dimm->nr_pages = 1048576; dimm 266 drivers/edac/armada_xp_edac.c dimm->nr_pages = 2097152; dimm 269 drivers/edac/armada_xp_edac.c dimm->grain = 8; dimm 270 drivers/edac/armada_xp_edac.c dimm->dtype = cs_struct ? DEV_X16 : DEV_X8; dimm 271 drivers/edac/armada_xp_edac.c dimm->mtype = (config & SDRAM_CONFIG_REGISTERED_MASK) ? dimm 273 drivers/edac/armada_xp_edac.c dimm->edac_mode = EDAC_SECDED; dimm 235 drivers/edac/aspeed_edac.c struct dimm_info *dimm; dimm 267 drivers/edac/aspeed_edac.c dimm = csrow->channels[0]->dimm; dimm 268 drivers/edac/aspeed_edac.c dimm->mtype = dram_type; dimm 269 drivers/edac/aspeed_edac.c dimm->edac_mode = EDAC_SECDED; dimm 270 drivers/edac/aspeed_edac.c dimm->nr_pages = nr_pages / csrow->nr_channels; dimm 184 drivers/edac/bluefield_edac.c struct dimm_info *dimm; dimm 189 drivers/edac/bluefield_edac.c dimm = mci->dimms[i]; dimm 195 drivers/edac/bluefield_edac.c dimm->mtype = MEM_EMPTY; dimm 201 drivers/edac/bluefield_edac.c dimm->edac_mode = EDAC_SECDED; dimm 204 drivers/edac/bluefield_edac.c dimm->mtype = MEM_NVDIMM; dimm 206 drivers/edac/bluefield_edac.c dimm->mtype = MEM_LRDDR4; dimm 208 drivers/edac/bluefield_edac.c dimm->mtype = MEM_RDDR4; dimm 210 drivers/edac/bluefield_edac.c dimm->mtype = MEM_DDR4; dimm 212 drivers/edac/bluefield_edac.c dimm->nr_pages = dimm 215 drivers/edac/bluefield_edac.c dimm->grain = MLXBF_EDAC_ERROR_GRAIN; dimm 220 drivers/edac/bluefield_edac.c dimm->dtype = DEV_X4; dimm 223 drivers/edac/bluefield_edac.c dimm->dtype = DEV_X8; dimm 226 drivers/edac/bluefield_edac.c dimm->dtype = DEV_X16; dimm 229 drivers/edac/bluefield_edac.c dimm->dtype = DEV_UNKNOWN; dimm 131 drivers/edac/cell_edac.c struct dimm_info *dimm; dimm 153 drivers/edac/cell_edac.c dimm = csrow->channels[j]->dimm; dimm 154 drivers/edac/cell_edac.c dimm->mtype = MEM_XDR; dimm 155 drivers/edac/cell_edac.c dimm->edac_mode = EDAC_SECDED; dimm 156 drivers/edac/cell_edac.c dimm->nr_pages = nr_pages / csrow->nr_channels; dimm 318 drivers/edac/cpc925_edac.c struct dimm_info *dimm; dimm 369 drivers/edac/cpc925_edac.c dimm = csrow->channels[j]->dimm; dimm 370 drivers/edac/cpc925_edac.c dimm->nr_pages = nr_pages / csrow->nr_channels; dimm 371 drivers/edac/cpc925_edac.c dimm->mtype = MEM_RDDR; dimm 372 drivers/edac/cpc925_edac.c dimm->edac_mode = EDAC_SECDED; dimm 373 drivers/edac/cpc925_edac.c dimm->grain = grain; dimm 374 drivers/edac/cpc925_edac.c dimm->dtype = dtype; dimm 1127 drivers/edac/e752x_edac.c struct dimm_info *dimm = csrow->channels[i]->dimm; dimm 1130 drivers/edac/e752x_edac.c dimm->nr_pages = nr_pages / csrow->nr_channels; dimm 1131 drivers/edac/e752x_edac.c dimm->grain = 1 << 12; /* 4KiB - resolution of CELOG */ dimm 1132 drivers/edac/e752x_edac.c dimm->mtype = MEM_RDDR; /* only one type supported */ dimm 1133 drivers/edac/e752x_edac.c dimm->dtype = mem_dev ? DEV_X4 : DEV_X8; dimm 1134 drivers/edac/e752x_edac.c dimm->edac_mode = edac_mode; dimm 363 drivers/edac/e7xxx_edac.c struct dimm_info *dimm; dimm 410 drivers/edac/e7xxx_edac.c dimm = csrow->channels[j]->dimm; dimm 412 drivers/edac/e7xxx_edac.c dimm->nr_pages = nr_pages / (drc_chan + 1); dimm 413 drivers/edac/e7xxx_edac.c dimm->grain = 1 << 12; /* 4KiB - resolution of CELOG */ dimm 414 drivers/edac/e7xxx_edac.c dimm->mtype = MEM_RDDR; /* only one type supported */ dimm 415 drivers/edac/e7xxx_edac.c dimm->dtype = mem_dev ? DEV_X4 : DEV_X8; dimm 416 drivers/edac/e7xxx_edac.c dimm->edac_mode = edac_mode; dimm 117 drivers/edac/edac_mc.c unsigned int edac_dimm_info_location(struct dimm_info *dimm, char *buf, dimm 120 drivers/edac/edac_mc.c struct mem_ctl_info *mci = dimm->mci; dimm 127 drivers/edac/edac_mc.c dimm->location[i]); dimm 145 drivers/edac/edac_mc.c edac_dbg(4, " channel->dimm = %p\n", chan->dimm); dimm 148 drivers/edac/edac_mc.c static void edac_mc_dump_dimm(struct dimm_info *dimm, int number) dimm 152 drivers/edac/edac_mc.c edac_dimm_info_location(dimm, location, sizeof(location)); dimm 155 drivers/edac/edac_mc.c dimm->mci->csbased ? "rank" : "dimm", dimm 156 drivers/edac/edac_mc.c number, location, dimm->csrow, dimm->cschannel); dimm 157 drivers/edac/edac_mc.c edac_dbg(4, " dimm = %p\n", dimm); dimm 158 drivers/edac/edac_mc.c edac_dbg(4, " dimm->label = '%s'\n", dimm->label); dimm 159 drivers/edac/edac_mc.c edac_dbg(4, " dimm->nr_pages = 0x%x\n", dimm->nr_pages); dimm 160 drivers/edac/edac_mc.c edac_dbg(4, " dimm->grain = %d\n", dimm->grain); dimm 161 drivers/edac/edac_mc.c edac_dbg(4, " dimm->nr_pages = 0x%x\n", dimm->nr_pages); dimm 314 drivers/edac/edac_mc.c struct dimm_info *dimm; dimm 436 drivers/edac/edac_mc.c dimm = kzalloc(sizeof(**mci->dimms), GFP_KERNEL); dimm 437 drivers/edac/edac_mc.c if (!dimm) dimm 439 drivers/edac/edac_mc.c mci->dimms[off] = dimm; dimm 440 drivers/edac/edac_mc.c dimm->mci = mci; dimm 445 drivers/edac/edac_mc.c len = sizeof(dimm->label); dimm 446 drivers/edac/edac_mc.c p = dimm->label; dimm 456 drivers/edac/edac_mc.c dimm->location[j] = pos[j]; dimm 463 drivers/edac/edac_mc.c chan->dimm = dimm; dimm 464 drivers/edac/edac_mc.c dimm->csrow = row; dimm 465 drivers/edac/edac_mc.c dimm->cschannel = chn; dimm 719 drivers/edac/edac_mc.c nr_pages += csrow->channels[j]->dimm->nr_pages; dimm 724 drivers/edac/edac_mc.c if (csrow->channels[j]->dimm->nr_pages) dimm 864 drivers/edac/edac_mc.c struct dimm_info *dimm = csrow->channels[j]->dimm; dimm 865 drivers/edac/edac_mc.c n += dimm->nr_pages; dimm 1148 drivers/edac/edac_mc.c struct dimm_info *dimm = mci->dimms[i]; dimm 1150 drivers/edac/edac_mc.c if (top_layer >= 0 && top_layer != dimm->location[0]) dimm 1152 drivers/edac/edac_mc.c if (mid_layer >= 0 && mid_layer != dimm->location[1]) dimm 1154 drivers/edac/edac_mc.c if (low_layer >= 0 && low_layer != dimm->location[2]) dimm 1158 drivers/edac/edac_mc.c if (dimm->grain > e->grain) dimm 1159 drivers/edac/edac_mc.c e->grain = dimm->grain; dimm 1167 drivers/edac/edac_mc.c if (e->enable_per_layer_report && dimm->nr_pages) { dimm 1177 drivers/edac/edac_mc.c strcpy(p, dimm->label); dimm 1187 drivers/edac/edac_mc.c dimm->csrow, dimm->cschannel); dimm 1189 drivers/edac/edac_mc.c row = dimm->csrow; dimm 1190 drivers/edac/edac_mc.c else if (row >= 0 && row != dimm->csrow) dimm 1194 drivers/edac/edac_mc.c chan = dimm->cschannel; dimm 1195 drivers/edac/edac_mc.c else if (chan >= 0 && chan != dimm->cschannel) dimm 168 drivers/edac/edac_mc_sysfs.c nr_pages += csrow->channels[i]->dimm->nr_pages; dimm 177 drivers/edac/edac_mc_sysfs.c return sprintf(data, "%s\n", edac_mem_types[csrow->channels[0]->dimm->mtype]); dimm 185 drivers/edac/edac_mc_sysfs.c return sprintf(data, "%s\n", dev_types[csrow->channels[0]->dimm->dtype]); dimm 194 drivers/edac/edac_mc_sysfs.c return sprintf(data, "%s\n", edac_caps[csrow->channels[0]->dimm->edac_mode]); dimm 207 drivers/edac/edac_mc_sysfs.c if (!rank->dimm->label[0]) dimm 210 drivers/edac/edac_mc_sysfs.c return snprintf(data, sizeof(rank->dimm->label) + 1, "%s\n", dimm 211 drivers/edac/edac_mc_sysfs.c rank->dimm->label); dimm 229 drivers/edac/edac_mc_sysfs.c if (copy_count == 0 || copy_count >= sizeof(rank->dimm->label)) dimm 232 drivers/edac/edac_mc_sysfs.c strncpy(rank->dimm->label, data, copy_count); dimm 233 drivers/edac/edac_mc_sysfs.c rank->dimm->label[copy_count] = '\0'; dimm 367 drivers/edac/edac_mc_sysfs.c if (!csrow->channels[idx]->dimm->nr_pages) dimm 395 drivers/edac/edac_mc_sysfs.c nr_pages += csrow->channels[chan]->dimm->nr_pages; dimm 477 drivers/edac/edac_mc_sysfs.c struct dimm_info *dimm = to_dimm(dev); dimm 479 drivers/edac/edac_mc_sysfs.c return edac_dimm_info_location(dimm, data, PAGE_SIZE); dimm 485 drivers/edac/edac_mc_sysfs.c struct dimm_info *dimm = to_dimm(dev); dimm 488 drivers/edac/edac_mc_sysfs.c if (!dimm->label[0]) dimm 491 drivers/edac/edac_mc_sysfs.c return snprintf(data, sizeof(dimm->label) + 1, "%s\n", dimm->label); dimm 499 drivers/edac/edac_mc_sysfs.c struct dimm_info *dimm = to_dimm(dev); dimm 508 drivers/edac/edac_mc_sysfs.c if (copy_count == 0 || copy_count >= sizeof(dimm->label)) dimm 511 drivers/edac/edac_mc_sysfs.c strncpy(dimm->label, data, copy_count); dimm 512 drivers/edac/edac_mc_sysfs.c dimm->label[copy_count] = '\0'; dimm 520 drivers/edac/edac_mc_sysfs.c struct dimm_info *dimm = to_dimm(dev); dimm 522 drivers/edac/edac_mc_sysfs.c return sprintf(data, "%u\n", PAGES_TO_MiB(dimm->nr_pages)); dimm 528 drivers/edac/edac_mc_sysfs.c struct dimm_info *dimm = to_dimm(dev); dimm 530 drivers/edac/edac_mc_sysfs.c return sprintf(data, "%s\n", edac_mem_types[dimm->mtype]); dimm 536 drivers/edac/edac_mc_sysfs.c struct dimm_info *dimm = to_dimm(dev); dimm 538 drivers/edac/edac_mc_sysfs.c return sprintf(data, "%s\n", dev_types[dimm->dtype]); dimm 545 drivers/edac/edac_mc_sysfs.c struct dimm_info *dimm = to_dimm(dev); dimm 547 drivers/edac/edac_mc_sysfs.c return sprintf(data, "%s\n", edac_caps[dimm->edac_mode]); dimm 554 drivers/edac/edac_mc_sysfs.c struct dimm_info *dimm = to_dimm(dev); dimm 558 drivers/edac/edac_mc_sysfs.c off = EDAC_DIMM_OFF(dimm->mci->layers, dimm 559 drivers/edac/edac_mc_sysfs.c dimm->mci->n_layers, dimm 560 drivers/edac/edac_mc_sysfs.c dimm->location[0], dimm 561 drivers/edac/edac_mc_sysfs.c dimm->location[1], dimm 562 drivers/edac/edac_mc_sysfs.c dimm->location[2]); dimm 563 drivers/edac/edac_mc_sysfs.c count = dimm->mci->ce_per_layer[dimm->mci->n_layers-1][off]; dimm 571 drivers/edac/edac_mc_sysfs.c struct dimm_info *dimm = to_dimm(dev); dimm 575 drivers/edac/edac_mc_sysfs.c off = EDAC_DIMM_OFF(dimm->mci->layers, dimm 576 drivers/edac/edac_mc_sysfs.c dimm->mci->n_layers, dimm 577 drivers/edac/edac_mc_sysfs.c dimm->location[0], dimm 578 drivers/edac/edac_mc_sysfs.c dimm->location[1], dimm 579 drivers/edac/edac_mc_sysfs.c dimm->location[2]); dimm 580 drivers/edac/edac_mc_sysfs.c count = dimm->mci->ue_per_layer[dimm->mci->n_layers-1][off]; dimm 629 drivers/edac/edac_mc_sysfs.c struct dimm_info *dimm, dimm 633 drivers/edac/edac_mc_sysfs.c dimm->mci = mci; dimm 635 drivers/edac/edac_mc_sysfs.c dimm->dev.type = &dimm_attr_type; dimm 636 drivers/edac/edac_mc_sysfs.c device_initialize(&dimm->dev); dimm 638 drivers/edac/edac_mc_sysfs.c dimm->dev.parent = &mci->dev; dimm 640 drivers/edac/edac_mc_sysfs.c dev_set_name(&dimm->dev, "rank%d", index); dimm 642 drivers/edac/edac_mc_sysfs.c dev_set_name(&dimm->dev, "dimm%d", index); dimm 643 drivers/edac/edac_mc_sysfs.c dev_set_drvdata(&dimm->dev, dimm); dimm 646 drivers/edac/edac_mc_sysfs.c err = device_add(&dimm->dev); dimm 648 drivers/edac/edac_mc_sysfs.c edac_dbg(1, "failure: create device %s\n", dev_name(&dimm->dev)); dimm 649 drivers/edac/edac_mc_sysfs.c put_device(&dimm->dev); dimm 656 drivers/edac/edac_mc_sysfs.c edac_dimm_info_location(dimm, location, sizeof(location)); dimm 658 drivers/edac/edac_mc_sysfs.c dev_name(&dimm->dev), location); dimm 817 drivers/edac/edac_mc_sysfs.c struct dimm_info *dimm = csrow->channels[j]->dimm; dimm 819 drivers/edac/edac_mc_sysfs.c total_pages += dimm->nr_pages; dimm 946 drivers/edac/edac_mc_sysfs.c struct dimm_info *dimm = mci->dimms[i]; dimm 948 drivers/edac/edac_mc_sysfs.c if (!dimm->nr_pages) dimm 951 drivers/edac/edac_mc_sysfs.c err = edac_create_dimm_object(mci, dimm, i); dimm 967 drivers/edac/edac_mc_sysfs.c struct dimm_info *dimm = mci->dimms[i]; dimm 968 drivers/edac/edac_mc_sysfs.c if (!dimm->nr_pages) dimm 971 drivers/edac/edac_mc_sysfs.c device_unregister(&dimm->dev); dimm 995 drivers/edac/edac_mc_sysfs.c struct dimm_info *dimm = mci->dimms[i]; dimm 996 drivers/edac/edac_mc_sysfs.c if (dimm->nr_pages == 0) dimm 998 drivers/edac/edac_mc_sysfs.c edac_dbg(1, "unregistering device %s\n", dev_name(&dimm->dev)); dimm 999 drivers/edac/edac_mc_sysfs.c device_unregister(&dimm->dev); dimm 41 drivers/edac/edac_module.h unsigned edac_dimm_info_location(struct dimm_info *dimm, char *buf, dimm 395 drivers/edac/fsl_ddr_edac.c struct dimm_info *dimm; dimm 448 drivers/edac/fsl_ddr_edac.c dimm = csrow->channels[0]->dimm; dimm 466 drivers/edac/fsl_ddr_edac.c dimm->nr_pages = end + 1 - start; dimm 467 drivers/edac/fsl_ddr_edac.c dimm->grain = 8; dimm 468 drivers/edac/fsl_ddr_edac.c dimm->mtype = mtype; dimm 469 drivers/edac/fsl_ddr_edac.c dimm->dtype = DEV_UNKNOWN; dimm 471 drivers/edac/fsl_ddr_edac.c dimm->dtype = DEV_X32; dimm 472 drivers/edac/fsl_ddr_edac.c dimm->edac_mode = EDAC_SECDED; dimm 109 drivers/edac/ghes_edac.c struct dimm_info *dimm = EDAC_DIMM_PTR(mci->layers, mci->dimms, dimm 117 drivers/edac/ghes_edac.c dimm->nr_pages = MiB_TO_PAGES(32);/* Unknown */ dimm 119 drivers/edac/ghes_edac.c dimm->nr_pages = MiB_TO_PAGES(entry->extended_size); dimm 122 drivers/edac/ghes_edac.c dimm->nr_pages = MiB_TO_PAGES((entry->size & 0x7fff) << 10); dimm 124 drivers/edac/ghes_edac.c dimm->nr_pages = MiB_TO_PAGES(entry->size); dimm 130 drivers/edac/ghes_edac.c dimm->mtype = MEM_RDDR; dimm 132 drivers/edac/ghes_edac.c dimm->mtype = MEM_DDR; dimm 136 drivers/edac/ghes_edac.c dimm->mtype = MEM_RDDR2; dimm 138 drivers/edac/ghes_edac.c dimm->mtype = MEM_DDR2; dimm 141 drivers/edac/ghes_edac.c dimm->mtype = MEM_FB_DDR2; dimm 145 drivers/edac/ghes_edac.c dimm->mtype = MEM_NVDIMM; dimm 147 drivers/edac/ghes_edac.c dimm->mtype = MEM_RDDR3; dimm 149 drivers/edac/ghes_edac.c dimm->mtype = MEM_DDR3; dimm 153 drivers/edac/ghes_edac.c dimm->mtype = MEM_NVDIMM; dimm 155 drivers/edac/ghes_edac.c dimm->mtype = MEM_RDDR4; dimm 157 drivers/edac/ghes_edac.c dimm->mtype = MEM_DDR4; dimm 161 drivers/edac/ghes_edac.c dimm->mtype = MEM_RMBS; dimm 163 drivers/edac/ghes_edac.c dimm->mtype = MEM_RDR; dimm 165 drivers/edac/ghes_edac.c dimm->mtype = MEM_SDR; dimm 167 drivers/edac/ghes_edac.c dimm->mtype = MEM_EDO; dimm 169 drivers/edac/ghes_edac.c dimm->mtype = MEM_UNKNOWN; dimm 177 drivers/edac/ghes_edac.c dimm->edac_mode = EDAC_NONE; dimm 179 drivers/edac/ghes_edac.c dimm->edac_mode = EDAC_SECDED; dimm 181 drivers/edac/ghes_edac.c dimm->dtype = DEV_UNKNOWN; dimm 182 drivers/edac/ghes_edac.c dimm->grain = 128; /* Likely, worse case */ dimm 188 drivers/edac/ghes_edac.c if (dimm->nr_pages) { dimm 190 drivers/edac/ghes_edac.c dimm_fill->count, edac_mem_types[dimm->mtype], dimm 191 drivers/edac/ghes_edac.c PAGES_TO_MiB(dimm->nr_pages), dimm 192 drivers/edac/ghes_edac.c (dimm->edac_mode != EDAC_NONE) ? "(ECC)" : ""); dimm 198 drivers/edac/ghes_edac.c dimm->smbios_handle = entry->handle; dimm 553 drivers/edac/ghes_edac.c struct dimm_info *dimm = EDAC_DIMM_PTR(mci->layers, mci->dimms, dimm 556 drivers/edac/ghes_edac.c dimm->nr_pages = 1; dimm 557 drivers/edac/ghes_edac.c dimm->grain = 128; dimm 558 drivers/edac/ghes_edac.c dimm->mtype = MEM_UNKNOWN; dimm 559 drivers/edac/ghes_edac.c dimm->dtype = DEV_UNKNOWN; dimm 560 drivers/edac/ghes_edac.c dimm->edac_mode = EDAC_SECDED; dimm 151 drivers/edac/highbank_mc_edac.c struct dimm_info *dimm; dimm 221 drivers/edac/highbank_mc_edac.c dimm = *mci->dimms; dimm 222 drivers/edac/highbank_mc_edac.c dimm->nr_pages = (~0UL >> PAGE_SHIFT) + 1; dimm 223 drivers/edac/highbank_mc_edac.c dimm->grain = 8; dimm 224 drivers/edac/highbank_mc_edac.c dimm->dtype = DEV_X8; dimm 225 drivers/edac/highbank_mc_edac.c dimm->mtype = MEM_DDR3; dimm 226 drivers/edac/highbank_mc_edac.c dimm->edac_mode = EDAC_SECDED; dimm 147 drivers/edac/i10nm_base.c struct dimm_info *dimm; dimm 157 drivers/edac/i10nm_base.c dimm = EDAC_DIMM_PTR(mci->layers, mci->dimms, dimm 165 drivers/edac/i10nm_base.c ndimms += skx_get_dimm_info(mtr, 0, 0, dimm, dimm 168 drivers/edac/i10nm_base.c ndimms += skx_get_nvdimm_info(dimm, imc, i, j, dimm 409 drivers/edac/i3000_edac.c struct dimm_info *dimm = csrow->channels[j]->dimm; dimm 411 drivers/edac/i3000_edac.c dimm->nr_pages = nr_pages / nr_channels; dimm 412 drivers/edac/i3000_edac.c dimm->grain = I3000_DEAP_GRAIN; dimm 413 drivers/edac/i3000_edac.c dimm->mtype = MEM_DDR2; dimm 414 drivers/edac/i3000_edac.c dimm->dtype = DEV_UNKNOWN; dimm 415 drivers/edac/i3000_edac.c dimm->edac_mode = EDAC_UNKNOWN; dimm 395 drivers/edac/i3200_edac.c struct dimm_info *dimm = EDAC_DIMM_PTR(mci->layers, mci->dimms, dimm 405 drivers/edac/i3200_edac.c dimm->nr_pages = nr_pages; dimm 406 drivers/edac/i3200_edac.c dimm->grain = nr_pages << PAGE_SHIFT; dimm 407 drivers/edac/i3200_edac.c dimm->mtype = MEM_DDR2; dimm 408 drivers/edac/i3200_edac.c dimm->dtype = DEV_UNKNOWN; dimm 409 drivers/edac/i3200_edac.c dimm->edac_mode = EDAC_UNKNOWN; dimm 1250 drivers/edac/i5000_edac.c struct dimm_info *dimm; dimm 1278 drivers/edac/i5000_edac.c dimm = EDAC_DIMM_PTR(mci->layers, mci->dimms, mci->n_layers, dimm 1283 drivers/edac/i5000_edac.c dimm->grain = 8; dimm 1286 drivers/edac/i5000_edac.c dimm->mtype = MEM_FB_DDR2; dimm 1290 drivers/edac/i5000_edac.c dimm->dtype = DEV_X8; dimm 1292 drivers/edac/i5000_edac.c dimm->dtype = DEV_X4; dimm 1294 drivers/edac/i5000_edac.c dimm->edac_mode = EDAC_S8ECD8ED; dimm 1295 drivers/edac/i5000_edac.c dimm->nr_pages = csrow_megs << 8; dimm 855 drivers/edac/i5100_edac.c struct dimm_info *dimm; dimm 863 drivers/edac/i5100_edac.c dimm = EDAC_DIMM_PTR(mci->layers, mci->dimms, mci->n_layers, dimm 866 drivers/edac/i5100_edac.c dimm->nr_pages = npages; dimm 867 drivers/edac/i5100_edac.c dimm->grain = 32; dimm 868 drivers/edac/i5100_edac.c dimm->dtype = (priv->mtr[chan][rank].width == 4) ? dimm 870 drivers/edac/i5100_edac.c dimm->mtype = MEM_RDDR2; dimm 871 drivers/edac/i5100_edac.c dimm->edac_mode = EDAC_SECDED; dimm 872 drivers/edac/i5100_edac.c snprintf(dimm->label, sizeof(dimm->label), "DIMM%u", dimm 861 drivers/edac/i5400_edac.c static int determine_mtr(struct i5400_pvt *pvt, int dimm, int channel) dimm 869 drivers/edac/i5400_edac.c n = dimm; dimm 873 drivers/edac/i5400_edac.c dimm); dimm 918 drivers/edac/i5400_edac.c static void handle_channel(struct i5400_pvt *pvt, int dimm, int channel, dimm 925 drivers/edac/i5400_edac.c mtr = determine_mtr(pvt, dimm, channel); dimm 930 drivers/edac/i5400_edac.c if (amb_present_reg & (1 << dimm)) { dimm 959 drivers/edac/i5400_edac.c int dimm, max_dimms; dimm 979 drivers/edac/i5400_edac.c for (dimm = max_dimms - 1; dimm >= 0; dimm--) { dimm 983 drivers/edac/i5400_edac.c if (dimm & 0x1) { dimm 992 drivers/edac/i5400_edac.c n = snprintf(p, space, "dimm %2d ", dimm); dimm 997 drivers/edac/i5400_edac.c dinfo = &pvt->dimm_info[dimm][channel]; dimm 998 drivers/edac/i5400_edac.c handle_channel(pvt, dimm, channel, dinfo); dimm 1172 drivers/edac/i5400_edac.c struct dimm_info *dimm; dimm 1199 drivers/edac/i5400_edac.c dimm = EDAC_DIMM_PTR(mci->layers, mci->dimms, mci->n_layers, dimm 1208 drivers/edac/i5400_edac.c dimm->nr_pages = size_mb << 8; dimm 1209 drivers/edac/i5400_edac.c dimm->grain = 8; dimm 1210 drivers/edac/i5400_edac.c dimm->dtype = MTR_DRAM_WIDTH(mtr) == 8 ? dimm 1212 drivers/edac/i5400_edac.c dimm->mtype = MEM_FB_DDR2; dimm 1217 drivers/edac/i5400_edac.c dimm->edac_mode = MTR_DRAM_WIDTH(mtr) == 8 ? dimm 588 drivers/edac/i7300_edac.c struct dimm_info *dimm) dimm 649 drivers/edac/i7300_edac.c dimm->nr_pages = MiB_TO_PAGES(dinfo->megabytes); dimm 650 drivers/edac/i7300_edac.c dimm->grain = 8; dimm 651 drivers/edac/i7300_edac.c dimm->mtype = MEM_FB_DDR2; dimm 653 drivers/edac/i7300_edac.c dimm->edac_mode = EDAC_SECDED; dimm 658 drivers/edac/i7300_edac.c dimm->edac_mode = EDAC_S8ECD8ED; dimm 660 drivers/edac/i7300_edac.c dimm->edac_mode = EDAC_S4ECD4ED; dimm 669 drivers/edac/i7300_edac.c dimm->dtype = DEV_X8; dimm 671 drivers/edac/i7300_edac.c dimm->dtype = DEV_X4; dimm 752 drivers/edac/i7300_edac.c struct dimm_info *dimm; dimm 797 drivers/edac/i7300_edac.c dimm = EDAC_DIMM_PTR(mci->layers, mci->dimms, dimm 803 drivers/edac/i7300_edac.c dinfo, dimm); dimm 218 drivers/edac/i7core_edac.c int channel, dimm, rank, bank, page, col; dimm 494 drivers/edac/i7core_edac.c struct dimm_info *dimm; dimm 588 drivers/edac/i7core_edac.c dimm = EDAC_DIMM_PTR(mci->layers, mci->dimms, mci->n_layers, dimm 605 drivers/edac/i7core_edac.c dimm->nr_pages = npages; dimm 609 drivers/edac/i7core_edac.c dimm->dtype = DEV_X4; dimm 612 drivers/edac/i7core_edac.c dimm->dtype = DEV_X8; dimm 615 drivers/edac/i7core_edac.c dimm->dtype = DEV_X16; dimm 618 drivers/edac/i7core_edac.c dimm->dtype = DEV_UNKNOWN; dimm 621 drivers/edac/i7core_edac.c snprintf(dimm->label, sizeof(dimm->label), dimm 624 drivers/edac/i7core_edac.c dimm->grain = 8; dimm 625 drivers/edac/i7core_edac.c dimm->edac_mode = mode; dimm 626 drivers/edac/i7core_edac.c dimm->mtype = mtype; dimm 853 drivers/edac/i7core_edac.c DECLARE_ADDR_MATCH(dimm, 3); dimm 860 drivers/edac/i7core_edac.c ATTR_ADDR_MATCH(dimm); dimm 937 drivers/edac/i7core_edac.c if (pvt->inject.dimm < 0) dimm 941 drivers/edac/i7core_edac.c mask |= (pvt->inject.dimm & 0x3LL) << 35; dimm 943 drivers/edac/i7core_edac.c mask |= (pvt->inject.dimm & 0x1LL) << 36; dimm 1706 drivers/edac/i7core_edac.c u32 dimm = (m->misc >> 16) & 0x3; dimm 1784 drivers/edac/i7core_edac.c channel, dimm, -1, dimm 2211 drivers/edac/i7core_edac.c pvt->inject.dimm = -1; dimm 190 drivers/edac/i82443bxgx_edac.c struct dimm_info *dimm; dimm 199 drivers/edac/i82443bxgx_edac.c dimm = csrow->channels[0]->dimm; dimm 220 drivers/edac/i82443bxgx_edac.c dimm->nr_pages = csrow->last_page - csrow->first_page + 1; dimm 222 drivers/edac/i82443bxgx_edac.c dimm->grain = 1 << 12; dimm 223 drivers/edac/i82443bxgx_edac.c dimm->mtype = mtype; dimm 225 drivers/edac/i82443bxgx_edac.c dimm->dtype = DEV_UNKNOWN; dimm 227 drivers/edac/i82443bxgx_edac.c dimm->edac_mode = edac_mode; dimm 101 drivers/edac/i82860_edac.c struct dimm_info *dimm; dimm 118 drivers/edac/i82860_edac.c dimm = mci->csrows[row]->channels[0]->dimm; dimm 123 drivers/edac/i82860_edac.c dimm->location[0], dimm->location[1], -1, dimm 128 drivers/edac/i82860_edac.c dimm->location[0], dimm->location[1], -1, dimm 150 drivers/edac/i82860_edac.c struct dimm_info *dimm; dimm 164 drivers/edac/i82860_edac.c dimm = csrow->channels[0]->dimm; dimm 176 drivers/edac/i82860_edac.c dimm->nr_pages = cumul_size - last_cumul_size; dimm 178 drivers/edac/i82860_edac.c dimm->grain = 1 << 12; /* I82860_EAP has 4KiB reolution */ dimm 179 drivers/edac/i82860_edac.c dimm->mtype = MEM_RMBS; dimm 180 drivers/edac/i82860_edac.c dimm->dtype = DEV_UNKNOWN; dimm 181 drivers/edac/i82860_edac.c dimm->edac_mode = mchcfg_ddim ? EDAC_SECDED : EDAC_NONE; dimm 345 drivers/edac/i82875p_edac.c struct dimm_info *dimm; dimm 377 drivers/edac/i82875p_edac.c dimm = csrow->channels[j]->dimm; dimm 379 drivers/edac/i82875p_edac.c dimm->nr_pages = nr_pages / nr_chans; dimm 380 drivers/edac/i82875p_edac.c dimm->grain = 1 << 12; /* I82875P_EAP has 4KiB reolution */ dimm 381 drivers/edac/i82875p_edac.c dimm->mtype = MEM_DDR; dimm 382 drivers/edac/i82875p_edac.c dimm->dtype = DEV_UNKNOWN; dimm 383 drivers/edac/i82875p_edac.c dimm->edac_mode = drc_ddim ? EDAC_SECDED : EDAC_NONE; dimm 313 drivers/edac/i82975x_edac.c (1 << mci->csrows[row]->channels[chan]->dimm->grain)); dimm 369 drivers/edac/i82975x_edac.c struct dimm_info *dimm; dimm 408 drivers/edac/i82975x_edac.c dimm = mci->csrows[index]->channels[chan]->dimm; dimm 410 drivers/edac/i82975x_edac.c dimm->nr_pages = nr_pages / csrow->nr_channels; dimm 412 drivers/edac/i82975x_edac.c snprintf(csrow->channels[chan]->dimm->label, EDAC_MC_LABEL_LEN, "DIMM %c%d", dimm 415 drivers/edac/i82975x_edac.c dimm->grain = 1 << 7; /* 128Byte cache-line resolution */ dimm 418 drivers/edac/i82975x_edac.c dimm->dtype = DEV_X8; dimm 420 drivers/edac/i82975x_edac.c dimm->mtype = MEM_DDR2; /* I82975x supports only DDR2 */ dimm 421 drivers/edac/i82975x_edac.c dimm->edac_mode = EDAC_SECDED; /* only supported */ dimm 484 drivers/edac/ie31200_edac.c struct dimm_info *dimm; dimm 493 drivers/edac/ie31200_edac.c dimm = EDAC_DIMM_PTR(mci->layers, mci->dimms, dimm 496 drivers/edac/ie31200_edac.c dimm->nr_pages = nr_pages; dimm 498 drivers/edac/ie31200_edac.c dimm->grain = 8; /* just a guess */ dimm 500 drivers/edac/ie31200_edac.c dimm->mtype = MEM_DDR4; dimm 502 drivers/edac/ie31200_edac.c dimm->mtype = MEM_DDR3; dimm 503 drivers/edac/ie31200_edac.c dimm->dtype = DEV_UNKNOWN; dimm 504 drivers/edac/ie31200_edac.c dimm->edac_mode = EDAC_UNKNOWN; dimm 506 drivers/edac/ie31200_edac.c dimm = EDAC_DIMM_PTR(mci->layers, mci->dimms, dimm 508 drivers/edac/ie31200_edac.c dimm->nr_pages = nr_pages; dimm 510 drivers/edac/ie31200_edac.c dimm->grain = 8; /* same guess */ dimm 512 drivers/edac/ie31200_edac.c dimm->mtype = MEM_DDR4; dimm 514 drivers/edac/ie31200_edac.c dimm->mtype = MEM_DDR3; dimm 515 drivers/edac/ie31200_edac.c dimm->dtype = DEV_UNKNOWN; dimm 516 drivers/edac/ie31200_edac.c dimm->edac_mode = EDAC_UNKNOWN; dimm 660 drivers/edac/mv64x60_edac.c struct dimm_info *dimm; dimm 670 drivers/edac/mv64x60_edac.c dimm = csrow->channels[0]->dimm; dimm 672 drivers/edac/mv64x60_edac.c dimm->nr_pages = pdata->total_mem >> PAGE_SHIFT; dimm 673 drivers/edac/mv64x60_edac.c dimm->grain = 8; dimm 675 drivers/edac/mv64x60_edac.c dimm->mtype = (ctl & MV64X60_SDRAM_REGISTERED) ? MEM_RDDR : MEM_DDR; dimm 680 drivers/edac/mv64x60_edac.c dimm->dtype = DEV_X32; dimm 683 drivers/edac/mv64x60_edac.c dimm->dtype = DEV_X16; dimm 686 drivers/edac/mv64x60_edac.c dimm->dtype = DEV_X4; dimm 689 drivers/edac/mv64x60_edac.c dimm->dtype = DEV_UNKNOWN; dimm 693 drivers/edac/mv64x60_edac.c dimm->edac_mode = EDAC_SECDED; dimm 31 drivers/edac/octeon_edac-lmc.c unsigned long dimm; dimm 93 drivers/edac/octeon_edac-lmc.c fadr.cn61xx.fdimm = pvt->dimm; dimm 156 drivers/edac/octeon_edac-lmc.c TEMPLATE_SHOW(dimm); dimm 157 drivers/edac/octeon_edac-lmc.c TEMPLATE_STORE(dimm); dimm 201 drivers/edac/octeon_edac-lmc.c static DEVICE_ATTR(dimm, S_IRUGO | S_IWUSR, dimm 127 drivers/edac/pasemi_edac.c struct dimm_info *dimm; dimm 133 drivers/edac/pasemi_edac.c dimm = csrow->channels[0]->dimm; dimm 145 drivers/edac/pasemi_edac.c dimm->nr_pages = 128 << (20 - PAGE_SHIFT); dimm 148 drivers/edac/pasemi_edac.c dimm->nr_pages = 256 << (20 - PAGE_SHIFT); dimm 152 drivers/edac/pasemi_edac.c dimm->nr_pages = 512 << (20 - PAGE_SHIFT); dimm 155 drivers/edac/pasemi_edac.c dimm->nr_pages = 1024 << (20 - PAGE_SHIFT); dimm 158 drivers/edac/pasemi_edac.c dimm->nr_pages = 2048 << (20 - PAGE_SHIFT); dimm 168 drivers/edac/pasemi_edac.c csrow->last_page = csrow->first_page + dimm->nr_pages - 1; dimm 169 drivers/edac/pasemi_edac.c last_page_in_mmc += dimm->nr_pages; dimm 171 drivers/edac/pasemi_edac.c dimm->grain = PASEMI_EDAC_ERROR_GRAIN; dimm 172 drivers/edac/pasemi_edac.c dimm->mtype = MEM_DDR; dimm 173 drivers/edac/pasemi_edac.c dimm->dtype = DEV_UNKNOWN; dimm 174 drivers/edac/pasemi_edac.c dimm->edac_mode = edac_mode; dimm 53 drivers/edac/pnd2_edac.c int dimm; dimm 988 drivers/edac/pnd2_edac.c daddr->dimm = 0; dimm 1008 drivers/edac/pnd2_edac.c daddr->dimm = (daddr->rank >= 2) ^ drp[pmiidx].dimmflip; dimm 1138 drivers/edac/pnd2_edac.c addr, pmiaddr, daddr->chan, daddr->dimm, daddr->rank, daddr->bank, daddr->row, daddr->col); dimm 1208 drivers/edac/pnd2_edac.c errcode, daddr->chan, daddr->dimm, daddr->rank, daddr->row, daddr->bank, daddr->col); dimm 1214 drivers/edac/pnd2_edac.c m->addr & ~PAGE_MASK, 0, daddr->chan, daddr->dimm, -1, optype, msg); dimm 1225 drivers/edac/pnd2_edac.c struct dimm_info *dimm; dimm 1234 drivers/edac/pnd2_edac.c dimm = EDAC_DIMM_PTR(mci->layers, mci->dimms, mci->n_layers, i, 0, 0); dimm 1235 drivers/edac/pnd2_edac.c if (!dimm) { dimm 1256 drivers/edac/pnd2_edac.c dimm->nr_pages = MiB_TO_PAGES(capacity >> (20 - 3)); dimm 1257 drivers/edac/pnd2_edac.c dimm->grain = 32; dimm 1258 drivers/edac/pnd2_edac.c dimm->dtype = (d->dwid == 0) ? DEV_X8 : DEV_X16; dimm 1259 drivers/edac/pnd2_edac.c dimm->mtype = MEM_DDR3; dimm 1260 drivers/edac/pnd2_edac.c dimm->edac_mode = EDAC_SECDED; dimm 1261 drivers/edac/pnd2_edac.c snprintf(dimm->label, sizeof(dimm->label), "Slice#%d_Chan#%d", i / 2, i % 2); dimm 1272 drivers/edac/pnd2_edac.c struct dimm_info *dimm; dimm 1314 drivers/edac/pnd2_edac.c dimm = EDAC_DIMM_PTR(mci->layers, mci->dimms, mci->n_layers, i, j, 0); dimm 1315 drivers/edac/pnd2_edac.c if (!dimm) { dimm 1322 drivers/edac/pnd2_edac.c dimm->nr_pages = MiB_TO_PAGES(capacity >> (20 - 3)); dimm 1323 drivers/edac/pnd2_edac.c dimm->grain = 32; dimm 1324 drivers/edac/pnd2_edac.c dimm->dtype = dnv_dtypes[j ? d->dimmdwid0 : d->dimmdwid1]; dimm 1325 drivers/edac/pnd2_edac.c dimm->mtype = memtype; dimm 1326 drivers/edac/pnd2_edac.c dimm->edac_mode = EDAC_SECDED; dimm 1327 drivers/edac/pnd2_edac.c snprintf(dimm->label, sizeof(dimm->label), "Chan#%d_DIMM#%d", i, j); dimm 1466 drivers/edac/pnd2_edac.c m.addr, daddr.chan, daddr.dimm, daddr.rank, daddr.bank, daddr.row, daddr.col); dimm 972 drivers/edac/ppc4xx_edac.c struct dimm_info *dimm = csi->channels[j]->dimm; dimm 974 drivers/edac/ppc4xx_edac.c dimm->nr_pages = nr_pages / csi->nr_channels; dimm 975 drivers/edac/ppc4xx_edac.c dimm->grain = 1; dimm 977 drivers/edac/ppc4xx_edac.c dimm->mtype = mtype; dimm 978 drivers/edac/ppc4xx_edac.c dimm->dtype = dtype; dimm 980 drivers/edac/ppc4xx_edac.c dimm->edac_mode = edac_mode; dimm 221 drivers/edac/r82600_edac.c struct dimm_info *dimm; dimm 233 drivers/edac/r82600_edac.c dimm = csrow->channels[0]->dimm; dimm 255 drivers/edac/r82600_edac.c dimm->nr_pages = csrow->last_page - csrow->first_page + 1; dimm 258 drivers/edac/r82600_edac.c dimm->grain = 1 << 14; dimm 259 drivers/edac/r82600_edac.c dimm->mtype = reg_sdram ? MEM_RDDR : MEM_DDR; dimm 261 drivers/edac/r82600_edac.c dimm->dtype = DEV_UNKNOWN; dimm 264 drivers/edac/r82600_edac.c dimm->edac_mode = ecc_on ? EDAC_SECDED : EDAC_NONE; dimm 1590 drivers/edac/sb_edac.c struct dimm_info *dimm; dimm 1623 drivers/edac/sb_edac.c dimm = EDAC_DIMM_PTR(mci->layers, mci->dimms, mci->n_layers, i, j, 0); dimm 1661 drivers/edac/sb_edac.c dimm->nr_pages = npages; dimm 1662 drivers/edac/sb_edac.c dimm->grain = 32; dimm 1663 drivers/edac/sb_edac.c dimm->dtype = pvt->info.get_width(pvt, mtr); dimm 1664 drivers/edac/sb_edac.c dimm->mtype = mtype; dimm 1665 drivers/edac/sb_edac.c dimm->edac_mode = mode; dimm 1666 drivers/edac/sb_edac.c snprintf(dimm->label, sizeof(dimm->label), dimm 2973 drivers/edac/sb_edac.c int rc, dimm; dimm 3081 drivers/edac/sb_edac.c dimm = -1; dimm 3083 drivers/edac/sb_edac.c dimm = 0; dimm 3085 drivers/edac/sb_edac.c dimm = 1; dimm 3087 drivers/edac/sb_edac.c dimm = 2; dimm 3118 drivers/edac/sb_edac.c channel, dimm, -1, dimm 164 drivers/edac/skx_base.c struct dimm_info *dimm; dimm 176 drivers/edac/skx_base.c dimm = EDAC_DIMM_PTR(mci->layers, mci->dimms, dimm 181 drivers/edac/skx_base.c ndimms += skx_get_dimm_info(mtr, mcmtr, amap, dimm, imc, i, j); dimm 183 drivers/edac/skx_base.c ndimms += skx_get_nvdimm_info(dimm, imc, i, j, dimm 452 drivers/edac/skx_base.c res->dimm = chan_rank / 4; dimm 456 drivers/edac/skx_base.c res->addr, res->dimm, res->rank, dimm 502 drivers/edac/skx_base.c struct skx_dimm *dimm = &r->dev->imc[r->imc].chan[r->channel].dimms[r->dimm]; dimm 503 drivers/edac/skx_base.c int bg0 = dimm->fine_grain_bank ? 6 : 13; dimm 505 drivers/edac/skx_base.c if (dimm->close_pg) { dimm 506 drivers/edac/skx_base.c r->row = skx_bits(r->rank_address, dimm->rowbits, skx_close_row); dimm 507 drivers/edac/skx_base.c r->column = skx_bits(r->rank_address, dimm->colbits, skx_close_column); dimm 509 drivers/edac/skx_base.c r->bank_address = skx_bank_bits(r->rank_address, 8, 9, dimm->bank_xor_enable, 22, 28); dimm 510 drivers/edac/skx_base.c r->bank_group = skx_bank_bits(r->rank_address, 6, 7, dimm->bank_xor_enable, 20, 21); dimm 512 drivers/edac/skx_base.c r->row = skx_bits(r->rank_address, dimm->rowbits, skx_open_row); dimm 513 drivers/edac/skx_base.c if (dimm->fine_grain_bank) dimm 514 drivers/edac/skx_base.c r->column = skx_bits(r->rank_address, dimm->colbits, skx_open_fine_column); dimm 516 drivers/edac/skx_base.c r->column = skx_bits(r->rank_address, dimm->colbits, skx_open_column); dimm 517 drivers/edac/skx_base.c r->bank_address = skx_bank_bits(r->rank_address, 18, 19, dimm->bank_xor_enable, 22, 23); dimm 518 drivers/edac/skx_base.c r->bank_group = skx_bank_bits(r->rank_address, bg0, 17, dimm->bank_xor_enable, 20, 21); dimm 520 drivers/edac/skx_base.c r->row &= (1u << dimm->rowbits) - 1; dimm 119 drivers/edac/skx_common.c res->dimm = (int)adxl_values[component_indices[INDEX_DIMM]]; dimm 286 drivers/edac/skx_common.c int skx_get_dimm_info(u32 mtr, u32 mcmtr, u32 amap, struct dimm_info *dimm, dimm 312 drivers/edac/skx_common.c dimm->nr_pages = npages; dimm 313 drivers/edac/skx_common.c dimm->grain = 32; dimm 314 drivers/edac/skx_common.c dimm->dtype = get_width(mtr); dimm 315 drivers/edac/skx_common.c dimm->mtype = MEM_DDR4; dimm 316 drivers/edac/skx_common.c dimm->edac_mode = EDAC_SECDED; /* likely better than this */ dimm 317 drivers/edac/skx_common.c snprintf(dimm->label, sizeof(dimm->label), "CPU_SrcID#%u_MC#%u_Chan#%u_DIMM#%u", dimm 323 drivers/edac/skx_common.c int skx_get_nvdimm_info(struct dimm_info *dimm, struct skx_imc *imc, dimm 356 drivers/edac/skx_common.c dimm->nr_pages = size >> PAGE_SHIFT; dimm 357 drivers/edac/skx_common.c dimm->grain = 32; dimm 358 drivers/edac/skx_common.c dimm->dtype = DEV_UNKNOWN; dimm 359 drivers/edac/skx_common.c dimm->mtype = MEM_NVDIMM; dimm 360 drivers/edac/skx_common.c dimm->edac_mode = EDAC_SECDED; /* likely better than this */ dimm 363 drivers/edac/skx_common.c imc->mc, chan, dimmno, size >> 20, dimm->nr_pages); dimm 365 drivers/edac/skx_common.c snprintf(dimm->label, sizeof(dimm->label), "CPU_SrcID#%u_MC#%u_Chan#%u_DIMM#%u", dimm 561 drivers/edac/skx_common.c res->channel, res->dimm, -1, dimm 104 drivers/edac/skx_common.h int dimm; dimm 129 drivers/edac/skx_common.h int skx_get_dimm_info(u32 mtr, u32 mcmtr, u32 amap, struct dimm_info *dimm, dimm 132 drivers/edac/skx_common.h int skx_get_nvdimm_info(struct dimm_info *dimm, struct skx_imc *imc, dimm 773 drivers/edac/synopsys_edac.c struct dimm_info *dimm; dimm 784 drivers/edac/synopsys_edac.c dimm = csi->channels[j]->dimm; dimm 785 drivers/edac/synopsys_edac.c dimm->edac_mode = EDAC_FLAG_SECDED; dimm 786 drivers/edac/synopsys_edac.c dimm->mtype = p_data->get_mtype(priv->baseaddr); dimm 787 drivers/edac/synopsys_edac.c dimm->nr_pages = (size >> PAGE_SHIFT) / csi->nr_channels; dimm 788 drivers/edac/synopsys_edac.c dimm->grain = SYNPS_EDAC_ERR_GRAIN; dimm 789 drivers/edac/synopsys_edac.c dimm->dtype = p_data->get_dtype(priv->baseaddr); dimm 132 drivers/edac/ti_edac.c struct dimm_info *dimm; dimm 138 drivers/edac/ti_edac.c dimm = EDAC_DIMM_PTR(mci->layers, mci->dimms, mci->n_layers, 0, 0, 0); dimm 149 drivers/edac/ti_edac.c dimm->dtype = DEV_X16; dimm 152 drivers/edac/ti_edac.c dimm->dtype = DEV_X32; dimm 166 drivers/edac/ti_edac.c dimm->dtype = DEV_X64; dimm 170 drivers/edac/ti_edac.c dimm->dtype = DEV_X32; dimm 174 drivers/edac/ti_edac.c dimm->dtype = DEV_X16; dimm 181 drivers/edac/ti_edac.c dimm->nr_pages = memsize >> PAGE_SHIFT; dimm 182 drivers/edac/ti_edac.c dimm->grain = 4; dimm 184 drivers/edac/ti_edac.c dimm->mtype = MEM_DDR2; dimm 186 drivers/edac/ti_edac.c dimm->mtype = MEM_DDR3; dimm 190 drivers/edac/ti_edac.c dimm->edac_mode = EDAC_SECDED; dimm 192 drivers/edac/ti_edac.c dimm->edac_mode = EDAC_NONE; dimm 384 drivers/edac/x38_edac.c struct dimm_info *dimm = csrow->channels[j]->dimm; dimm 386 drivers/edac/x38_edac.c dimm->nr_pages = nr_pages / x38_channel_num; dimm 387 drivers/edac/x38_edac.c dimm->grain = nr_pages << PAGE_SHIFT; dimm 388 drivers/edac/x38_edac.c dimm->mtype = MEM_DDR2; dimm 389 drivers/edac/x38_edac.c dimm->dtype = DEV_UNKNOWN; dimm 390 drivers/edac/x38_edac.c dimm->edac_mode = EDAC_UNKNOWN; dimm 737 drivers/gpu/drm/i915/i915_drv.c static int intel_dimm_num_devices(const struct dram_dimm_info *dimm) dimm 739 drivers/gpu/drm/i915/i915_drv.c return dimm->ranks * 64 / (dimm->width ?: 1); dimm 809 drivers/gpu/drm/i915/i915_drv.c skl_is_16gb_dimm(const struct dram_dimm_info *dimm) dimm 812 drivers/gpu/drm/i915/i915_drv.c return 8 * dimm->size / (intel_dimm_num_devices(dimm) ?: 1) == 16; dimm 817 drivers/gpu/drm/i915/i915_drv.c struct dram_dimm_info *dimm, dimm 821 drivers/gpu/drm/i915/i915_drv.c dimm->size = cnl_get_dimm_size(val); dimm 822 drivers/gpu/drm/i915/i915_drv.c dimm->width = cnl_get_dimm_width(val); dimm 823 drivers/gpu/drm/i915/i915_drv.c dimm->ranks = cnl_get_dimm_ranks(val); dimm 825 drivers/gpu/drm/i915/i915_drv.c dimm->size = skl_get_dimm_size(val); dimm 826 drivers/gpu/drm/i915/i915_drv.c dimm->width = skl_get_dimm_width(val); dimm 827 drivers/gpu/drm/i915/i915_drv.c dimm->ranks = skl_get_dimm_ranks(val); dimm 831 drivers/gpu/drm/i915/i915_drv.c channel, dimm_name, dimm->size, dimm->width, dimm->ranks, dimm 832 drivers/gpu/drm/i915/i915_drv.c yesno(skl_is_16gb_dimm(dimm))); dimm 1041 drivers/gpu/drm/i915/i915_drv.c static void bxt_get_dimm_info(struct dram_dimm_info *dimm, dimm 1044 drivers/gpu/drm/i915/i915_drv.c dimm->width = bxt_get_dimm_width(val); dimm 1045 drivers/gpu/drm/i915/i915_drv.c dimm->ranks = bxt_get_dimm_ranks(val); dimm 1051 drivers/gpu/drm/i915/i915_drv.c dimm->size = bxt_get_dimm_size(val) * intel_dimm_num_devices(dimm) / 8; dimm 1082 drivers/gpu/drm/i915/i915_drv.c struct dram_dimm_info dimm; dimm 1091 drivers/gpu/drm/i915/i915_drv.c bxt_get_dimm_info(&dimm, val); dimm 1100 drivers/gpu/drm/i915/i915_drv.c dimm.size, dimm.width, dimm.ranks, dimm 1109 drivers/gpu/drm/i915/i915_drv.c dram_info->ranks = dimm.ranks; dimm 1110 drivers/gpu/drm/i915/i915_drv.c else if (dimm.ranks == 1) dimm 2984 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c struct netxen_dimm_cfg dimm; dimm 2993 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c memset(&dimm, 0, sizeof(struct netxen_dimm_cfg)); dimm 2999 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c dimm.presence = 0xff; dimm 3009 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c dimm.presence = (val & NETXEN_DIMM_PRESENT); dimm 3012 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c if (!dimm.presence) { dimm 3017 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c dimm.dimm_type = NETXEN_DIMM_TYPE(val); dimm 3019 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c switch (dimm.dimm_type) { dimm 3028 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c netdev_err(netdev, "Invalid DIMM type %x\n", dimm.dimm_type); dimm 3033 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c dimm.mem_type = NETXEN_DIMM_MEM_DDR2_SDRAM; dimm 3035 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c dimm.mem_type = NETXEN_DIMM_MEMTYPE(val); dimm 3038 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c dimm.size = NETXEN_DIMM_STD_MEM_SIZE; dimm 3089 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c dimm.size = ((1 << rows) * (1 << cols) * dw * banks * ranks) / 8; dimm 3091 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c dimm.size = (dimm.size) / 0x100000; dimm 3093 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c memcpy(buf, &dimm, sizeof(struct netxen_dimm_cfg)); dimm 46 drivers/nvdimm/nd.h int dimm, int hint) dimm 51 drivers/nvdimm/nd.h return ndrd->flush_wpq[dimm * num + (hint & mask)]; dimm 54 drivers/nvdimm/nd.h static inline void ndrd_set_flush_wpq(struct nd_region_data *ndrd, int dimm, dimm 60 drivers/nvdimm/nd.h ndrd->flush_wpq[dimm * num + (hint & mask)] = flush; dimm 25 drivers/nvdimm/region_devs.c static int nvdimm_map_flush(struct device *dev, struct nvdimm *nvdimm, int dimm, dimm 48 drivers/nvdimm/region_devs.c ndrd_get_flush_wpq(ndrd, dimm, j) dimm 55 drivers/nvdimm/region_devs.c ndrd_set_flush_wpq(ndrd, dimm, i, flush_page dimm 723 drivers/video/fbdev/nvidia/nv_hw.c u32 dimm[3]; dimm 726 drivers/video/fbdev/nvidia/nv_hw.c pci_read_config_dword(dev, 0x40, &dimm[0]); dimm 727 drivers/video/fbdev/nvidia/nv_hw.c dimm[0] = (dimm[0] >> 8) & 0x4f; dimm 728 drivers/video/fbdev/nvidia/nv_hw.c pci_read_config_dword(dev, 0x44, &dimm[1]); dimm 729 drivers/video/fbdev/nvidia/nv_hw.c dimm[1] = (dimm[1] >> 8) & 0x4f; dimm 730 drivers/video/fbdev/nvidia/nv_hw.c pci_read_config_dword(dev, 0x48, &dimm[2]); dimm 731 drivers/video/fbdev/nvidia/nv_hw.c dimm[2] = (dimm[2] >> 8) & 0x4f; dimm 733 drivers/video/fbdev/nvidia/nv_hw.c if ((dimm[0] + dimm[1]) != dimm[2]) { dimm 1147 include/acpi/actbl2.h #define ACPI_NFIT_BUILD_DEVICE_HANDLE(dimm, channel, memory, socket, node) \ dimm 1148 include/acpi/actbl2.h ((dimm) | \ dimm 477 include/linux/edac.h struct dimm_info *dimm; dimm 122 tools/testing/nvdimm/test/nfit.c #define NFIT_DIMM_HANDLE(node, socket, imc, chan, dimm) \ dimm 124 tools/testing/nvdimm/test/nfit.c | ((imc & 0xf) << 8) | ((chan & 0xf) << 4) | (dimm & 0xf)) dimm 189 tools/testing/nvdimm/test/nfit.c void **dimm; dimm 930 tools/testing/nvdimm/test/nfit.c static int override_return_code(int dimm, unsigned int func, int rc) dimm 932 tools/testing/nvdimm/test/nfit.c if ((1 << func) & dimm_fail_cmd_flags[dimm]) { dimm 933 tools/testing/nvdimm/test/nfit.c if (dimm_fail_cmd_code[dimm]) dimm 934 tools/testing/nvdimm/test/nfit.c return dimm_fail_cmd_code[dimm]; dimm 942 tools/testing/nvdimm/test/nfit.c unsigned int buf_len, int dimm) dimm 945 tools/testing/nvdimm/test/nfit.c struct nfit_test_sec *sec = &dimm_sec_info[dimm]; dimm 957 tools/testing/nvdimm/test/nfit.c unsigned int buf_len, int dimm) dimm 960 tools/testing/nvdimm/test/nfit.c struct nfit_test_sec *sec = &dimm_sec_info[dimm]; dimm 983 tools/testing/nvdimm/test/nfit.c unsigned int buf_len, int dimm) dimm 986 tools/testing/nvdimm/test/nfit.c struct nfit_test_sec *sec = &dimm_sec_info[dimm]; dimm 1008 tools/testing/nvdimm/test/nfit.c unsigned int buf_len, int dimm) dimm 1011 tools/testing/nvdimm/test/nfit.c struct nfit_test_sec *sec = &dimm_sec_info[dimm]; dimm 1027 tools/testing/nvdimm/test/nfit.c unsigned int buf_len, int dimm) dimm 1030 tools/testing/nvdimm/test/nfit.c struct nfit_test_sec *sec = &dimm_sec_info[dimm]; dimm 1051 tools/testing/nvdimm/test/nfit.c unsigned int buf_len, int dimm) dimm 1054 tools/testing/nvdimm/test/nfit.c struct nfit_test_sec *sec = &dimm_sec_info[dimm]; dimm 1082 tools/testing/nvdimm/test/nfit.c unsigned int buf_len, int dimm) dimm 1085 tools/testing/nvdimm/test/nfit.c struct nfit_test_sec *sec = &dimm_sec_info[dimm]; dimm 1105 tools/testing/nvdimm/test/nfit.c unsigned int buf_len, int dimm) dimm 1108 tools/testing/nvdimm/test/nfit.c struct nfit_test_sec *sec = &dimm_sec_info[dimm]; dimm 1128 tools/testing/nvdimm/test/nfit.c unsigned int buf_len, int dimm) dimm 1131 tools/testing/nvdimm/test/nfit.c struct nfit_test_sec *sec = &dimm_sec_info[dimm]; dimm 1155 tools/testing/nvdimm/test/nfit.c unsigned int buf_len, int dimm) dimm 1158 tools/testing/nvdimm/test/nfit.c struct nfit_test_sec *sec = &dimm_sec_info[dimm]; dimm 1535 tools/testing/nvdimm/test/nfit.c int dimm; dimm 1537 tools/testing/nvdimm/test/nfit.c if (sscanf(dev_name(dev), "test_dimm%d", &dimm) != 1) dimm 1539 tools/testing/nvdimm/test/nfit.c return dimm; dimm 1545 tools/testing/nvdimm/test/nfit.c int dimm = dimm_name_to_id(dev); dimm 1547 tools/testing/nvdimm/test/nfit.c if (dimm < 0) dimm 1548 tools/testing/nvdimm/test/nfit.c return dimm; dimm 1550 tools/testing/nvdimm/test/nfit.c return sprintf(buf, "%#x\n", handle[dimm]); dimm 1557 tools/testing/nvdimm/test/nfit.c int dimm = dimm_name_to_id(dev); dimm 1559 tools/testing/nvdimm/test/nfit.c if (dimm < 0) dimm 1560 tools/testing/nvdimm/test/nfit.c return dimm; dimm 1562 tools/testing/nvdimm/test/nfit.c return sprintf(buf, "%#lx\n", dimm_fail_cmd_flags[dimm]); dimm 1568 tools/testing/nvdimm/test/nfit.c int dimm = dimm_name_to_id(dev); dimm 1572 tools/testing/nvdimm/test/nfit.c if (dimm < 0) dimm 1573 tools/testing/nvdimm/test/nfit.c return dimm; dimm 1579 tools/testing/nvdimm/test/nfit.c dimm_fail_cmd_flags[dimm] = val; dimm 1587 tools/testing/nvdimm/test/nfit.c int dimm = dimm_name_to_id(dev); dimm 1589 tools/testing/nvdimm/test/nfit.c if (dimm < 0) dimm 1590 tools/testing/nvdimm/test/nfit.c return dimm; dimm 1592 tools/testing/nvdimm/test/nfit.c return sprintf(buf, "%d\n", dimm_fail_cmd_code[dimm]); dimm 1598 tools/testing/nvdimm/test/nfit.c int dimm = dimm_name_to_id(dev); dimm 1602 tools/testing/nvdimm/test/nfit.c if (dimm < 0) dimm 1603 tools/testing/nvdimm/test/nfit.c return dimm; dimm 1609 tools/testing/nvdimm/test/nfit.c dimm_fail_cmd_code[dimm] = val; dimm 1617 tools/testing/nvdimm/test/nfit.c int dimm = dimm_name_to_id(dev); dimm 1618 tools/testing/nvdimm/test/nfit.c struct nfit_test_sec *sec = &dimm_sec_info[dimm]; dimm 1719 tools/testing/nvdimm/test/nfit.c t->dimm[i] = test_alloc(t, DIMM_SIZE, &t->dimm_dma[i]); dimm 1720 tools/testing/nvdimm/test/nfit.c if (!t->dimm[i]) dimm 2930 tools/testing/nvdimm/test/nfit.c nfit_test->dimm = devm_kcalloc(dev, num, sizeof(void *), dimm 2953 tools/testing/nvdimm/test/nfit.c if (nfit_test->dimm && nfit_test->dimm_dma && nfit_test->label