Lines Matching full:cleared
101 long cleared = nvdimm_clear_poison(to_dev(pmem), phys, len); in __pmem_clear_poison() local
103 if (cleared > 0) { in __pmem_clear_poison()
104 pmem_mkpage_present(pmem, offset, cleared); in __pmem_clear_poison()
107 return cleared; in __pmem_clear_poison()
113 long cleared = __pmem_clear_poison(pmem, offset, len); in pmem_clear_poison() local
115 if (cleared < 0) in pmem_clear_poison()
118 pmem_clear_bb(pmem, to_sect(pmem, offset), cleared >> SECTOR_SHIFT); in pmem_clear_poison()
119 if (cleared < len) in pmem_clear_poison()
355 long cleared; in pmem_recovery_write() local
373 cleared = __pmem_clear_poison(pmem, pmem_off, len); in pmem_recovery_write()
374 if (cleared > 0 && cleared < len) { in pmem_recovery_write()
375 dev_dbg(dev, "poison cleared only %ld out of %zu bytes\n", in pmem_recovery_write()
376 cleared, len); in pmem_recovery_write()
379 if (cleared < 0) { in pmem_recovery_write()
380 dev_dbg(dev, "poison clear failed: %ld\n", cleared); in pmem_recovery_write()
385 pmem_clear_bb(pmem, to_sect(pmem, pmem_off), cleared >> SECTOR_SHIFT); in pmem_recovery_write()