Lines Matching refs:tlv
124 ssize_t i2400m_tlv_match(const struct i2400m_tlv_hdr *tlv, in i2400m_tlv_match() argument
127 if (le16_to_cpu(tlv->type) != tlv_type) /* Not our type? skip */ in i2400m_tlv_match()
130 && le16_to_cpu(tlv->length) + sizeof(*tlv) != tlv_size) { in i2400m_tlv_match()
131 size_t size = le16_to_cpu(tlv->length) + sizeof(*tlv); in i2400m_tlv_match()
231 const struct i2400m_tlv_hdr *tlv = NULL; in i2400m_tlv_find() local
232 while ((tlv = i2400m_tlv_buffer_walk(i2400m, tlv_hdr, size, tlv))) { in i2400m_tlv_find()
233 match = i2400m_tlv_match(tlv, tlv_type, tlv_size); in i2400m_tlv_find()
241 return tlv; in i2400m_tlv_find()
434 const struct i2400m_tlv_hdr *tlv, in i2400m_report_state_parse_tlv() argument
442 if (0 == i2400m_tlv_match(tlv, I2400M_TLV_SYSTEM_STATE, sizeof(*ss))) { in i2400m_report_state_parse_tlv()
443 ss = container_of(tlv, typeof(*ss), hdr); in i2400m_report_state_parse_tlv()
450 if (0 == i2400m_tlv_match(tlv, I2400M_TLV_RF_STATUS, sizeof(*rfss))) { in i2400m_report_state_parse_tlv()
451 rfss = container_of(tlv, typeof(*rfss), hdr); in i2400m_report_state_parse_tlv()
459 if (0 == i2400m_tlv_match(tlv, I2400M_TLV_MEDIA_STATUS, sizeof(*ms))) { in i2400m_report_state_parse_tlv()
460 ms = container_of(tlv, typeof(*ms), hdr); in i2400m_report_state_parse_tlv()
486 const struct i2400m_tlv_hdr *tlv; in i2400m_report_state_hook() local
491 tlv = NULL; in i2400m_report_state_hook()
493 while ((tlv = i2400m_tlv_buffer_walk(i2400m, &l3l4_hdr->pl, in i2400m_report_state_hook()
494 tlv_size, tlv))) in i2400m_report_state_hook()
495 i2400m_report_state_parse_tlv(i2400m, tlv, tag); in i2400m_report_state_hook()
850 struct i2400m_tlv_hdr tlv; member
876 cmd->tlv.type = cpu_to_le16(I2400M_TLV_TYPE_WAKEUP_MODE); in i2400m_cmd_enter_powersave()
877 cmd->tlv.length = cpu_to_le16(sizeof(cmd->val)); in i2400m_cmd_enter_powersave()
933 const struct i2400m_tlv_hdr *tlv; in i2400m_get_device_info() local
959 tlv = i2400m_tlv_find(i2400m, ack->pl, ack_len - sizeof(*ack), in i2400m_get_device_info()
961 if (tlv == NULL) { in i2400m_get_device_info()
968 skb_pull(ack_skb, (void *) tlv - (void *) ack_skb->data); in i2400m_get_device_info()
1015 const struct i2400m_tlv_hdr *tlv; in i2400m_firmware_check() local
1043 tlv = i2400m_tlv_find(i2400m, ack->pl, ack_len - sizeof(*ack), in i2400m_firmware_check()
1045 if (tlv == NULL) { in i2400m_firmware_check()
1051 l4mv = container_of(tlv, typeof(*l4mv), hdr); in i2400m_firmware_check()