Lines Matching refs:mtd
47 struct mtd_info *mtd; in map_absent_probe() local
49 mtd = kzalloc(sizeof(*mtd), GFP_KERNEL); in map_absent_probe()
50 if (!mtd) { in map_absent_probe()
55 mtd->priv = map; in map_absent_probe()
56 mtd->name = map->name; in map_absent_probe()
57 mtd->type = MTD_ABSENT; in map_absent_probe()
58 mtd->size = map->size; in map_absent_probe()
59 mtd->_erase = map_absent_erase; in map_absent_probe()
60 mtd->_read = map_absent_read; in map_absent_probe()
61 mtd->_write = map_absent_write; in map_absent_probe()
62 mtd->_sync = map_absent_sync; in map_absent_probe()
63 mtd->flags = 0; in map_absent_probe()
64 mtd->erasesize = PAGE_SIZE; in map_absent_probe()
65 mtd->writesize = 1; in map_absent_probe()
68 return mtd; in map_absent_probe()
72 static int map_absent_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *b… in map_absent_read() argument
77 static int map_absent_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_ch… in map_absent_write() argument
82 static int map_absent_erase(struct mtd_info *mtd, struct erase_info *instr) in map_absent_erase() argument
87 static void map_absent_sync(struct mtd_info *mtd) in map_absent_sync() argument
92 static void map_absent_destroy(struct mtd_info *mtd) in map_absent_destroy() argument