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()
621 static inline void *enum_rstbl(struct RESTART_TABLE *t, void *c) in enum_rstbl()
636 e = Add2Ptr(t, sizeof(struct RESTART_TABLE)); in enum_rstbl()
653 static inline struct DIR_PAGE_ENTRY *find_dp(struct RESTART_TABLE *dptbl, in find_dp()
695 if ((tr - sizeof(struct RESTART_TABLE)) % in check_log_rec()
719 if ((t16 - sizeof(struct RESTART_TABLE)) % bytes_per_attr_entry) in check_log_rec()
729 static bool check_rstbl(const struct RESTART_TABLE *rt, size_t bytes) in check_rstbl()
738 ts = rsize * ne + sizeof(struct RESTART_TABLE); in check_rstbl()
741 rsize + sizeof(struct RESTART_TABLE) > bytes || bytes < ts || in check_rstbl()
744 (ff && ff < sizeof(struct RESTART_TABLE)) || in check_rstbl()
745 (lf && lf < sizeof(struct RESTART_TABLE))) { in check_rstbl()
755 rt, i * rsize + sizeof(struct RESTART_TABLE))); in check_rstbl()
758 (off < sizeof(struct RESTART_TABLE) || in check_rstbl()
759 ((off - sizeof(struct RESTART_TABLE)) % rsize))) { in check_rstbl()
784 static inline void free_rsttbl_idx(struct RESTART_TABLE *rt, u32 off) in free_rsttbl_idx()
810 static inline struct RESTART_TABLE *init_rsttbl(u16 esize, u16 used) in init_rsttbl()
814 u32 bytes = esize * used + sizeof(struct RESTART_TABLE); in init_rsttbl()
815 u32 lf = sizeof(struct RESTART_TABLE) + (used - 1) * esize; in init_rsttbl()
816 struct RESTART_TABLE *t = kzalloc(bytes, GFP_NOFS); in init_rsttbl()
824 t->first_free = cpu_to_le32(sizeof(struct RESTART_TABLE)); in init_rsttbl()
830 for (off = sizeof(struct RESTART_TABLE) + esize; e < last_free; in init_rsttbl()
837 static inline struct RESTART_TABLE *extend_rsttbl(struct RESTART_TABLE *tbl, in extend_rsttbl()
843 struct RESTART_TABLE *rt; in extend_rsttbl()
853 cpu_to_le32(sizeof(struct RESTART_TABLE) + in extend_rsttbl()
874 static inline void *alloc_rsttbl_idx(struct RESTART_TABLE **tbl) in alloc_rsttbl_idx()
878 struct RESTART_TABLE *t = *tbl; in alloc_rsttbl_idx()
911 static inline void *alloc_rsttbl_from_idx(struct RESTART_TABLE **tbl, u32 vbo) in alloc_rsttbl_from_idx()
915 struct RESTART_TABLE *rt = *tbl; in alloc_rsttbl_from_idx()
1029 struct RESTART_TABLE *open_attr_tbl;
3746 struct RESTART_TABLE *dptbl = NULL; in log_replay()
3747 struct RESTART_TABLE *trtbl = NULL; in log_replay()
3748 const struct RESTART_TABLE *rt; in log_replay()
3749 struct RESTART_TABLE *oatbl = NULL; in log_replay()