Lines Matching refs:layers
70 edac_layer_name[mci->layers[i].type], in edac_dimm_info_location()
205 kfree(mci->layers); in mci_release()
295 edac_layer_name[mci->layers[layer].type], in edac_mc_alloc_dimms()
308 if (mci->layers[0].is_virt_csrow) { in edac_mc_alloc_dimms()
325 if (pos[layer] < mci->layers[layer].size) in edac_mc_alloc_dimms()
336 struct edac_mc_layer *layers, in edac_mc_alloc() argument
353 tot_dimms *= layers[idx].size; in edac_mc_alloc()
355 if (layers[idx].is_virt_csrow) in edac_mc_alloc()
356 tot_csrows *= layers[idx].size; in edac_mc_alloc()
358 tot_channels *= layers[idx].size; in edac_mc_alloc()
360 if (layers[idx].type == EDAC_MC_LAYER_CHIP_SELECT) in edac_mc_alloc()
368 mci->layers = kcalloc(n_layers, sizeof(struct edac_mc_layer), GFP_KERNEL); in edac_mc_alloc()
369 if (!mci->layers) in edac_mc_alloc()
383 memcpy(mci->layers, layers, sizeof(*layer) * n_layers); in edac_mc_alloc()
986 if (pos[i] >= (int)mci->layers[i].size) { in edac_mc_handle_error()
990 edac_layer_name[mci->layers[i].type], in edac_mc_handle_error()
991 pos[i], mci->layers[i].size); in edac_mc_handle_error()
1085 edac_layer_name[mci->layers[i].type], pos[i]); in edac_mc_handle_error()