Home
last modified time | relevance | path

Searched refs:badblocks (Results 1 – 20 of 20) sorted by relevance

/drivers/nvdimm/
Dbadrange.c165 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()
Dbtt.h199 struct badblocks;
232 struct badblocks *phys_bb;
Dpmem.h23 struct badblocks bb;
Dnd.h306 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()
Dpmem.c562 struct badblocks *bb; in pmem_revalidate_poison()
Dregion_devs.c606 static DEVICE_ATTR(badblocks, 0444, region_badblocks_show, NULL);
/drivers/block/null_blk/
Dnull_blk.h65 struct badblocks badblocks; member
Dmain.c421 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/
Dmd.h133 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()
Dmd.c932 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 …]
Draid1.c2378 if (rdev->badblocks.shift < 0) in narrow_write_error()
2381 block_sectors = roundup(1 << rdev->badblocks.shift, in narrow_write_error()
Draid10.c2931 if (rdev->badblocks.shift < 0) in narrow_write_error()
2934 block_sectors = roundup(1 << rdev->badblocks.shift, in narrow_write_error()
/drivers/mtd/
Dmtdconcat.c624 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()
Dmtdpart.c206 child->ecc_stats.badblocks++; in allocate_partition()
Dmtdcore.c297 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/
Donenand_bbt.c106 mtd->ecc_stats.badblocks++; in create_bbt()
/drivers/mtd/nand/
Dcore.c87 mtd->ecc_stats.badblocks++; in nanddev_markbad()
/drivers/mtd/nand/raw/
Dnandsim.c90 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()
Dnand_bbt.c239 mtd->ecc_stats.badblocks++; in read_bbt()
529 mtd->ecc_stats.badblocks++; in create_bbt()
Dnand_base.c593 mtd->ecc_stats.badblocks++; in nand_block_markbad_lowlevel()