Home
last modified time | relevance | path

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

12

/linux-6.3-rc2/include/linux/
A Dbadblocks.h27 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 Dnd.h128 struct badblocks bb;
A Dblkdev.h111 struct badblocks;
196 struct badblocks *bb;
/linux-6.3-rc2/block/
A Dbadblocks.c53 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 DMakefile11 genhd.o ioprio.o badblocks.o partitions/ blk-rq-qos.o \
/linux-6.3-rc2/drivers/nvdimm/
A 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()
A Dbtt.h199 struct badblocks;
232 struct badblocks *phys_bb;
A Dpmem.h26 struct badblocks bb;
A Dnd.h421 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 Dpmem.c249 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 Dnull_blk.h77 struct badblocks badblocks; member
A Dmain.c477 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 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()
A Dmd.c907 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 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()
A Dmtdpart.c207 child->ecc_stats.badblocks++; in allocate_partition()
A Dmtdcore.c298 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 Dmtd-abi.h308 __u32 badblocks; member
/linux-6.3-rc2/drivers/mtd/nand/onenand/
A Donenand_bbt.c106 mtd->ecc_stats.badblocks++; in create_bbt()
/linux-6.3-rc2/drivers/mtd/nand/
A Dcore.c90 mtd->ecc_stats.badblocks++; in nanddev_markbad()
/linux-6.3-rc2/fs/hpfs/
A Dhpfs.h91 __le32 badblocks; /* bad block list */ member
/linux-6.3-rc2/Documentation/admin-guide/device-mapper/
A Ddm-dust.rst202 dust_clear_badblocks: badblocks cleared
207 dust_clear_badblocks: no badblocks found
/linux-6.3-rc2/drivers/mtd/nand/raw/
A 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");
809 if (!badblocks) in ns_parse_badblocks()
811 w = badblocks; in ns_parse_badblocks()
A Dnand_bbt.c239 mtd->ecc_stats.badblocks++; in read_bbt()
529 mtd->ecc_stats.badblocks++; in create_bbt()
/linux-6.3-rc2/Documentation/ABI/testing/
A Dsysfs-bus-nfit191 badblocks lists.

Completed in 83 milliseconds

12