swap_eb            79 drivers/mtd/mtdswap.c #define MTDSWAP_ECNT_MIN(rbroot) (rb_entry(rb_first(rbroot), struct swap_eb, \
swap_eb            81 drivers/mtd/mtdswap.c #define MTDSWAP_ECNT_MAX(rbroot) (rb_entry(rb_last(rbroot), struct swap_eb, \
swap_eb           112 drivers/mtd/mtdswap.c 	struct swap_eb *eb_data;
swap_eb           124 drivers/mtd/mtdswap.c 	struct swap_eb *curr_write;
swap_eb           184 drivers/mtd/mtdswap.c static loff_t mtdswap_eb_offset(struct mtdswap_dev *d, struct swap_eb *eb)
swap_eb           189 drivers/mtd/mtdswap.c static void mtdswap_eb_detach(struct mtdswap_dev *d, struct swap_eb *eb)
swap_eb           203 drivers/mtd/mtdswap.c static void __mtdswap_rb_add(struct rb_root *root, struct swap_eb *eb)
swap_eb           206 drivers/mtd/mtdswap.c 	struct swap_eb *cur;
swap_eb           211 drivers/mtd/mtdswap.c 		cur = rb_entry(parent, struct swap_eb, rb);
swap_eb           222 drivers/mtd/mtdswap.c static void mtdswap_rb_add(struct mtdswap_dev *d, struct swap_eb *eb, int idx)
swap_eb           251 drivers/mtd/mtdswap.c static int mtdswap_handle_badblock(struct mtdswap_dev *d, struct swap_eb *eb)
swap_eb           279 drivers/mtd/mtdswap.c static int mtdswap_handle_write_error(struct mtdswap_dev *d, struct swap_eb *eb)
swap_eb           282 drivers/mtd/mtdswap.c 	struct swap_eb *curr_write = d->curr_write;
swap_eb           321 drivers/mtd/mtdswap.c static int mtdswap_read_markers(struct mtdswap_dev *d, struct swap_eb *eb)
swap_eb           367 drivers/mtd/mtdswap.c static int mtdswap_write_marker(struct mtdswap_dev *d, struct swap_eb *eb,
swap_eb           420 drivers/mtd/mtdswap.c 	struct swap_eb *eb;
swap_eb           438 drivers/mtd/mtdswap.c 	median = rb_entry(medrb, struct swap_eb, rb)->erase_count;
swap_eb           459 drivers/mtd/mtdswap.c 	struct swap_eb *eb;
swap_eb           504 drivers/mtd/mtdswap.c static void mtdswap_store_eb(struct mtdswap_dev *d, struct swap_eb *eb)
swap_eb           526 drivers/mtd/mtdswap.c static int mtdswap_erase_block(struct mtdswap_dev *d, struct swap_eb *eb)
swap_eb           566 drivers/mtd/mtdswap.c 	struct swap_eb *old_eb = d->curr_write;
swap_eb           568 drivers/mtd/mtdswap.c 	struct swap_eb *eb;
swap_eb           576 drivers/mtd/mtdswap.c 			eb = rb_entry(rb_first(clean_root), struct swap_eb, rb);
swap_eb           618 drivers/mtd/mtdswap.c 	struct swap_eb *eb;
swap_eb           679 drivers/mtd/mtdswap.c 	struct swap_eb *eb, *oldeb;
swap_eb           733 drivers/mtd/mtdswap.c static int mtdswap_gc_eblock(struct mtdswap_dev *d, struct swap_eb *eb)
swap_eb           845 drivers/mtd/mtdswap.c static struct swap_eb *mtdswap_pick_gc_eblk(struct mtdswap_dev *d,
swap_eb           849 drivers/mtd/mtdswap.c 	struct swap_eb *eb = NULL;
swap_eb           861 drivers/mtd/mtdswap.c 	eb = rb_entry(rb_first(rp), struct swap_eb, rb);
swap_eb           875 drivers/mtd/mtdswap.c 					struct swap_eb *eb)
swap_eb           940 drivers/mtd/mtdswap.c 	struct swap_eb *eb;
swap_eb          1025 drivers/mtd/mtdswap.c 	struct swap_eb *eb;
swap_eb          1085 drivers/mtd/mtdswap.c 	struct swap_eb *eb;
swap_eb          1147 drivers/mtd/mtdswap.c 	struct swap_eb *eb;
swap_eb          1304 drivers/mtd/mtdswap.c 	eblk_bytes = sizeof(struct swap_eb)*d->eblks;