Lines Matching defs:seen
31 * free_seen - free the seen logic integer array.
32 * @seen: integer array of @ubi->peb_count size
34 static inline void free_seen(unsigned long *seen)
36 bitmap_free(seen);
40 * set_seen - mark a PEB as seen.
42 * @pnum: The PEB to be makred as seen
43 * @seen: integer array of @ubi->peb_count size
45 static inline void set_seen(struct ubi_device *ubi, int pnum, unsigned long *seen)
47 if (!ubi_dbg_chk_fastmap(ubi) || !seen)
50 set_bit(pnum, seen);
54 * self_check_seen - check whether all PEB have been seen by fastmap.
56 * @seen: integer array of @ubi->peb_count size
58 static int self_check_seen(struct ubi_device *ubi, unsigned long *seen)
62 if (!ubi_dbg_chk_fastmap(ubi) || !seen)
66 if (!test_bit(pnum, seen) && ubi->lookuptbl[pnum]) {