Lines Matching defs:tbl
818 static inline struct RESTART_TABLE *extend_rsttbl(struct RESTART_TABLE *tbl,
821 u16 esize = le16_to_cpu(tbl->size);
822 __le32 osize = cpu_to_le32(bytes_per_rt(tbl));
823 u32 used = le16_to_cpu(tbl->used);
830 memcpy(rt + 1, tbl + 1, esize * used);
837 if (tbl->first_free) {
838 rt->first_free = tbl->first_free;
839 *(__le32 *)Add2Ptr(rt, le32_to_cpu(tbl->last_free)) = osize;
844 rt->total = tbl->total;
846 kfree(tbl);
855 static inline void *alloc_rsttbl_idx(struct RESTART_TABLE **tbl)
859 struct RESTART_TABLE *t = *tbl;
862 *tbl = t = extend_rsttbl(t, 16, ~0u);
892 static inline void *alloc_rsttbl_from_idx(struct RESTART_TABLE **tbl, u32 vbo)
896 struct RESTART_TABLE *rt = *tbl;
912 *tbl = rt = extend_rsttbl(rt, bytes2idx / esize + 1, bytes);