Lines Matching refs:t
621 static inline void *enum_rstbl(struct RESTART_TABLE *t, void *c) in enum_rstbl() argument
627 if (!t) in enum_rstbl()
630 rsize = le16_to_cpu(t->size); in enum_rstbl()
634 if (!t->total) in enum_rstbl()
636 e = Add2Ptr(t, sizeof(struct RESTART_TABLE)); in enum_rstbl()
642 for (bprt = bytes_per_rt(t); PtrOffset(t, e) < bprt; in enum_rstbl()
816 struct RESTART_TABLE *t = kzalloc(bytes, GFP_NOFS); in init_rsttbl() local
818 if (!t) in init_rsttbl()
821 t->size = cpu_to_le16(esize); in init_rsttbl()
822 t->used = cpu_to_le16(used); in init_rsttbl()
823 t->free_goal = cpu_to_le32(~0u); in init_rsttbl()
824 t->first_free = cpu_to_le32(sizeof(struct RESTART_TABLE)); in init_rsttbl()
825 t->last_free = cpu_to_le32(lf); in init_rsttbl()
827 e = (__le32 *)(t + 1); in init_rsttbl()
828 last_free = Add2Ptr(t, lf); in init_rsttbl()
834 return t; in init_rsttbl()
878 struct RESTART_TABLE *t = *tbl; in alloc_rsttbl_idx() local
880 if (!t->first_free) { in alloc_rsttbl_idx()
881 *tbl = t = extend_rsttbl(t, 16, ~0u); in alloc_rsttbl_idx()
882 if (!t) in alloc_rsttbl_idx()
886 off = le32_to_cpu(t->first_free); in alloc_rsttbl_idx()
889 e = Add2Ptr(t, off); in alloc_rsttbl_idx()
891 t->first_free = *e; in alloc_rsttbl_idx()
893 memset(e, 0, le16_to_cpu(t->size)); in alloc_rsttbl_idx()
898 if (!t->first_free) in alloc_rsttbl_idx()
899 t->last_free = 0; in alloc_rsttbl_idx()
901 le16_add_cpu(&t->total, 1); in alloc_rsttbl_idx()
903 return Add2Ptr(t, off); in alloc_rsttbl_idx()