Lines Matching refs:RESTART_TABLE

93 struct RESTART_TABLE {  struct
104 static_assert(sizeof(struct RESTART_TABLE) == 0x18); argument
381 static inline u32 bytes_per_rt(const struct RESTART_TABLE *rt) in bytes_per_rt()
384 sizeof(struct RESTART_TABLE); in bytes_per_rt()
610 static inline void *enum_rstbl(struct RESTART_TABLE *t, void *c) in enum_rstbl()
619 e = Add2Ptr(t, sizeof(struct RESTART_TABLE)); in enum_rstbl()
636 static inline struct DIR_PAGE_ENTRY *find_dp(struct RESTART_TABLE *dptbl, in find_dp()
678 if ((tr - sizeof(struct RESTART_TABLE)) % in check_log_rec()
702 if ((t16 - sizeof(struct RESTART_TABLE)) % bytes_per_attr_entry) in check_log_rec()
712 static bool check_rstbl(const struct RESTART_TABLE *rt, size_t bytes) in check_rstbl()
721 ts = rsize * ne + sizeof(struct RESTART_TABLE); in check_rstbl()
724 rsize + sizeof(struct RESTART_TABLE) > bytes || bytes < ts || in check_rstbl()
726 (ff && ff < sizeof(struct RESTART_TABLE)) || in check_rstbl()
727 (lf && lf < sizeof(struct RESTART_TABLE))) { in check_rstbl()
737 rt, i * rsize + sizeof(struct RESTART_TABLE))); in check_rstbl()
740 (off < sizeof(struct RESTART_TABLE) || in check_rstbl()
741 ((off - sizeof(struct RESTART_TABLE)) % rsize))) { in check_rstbl()
763 static inline void free_rsttbl_idx(struct RESTART_TABLE *rt, u32 off) in free_rsttbl_idx()
789 static inline struct RESTART_TABLE *init_rsttbl(u16 esize, u16 used) in init_rsttbl()
793 u32 bytes = esize * used + sizeof(struct RESTART_TABLE); in init_rsttbl()
794 u32 lf = sizeof(struct RESTART_TABLE) + (used - 1) * esize; in init_rsttbl()
795 struct RESTART_TABLE *t = kzalloc(bytes, GFP_NOFS); in init_rsttbl()
803 t->first_free = cpu_to_le32(sizeof(struct RESTART_TABLE)); in init_rsttbl()
809 for (off = sizeof(struct RESTART_TABLE) + esize; e < last_free; in init_rsttbl()
816 static inline struct RESTART_TABLE *extend_rsttbl(struct RESTART_TABLE *tbl, in extend_rsttbl()
822 struct RESTART_TABLE *rt; in extend_rsttbl()
832 : cpu_to_le32(sizeof(struct RESTART_TABLE) + in extend_rsttbl()
853 static inline void *alloc_rsttbl_idx(struct RESTART_TABLE **tbl) in alloc_rsttbl_idx()
857 struct RESTART_TABLE *t = *tbl; in alloc_rsttbl_idx()
890 static inline void *alloc_rsttbl_from_idx(struct RESTART_TABLE **tbl, u32 vbo) in alloc_rsttbl_from_idx()
894 struct RESTART_TABLE *rt = *tbl; in alloc_rsttbl_from_idx()
997 struct RESTART_TABLE *open_attr_tbl;
3747 struct RESTART_TABLE *dptbl = NULL; in log_replay()
3748 struct RESTART_TABLE *trtbl = NULL; in log_replay()
3749 const struct RESTART_TABLE *rt; in log_replay()
3750 struct RESTART_TABLE *oatbl = NULL; in log_replay()