Lines Matching refs:nfit_bdw
764 struct nfit_bdw *nfit_bdw; in add_bdw() local
768 list_for_each_entry(nfit_bdw, &prev->bdws, list) in add_bdw()
769 if (memcmp(nfit_bdw->bdw, bdw, sizeof(*bdw)) == 0) { in add_bdw()
770 list_move_tail(&nfit_bdw->list, &acpi_desc->bdws); in add_bdw()
774 nfit_bdw = devm_kzalloc(dev, sizeof(*nfit_bdw) + sizeof(*bdw), in add_bdw()
776 if (!nfit_bdw) in add_bdw()
778 INIT_LIST_HEAD(&nfit_bdw->list); in add_bdw()
779 memcpy(nfit_bdw->bdw, bdw, sizeof(*bdw)); in add_bdw()
780 list_add_tail(&nfit_bdw->list, &acpi_desc->bdws); in add_bdw()
972 struct nfit_bdw *nfit_bdw; in nfit_mem_init_bdw() local
976 list_for_each_entry(nfit_bdw, &acpi_desc->bdws, list) { in nfit_mem_init_bdw()
977 if (nfit_bdw->bdw->region_index != dcr) in nfit_mem_init_bdw()
979 nfit_mem->bdw = nfit_bdw->bdw; in nfit_mem_init_bdw()