Lines Matching defs:seen
32 * free_seen - free the seen logic integer array.
33 * @seen: integer array of @ubi->peb_count size
35 static inline void free_seen(unsigned long *seen)
37 kfree(seen);
41 * set_seen - mark a PEB as seen.
43 * @pnum: The PEB to be makred as seen
44 * @seen: integer array of @ubi->peb_count size
46 static inline void set_seen(struct ubi_device *ubi, int pnum, unsigned long *seen)
48 if (!ubi_dbg_chk_fastmap(ubi) || !seen)
51 set_bit(pnum, seen);
55 * self_check_seen - check whether all PEB have been seen by fastmap.
57 * @seen: integer array of @ubi->peb_count size
59 static int self_check_seen(struct ubi_device *ubi, unsigned long *seen)
63 if (!ubi_dbg_chk_fastmap(ubi) || !seen)
67 if (!test_bit(pnum, seen) && ubi->lookuptbl[pnum]) {