Lines Matching refs:element
4247 struct element { struct
4255 for (_elem = (const struct element *)(_data); \
4260 _elem = (const struct element *)(_elem->data + _elem->datalen))
4262 #define for_each_element_id(element, _id, data, datalen) \ argument
4263 for_each_element(element, data, datalen) \
4264 if (element->id == (_id))
4266 #define for_each_element_extid(element, extid, _data, _datalen) \ argument
4267 for_each_element(element, _data, _datalen) \
4268 if (element->id == WLAN_EID_EXTENSION && \
4269 element->datalen > 0 && \
4270 element->data[0] == (extid))
4272 #define for_each_subelement(sub, element) \ argument
4273 for_each_element(sub, (element)->data, (element)->datalen)
4275 #define for_each_subelement_id(sub, id, element) \ argument
4276 for_each_element_id(sub, id, (element)->data, (element)->datalen)
4278 #define for_each_subelement_extid(sub, extid, element) \ argument
4279 for_each_element_extid(sub, extid, (element)->data, (element)->datalen)
4294 static inline bool for_each_element_completed(const struct element *element, in for_each_element_completed() argument
4297 return (const u8 *)element == (const u8 *)data + datalen; in for_each_element_completed()