Lines Matching full:bb
165 static void set_badblock(struct badblocks *bb, sector_t s, int num) in set_badblock() argument
167 dev_dbg(bb->dev, "Found a bad range (0x%llx, 0x%llx)\n", in set_badblock()
170 if (badblocks_set(bb, s, num, 1)) in set_badblock()
171 dev_info_once(bb->dev, "%s: failed for sector %llx\n", in set_badblock()
177 * @bb: badblocks instance to populate
185 static void __add_badblock_range(struct badblocks *bb, u64 ns_offset, u64 len) in __add_badblock_range() argument
205 set_badblock(bb, s, done); in __add_badblock_range()
210 set_badblock(bb, start_sector, num_sectors); in __add_badblock_range()
214 struct badblocks *bb, const struct range *range) in badblocks_populate() argument
239 __add_badblock_range(bb, start - range->start, len); in badblocks_populate()
253 __add_badblock_range(bb, 0, len); in badblocks_populate()
261 * @bb: badblocks instance to populate
270 struct badblocks *bb, const struct range *range) in nvdimm_badblocks_populate() argument
282 badblocks_populate(&nvdimm_bus->badrange, bb, range); in nvdimm_badblocks_populate()