Lines Matching refs:desc_info
122 const struct rocker_desc_info *desc_info) in rocker_tlv_parse_desc() argument
124 rocker_tlv_parse(tb, maxtype, desc_info->data, in rocker_tlv_parse_desc()
125 desc_info->desc->tlv_size); in rocker_tlv_parse_desc()
129 rocker_tlv_start(struct rocker_desc_info *desc_info) in rocker_tlv_start() argument
131 return (struct rocker_tlv *) ((char *) desc_info->data + in rocker_tlv_start()
132 desc_info->tlv_size); in rocker_tlv_start()
135 int rocker_tlv_put(struct rocker_desc_info *desc_info,
139 rocker_tlv_put_u8(struct rocker_desc_info *desc_info, int attrtype, u8 value) in rocker_tlv_put_u8() argument
143 return rocker_tlv_put(desc_info, attrtype, sizeof(u8), &tmp); in rocker_tlv_put_u8()
147 rocker_tlv_put_u16(struct rocker_desc_info *desc_info, int attrtype, u16 value) in rocker_tlv_put_u16() argument
151 return rocker_tlv_put(desc_info, attrtype, sizeof(u16), &tmp); in rocker_tlv_put_u16()
155 rocker_tlv_put_be16(struct rocker_desc_info *desc_info, int attrtype, __be16 value) in rocker_tlv_put_be16() argument
159 return rocker_tlv_put(desc_info, attrtype, sizeof(__be16), &tmp); in rocker_tlv_put_be16()
163 rocker_tlv_put_u32(struct rocker_desc_info *desc_info, int attrtype, u32 value) in rocker_tlv_put_u32() argument
167 return rocker_tlv_put(desc_info, attrtype, sizeof(u32), &tmp); in rocker_tlv_put_u32()
171 rocker_tlv_put_be32(struct rocker_desc_info *desc_info, int attrtype, __be32 value) in rocker_tlv_put_be32() argument
175 return rocker_tlv_put(desc_info, attrtype, sizeof(__be32), &tmp); in rocker_tlv_put_be32()
179 rocker_tlv_put_u64(struct rocker_desc_info *desc_info, int attrtype, u64 value) in rocker_tlv_put_u64() argument
183 return rocker_tlv_put(desc_info, attrtype, sizeof(u64), &tmp); in rocker_tlv_put_u64()
187 rocker_tlv_nest_start(struct rocker_desc_info *desc_info, int attrtype) in rocker_tlv_nest_start() argument
189 struct rocker_tlv *start = rocker_tlv_start(desc_info); in rocker_tlv_nest_start()
191 if (rocker_tlv_put(desc_info, attrtype, 0, NULL) < 0) in rocker_tlv_nest_start()
197 static inline void rocker_tlv_nest_end(struct rocker_desc_info *desc_info, in rocker_tlv_nest_end() argument
200 start->len = (char *) rocker_tlv_start(desc_info) - (char *) start; in rocker_tlv_nest_end()
203 static inline void rocker_tlv_nest_cancel(struct rocker_desc_info *desc_info, in rocker_tlv_nest_cancel() argument
206 desc_info->tlv_size = (const char *) start - desc_info->data; in rocker_tlv_nest_cancel()