/kernel/linux/linux-5.10/include/linux/ |
H A D | edac.h | 524 * sees memory sticks ("dimms"), and the ones that sees memory ranks. 537 struct dimm_info **dimms; member 591 for ((dimm) = (mci)->dimms[0]; \ 594 ? (mci)->dimms[(dimm)->idx + 1] \ 606 * For 1 layer, this function returns "dimms[layer0]"; 609 * array and returning "dimms[layer0][layer1]"; 612 * array and returning "dimms[layer0][layer1][layer2]"; 635 if (WARN_ON_ONCE(mci->dimms[index]->idx != index)) in edac_get_dimm() 638 return mci->dimms[index]; in edac_get_dimm()
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | edac.h | 545 * sees memory sticks ("dimms"), and the ones that sees memory ranks. 558 struct dimm_info **dimms; member 612 for ((dimm) = (mci)->dimms[0]; \ 615 ? (mci)->dimms[(dimm)->idx + 1] \ 627 * For 1 layer, this function returns "dimms[layer0]"; 630 * array and returning "dimms[layer0][layer1]"; 633 * array and returning "dimms[layer0][layer1][layer2]"; 656 if (WARN_ON_ONCE(mci->dimms[index]->idx != index)) in edac_get_dimm() 659 return mci->dimms[index]; in edac_get_dimm()
|
/kernel/linux/linux-5.10/drivers/edac/ |
H A D | ghes_edac.c | 41 struct dimm_info *dimms; member 215 new = krealloc(hw->dimms, (hw->num_dimms + 16) * sizeof(struct dimm_info), in enumerate_dimms() 222 hw->dimms = new; in enumerate_dimms() 225 d = &hw->dimms[hw->num_dimms]; in enumerate_dimms() 590 src = &ghes_hw.dimms[i]; in ghes_edac_register() 638 kfree(ghes_hw.dimms); in ghes_edac_register() 639 ghes_hw.dimms = NULL; in ghes_edac_register()
|
H A D | edac_mc.c | 132 edac_dbg(3, "\tmci->nr_dimms = %d, dimms = %p\n", in edac_mc_dump_mci() 133 mci->tot_dimms, mci->dimms); in edac_mc_dump_mci() 234 if (mci->dimms) { in mci_release() 236 kfree(mci->dimms[i]); in mci_release() 237 kfree(mci->dimms); in mci_release() 313 mci->dimms = kcalloc(mci->tot_dimms, sizeof(*mci->dimms), GFP_KERNEL); in edac_mc_alloc_dimms() 314 if (!mci->dimms) in edac_mc_alloc_dimms() 327 dimm = kzalloc(sizeof(**mci->dimms), GFP_KERNEL); in edac_mc_alloc_dimms() 330 mci->dimms[id in edac_mc_alloc_dimms() [all...] |
H A D | skx_common.c | 326 imc->chan[chan].dimms[dimmno].close_pg = GET_BITFIELD(mcmtr, 0, 0); in skx_get_dimm_info() 327 imc->chan[chan].dimms[dimmno].bank_xor_enable = GET_BITFIELD(mcmtr, 9, 9); in skx_get_dimm_info() 328 imc->chan[chan].dimms[dimmno].fine_grain_bank = GET_BITFIELD(amap, 0, 0); in skx_get_dimm_info() 329 imc->chan[chan].dimms[dimmno].rowbits = rows; in skx_get_dimm_info() 330 imc->chan[chan].dimms[dimmno].colbits = cols; in skx_get_dimm_info()
|
H A D | pnd2_edac.c | 777 } dimms[] = { variable 932 struct dimm_geometry *d = &dimms[g]; in apl_pmi2mem() 1241 for (g = 0; g < ARRAY_SIZE(dimms); g++) in apl_get_dimm_config() 1242 if (dimms[g].addrdec == d->addrdec && in apl_get_dimm_config() 1243 dimms[g].dden == d->dden && in apl_get_dimm_config() 1244 dimms[g].dwid == d->dwid) in apl_get_dimm_config() 1247 if (g == ARRAY_SIZE(dimms)) { in apl_get_dimm_config() 1253 capacity = (d->rken0 + d->rken1) * 8 * (1ul << dimms[g].rowbits) * in apl_get_dimm_config() 1254 (1ul << dimms[g].colbits); in apl_get_dimm_config()
|
H A D | skx_common.h | 74 } dimms[NUM_DIMMS]; member
|
H A D | i7core_edac.c | 225 u32 dimms; member 404 static inline int numdimms(u32 dimms) in numdimms() argument 406 return (dimms & 0x3) + 1; in numdimms() 939 if (pvt->channel[pvt->inject.channel].dimms > 2) in i7core_inject_enable_store() 949 if (pvt->channel[pvt->inject.channel].dimms > 2) in i7core_inject_enable_store() 1604 /*if the channel has 3 dimms*/ in i7core_rdimm_check_mc_ecc_err() 1605 if (pvt->channel[i].dimms > 2) { in i7core_rdimm_check_mc_ecc_err()
|
H A D | bluefield_edac.c | 189 dimm = mci->dimms[i]; in bluefield_edac_init_dimms()
|
H A D | highbank_mc_edac.c | 223 dimm = *mci->dimms; in highbank_mc_probe()
|
H A D | al_mc_edac.c | 285 dimm = *mci->dimms; in al_mc_edac_probe()
|
/kernel/linux/linux-6.6/drivers/edac/ |
H A D | ghes_edac.c | 44 struct dimm_info *dimms; member 216 new = krealloc_array(hw->dimms, hw->num_dimms + 16, in enumerate_dimms() 223 hw->dimms = new; in enumerate_dimms() 226 d = &hw->dimms[hw->num_dimms]; in enumerate_dimms() 449 src = &ghes_hw.dimms[i]; in ghes_edac_register() 499 kfree(ghes_hw.dimms); in ghes_edac_register() 500 ghes_hw.dimms = NULL; in ghes_edac_register()
|
H A D | edac_mc.c | 129 edac_dbg(3, "\tmci->nr_dimms = %d, dimms = %p\n", in edac_mc_dump_mci() 130 mci->tot_dimms, mci->dimms); in edac_mc_dump_mci() 183 if (mci->dimms) { in mci_release() 185 kfree(mci->dimms[i]); in mci_release() 186 kfree(mci->dimms); in mci_release() 264 mci->dimms = kcalloc(mci->tot_dimms, sizeof(*mci->dimms), GFP_KERNEL); in edac_mc_alloc_dimms() 265 if (!mci->dimms) in edac_mc_alloc_dimms() 278 dimm = kzalloc(sizeof(**mci->dimms), GFP_KERNEL); in edac_mc_alloc_dimms() 281 mci->dimms[id in edac_mc_alloc_dimms() [all...] |
H A D | skx_common.c | 376 imc->chan[chan].dimms[dimmno].close_pg = GET_BITFIELD(mcmtr, 0, 0); in skx_get_dimm_info() 377 imc->chan[chan].dimms[dimmno].bank_xor_enable = GET_BITFIELD(mcmtr, 9, 9); in skx_get_dimm_info() 378 imc->chan[chan].dimms[dimmno].fine_grain_bank = GET_BITFIELD(amap, 0, 0); in skx_get_dimm_info() 379 imc->chan[chan].dimms[dimmno].rowbits = rows; in skx_get_dimm_info() 380 imc->chan[chan].dimms[dimmno].colbits = cols; in skx_get_dimm_info()
|
H A D | pnd2_edac.c | 755 } dimms[] = { variable 910 struct dimm_geometry *d = &dimms[g]; in apl_pmi2mem() 1219 for (g = 0; g < ARRAY_SIZE(dimms); g++) in apl_get_dimm_config() 1220 if (dimms[g].addrdec == d->addrdec && in apl_get_dimm_config() 1221 dimms[g].dden == d->dden && in apl_get_dimm_config() 1222 dimms[g].dwid == d->dwid) in apl_get_dimm_config() 1225 if (g == ARRAY_SIZE(dimms)) { in apl_get_dimm_config() 1231 capacity = (d->rken0 + d->rken1) * 8 * (1ul << dimms[g].rowbits) * in apl_get_dimm_config() 1232 (1ul << dimms[g].colbits); in apl_get_dimm_config()
|
H A D | skx_common.h | 103 int num_dimms; /* dimms per channel */ 120 } dimms[NUM_DIMMS]; member
|
H A D | i7core_edac.c | 225 u32 dimms; member 404 static inline int numdimms(u32 dimms) in numdimms() argument 406 return (dimms & 0x3) + 1; in numdimms() 939 if (pvt->channel[pvt->inject.channel].dimms > 2) in i7core_inject_enable_store() 949 if (pvt->channel[pvt->inject.channel].dimms > 2) in i7core_inject_enable_store() 1604 /*if the channel has 3 dimms*/ in i7core_rdimm_check_mc_ecc_err() 1605 if (pvt->channel[i].dimms > 2) { in i7core_rdimm_check_mc_ecc_err()
|
H A D | al_mc_edac.c | 283 dimm = *mci->dimms; in al_mc_edac_probe()
|
H A D | bluefield_edac.c | 189 dimm = mci->dimms[i]; in bluefield_edac_init_dimms()
|
/kernel/linux/linux-6.6/tools/testing/nvdimm/test/ |
H A D | ndtest.c | 178 .dimms = dimm_group1, 186 .dimms = dimm_group2, 429 if (uuid_parse(p->config->dimms[ndimm].uuid_str, (uuid_t *)uuid)) { in ndtest_create_region() 448 mappings[i].nvdimm = p->config->dimms[ndimm].nvdimm; in ndtest_create_region() 482 if (p->config->dimms[i].dev) { in put_dimms() 483 device_unregister(p->config->dimms[i].dev); in put_dimms() 484 p->config->dimms[i].dev = NULL; in put_dimms() 759 d = &p->config->dimms[i]; in ndtest_nvdimm_init() 941 /* Each instance can be taken as a bus, which can have multiple dimms */ in ndtest_init()
|
H A D | ndtest.h | 102 struct ndtest_dimm *dimms; member
|
/kernel/linux/linux-6.6/drivers/acpi/nfit/ |
H A D | nfit.h | 243 struct list_head dimms; member
|
H A D | core.c | 767 list_for_each_entry(nfit_mem, &acpi_desc->dimms, list) { in nfit_get_smbios_id() 1023 * dimms without spa associations. in __nfit_mem_init() 1038 list_for_each_entry(nfit_mem, &acpi_desc->dimms, list) in __nfit_mem_init() 1054 list_add(&nfit_mem->list, &acpi_desc->dimms); in __nfit_mem_init() 1108 /* multiple dimms may share a SPA when interleaved */ in __nfit_mem_init() 1177 list_sort(NULL, &acpi_desc->dimms, nfit_mem_cmp); in nfit_mem_init() 1660 list_for_each_entry(nfit_mem, &acpi_desc->dimms, list) in acpi_nfit_dimm_by_handle() 1939 list_for_each_entry(nfit_mem, &acpi_desc->dimms, list) { in shutdown_dimm_notify() 1991 list_for_each_entry(nfit_mem, &acpi_desc->dimms, list) { in acpi_nfit_register_dimms() 2078 * Now that dimms ar in acpi_nfit_register_dimms() [all...] |
/kernel/linux/linux-5.10/drivers/acpi/nfit/ |
H A D | core.c | 757 list_for_each_entry(nfit_mem, &acpi_desc->dimms, list) { in nfit_get_smbios_id() 1087 * dimms without spa associations. in __nfit_mem_init() 1102 list_for_each_entry(nfit_mem, &acpi_desc->dimms, list) in __nfit_mem_init() 1118 list_add(&nfit_mem->list, &acpi_desc->dimms); in __nfit_mem_init() 1172 /* multiple dimms may share a SPA when interleaved */ in __nfit_mem_init() 1242 list_sort(NULL, &acpi_desc->dimms, nfit_mem_cmp); in nfit_mem_init() 1727 list_for_each_entry(nfit_mem, &acpi_desc->dimms, list) in acpi_nfit_dimm_by_handle() 2006 list_for_each_entry(nfit_mem, &acpi_desc->dimms, list) { in shutdown_dimm_notify() 2058 list_for_each_entry(nfit_mem, &acpi_desc->dimms, list) { in acpi_nfit_register_dimms() 2154 * Now that dimms ar in acpi_nfit_register_dimms() [all...] |
H A D | nfit.h | 247 struct list_head dimms; member
|