/linux-6.12.1/include/linux/mtd/ |
D | blktrans.h | 19 struct mtd_blktrans_dev { struct 48 int (*readsect)(struct mtd_blktrans_dev *dev, argument 50 int (*writesect)(struct mtd_blktrans_dev *dev, 52 int (*discard)(struct mtd_blktrans_dev *dev, 54 void (*background)(struct mtd_blktrans_dev *dev); 57 int (*getgeo)(struct mtd_blktrans_dev *dev, struct hd_geometry *geo); 58 int (*flush)(struct mtd_blktrans_dev *dev); 61 int (*open)(struct mtd_blktrans_dev *dev); 62 void (*release)(struct mtd_blktrans_dev *dev); 67 void (*remove_dev)(struct mtd_blktrans_dev *dev); [all …]
|
D | nftl.h | 21 struct mtd_blktrans_dev mbd;
|
D | inftl.h | 29 struct mtd_blktrans_dev mbd;
|
/linux-6.12.1/drivers/mtd/ |
D | mtd_blkdevs.c | 29 struct mtd_blktrans_dev *dev = in blktrans_dev_release() 30 container_of(kref, struct mtd_blktrans_dev, ref); in blktrans_dev_release() 39 static void blktrans_dev_put(struct mtd_blktrans_dev *dev) in blktrans_dev_put() 46 struct mtd_blktrans_dev *dev, in do_blktrans_request() 100 int mtd_blktrans_cease_background(struct mtd_blktrans_dev *dev) in mtd_blktrans_cease_background() 106 static struct request *mtd_next_request(struct mtd_blktrans_dev *dev) in mtd_next_request() 120 static void mtd_blktrans_work(struct mtd_blktrans_dev *dev) in mtd_blktrans_work() 169 struct mtd_blktrans_dev *dev; in mtd_queue_rq() 187 struct mtd_blktrans_dev *dev = disk->private_data; in blktrans_open() 230 struct mtd_blktrans_dev *dev = disk->private_data; in blktrans_release() [all …]
|
D | mtdblock_ro.c | 15 static int mtdblock_readsect(struct mtd_blktrans_dev *dev, in mtdblock_readsect() 27 static int mtdblock_writesect(struct mtd_blktrans_dev *dev, in mtdblock_writesect() 39 struct mtd_blktrans_dev *dev = kzalloc(sizeof(*dev), GFP_KERNEL); in mtdblock_add_mtd() 59 static void mtdblock_remove_dev(struct mtd_blktrans_dev *dev) in mtdblock_remove_dev()
|
D | mtdblock.c | 25 struct mtd_blktrans_dev mbd; 230 static int mtdblock_readsect(struct mtd_blktrans_dev *dev, in mtdblock_readsect() 237 static int mtdblock_writesect(struct mtd_blktrans_dev *dev, in mtdblock_writesect() 253 static int mtdblock_open(struct mtd_blktrans_dev *mbd) in mtdblock_open() 282 static void mtdblock_release(struct mtd_blktrans_dev *mbd) in mtdblock_release() 305 static int mtdblock_flush(struct mtd_blktrans_dev *dev) in mtdblock_flush() 337 static void mtdblock_remove_dev(struct mtd_blktrans_dev *dev) in mtdblock_remove_dev()
|
D | rfd_ftl.c | 72 struct mtd_blktrans_dev mbd; 91 static int rfd_ftl_writesect(struct mtd_blktrans_dev *dev, u_long sector, char *buf); 240 static int rfd_ftl_readsect(struct mtd_blktrans_dev *dev, u_long sector, char *buf) in rfd_ftl_readsect() 390 rc = rfd_ftl_writesect((struct mtd_blktrans_dev*)part, in move_block_contents() 601 static int do_writesect(struct mtd_blktrans_dev *dev, u_long sector, char *buf, ulong *old_addr) in do_writesect() 667 static int rfd_ftl_writesect(struct mtd_blktrans_dev *dev, u_long sector, char *buf) in rfd_ftl_writesect() 708 static int rfd_ftl_discardsect(struct mtd_blktrans_dev *dev, in rfd_ftl_discardsect() 736 static int rfd_ftl_getgeo(struct mtd_blktrans_dev *dev, struct hd_geometry *geo) in rfd_ftl_getgeo() 793 static void rfd_ftl_remove_dev(struct mtd_blktrans_dev *dev) in rfd_ftl_remove_dev()
|
D | ssfdc.c | 20 struct mtd_blktrans_dev mbd; 357 static void ssfdcr_remove_dev(struct mtd_blktrans_dev *dev) in ssfdcr_remove_dev() 367 static int ssfdcr_readsect(struct mtd_blktrans_dev *dev, in ssfdcr_readsect() 406 static int ssfdcr_getgeo(struct mtd_blktrans_dev *dev, struct hd_geometry *geo) in ssfdcr_getgeo()
|
D | sm_ftl.c | 1013 static int sm_read(struct mtd_blktrans_dev *dev, in sm_read() 1059 static int sm_write(struct mtd_blktrans_dev *dev, in sm_write() 1098 static int sm_flush(struct mtd_blktrans_dev *dev) in sm_flush() 1110 static void sm_release(struct mtd_blktrans_dev *dev) in sm_release() 1122 static int sm_getgeo(struct mtd_blktrans_dev *dev, struct hd_geometry *geo) in sm_getgeo() 1134 struct mtd_blktrans_dev *trans; in sm_add_mtd() 1175 trans = kzalloc(sizeof(struct mtd_blktrans_dev), GFP_KERNEL); in sm_add_mtd() 1230 static void sm_remove_dev(struct mtd_blktrans_dev *dev) in sm_remove_dev()
|
D | mtdswap.c | 101 struct mtd_blktrans_dev *mbd_dev; 975 static void mtdswap_background(struct mtd_blktrans_dev *dev) in mtdswap_background() 996 static int mtdswap_flush(struct mtd_blktrans_dev *dev) in mtdswap_flush() 1019 static int mtdswap_writesect(struct mtd_blktrans_dev *dev, in mtdswap_writesect() 1076 static int mtdswap_readsect(struct mtd_blktrans_dev *dev, in mtdswap_readsect() 1140 static int mtdswap_discard(struct mtd_blktrans_dev *dev, unsigned long first, in mtdswap_discard() 1335 struct mtd_blktrans_dev *mbd_dev; in mtdswap_add_mtd() 1420 mbd_dev = kzalloc(sizeof(struct mtd_blktrans_dev), GFP_KERNEL); in mtdswap_add_mtd() 1462 static void mtdswap_remove_dev(struct mtd_blktrans_dev *dev) in mtdswap_remove_dev()
|
D | ftl.c | 111 struct mtd_blktrans_dev mbd; 942 static int ftl_getgeo(struct mtd_blktrans_dev *dev, struct hd_geometry *geo) in ftl_getgeo() 957 static int ftl_readsect(struct mtd_blktrans_dev *dev, in ftl_readsect() 963 static int ftl_writesect(struct mtd_blktrans_dev *dev, in ftl_writesect() 969 static int ftl_discardsect(struct mtd_blktrans_dev *dev, in ftl_discardsect() 1039 static void ftl_remove_dev(struct mtd_blktrans_dev *dev) in ftl_remove_dev()
|
D | sm_ftl.h | 26 struct mtd_blktrans_dev *trans;
|
D | nftlcore.c | 109 static void nftl_remove_dev(struct mtd_blktrans_dev *dev) in nftl_remove_dev() 673 static int nftl_writeblock(struct mtd_blktrans_dev *mbd, unsigned long block, in nftl_writeblock() 700 static int nftl_readblock(struct mtd_blktrans_dev *mbd, unsigned long block, in nftl_readblock() 766 static int nftl_getgeo(struct mtd_blktrans_dev *dev, struct hd_geometry *geo) in nftl_getgeo()
|
D | inftlcore.c | 117 static void inftl_remove_dev(struct mtd_blktrans_dev *dev) in inftl_remove_dev() 804 static int inftl_writeblock(struct mtd_blktrans_dev *mbd, unsigned long block, in inftl_writeblock() 852 static int inftl_readblock(struct mtd_blktrans_dev *mbd, unsigned long block, in inftl_readblock() 916 static int inftl_getgeo(struct mtd_blktrans_dev *dev, struct hd_geometry *geo) in inftl_getgeo()
|