bre 27 drivers/nvdimm/badrange.c struct badrange_entry *bre, u64 addr, u64 length) bre 30 drivers/nvdimm/badrange.c bre->start = addr; bre 31 drivers/nvdimm/badrange.c bre->length = length; bre 32 drivers/nvdimm/badrange.c list_add_tail(&bre->list, &badrange->list); bre 38 drivers/nvdimm/badrange.c struct badrange_entry *bre; bre 40 drivers/nvdimm/badrange.c bre = kzalloc(sizeof(*bre), flags); bre 41 drivers/nvdimm/badrange.c if (!bre) bre 44 drivers/nvdimm/badrange.c append_badrange_entry(badrange, bre, addr, length); bre 50 drivers/nvdimm/badrange.c struct badrange_entry *bre, *bre_new; bre 68 drivers/nvdimm/badrange.c list_for_each_entry(bre, &badrange->list, list) bre 69 drivers/nvdimm/badrange.c if (bre->start == addr) { bre 71 drivers/nvdimm/badrange.c if (bre->length != length) bre 72 drivers/nvdimm/badrange.c bre->length = length; bre 106 drivers/nvdimm/badrange.c struct badrange_entry *bre, *next; bre 118 drivers/nvdimm/badrange.c list_for_each_entry_safe(bre, next, badrange_list, list) { bre 119 drivers/nvdimm/badrange.c u64 bre_end = bre->start + bre->length - 1; bre 124 drivers/nvdimm/badrange.c if (bre->start > clr_end) bre 127 drivers/nvdimm/badrange.c if ((bre->start >= start) && (bre_end <= clr_end)) { bre 128 drivers/nvdimm/badrange.c list_del(&bre->list); bre 129 drivers/nvdimm/badrange.c kfree(bre); bre 133 drivers/nvdimm/badrange.c if ((start <= bre->start) && (clr_end > bre->start)) { bre 134 drivers/nvdimm/badrange.c bre->length -= clr_end - bre->start + 1; bre 135 drivers/nvdimm/badrange.c bre->start = clr_end + 1; bre 139 drivers/nvdimm/badrange.c if ((bre->start < start) && (bre_end <= clr_end)) { bre 141 drivers/nvdimm/badrange.c bre->length = start - bre->start; bre 149 drivers/nvdimm/badrange.c if ((bre->start < start) && (bre_end > clr_end)) { bre 157 drivers/nvdimm/badrange.c bre->length = start - bre->start; bre 216 drivers/nvdimm/badrange.c struct badrange_entry *bre; bre 221 drivers/nvdimm/badrange.c list_for_each_entry(bre, &badrange->list, list) { bre 222 drivers/nvdimm/badrange.c u64 bre_end = bre->start + bre->length - 1; bre 227 drivers/nvdimm/badrange.c if (bre->start > res->end) bre 230 drivers/nvdimm/badrange.c if (bre->start >= res->start) { bre 231 drivers/nvdimm/badrange.c u64 start = bre->start; bre 235 drivers/nvdimm/badrange.c len = bre->length; bre 238 drivers/nvdimm/badrange.c - bre->start; bre 246 drivers/nvdimm/badrange.c if (bre->start < res->start) { bre 250 drivers/nvdimm/badrange.c len = bre->start + bre->length - res->start; bre 416 drivers/nvdimm/bus.c struct badrange_entry *bre, *next; bre 418 drivers/nvdimm/bus.c list_for_each_entry_safe(bre, next, badrange_list, list) { bre 419 drivers/nvdimm/bus.c list_del(&bre->list); bre 420 drivers/nvdimm/bus.c kfree(bre);