Home
last modified time | relevance | path

Searched refs:badrange (Results 1 – 8 of 8) sorted by relevance

/linux-6.1.9/drivers/nvdimm/
Dbadrange.c19 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 …]
Dnd-core.h28 struct badrange badrange; member
DMakefile24 libnvdimm-y += badrange.o
Dbus.c208 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()
Dcore.c507 return badrange_add(&nvdimm_bus->badrange, addr, length); in nvdimm_bus_add_badrange()
/linux-6.1.9/include/linux/
Dlibnvdimm.h22 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/
Dnfit.c213 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/
DKbuild76 libnvdimm-y += $(NVDIMM_SRC)/badrange.o