Lines Matching full:layers
357 * Maximum number of layers used by the memory controller to uniquely
361 * some code there that are optimized for 3 layers.
370 * @layers: a struct edac_mc_layer array, describing how many elements
372 * @nlayers: Number of layers at the @layers array
379 * For 2 layers, this macro is similar to allocate a bi-dimensional array
382 * For 3 layers, this macro is similar to allocate a tri-dimensional array
386 * 3 layers, this is a little faster.
388 * By design, layers can never be 0 or more than 3. If that ever happens,
392 #define EDAC_DIMM_OFF(layers, nlayers, layer0, layer1, layer2) ({ \ argument
397 __i = (layer1) + ((layers[1]).size * (layer0)); \
399 __i = (layer2) + ((layers[2]).size * ((layer1) + \
400 ((layers[1]).size * (layer0)))); \
410 * @layers: a struct edac_mc_layer array, describing how many elements
414 * @nlayers: Number of layers at the @layers array
421 * For 2 layers, this macro is similar to allocate a bi-dimensional array
424 * For 3 layers, this macro is similar to allocate a tri-dimensional array
427 #define EDAC_DIMM_PTR(layers, var, nlayers, layer0, layer1, layer2) ({ \ argument
429 int ___i = EDAC_DIMM_OFF(layers, nlayers, layer0, layer1, layer2); \
527 * @enable_per_layer_report: if false, the error affects all layers
612 struct edac_mc_layer *layers; member