Searched refs:badblocks (Results 1 – 20 of 20) sorted by relevance
/drivers/nvdimm/ |
D | badrange.c | 165 static void set_badblock(struct badblocks *bb, sector_t s, int num) in set_badblock() 185 static void __add_badblock_range(struct badblocks *bb, u64 ns_offset, u64 len) in __add_badblock_range() 214 struct badblocks *bb, const struct range *range) in badblocks_populate() 270 struct badblocks *bb, const struct range *range) in nvdimm_badblocks_populate()
|
D | btt.h | 199 struct badblocks; 232 struct badblocks *phys_bb;
|
D | pmem.h | 23 struct badblocks bb;
|
D | nd.h | 306 struct badblocks bb; 532 struct badblocks *bb, const struct range *range); 550 static inline bool is_bad_pmem(struct badblocks *bb, sector_t sector, in is_bad_pmem()
|
D | pmem.c | 562 struct badblocks *bb; in pmem_revalidate_poison()
|
D | region_devs.c | 606 static DEVICE_ATTR(badblocks, 0444, region_badblocks_show, NULL);
|
/drivers/block/null_blk/ |
D | null_blk.h | 65 struct badblocks badblocks; member
|
D | main.c | 421 return badblocks_show(&t_dev->badblocks, page, 0); in nullb_device_badblocks_show() 455 cmpxchg(&t_dev->badblocks.shift, -1, 0); in nullb_device_badblocks_store() 457 ret = badblocks_set(&t_dev->badblocks, start, in nullb_device_badblocks_store() 460 ret = badblocks_clear(&t_dev->badblocks, start, in nullb_device_badblocks_store() 468 CONFIGFS_ATTR(nullb_device_, badblocks); 594 if (badblocks_init(&dev->badblocks, 0)) { in null_alloc_dev() 627 badblocks_exit(&dev->badblocks); in null_free_dev() 1266 struct badblocks *bb = &cmd->nq->dev->badblocks; in null_handle_badblocks() 1354 if (dev->badblocks.shift != -1) { in null_process_cmd()
|
/drivers/md/ |
D | md.h | 133 struct badblocks badblocks; member 221 if (unlikely(rdev->badblocks.count)) { in is_badblock() 222 int rv = badblocks_check(&rdev->badblocks, rdev->data_offset + s, in is_badblock()
|
D | md.c | 932 badblocks_exit(&rdev->badblocks); in md_rdev_clear() 1245 rdev->badblocks.shift = -1; in super_90_load() 1731 rdev->badblocks.count == 0) { in super_1_load() 1750 rdev->badblocks.shift = sb->bblog_shift; in super_1_load() 1759 if (badblocks_set(&rdev->badblocks, sector, count, 1)) in super_1_load() 1763 rdev->badblocks.shift = 0; in super_1_load() 2112 if (rdev->badblocks.count == 0) in super_1_sync() 2118 struct badblocks *bb = &rdev->badblocks; in super_1_sync() 2289 if (rdev->badblocks.sector + rdev->badblocks.size > new_offset) in super_1_allow_new_offset() 2555 rdev->badblocks.count = 0; in unbind_rdev_from_array() [all …]
|
D | raid1.c | 2378 if (rdev->badblocks.shift < 0) in narrow_write_error() 2381 block_sectors = roundup(1 << rdev->badblocks.shift, in narrow_write_error()
|
D | raid10.c | 2931 if (rdev->badblocks.shift < 0) in narrow_write_error() 2934 block_sectors = roundup(1 << rdev->badblocks.shift, in narrow_write_error()
|
/drivers/mtd/ |
D | mtdconcat.c | 624 mtd->ecc_stats.badblocks++; in concat_block_markbad() 702 concat->mtd.ecc_stats.badblocks = subdev[0]->ecc_stats.badblocks; in mtd_concat_create() 733 concat->mtd.ecc_stats.badblocks += in mtd_concat_create() 734 subdev[i]->ecc_stats.badblocks; in mtd_concat_create()
|
D | mtdpart.c | 206 child->ecc_stats.badblocks++; in allocate_partition()
|
D | mtdcore.c | 297 return sysfs_emit(buf, "%u\n", ecc_stats->badblocks); in mtd_bad_blocks_show() 2216 mtd->ecc_stats.badblocks++; in mtd_block_markbad()
|
/drivers/mtd/nand/onenand/ |
D | onenand_bbt.c | 106 mtd->ecc_stats.badblocks++; in create_bbt()
|
/drivers/mtd/nand/ |
D | core.c | 87 mtd->ecc_stats.badblocks++; in nanddev_markbad()
|
/drivers/mtd/nand/raw/ |
D | nandsim.c | 90 static char *badblocks = NULL; variable 122 module_param(badblocks, charp, 0400); 148 MODULE_PARM_DESC(badblocks, "Erase blocks that are initially marked bad, separated by commas"); 806 if (!badblocks) in ns_parse_badblocks() 808 w = badblocks; in ns_parse_badblocks()
|
D | nand_bbt.c | 239 mtd->ecc_stats.badblocks++; in read_bbt() 529 mtd->ecc_stats.badblocks++; in create_bbt()
|
D | nand_base.c | 593 mtd->ecc_stats.badblocks++; in nand_block_markbad_lowlevel()
|