Lines Matching refs:block2mtd_dev
38 struct block2mtd_dev { struct
56 static int _block2mtd_erase(struct block2mtd_dev *dev, loff_t to, size_t len) in _block2mtd_erase() argument
89 struct block2mtd_dev *dev = mtd->priv; in block2mtd_erase()
107 struct block2mtd_dev *dev = mtd->priv; in block2mtd_read()
138 static int _block2mtd_write(struct block2mtd_dev *dev, const u_char *buf, in _block2mtd_write()
181 struct block2mtd_dev *dev = mtd->priv; in block2mtd_write()
196 struct block2mtd_dev *dev = mtd->priv; in block2mtd_sync()
202 static void block2mtd_free_device(struct block2mtd_dev *dev) in block2mtd_free_device()
223 blk_mode_t mode, int timeout, struct block2mtd_dev *dev) in mdtblock_early_get_bdev()
261 static struct block2mtd_dev *add_device(char *devname, int erase_size, in add_device()
266 struct block2mtd_dev *dev; in add_device()
272 dev = kzalloc(sizeof(struct block2mtd_dev), GFP_KERNEL); in add_device()
510 struct block2mtd_dev *dev = list_entry(pos, typeof(*dev), list); in block2mtd_exit()