Searched refs:badrange (Results 1 – 8 of 8) sorted by relevance
/Linux-v5.4/drivers/nvdimm/ |
D | badrange.c | 19 void badrange_init(struct badrange *badrange) in badrange_init() argument 21 INIT_LIST_HEAD(&badrange->list); in badrange_init() 22 spin_lock_init(&badrange->lock); in badrange_init() 26 static void append_badrange_entry(struct badrange *badrange, in append_badrange_entry() argument 29 lockdep_assert_held(&badrange->lock); in append_badrange_entry() 32 list_add_tail(&bre->list, &badrange->list); in append_badrange_entry() 35 static int alloc_and_append_badrange_entry(struct badrange *badrange, in alloc_and_append_badrange_entry() argument 44 append_badrange_entry(badrange, bre, addr, length); in alloc_and_append_badrange_entry() 48 static int add_badrange(struct badrange *badrange, u64 addr, u64 length) in add_badrange() argument 52 spin_unlock(&badrange->lock); in add_badrange() [all …]
|
D | Makefile | 26 libnvdimm-y += badrange.o
|
D | nd-core.h | 28 struct badrange badrange; member
|
D | bus.c | 219 badrange_forget(&nvdimm_bus->badrange, phys, cleared); in nvdimm_account_cleared_poison() 355 badrange_init(&nvdimm_bus->badrange); in nvdimm_bus_register() 439 spin_lock(&nvdimm_bus->badrange.lock); in nd_bus_remove() 440 free_badrange_list(&nvdimm_bus->badrange.list); in nd_bus_remove() 441 spin_unlock(&nvdimm_bus->badrange.lock); in nd_bus_remove()
|
D | core.c | 395 return badrange_add(&nvdimm_bus->badrange, addr, length); in nvdimm_bus_add_badrange()
|
/Linux-v5.4/include/linux/ |
D | libnvdimm.h | 22 struct badrange { struct 207 void badrange_init(struct badrange *badrange); 208 int badrange_add(struct badrange *badrange, u64 addr, u64 length); 209 void badrange_forget(struct badrange *badrange, phys_addr_t start,
|
/Linux-v5.4/tools/testing/nvdimm/test/ |
D | nfit.c | 212 struct badrange badrange; member 528 struct badrange *badrange, u64 addr, u64 len) in post_ars_status() argument 543 spin_lock(&badrange->lock); in post_ars_status() 544 list_for_each_entry(be, &badrange->list, list) { in post_ars_status() 560 spin_unlock(&badrange->lock); in post_ars_status() 581 post_ars_status(ars_state, &t->badrange, ars_start->address, in nfit_test_cmd_ars_start() 623 badrange_forget(&t->badrange, clear_err->address, clear_err->length); in nfit_test_cmd_clear_error() 836 rc = badrange_add(&t->badrange, err_inj->err_inj_spa_range_base, in nfit_test_cmd_ars_error_inject() 867 badrange_forget(&t->badrange, err_clr->err_inj_clr_spa_range_base, in nfit_test_cmd_ars_inject_clear() 887 spin_lock(&t->badrange.lock); in nfit_test_cmd_ars_inject_status() [all …]
|
/Linux-v5.4/tools/testing/nvdimm/ |
D | Kbuild | 86 libnvdimm-y += $(NVDIMM_SRC)/badrange.o
|