Searched refs:dimm (Results 1 - 25 of 59) sorted by last modified time

123

/linux-master/tools/testing/nvdimm/test/
H A Dndtest.c37 #define NFIT_DIMM_HANDLE(node, socket, imc, chan, dimm) \
39 | ((imc & 0xf) << 8) | ((chan & 0xf) << 4) | (dimm & 0xf))
103 .dimm = 0,
109 .dimm = 1,
118 .dimm = 0,
124 .dimm = 1,
130 .dimm = 2,
136 .dimm = 3,
162 .dimm = 0,
234 static int ndtest_get_config_size(struct ndtest_dimm *dimm, unsigne argument
248 struct ndtest_dimm *dimm; local
497 struct ndtest_dimm *dimm = dev_get_drvdata(dev); local
506 struct ndtest_dimm *dimm = dev_get_drvdata(dev); local
514 struct ndtest_dimm *dimm = dev_get_drvdata(dev); local
531 struct ndtest_dimm *dimm = dev_get_drvdata(dev); local
539 struct ndtest_dimm *dimm = dev_get_drvdata(dev); local
572 struct ndtest_dimm *dimm = nvdimm_provider_data(nvdimm); local
589 struct ndtest_dimm *dimm = nvdimm_provider_data(nvdimm); local
600 struct ndtest_dimm *dimm = nvdimm_provider_data(nvdimm); local
628 struct ndtest_dimm *dimm = nvdimm_provider_data(nvdimm); local
638 struct ndtest_dimm *dimm = nvdimm_provider_data(nvdimm); local
659 struct ndtest_dimm *dimm = nvdimm_provider_data(nvdimm); local
671 struct ndtest_dimm *dimm = nvdimm_provider_data(nvdimm); local
726 ndtest_dimm_register(struct ndtest_priv *priv, struct ndtest_dimm *dimm, int id) argument
[all...]
H A Dndtest.h58 u8 dimm; member in struct:ndtest_mapping
/linux-master/drivers/nvdimm/
H A Dnd.h19 * Limits the maximum number of block apertures a dimm can
311 int dimm, int hint)
316 return ndrd->flush_wpq[dimm * num + (hint & mask)];
319 static inline void ndrd_set_flush_wpq(struct nd_region_data *ndrd, int dimm, argument
325 ndrd->flush_wpq[dimm * num + (hint & mask)] = flush;
310 ndrd_get_flush_wpq(struct nd_region_data *ndrd, int dimm, int hint) argument
/linux-master/drivers/gpu/drm/i915/soc/
H A Dintel_dram.c195 static int intel_dimm_num_devices(const struct dram_dimm_info *dimm) argument
197 return dimm->ranks * 64 / (dimm->width ?: 1);
267 skl_is_16gb_dimm(const struct dram_dimm_info *dimm) argument
270 return dimm->size / (intel_dimm_num_devices(dimm) ?: 1) == 16;
275 struct dram_dimm_info *dimm,
279 dimm->size = icl_get_dimm_size(val);
280 dimm->width = icl_get_dimm_width(val);
281 dimm
274 skl_dram_get_dimm_info(struct drm_i915_private *i915, struct dram_dimm_info *dimm, int channel, char dimm_name, u16 val) argument
480 bxt_get_dimm_info(struct dram_dimm_info *dimm, u32 val) argument
503 struct dram_dimm_info dimm; local
[all...]
/linux-master/arch/powerpc/platforms/pseries/
H A Dpapr_scm.c71 /* Protect dimm health data from concurrent read/writes */
74 /* Last time the health information of the dimm was updated */
77 /* Health information for the dimm */
494 * Issue hcall to retrieve dimm health info and populate papr_scm_priv with the
524 "Queried dimm health info. Bitmap:0x%016lx Mask:0x%016lx\n",
530 /* Min interval in seconds for assuming stable dimm health */
661 * Do a sanity checks on the inputs args to dimm-control function and return
673 /* Only dimm-specific calls are supported atm */
786 /* Ensure dimm health mutex is taken preventing concurrent access */
791 /* Always fetch upto date dimm healt
1061 struct nvdimm *dimm = to_nvdimm(dev); local
1078 struct nvdimm *dimm = to_nvdimm(dev); local
1116 struct nvdimm *dimm = to_nvdimm(dev); local
1158 struct nvdimm *dimm = to_nvdimm(dev); local
[all...]
/linux-master/include/acpi/
H A Dactbl2.h1943 #define ACPI_NFIT_BUILD_DEVICE_HANDLE(dimm, channel, memory, socket, node) \
1944 ((dimm) | \
/linux-master/drivers/edac/
H A Dskx_common.c142 res->dimm = (adxl_nm_bitmap & BIT_NM_DIMM) ?
149 res->dimm = (int)adxl_values[component_indices[INDEX_DIMM]];
343 int skx_get_dimm_info(u32 mtr, u32 mcmtr, u32 amap, struct dimm_info *dimm, argument
372 edac_dbg(0, "mc#%d: channel %d, dimm %d, %lld MiB (%d pages) bank: %d, rank: %d, row: 0x%x, col: 0x%x\n",
382 dimm->nr_pages = npages;
383 dimm->grain = 32;
384 dimm->dtype = get_width(mtr);
385 dimm->mtype = mtype;
386 dimm->edac_mode = EDAC_SECDED; /* likely better than this */
389 snprintf(dimm
398 skx_get_nvdimm_info(struct dimm_info *dimm, struct skx_imc *imc, int chan, int dimmno, const char *mod_str) argument
[all...]
H A Dedac_mc_sysfs.c127 * and the per-dimm/per-rank one
168 nr_pages += csrow->channels[i]->dimm->nr_pages;
177 return sysfs_emit(data, "%s\n", edac_mem_types[csrow->channels[0]->dimm->mtype]);
185 return sysfs_emit(data, "%s\n", dev_types[csrow->channels[0]->dimm->dtype]);
194 return sysfs_emit(data, "%s\n", edac_caps[csrow->channels[0]->dimm->edac_mode]);
207 if (!rank->dimm->label[0])
210 return sysfs_emit(data, "%s\n", rank->dimm->label);
228 if (copy_count == 0 || copy_count >= sizeof(rank->dimm->label))
231 memcpy(rank->dimm->label, data, copy_count);
232 rank->dimm
499 struct dimm_info *dimm = to_dimm(dev); local
511 struct dimm_info *dimm = to_dimm(dev); local
525 struct dimm_info *dimm = to_dimm(dev); local
546 struct dimm_info *dimm = to_dimm(dev); local
554 struct dimm_info *dimm = to_dimm(dev); local
562 struct dimm_info *dimm = to_dimm(dev); local
571 struct dimm_info *dimm = to_dimm(dev); local
580 struct dimm_info *dimm = to_dimm(dev); local
589 struct dimm_info *dimm = to_dimm(dev); local
640 edac_create_dimm_object(struct mem_ctl_info *mci, struct dimm_info *dimm) argument
687 struct dimm_info *dimm; local
829 struct dimm_info *dimm = csrow->channels[j]->dimm; local
935 struct dimm_info *dimm; local
988 struct dimm_info *dimm; local
[all...]
H A Dcpc925_edac.c318 struct dimm_info *dimm; local
369 dimm = csrow->channels[j]->dimm;
370 dimm->nr_pages = nr_pages / csrow->nr_channels;
371 dimm->mtype = MEM_RDDR;
372 dimm->edac_mode = EDAC_SECDED;
373 dimm->grain = grain;
374 dimm->dtype = dtype;
H A Darmada_xp_edac.c226 struct dimm_info *dimm; local
239 dimm = mci->dimms[i];
253 dimm->nr_pages = 524288;
256 dimm->nr_pages = 65536;
259 dimm->nr_pages = 131072;
262 dimm->nr_pages = 262144;
265 dimm->nr_pages = 1048576;
268 dimm->nr_pages = 2097152;
271 dimm->grain = 8;
272 dimm
[all...]
H A Daltera_edac.c288 struct dimm_info *dimm; local
386 dimm = *mci->dimms;
387 dimm->nr_pages = ((mem_size - 1) >> PAGE_SHIFT) + 1;
388 dimm->grain = 8;
389 dimm->dtype = DEV_X8;
390 dimm->mtype = MEM_DDR3;
391 dimm->edac_mode = EDAC_SECDED;
H A Dsynopsys_edac.c826 struct dimm_info *dimm; local
837 dimm = csi->channels[j]->dimm;
838 dimm->edac_mode = EDAC_SECDED;
839 dimm->mtype = p_data->get_mtype(priv->baseaddr);
840 dimm->nr_pages = (size >> PAGE_SHIFT) / csi->nr_channels;
841 dimm->grain = SYNPS_EDAC_ERR_GRAIN;
842 dimm->dtype = p_data->get_dtype(priv->baseaddr);
H A Dversal_edac.c594 struct dimm_info *dimm; local
603 dimm = csi->channels[ch]->dimm;
604 dimm->edac_mode = EDAC_SECDED;
605 dimm->mtype = MEM_DDR4;
606 dimm->nr_pages = (size >> PAGE_SHIFT) / csi->nr_channels;
607 dimm->grain = XDDR_EDAC_ERR_GRAIN;
608 dimm->dtype = get_dwidth(priv->ddrmc_baseaddr);
H A Di10nm_base.c541 res->dimm = res->rank >> 2;
554 res->dimm = GET_BITFIELD(m->misc, 58, 58);
975 struct dimm_info *dimm; local
989 dimm = edac_get_dimm(mci, i, j, 0);
991 edac_dbg(1, "dimmmtr 0x%x mcddrtcfg 0x%x (mc%d ch%d dimm%d)\n",
995 ndimms += skx_get_dimm_info(mtr, 0, amap, dimm,
998 ndimms += skx_get_nvdimm_info(dimm, imc, i, j,
H A Digen6_edac.c974 struct dimm_info *dimm; local
1000 dimm = edac_get_dimm(mci, i, j, 0);
1013 dimm->grain = 64;
1014 dimm->mtype = mtype;
1015 dimm->dtype = dtype;
1016 dimm->nr_pages = MiB_TO_PAGES(dsize >> 20);
1017 dimm->edac_mode = EDAC_SECDED;
1018 snprintf(dimm->label, sizeof(dimm->label),
1021 mc, i, j, dsize >> 20, dimm
[all...]
H A Damd64_edac.c1106 int dimm, size0, size1; local
1132 for (dimm = 0; dimm < 4; dimm++) {
1134 if (dcsb[dimm * 2] & DCSB_CS_ENABLE)
1137 * calculation. We pass dimm value to the dbam_to_cs
1142 DBAM_DIMM(dimm, dbam),
1143 dimm);
1146 if (dcsb[dimm * 2 + 1] & DCSB_CS_ENABLE)
1148 DBAM_DIMM(dimm, dba
1199 umc_get_cs_mode(int dimm, u8 ctrl, struct amd64_pvt *pvt) argument
1231 __addr_mask_to_cs_size(u32 addr_mask_orig, unsigned int cs_mode, int csrow_nr, int dimm) argument
1272 int dimm, size = 0; local
1320 int dimm, size0, size1, cs0, cs1, cs_mode; local
3069 struct dimm_info *dimm; local
3113 struct dimm_info *dimm; local
3579 struct dimm_info *dimm; local
[all...]
H A Dti_edac.c132 struct dimm_info *dimm; local
138 dimm = edac_get_dimm(mci, 0, 0, 0);
149 dimm->dtype = DEV_X16;
152 dimm->dtype = DEV_X32;
166 dimm->dtype = DEV_X64;
170 dimm->dtype = DEV_X32;
174 dimm->dtype = DEV_X16;
181 dimm->nr_pages = memsize >> PAGE_SHIFT;
182 dimm->grain = 4;
184 dimm
[all...]
H A Dsb_edac.c338 struct dimm { struct in struct:sbridge_channel
343 } dimm[MAX_DIMMS]; member in struct:sbridge_channel
1594 struct dimm_info *dimm; local
1628 dimm = edac_get_dimm(mci, i, j, 0);
1662 edac_dbg(0, "mc#%d: ha %d channel %d, dimm %d, %lld MiB (%d pages) bank: %d, rank: %d, row: %#x, col: %#x\n",
1667 dimm->nr_pages = npages;
1668 dimm->grain = 32;
1669 dimm->dtype = pvt->info.get_width(pvt, mtr);
1670 dimm->mtype = mtype;
1671 dimm
3100 int rc, dimm; local
[all...]
H A Dppc4xx_edac.c959 struct dimm_info *dimm = csi->channels[j]->dimm; local
961 dimm->nr_pages = nr_pages / csi->nr_channels;
962 dimm->grain = 1;
964 dimm->mtype = mtype;
965 dimm->dtype = dtype;
967 dimm->edac_mode = edac_mode;
H A Dpnd2_edac.c57 int dimm; member in struct:dram_addr
967 daddr->dimm = 0;
987 daddr->dimm = (daddr->rank >= 2) ^ drp[pmiidx].dimmflip;
1108 /* pmi channel idx to dimm channel idx */
1117 addr, pmiaddr, daddr->chan, daddr->dimm, daddr->rank, daddr->bank, daddr->row, daddr->col);
1187 errcode, daddr->chan, daddr->dimm, daddr->rank, daddr->row, daddr->bank, daddr->col);
1193 m->addr & ~PAGE_MASK, 0, daddr->chan, daddr->dimm, -1, optype, msg);
1204 struct dimm_info *dimm; local
1210 dimm = edac_get_dimm(mci, i, 0, 0);
1211 if (!dimm) {
1247 struct dimm_info *dimm; local
[all...]
H A Docteon_edac-lmc.c31 unsigned long dimm; member in struct:octeon_lmc_pvt
93 fadr.cn61xx.fdimm = pvt->dimm;
156 TEMPLATE_SHOW(dimm); variable
157 TEMPLATE_STORE(dimm); variable
201 static DEVICE_ATTR(dimm, S_IRUGO | S_IWUSR,
H A Di7core_edac.c218 int channel, dimm, rank, bank, page, col; member in struct:i7core_inject
494 struct dimm_info *dimm; local
588 dimm = edac_get_dimm(mci, i, j, 0);
604 dimm->nr_pages = npages;
608 dimm->dtype = DEV_X4;
611 dimm->dtype = DEV_X8;
614 dimm->dtype = DEV_X16;
617 dimm->dtype = DEV_UNKNOWN;
620 snprintf(dimm->label, sizeof(dimm
859 ATTR_ADDR_MATCH(dimm); variable
1705 u32 dimm = (m->misc >> 16) & 0x3; local
[all...]
/linux-master/arch/sparc/kernel/
H A Dchmc.c326 int dimm; local
329 * dimm labels associated with this dimm group.
331 for (dimm = 0; dimm < JB_NUM_DIMMS_PER_GROUP; dimm++) {
333 prop->dimm_labels[first_dimm + dimm]);
572 int dimm; local
575 * dimm labels associated with this bank.
577 for (dimm
[all...]
/linux-master/include/linux/
H A Dedac.h390 unsigned int idx; /* index within the parent dimm array */
394 enum mem_type mtype; /* memory dimm type */
395 enum edac_type edac_mode; /* EDAC mode for this dimm */
397 u32 nr_pages; /* number of pages on this dimm */
415 * @dimm: A pointer to the DIMM structure, where the DIMM label
425 struct dimm_info *dimm; member in struct:rank_info
614 #define mci_for_each_dimm(mci, dimm) \
615 for ((dimm) = (mci)->dimms[0]; \
616 (dimm); \
617 (dimm)
[all...]
/linux-master/drivers/hwmon/peci/
H A Ddimmtemp.c82 } dimm[DIMM_NUMS_MAX]; member in struct:peci_dimmtemp
100 mutex_lock(&priv->dimm[dimm_no].temp.state.lock);
101 if (!peci_sensor_need_update(&priv->dimm[dimm_no].temp.state))
108 priv->dimm[dimm_no].temp.value = __dimm_temp(data, dimm_order) * MILLIDEGREE_PER_DEGREE;
110 peci_sensor_mark_updated(&priv->dimm[dimm_no].temp.state);
113 *val = priv->dimm[dimm_no].temp.value;
115 mutex_unlock(&priv->dimm[dimm_no].temp.state.lock);
126 if (!peci_sensor_need_update(&priv->dimm[dimm_no].thresholds.state))
135 priv->dimm[dimm_no].thresholds.temp_max = GET_TEMP_MAX(data) * MILLIDEGREE_PER_DEGREE;
136 priv->dimm[dimm_n
[all...]

Completed in 1204 milliseconds

123