Lines Matching refs:tlv
204 static void *lbs_tlv_find(uint16_t tlv_type, const uint8_t *tlv, uint16_t size) in lbs_tlv_find() argument
211 tlv_h = (struct mrvl_ie_header *) tlv; in lbs_tlv_find()
218 tlv += length; in lbs_tlv_find()
255 got = lbs_tlv_find(tlv_type, subscribed->tlv, sizeof(subscribed->tlv)); in lbs_threshold_read()
282 struct mrvl_ie_thresholds *tlv; in lbs_threshold_write() local
326 tlv = (void *)events->tlv; in lbs_threshold_write()
330 tlv->header.type = cpu_to_le16(tlv_type); in lbs_threshold_write()
331 tlv->header.len = cpu_to_le16(sizeof(*tlv) - sizeof(tlv->header)); in lbs_threshold_write()
332 tlv->value = value; in lbs_threshold_write()
334 tlv->freq = freq; in lbs_threshold_write()
337 events->hdr.size = cpu_to_le16(sizeof(events->hdr) + 4 + sizeof(*tlv)); in lbs_threshold_write()