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()
433 const struct i2400m_tlv_hdr *tlv, in i2400m_report_state_parse_tlv() argument
441 if (0 == i2400m_tlv_match(tlv, I2400M_TLV_SYSTEM_STATE, sizeof(*ss))) { in i2400m_report_state_parse_tlv()
442 ss = container_of(tlv, typeof(*ss), hdr); in i2400m_report_state_parse_tlv()
449 if (0 == i2400m_tlv_match(tlv, I2400M_TLV_RF_STATUS, sizeof(*rfss))) { in i2400m_report_state_parse_tlv()
450 rfss = container_of(tlv, typeof(*rfss), hdr); in i2400m_report_state_parse_tlv()
458 if (0 == i2400m_tlv_match(tlv, I2400M_TLV_MEDIA_STATUS, sizeof(*ms))) { in i2400m_report_state_parse_tlv()
459 ms = container_of(tlv, typeof(*ms), hdr); in i2400m_report_state_parse_tlv()
485 const struct i2400m_tlv_hdr *tlv; in i2400m_report_state_hook() local
490 tlv = NULL; in i2400m_report_state_hook()
492 while ((tlv = i2400m_tlv_buffer_walk(i2400m, &l3l4_hdr->pl, in i2400m_report_state_hook()
493 tlv_size, tlv))) in i2400m_report_state_hook()
494 i2400m_report_state_parse_tlv(i2400m, tlv, tag); in i2400m_report_state_hook()
852 struct i2400m_tlv_hdr tlv; member
878 cmd->tlv.type = cpu_to_le16(I2400M_TLV_TYPE_WAKEUP_MODE); in i2400m_cmd_enter_powersave()
879 cmd->tlv.length = cpu_to_le16(sizeof(cmd->val)); in i2400m_cmd_enter_powersave()
935 const struct i2400m_tlv_hdr *tlv; in i2400m_get_device_info() local
961 tlv = i2400m_tlv_find(i2400m, ack->pl, ack_len - sizeof(*ack), in i2400m_get_device_info()
963 if (tlv == NULL) { in i2400m_get_device_info()
970 skb_pull(ack_skb, (void *) tlv - (void *) ack_skb->data); in i2400m_get_device_info()
1017 const struct i2400m_tlv_hdr *tlv; in i2400m_firmware_check() local
1045 tlv = i2400m_tlv_find(i2400m, ack->pl, ack_len - sizeof(*ack), in i2400m_firmware_check()
1047 if (tlv == NULL) { in i2400m_firmware_check()
1053 l4mv = container_of(tlv, typeof(*l4mv), hdr); in i2400m_firmware_check()