Lines Matching refs:tl
52 struct fru_type_length tl[0]; /* type-length stuff follows */ member
85 static inline int fru_type(struct fru_type_length *tl) in fru_type() argument
87 return tl->type_length & 0xc0; in fru_type()
90 static inline int fru_length(struct fru_type_length *tl) in fru_length() argument
92 return (tl->type_length & 0x3f) + 1; /* len of whole record */ in fru_length()
96 static inline int fru_strlen(struct fru_type_length *tl) in fru_strlen() argument
98 return fru_length(tl) - 1; in fru_strlen()
101 static inline char *fru_strcpy(char *dest, struct fru_type_length *tl) in fru_strcpy() argument
103 int len = fru_strlen(tl); in fru_strcpy()
104 memcpy(dest, tl->data, len); in fru_strcpy()
109 static inline struct fru_type_length *fru_next_tl(struct fru_type_length *tl) in fru_next_tl() argument
111 return tl + fru_length(tl); in fru_next_tl()
114 static inline int fru_is_eof(struct fru_type_length *tl) in fru_is_eof() argument
116 return tl->type_length == 0xc1; in fru_is_eof()