Lines Matching refs:nfit_dcr
804 struct nfit_dcr *nfit_dcr; in add_dcr() local
809 list_for_each_entry(nfit_dcr, &prev->dcrs, list) in add_dcr()
810 if (memcmp(nfit_dcr->dcr, dcr, sizeof_dcr(dcr)) == 0) { in add_dcr()
811 list_move_tail(&nfit_dcr->list, &acpi_desc->dcrs); in add_dcr()
815 nfit_dcr = devm_kzalloc(dev, sizeof(*nfit_dcr) + sizeof(*dcr), in add_dcr()
817 if (!nfit_dcr) in add_dcr()
819 INIT_LIST_HEAD(&nfit_dcr->list); in add_dcr()
820 memcpy(nfit_dcr->dcr, dcr, sizeof_dcr(dcr)); in add_dcr()
821 list_add_tail(&nfit_dcr->list, &acpi_desc->dcrs); in add_dcr()
1027 struct nfit_dcr *nfit_dcr; in __nfit_mem_init() local
1057 list_for_each_entry(nfit_dcr, &acpi_desc->dcrs, list) { in __nfit_mem_init()
1058 if (nfit_dcr->dcr->region_index != dcr) in __nfit_mem_init()
1068 nfit_mem->dcr = nfit_dcr->dcr; in __nfit_mem_init()
1070 && nfit_dcr->dcr->windows) in __nfit_mem_init()
1071 nfit_mem->dcr = nfit_dcr->dcr; in __nfit_mem_init()
1491 struct nfit_dcr *nfit_dcr; in format1_show() local
1496 list_for_each_entry(nfit_dcr, &acpi_desc->dcrs, list) { in format1_show()
1497 if (nfit_dcr->dcr->region_index != memdev->region_index) in format1_show()
1499 if (nfit_dcr->dcr->code == dcr->code) in format1_show()
1502 le16_to_cpu(nfit_dcr->dcr->code)); in format1_show()