Lines Matching refs:nfit_idt
866 struct nfit_idt *nfit_idt; in add_idt() local
871 list_for_each_entry(nfit_idt, &prev->idts, list) { in add_idt()
872 if (sizeof_idt(nfit_idt->idt) != sizeof_idt(idt)) in add_idt()
875 if (memcmp(nfit_idt->idt, idt, sizeof_idt(idt)) == 0) { in add_idt()
876 list_move_tail(&nfit_idt->list, &acpi_desc->idts); in add_idt()
881 nfit_idt = devm_kzalloc(dev, sizeof(*nfit_idt) + sizeof_idt(idt), in add_idt()
883 if (!nfit_idt) in add_idt()
885 INIT_LIST_HEAD(&nfit_idt->list); in add_idt()
886 memcpy(nfit_idt->idt, idt, sizeof_idt(idt)); in add_idt()
887 list_add_tail(&nfit_idt->list, &acpi_desc->idts); in add_idt()
1105 struct nfit_idt *nfit_idt; in __nfit_mem_init() local
1112 list_for_each_entry(nfit_idt, &acpi_desc->idts, list) { in __nfit_mem_init()
1113 if (nfit_idt->idt->interleave_index != idt_idx) in __nfit_mem_init()
1115 nfit_mem->idt_dcr = nfit_idt->idt; in __nfit_mem_init()