Searched refs:badrange (Results 1 – 8 of 8) sorted by relevance
/linux-6.1.9/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 | nd-core.h | 28 struct badrange badrange; member
|
D | Makefile | 24 libnvdimm-y += badrange.o
|
D | bus.c | 208 badrange_forget(&nvdimm_bus->badrange, phys, cleared); in nvdimm_account_cleared_poison() 351 badrange_init(&nvdimm_bus->badrange); in nvdimm_bus_register() 430 spin_lock(&nvdimm_bus->badrange.lock); in nd_bus_remove() 431 free_badrange_list(&nvdimm_bus->badrange.list); in nd_bus_remove() 432 spin_unlock(&nvdimm_bus->badrange.lock); in nd_bus_remove()
|
D | core.c | 507 return badrange_add(&nvdimm_bus->badrange, addr, length); in nvdimm_bus_add_badrange()
|
/linux-6.1.9/include/linux/ |
D | libnvdimm.h | 22 struct badrange { struct 231 void badrange_init(struct badrange *badrange); 232 int badrange_add(struct badrange *badrange, u64 addr, u64 length); 233 void badrange_forget(struct badrange *badrange, phys_addr_t start,
|
/linux-6.1.9/tools/testing/nvdimm/test/ |
D | nfit.c | 213 struct badrange badrange; member 530 struct badrange *badrange, u64 addr, u64 len) in post_ars_status() argument 545 spin_lock(&badrange->lock); in post_ars_status() 546 list_for_each_entry(be, &badrange->list, list) { in post_ars_status() 562 spin_unlock(&badrange->lock); in post_ars_status() 583 post_ars_status(ars_state, &t->badrange, ars_start->address, in nfit_test_cmd_ars_start() 625 badrange_forget(&t->badrange, clear_err->address, clear_err->length); in nfit_test_cmd_clear_error() 838 rc = badrange_add(&t->badrange, err_inj->err_inj_spa_range_base, in nfit_test_cmd_ars_error_inject() 869 badrange_forget(&t->badrange, err_clr->err_inj_clr_spa_range_base, in nfit_test_cmd_ars_inject_clear() 889 spin_lock(&t->badrange.lock); in nfit_test_cmd_ars_inject_status() [all …]
|
/linux-6.1.9/tools/testing/nvdimm/ |
D | Kbuild | 76 libnvdimm-y += $(NVDIMM_SRC)/badrange.o
|