/linux-6.3-rc2/include/linux/ |
A D | badblocks.h | 27 struct badblocks { struct 44 int badblocks_check(struct badblocks *bb, sector_t s, int sectors, argument 46 int badblocks_set(struct badblocks *bb, sector_t s, int sectors, 48 int badblocks_clear(struct badblocks *bb, sector_t s, int sectors); 49 void ack_all_badblocks(struct badblocks *bb); 50 ssize_t badblocks_show(struct badblocks *bb, char *page, int unack); 51 ssize_t badblocks_store(struct badblocks *bb, const char *page, size_t len, 53 int badblocks_init(struct badblocks *bb, int enable); 54 void badblocks_exit(struct badblocks *bb); 56 int devm_init_badblocks(struct device *dev, struct badblocks *bb); [all …]
|
A D | nd.h | 128 struct badblocks bb;
|
A D | blkdev.h | 111 struct badblocks; 196 struct badblocks *bb;
|
/linux-6.3-rc2/block/ |
A D | badblocks.c | 53 int badblocks_check(struct badblocks *bb, sector_t s, int sectors, in badblocks_check() 127 static void badblocks_update_acked(struct badblocks *bb) in badblocks_update_acked() 162 int badblocks_set(struct badblocks *bb, sector_t s, int sectors, in badblocks_set() 330 int badblocks_clear(struct badblocks *bb, sector_t s, int sectors) in badblocks_clear() 431 void ack_all_badblocks(struct badblocks *bb) in ack_all_badblocks() 465 ssize_t badblocks_show(struct badblocks *bb, char *page, int unack) in badblocks_show() 515 ssize_t badblocks_store(struct badblocks *bb, const char *page, size_t len, in badblocks_store() 542 static int __badblocks_init(struct device *dev, struct badblocks *bb, in __badblocks_init() 573 int badblocks_init(struct badblocks *bb, int enable) in badblocks_init() 579 int devm_init_badblocks(struct device *dev, struct badblocks *bb) in devm_init_badblocks() [all …]
|
A D | Makefile | 11 genhd.o ioprio.o badblocks.o partitions/ blk-rq-qos.o \
|
/linux-6.3-rc2/drivers/nvdimm/ |
A 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()
|
A D | btt.h | 199 struct badblocks; 232 struct badblocks *phys_bb;
|
A D | pmem.h | 26 struct badblocks bb;
|
A D | nd.h | 421 struct badblocks bb; 648 struct badblocks *bb, const struct range *range); 665 static inline bool is_bad_pmem(struct badblocks *bb, sector_t sector, in is_bad_pmem()
|
A D | pmem.c | 249 struct badblocks *bb = &pmem->bb; in __pmem_direct_access() 678 struct badblocks *bb; in pmem_revalidate_poison()
|
/linux-6.3-rc2/drivers/block/null_blk/ |
A D | null_blk.h | 77 struct badblocks badblocks; member
|
A D | main.c | 477 return badblocks_show(&t_dev->badblocks, page, 0); in nullb_device_badblocks_show() 511 cmpxchg(&t_dev->badblocks.shift, -1, 0); in nullb_device_badblocks_store() 513 ret = badblocks_set(&t_dev->badblocks, start, in nullb_device_badblocks_store() 516 ret = badblocks_clear(&t_dev->badblocks, start, in nullb_device_badblocks_store() 524 CONFIGFS_ATTR(nullb_device_, badblocks); 681 if (badblocks_init(&dev->badblocks, 0)) { in null_alloc_dev() 722 badblocks_exit(&dev->badblocks); in null_free_dev() 1354 struct badblocks *bb = &cmd->nq->dev->badblocks; in null_handle_badblocks() 1442 if (dev->badblocks.shift != -1) { in null_process_cmd()
|
/linux-6.3-rc2/drivers/md/ |
A 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()
|
A D | md.c | 907 badblocks_exit(&rdev->badblocks); in md_rdev_clear() 1214 rdev->badblocks.shift = -1; in super_90_load() 1729 rdev->badblocks.shift = 0; in super_1_load() 2045 if (rdev->badblocks.count == 0) in super_1_sync() 2051 struct badblocks *bb = &rdev->badblocks; in super_1_sync() 2221 if (rdev->badblocks.sector + rdev->badblocks.size > new_offset) in super_1_allow_new_offset() 2499 rdev->badblocks.count = 0; in md_kick_rdev_from_array() 2735 if (rdev->badblocks.changed) in md_update_sb() 2763 if (rdev->badblocks.size) { in md_update_sb() 2768 rdev->badblocks.size = 0; in md_update_sb() [all …]
|
/linux-6.3-rc2/drivers/mtd/ |
A 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()
|
A D | mtdpart.c | 207 child->ecc_stats.badblocks++; in allocate_partition()
|
A D | mtdcore.c | 298 return sysfs_emit(buf, "%u\n", ecc_stats->badblocks); in mtd_bad_blocks_show() 2300 mtd->ecc_stats.badblocks++; in mtd_block_markbad()
|
/linux-6.3-rc2/include/uapi/mtd/ |
A D | mtd-abi.h | 308 __u32 badblocks; member
|
/linux-6.3-rc2/drivers/mtd/nand/onenand/ |
A D | onenand_bbt.c | 106 mtd->ecc_stats.badblocks++; in create_bbt()
|
/linux-6.3-rc2/drivers/mtd/nand/ |
A D | core.c | 90 mtd->ecc_stats.badblocks++; in nanddev_markbad()
|
/linux-6.3-rc2/fs/hpfs/ |
A D | hpfs.h | 91 __le32 badblocks; /* bad block list */ member
|
/linux-6.3-rc2/Documentation/admin-guide/device-mapper/ |
A D | dm-dust.rst | 202 dust_clear_badblocks: badblocks cleared 207 dust_clear_badblocks: no badblocks found
|
/linux-6.3-rc2/drivers/mtd/nand/raw/ |
A 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"); 809 if (!badblocks) in ns_parse_badblocks() 811 w = badblocks; in ns_parse_badblocks()
|
A D | nand_bbt.c | 239 mtd->ecc_stats.badblocks++; in read_bbt() 529 mtd->ecc_stats.badblocks++; in create_bbt()
|
/linux-6.3-rc2/Documentation/ABI/testing/ |
A D | sysfs-bus-nfit | 191 badblocks lists.
|