Lines Matching refs:nfit_bdw
818 struct nfit_bdw *nfit_bdw; in add_bdw() local
822 list_for_each_entry(nfit_bdw, &prev->bdws, list) in add_bdw()
823 if (memcmp(nfit_bdw->bdw, bdw, sizeof(*bdw)) == 0) { in add_bdw()
824 list_move_tail(&nfit_bdw->list, &acpi_desc->bdws); in add_bdw()
828 nfit_bdw = devm_kzalloc(dev, sizeof(*nfit_bdw) + sizeof(*bdw), in add_bdw()
830 if (!nfit_bdw) in add_bdw()
832 INIT_LIST_HEAD(&nfit_bdw->list); in add_bdw()
833 memcpy(nfit_bdw->bdw, bdw, sizeof(*bdw)); in add_bdw()
834 list_add_tail(&nfit_bdw->list, &acpi_desc->bdws); in add_bdw()
1026 struct nfit_bdw *nfit_bdw; in nfit_mem_init_bdw() local
1030 list_for_each_entry(nfit_bdw, &acpi_desc->bdws, list) { in nfit_mem_init_bdw()
1031 if (nfit_bdw->bdw->region_index != dcr) in nfit_mem_init_bdw()
1033 nfit_mem->bdw = nfit_bdw->bdw; in nfit_mem_init_bdw()