Lines Matching refs:mtdswap_dev

100 struct mtdswap_dev {
165 #define MTDSWAP_MBD_TO_MTDSWAP(dev) ((struct mtdswap_dev *)dev->priv)
182 static int mtdswap_gc(struct mtdswap_dev *d, unsigned int background);
184 static loff_t mtdswap_eb_offset(struct mtdswap_dev *d, struct swap_eb *eb)
189 static void mtdswap_eb_detach(struct mtdswap_dev *d, struct swap_eb *eb)
222 static void mtdswap_rb_add(struct mtdswap_dev *d, struct swap_eb *eb, int idx)
251 static int mtdswap_handle_badblock(struct mtdswap_dev *d, struct swap_eb *eb)
279 static int mtdswap_handle_write_error(struct mtdswap_dev *d, struct swap_eb *eb)
297 static int mtdswap_read_oob(struct mtdswap_dev *d, loff_t from,
321 static int mtdswap_read_markers(struct mtdswap_dev *d, struct swap_eb *eb)
367 static int mtdswap_write_marker(struct mtdswap_dev *d, struct swap_eb *eb,
416 static void mtdswap_check_counts(struct mtdswap_dev *d)
455 static void mtdswap_scan_eblks(struct mtdswap_dev *d)
504 static void mtdswap_store_eb(struct mtdswap_dev *d, struct swap_eb *eb)
526 static int mtdswap_erase_block(struct mtdswap_dev *d, struct swap_eb *eb)
562 static int mtdswap_map_free_block(struct mtdswap_dev *d, unsigned int page,
603 static unsigned int mtdswap_free_page_cnt(struct mtdswap_dev *d)
609 static unsigned int mtdswap_enough_free_pages(struct mtdswap_dev *d)
614 static int mtdswap_write_block(struct mtdswap_dev *d, char *buf,
675 static int mtdswap_move_block(struct mtdswap_dev *d, unsigned int oldblock,
732 static int mtdswap_gc_eblock(struct mtdswap_dev *d, struct swap_eb *eb)
756 static int __mtdswap_choose_gc_tree(struct mtdswap_dev *d)
800 static int mtdswap_choose_wl_tree(struct mtdswap_dev *d)
828 static int mtdswap_choose_gc_tree(struct mtdswap_dev *d,
844 static struct swap_eb *mtdswap_pick_gc_eblk(struct mtdswap_dev *d,
873 static unsigned int mtdswap_eblk_passes(struct mtdswap_dev *d,
937 static int mtdswap_gc(struct mtdswap_dev *d, unsigned int background)
977 struct mtdswap_dev *d = MTDSWAP_MBD_TO_MTDSWAP(dev);
987 static void mtdswap_cleanup(struct mtdswap_dev *d)
998 struct mtdswap_dev *d = MTDSWAP_MBD_TO_MTDSWAP(dev);
1022 struct mtdswap_dev *d = MTDSWAP_MBD_TO_MTDSWAP(dev);
1061 static int mtdswap_auto_header(struct mtdswap_dev *d, char *buf)
1079 struct mtdswap_dev *d = MTDSWAP_MBD_TO_MTDSWAP(dev);
1143 struct mtdswap_dev *d = MTDSWAP_MBD_TO_MTDSWAP(dev);
1170 struct mtdswap_dev *d = (struct mtdswap_dev *) s->private;
1255 static int mtdswap_add_debugfs(struct mtdswap_dev *d)
1270 static int mtdswap_init(struct mtdswap_dev *d, unsigned int eblocks,
1334 struct mtdswap_dev *d;
1416 d = kzalloc(sizeof(struct mtdswap_dev), GFP_KERNEL);
1464 struct mtdswap_dev *d = MTDSWAP_MBD_TO_MTDSWAP(dev);