Lines Matching refs:layer
259 int layer; in edac_mc_alloc_dimms() local
294 for (layer = 0; layer < mci->n_layers; layer++) { in edac_mc_alloc_dimms()
296 edac_layer_name[mci->layers[layer].type], in edac_mc_alloc_dimms()
297 pos[layer]); in edac_mc_alloc_dimms()
300 dimm->location[layer] = pos[layer]; in edac_mc_alloc_dimms()
324 for (layer = mci->n_layers - 1; layer >= 0; layer--) { in edac_mc_alloc_dimms()
325 pos[layer]++; in edac_mc_alloc_dimms()
326 if (pos[layer] < mci->layers[layer].size) in edac_mc_alloc_dimms()
328 pos[layer] = 0; in edac_mc_alloc_dimms()
341 struct edac_mc_layer *layer; in edac_mc_alloc() local
384 memcpy(mci->layers, layers, sizeof(*layer) * n_layers); in edac_mc_alloc()