Searched refs:badrange (Results 1 – 8 of 8) sorted by relevance
/kernel/linux/linux-5.10/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() 360 badrange_init(&nvdimm_bus->badrange); in nvdimm_bus_register() 444 spin_lock(&nvdimm_bus->badrange.lock); in nd_bus_remove() 445 free_badrange_list(&nvdimm_bus->badrange.list); in nd_bus_remove() 446 spin_unlock(&nvdimm_bus->badrange.lock); in nd_bus_remove()
|
D | core.c | 539 return badrange_add(&nvdimm_bus->badrange, addr, length); in nvdimm_bus_add_badrange()
|
/kernel/linux/linux-5.10/include/linux/ |
D | libnvdimm.h | 22 struct badrange { struct 247 void badrange_init(struct badrange *badrange); 248 int badrange_add(struct badrange *badrange, u64 addr, u64 length); 249 void badrange_forget(struct badrange *badrange, phys_addr_t start,
|
/kernel/linux/linux-5.10/tools/testing/nvdimm/test/ |
D | nfit.c | 216 struct badrange badrange; member 533 struct badrange *badrange, u64 addr, u64 len) in post_ars_status() argument 548 spin_lock(&badrange->lock); in post_ars_status() 549 list_for_each_entry(be, &badrange->list, list) { in post_ars_status() 565 spin_unlock(&badrange->lock); in post_ars_status() 586 post_ars_status(ars_state, &t->badrange, ars_start->address, in nfit_test_cmd_ars_start() 628 badrange_forget(&t->badrange, clear_err->address, clear_err->length); in nfit_test_cmd_clear_error() 841 rc = badrange_add(&t->badrange, err_inj->err_inj_spa_range_base, in nfit_test_cmd_ars_error_inject() 872 badrange_forget(&t->badrange, err_clr->err_inj_clr_spa_range_base, in nfit_test_cmd_ars_inject_clear() 892 spin_lock(&t->badrange.lock); in nfit_test_cmd_ars_inject_status() [all …]
|
/kernel/linux/linux-5.10/tools/testing/nvdimm/ |
D | Kbuild | 86 libnvdimm-y += $(NVDIMM_SRC)/badrange.o
|