Lines Matching defs:RESTART_TABLE

93 struct RESTART_TABLE {
104 static_assert(sizeof(struct RESTART_TABLE) == 0x18);
381 static inline u32 bytes_per_rt(const struct RESTART_TABLE *rt)
384 sizeof(struct RESTART_TABLE);
612 static inline void *enum_rstbl(struct RESTART_TABLE *t, void *c)
621 e = Add2Ptr(t, sizeof(struct RESTART_TABLE));
638 static inline struct DIR_PAGE_ENTRY *find_dp(struct RESTART_TABLE *dptbl,
680 if ((tr - sizeof(struct RESTART_TABLE)) %
704 if ((t16 - sizeof(struct RESTART_TABLE)) % bytes_per_attr_entry)
714 static bool check_rstbl(const struct RESTART_TABLE *rt, size_t bytes)
723 ts = rsize * ne + sizeof(struct RESTART_TABLE);
726 rsize + sizeof(struct RESTART_TABLE) > bytes || bytes < ts ||
728 (ff && ff < sizeof(struct RESTART_TABLE)) ||
729 (lf && lf < sizeof(struct RESTART_TABLE))) {
739 rt, i * rsize + sizeof(struct RESTART_TABLE)));
742 (off < sizeof(struct RESTART_TABLE) ||
743 ((off - sizeof(struct RESTART_TABLE)) % rsize))) {
765 static inline void free_rsttbl_idx(struct RESTART_TABLE *rt, u32 off)
791 static inline struct RESTART_TABLE *init_rsttbl(u16 esize, u16 used)
795 u32 bytes = esize * used + sizeof(struct RESTART_TABLE);
796 u32 lf = sizeof(struct RESTART_TABLE) + (used - 1) * esize;
797 struct RESTART_TABLE *t = kzalloc(bytes, GFP_NOFS);
805 t->first_free = cpu_to_le32(sizeof(struct RESTART_TABLE));
811 for (off = sizeof(struct RESTART_TABLE) + esize; e < last_free;
818 static inline struct RESTART_TABLE *extend_rsttbl(struct RESTART_TABLE *tbl,
824 struct RESTART_TABLE *rt;
834 cpu_to_le32(sizeof(struct RESTART_TABLE) +
855 static inline void *alloc_rsttbl_idx(struct RESTART_TABLE **tbl)
859 struct RESTART_TABLE *t = *tbl;
892 static inline void *alloc_rsttbl_from_idx(struct RESTART_TABLE **tbl, u32 vbo)
896 struct RESTART_TABLE *rt = *tbl;
1010 struct RESTART_TABLE *open_attr_tbl;
3724 struct RESTART_TABLE *dptbl = NULL;
3725 struct RESTART_TABLE *trtbl = NULL;
3726 const struct RESTART_TABLE *rt;
3727 struct RESTART_TABLE *oatbl = NULL;