Lines Matching refs:tl
53 struct fru_type_length tl[0]; /* type-length stuff follows */ member
86 static inline int fru_type(struct fru_type_length *tl) in fru_type() argument
88 return tl->type_length & 0xc0; in fru_type()
91 static inline int fru_length(struct fru_type_length *tl) in fru_length() argument
93 return (tl->type_length & 0x3f) + 1; /* len of whole record */ in fru_length()
97 static inline int fru_strlen(struct fru_type_length *tl) in fru_strlen() argument
99 return fru_length(tl) - 1; in fru_strlen()
102 static inline char *fru_strcpy(char *dest, struct fru_type_length *tl) in fru_strcpy() argument
104 int len = fru_strlen(tl); in fru_strcpy()
105 memcpy(dest, tl->data, len); in fru_strcpy()
110 static inline struct fru_type_length *fru_next_tl(struct fru_type_length *tl) in fru_next_tl() argument
112 return tl + fru_length(tl); in fru_next_tl()
115 static inline int fru_is_eof(struct fru_type_length *tl) in fru_is_eof() argument
117 return tl->type_length == 0xc1; in fru_is_eof()