mtdswap_dev
struct mtdswap_dev *d = MTDSWAP_MBD_TO_MTDSWAP(dev);
static int mtdswap_auto_header(struct mtdswap_dev *d, char *buf)
struct mtdswap_dev *d = MTDSWAP_MBD_TO_MTDSWAP(dev);
struct mtdswap_dev *d = MTDSWAP_MBD_TO_MTDSWAP(dev);
struct mtdswap_dev *d = (struct mtdswap_dev *) s->private;
static int mtdswap_add_debugfs(struct mtdswap_dev *d)
static int mtdswap_init(struct mtdswap_dev *d, unsigned int eblocks,
struct mtdswap_dev *d;
d = kzalloc_obj(struct mtdswap_dev);
struct mtdswap_dev *d = MTDSWAP_MBD_TO_MTDSWAP(dev);
#define MTDSWAP_MBD_TO_MTDSWAP(dev) ((struct mtdswap_dev *)dev->priv)
static int mtdswap_gc(struct mtdswap_dev *d, unsigned int background);
static loff_t mtdswap_eb_offset(struct mtdswap_dev *d, struct swap_eb *eb)
static void mtdswap_eb_detach(struct mtdswap_dev *d, struct swap_eb *eb)
static void mtdswap_rb_add(struct mtdswap_dev *d, struct swap_eb *eb, int idx)
static int mtdswap_handle_badblock(struct mtdswap_dev *d, struct swap_eb *eb)
static int mtdswap_handle_write_error(struct mtdswap_dev *d, struct swap_eb *eb)
static int mtdswap_read_oob(struct mtdswap_dev *d, loff_t from,
static int mtdswap_read_markers(struct mtdswap_dev *d, struct swap_eb *eb)
static int mtdswap_write_marker(struct mtdswap_dev *d, struct swap_eb *eb,
static void mtdswap_check_counts(struct mtdswap_dev *d)
static void mtdswap_scan_eblks(struct mtdswap_dev *d)
static void mtdswap_store_eb(struct mtdswap_dev *d, struct swap_eb *eb)
static int mtdswap_erase_block(struct mtdswap_dev *d, struct swap_eb *eb)
static int mtdswap_map_free_block(struct mtdswap_dev *d, unsigned int page,
static unsigned int mtdswap_free_page_cnt(struct mtdswap_dev *d)
static unsigned int mtdswap_enough_free_pages(struct mtdswap_dev *d)
static int mtdswap_write_block(struct mtdswap_dev *d, char *buf,
static int mtdswap_move_block(struct mtdswap_dev *d, unsigned int oldblock,
static int mtdswap_gc_eblock(struct mtdswap_dev *d, struct swap_eb *eb)
static int __mtdswap_choose_gc_tree(struct mtdswap_dev *d)
static int mtdswap_choose_wl_tree(struct mtdswap_dev *d)
static int mtdswap_choose_gc_tree(struct mtdswap_dev *d,
static struct swap_eb *mtdswap_pick_gc_eblk(struct mtdswap_dev *d,
static unsigned int mtdswap_eblk_passes(struct mtdswap_dev *d,
static int mtdswap_gc(struct mtdswap_dev *d, unsigned int background)
struct mtdswap_dev *d = MTDSWAP_MBD_TO_MTDSWAP(dev);
static void mtdswap_cleanup(struct mtdswap_dev *d)
struct mtdswap_dev *d = MTDSWAP_MBD_TO_MTDSWAP(dev);