Lines Matching refs:nfit_idt
798 struct nfit_idt *nfit_idt; in add_idt() local
803 list_for_each_entry(nfit_idt, &prev->idts, list) { in add_idt()
804 if (sizeof_idt(nfit_idt->idt) != sizeof_idt(idt)) in add_idt()
807 if (memcmp(nfit_idt->idt, idt, sizeof_idt(idt)) == 0) { in add_idt()
808 list_move_tail(&nfit_idt->list, &acpi_desc->idts); in add_idt()
813 nfit_idt = devm_kzalloc(dev, sizeof(*nfit_idt) + sizeof_idt(idt), in add_idt()
815 if (!nfit_idt) in add_idt()
817 INIT_LIST_HEAD(&nfit_idt->list); in add_idt()
818 memcpy(nfit_idt->idt, idt, sizeof_idt(idt)); in add_idt()
819 list_add_tail(&nfit_idt->list, &acpi_desc->idts); in add_idt()
973 struct nfit_idt *nfit_idt; in nfit_mem_init_bdw() local
998 list_for_each_entry(nfit_idt, &acpi_desc->idts, list) { in nfit_mem_init_bdw()
999 if (nfit_idt->idt->interleave_index != idt_idx) in nfit_mem_init_bdw()
1001 nfit_mem->idt_bdw = nfit_idt->idt; in nfit_mem_init_bdw()
1111 struct nfit_idt *nfit_idt; in __nfit_mem_init() local
1118 list_for_each_entry(nfit_idt, &acpi_desc->idts, list) { in __nfit_mem_init()
1119 if (nfit_idt->idt->interleave_index != idt_idx) in __nfit_mem_init()
1121 nfit_mem->idt_dcr = nfit_idt->idt; in __nfit_mem_init()