Lines Matching refs:csrow

147 	struct csrow_info *csrow = to_csrow(dev);  in csrow_ue_count_show()  local
149 return sprintf(data, "%u\n", csrow->ue_count); in csrow_ue_count_show()
155 struct csrow_info *csrow = to_csrow(dev); in csrow_ce_count_show() local
157 return sprintf(data, "%u\n", csrow->ce_count); in csrow_ce_count_show()
163 struct csrow_info *csrow = to_csrow(dev); in csrow_size_show() local
167 for (i = 0; i < csrow->nr_channels; i++) in csrow_size_show()
168 nr_pages += csrow->channels[i]->dimm->nr_pages; in csrow_size_show()
175 struct csrow_info *csrow = to_csrow(dev); in csrow_mem_type_show() local
177 return sprintf(data, "%s\n", edac_mem_types[csrow->channels[0]->dimm->mtype]); in csrow_mem_type_show()
183 struct csrow_info *csrow = to_csrow(dev); in csrow_dev_type_show() local
185 return sprintf(data, "%s\n", dev_types[csrow->channels[0]->dimm->dtype]); in csrow_dev_type_show()
192 struct csrow_info *csrow = to_csrow(dev); in csrow_edac_mode_show() local
194 return sprintf(data, "%s\n", edac_caps[csrow->channels[0]->dimm->edac_mode]); in csrow_edac_mode_show()
202 struct csrow_info *csrow = to_csrow(dev); in channel_dimm_label_show() local
204 struct rank_info *rank = csrow->channels[chan]; in channel_dimm_label_show()
218 struct csrow_info *csrow = to_csrow(dev); in channel_dimm_label_store() local
220 struct rank_info *rank = csrow->channels[chan]; in channel_dimm_label_store()
242 struct csrow_info *csrow = to_csrow(dev); in channel_ce_count_show() local
244 struct rank_info *rank = csrow->channels[chan]; in channel_ce_count_show()
374 struct csrow_info *csrow = container_of(dev, struct csrow_info, dev); in csrow_dev_is_visible() local
376 if (idx >= csrow->nr_channels) in csrow_dev_is_visible()
385 if (!csrow->channels[idx]->dimm->nr_pages) in csrow_dev_is_visible()
416 static inline int nr_pages_per_csrow(struct csrow_info *csrow) in nr_pages_per_csrow() argument
420 for (chan = 0; chan < csrow->nr_channels; chan++) in nr_pages_per_csrow()
421 nr_pages += csrow->channels[chan]->dimm->nr_pages; in nr_pages_per_csrow()
428 struct csrow_info *csrow, int index) in edac_create_csrow_object() argument
432 csrow->dev.type = &csrow_attr_type; in edac_create_csrow_object()
433 csrow->dev.groups = csrow_dev_groups; in edac_create_csrow_object()
434 csrow->dev.release = csrow_release; in edac_create_csrow_object()
435 device_initialize(&csrow->dev); in edac_create_csrow_object()
436 csrow->dev.parent = &mci->dev; in edac_create_csrow_object()
437 csrow->mci = mci; in edac_create_csrow_object()
438 dev_set_name(&csrow->dev, "csrow%d", index); in edac_create_csrow_object()
439 dev_set_drvdata(&csrow->dev, csrow); in edac_create_csrow_object()
441 err = device_add(&csrow->dev); in edac_create_csrow_object()
443 edac_dbg(1, "failure: create device %s\n", dev_name(&csrow->dev)); in edac_create_csrow_object()
444 put_device(&csrow->dev); in edac_create_csrow_object()
448 edac_dbg(0, "device %s created\n", dev_name(&csrow->dev)); in edac_create_csrow_object()
457 struct csrow_info *csrow; in edac_create_csrow_objects() local
460 csrow = mci->csrows[i]; in edac_create_csrow_objects()
461 if (!nr_pages_per_csrow(csrow)) in edac_create_csrow_objects()
827 struct csrow_info *csrow = mci->csrows[csrow_idx]; in mci_size_mb_show() local
829 for (j = 0; j < csrow->nr_channels; j++) { in mci_size_mb_show()
830 struct dimm_info *dimm = csrow->channels[j]->dimm; in mci_size_mb_show()