Home
last modified time | relevance | path

Searched refs:mtd_blktrans_dev (Results 1 – 14 of 14) sorted by relevance

/kernel/linux/linux-5.10/include/linux/mtd/
Dblktrans.h19 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 …]
Dnftl.h21 struct mtd_blktrans_dev mbd;
Dinftl.h29 struct mtd_blktrans_dev mbd;
/kernel/linux/linux-5.10/drivers/mtd/
Dmtd_blkdevs.c30 struct mtd_blktrans_dev *dev = in blktrans_dev_release()
31 container_of(kref, struct mtd_blktrans_dev, ref); in blktrans_dev_release()
42 static struct mtd_blktrans_dev *blktrans_dev_get(struct gendisk *disk) in blktrans_dev_get()
44 struct mtd_blktrans_dev *dev; in blktrans_dev_get()
57 static void blktrans_dev_put(struct mtd_blktrans_dev *dev) in blktrans_dev_put()
66 struct mtd_blktrans_dev *dev, in do_blktrans_request()
120 int mtd_blktrans_cease_background(struct mtd_blktrans_dev *dev) in mtd_blktrans_cease_background()
126 static struct request *mtd_next_request(struct mtd_blktrans_dev *dev) in mtd_next_request()
140 static void mtd_blktrans_work(struct mtd_blktrans_dev *dev) in mtd_blktrans_work()
188 struct mtd_blktrans_dev *dev; in mtd_queue_rq()
[all …]
Dmtdblock_ro.c15 static int mtdblock_readsect(struct mtd_blktrans_dev *dev, in mtdblock_readsect()
25 static int mtdblock_writesect(struct mtd_blktrans_dev *dev, in mtdblock_writesect()
37 struct mtd_blktrans_dev *dev = kzalloc(sizeof(*dev), GFP_KERNEL); in mtdblock_add_mtd()
53 static void mtdblock_remove_dev(struct mtd_blktrans_dev *dev) in mtdblock_remove_dev()
Dmtdblock.c25 struct mtd_blktrans_dev mbd;
226 static int mtdblock_readsect(struct mtd_blktrans_dev *dev, in mtdblock_readsect()
233 static int mtdblock_writesect(struct mtd_blktrans_dev *dev, in mtdblock_writesect()
249 static int mtdblock_open(struct mtd_blktrans_dev *mbd) in mtdblock_open()
274 static void mtdblock_release(struct mtd_blktrans_dev *mbd) in mtdblock_release()
297 static int mtdblock_flush(struct mtd_blktrans_dev *dev) in mtdblock_flush()
329 static void mtdblock_remove_dev(struct mtd_blktrans_dev *dev) in mtdblock_remove_dev()
Dssfdc.c20 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()
Drfd_ftl.c72 struct mtd_blktrans_dev mbd;
91 static int rfd_ftl_writesect(struct mtd_blktrans_dev *dev, u_long sector, char *buf);
243 static int rfd_ftl_readsect(struct mtd_blktrans_dev *dev, u_long sector, char *buf) in rfd_ftl_readsect()
393 rc = rfd_ftl_writesect((struct mtd_blktrans_dev*)part, in move_block_contents()
604 static int do_writesect(struct mtd_blktrans_dev *dev, u_long sector, char *buf, ulong *old_addr) in do_writesect()
670 static int rfd_ftl_writesect(struct mtd_blktrans_dev *dev, u_long sector, char *buf) in rfd_ftl_writesect()
711 static int rfd_ftl_getgeo(struct mtd_blktrans_dev *dev, struct hd_geometry *geo) in rfd_ftl_getgeo()
767 static void rfd_ftl_remove_dev(struct mtd_blktrans_dev *dev) in rfd_ftl_remove_dev()
Dsm_ftl.c1000 static int sm_read(struct mtd_blktrans_dev *dev, in sm_read()
1046 static int sm_write(struct mtd_blktrans_dev *dev, in sm_write()
1085 static int sm_flush(struct mtd_blktrans_dev *dev) in sm_flush()
1097 static void sm_release(struct mtd_blktrans_dev *dev) in sm_release()
1109 static int sm_getgeo(struct mtd_blktrans_dev *dev, struct hd_geometry *geo) in sm_getgeo()
1121 struct mtd_blktrans_dev *trans; in sm_add_mtd()
1162 trans = kzalloc(sizeof(struct mtd_blktrans_dev), GFP_KERNEL); in sm_add_mtd()
1217 static void sm_remove_dev(struct mtd_blktrans_dev *dev) in sm_remove_dev()
Dmtdswap.c101 struct mtd_blktrans_dev *mbd_dev;
976 static void mtdswap_background(struct mtd_blktrans_dev *dev) in mtdswap_background()
997 static int mtdswap_flush(struct mtd_blktrans_dev *dev) in mtdswap_flush()
1020 static int mtdswap_writesect(struct mtd_blktrans_dev *dev, in mtdswap_writesect()
1078 static int mtdswap_readsect(struct mtd_blktrans_dev *dev, in mtdswap_readsect()
1142 static int mtdswap_discard(struct mtd_blktrans_dev *dev, unsigned long first, in mtdswap_discard()
1337 struct mtd_blktrans_dev *mbd_dev; in mtdswap_add_mtd()
1422 mbd_dev = kzalloc(sizeof(struct mtd_blktrans_dev), GFP_KERNEL); in mtdswap_add_mtd()
1464 static void mtdswap_remove_dev(struct mtd_blktrans_dev *dev) in mtdswap_remove_dev()
Dsm_ftl.h26 struct mtd_blktrans_dev *trans;
Dftl.c111 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()
Dnftlcore.c109 static void nftl_remove_dev(struct mtd_blktrans_dev *dev) in nftl_remove_dev()
674 static int nftl_writeblock(struct mtd_blktrans_dev *mbd, unsigned long block, in nftl_writeblock()
701 static int nftl_readblock(struct mtd_blktrans_dev *mbd, unsigned long block, in nftl_readblock()
767 static int nftl_getgeo(struct mtd_blktrans_dev *dev, struct hd_geometry *geo) in nftl_getgeo()
Dinftlcore.c117 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()