Lines Matching refs:mtd
46 struct mtd_info *mtd; in map_absent_probe() local
48 mtd = kzalloc(sizeof(*mtd), GFP_KERNEL); in map_absent_probe()
49 if (!mtd) { in map_absent_probe()
54 mtd->priv = map; in map_absent_probe()
55 mtd->name = map->name; in map_absent_probe()
56 mtd->type = MTD_ABSENT; in map_absent_probe()
57 mtd->size = map->size; in map_absent_probe()
58 mtd->_erase = map_absent_erase; in map_absent_probe()
59 mtd->_read = map_absent_read; in map_absent_probe()
60 mtd->_write = map_absent_write; in map_absent_probe()
61 mtd->_sync = map_absent_sync; in map_absent_probe()
62 mtd->flags = 0; in map_absent_probe()
63 mtd->erasesize = PAGE_SIZE; in map_absent_probe()
64 mtd->writesize = 1; in map_absent_probe()
67 return mtd; in map_absent_probe()
71 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
76 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
81 static int map_absent_erase(struct mtd_info *mtd, struct erase_info *instr) in map_absent_erase() argument
86 static void map_absent_sync(struct mtd_info *mtd) in map_absent_sync() argument
91 static void map_absent_destroy(struct mtd_info *mtd) in map_absent_destroy() argument