• Home
  • Raw
  • Download

Lines Matching refs:tlv

100 ssize_t i2400m_tlv_match(const struct i2400m_tlv_hdr *tlv,  in i2400m_tlv_match()  argument
103 if (le16_to_cpu(tlv->type) != tlv_type) /* Not our type? skip */ in i2400m_tlv_match()
106 && le16_to_cpu(tlv->length) + sizeof(*tlv) != tlv_size) { in i2400m_tlv_match()
107 size_t size = le16_to_cpu(tlv->length) + sizeof(*tlv); in i2400m_tlv_match()
207 const struct i2400m_tlv_hdr *tlv = NULL; in i2400m_tlv_find() local
208 while ((tlv = i2400m_tlv_buffer_walk(i2400m, tlv_hdr, size, tlv))) { in i2400m_tlv_find()
209 match = i2400m_tlv_match(tlv, tlv_type, tlv_size); in i2400m_tlv_find()
217 return tlv; in i2400m_tlv_find()
427 const struct i2400m_tlv_hdr *tlv; in i2400m_report_state_hook() local
435 tlv = NULL; in i2400m_report_state_hook()
437 while ((tlv = i2400m_tlv_buffer_walk(i2400m, &l3l4_hdr->pl, in i2400m_report_state_hook()
438 tlv_size, tlv))) { in i2400m_report_state_hook()
439 if (0 == i2400m_tlv_match(tlv, I2400M_TLV_SYSTEM_STATE, in i2400m_report_state_hook()
441 ss = container_of(tlv, typeof(*ss), hdr); in i2400m_report_state_hook()
448 if (0 == i2400m_tlv_match(tlv, I2400M_TLV_RF_STATUS, in i2400m_report_state_hook()
450 rfss = container_of(tlv, typeof(*rfss), hdr); in i2400m_report_state_hook()
458 if (0 == i2400m_tlv_match(tlv, I2400M_TLV_MEDIA_STATUS, in i2400m_report_state_hook()
460 ms = container_of(tlv, typeof(*ms), hdr); in i2400m_report_state_hook()
810 struct i2400m_tlv_hdr tlv; member
836 cmd->tlv.type = cpu_to_le16(I2400M_TLV_TYPE_WAKEUP_MODE); in i2400m_cmd_enter_powersave()
837 cmd->tlv.length = cpu_to_le16(sizeof(cmd->val)); in i2400m_cmd_enter_powersave()
893 const struct i2400m_tlv_hdr *tlv; in i2400m_get_device_info() local
919 tlv = i2400m_tlv_find(i2400m, ack->pl, ack_len - sizeof(*ack), in i2400m_get_device_info()
921 if (tlv == NULL) { in i2400m_get_device_info()
928 skb_pull(ack_skb, (void *) tlv - (void *) ack_skb->data); in i2400m_get_device_info()
971 const struct i2400m_tlv_hdr *tlv; in i2400m_firmware_check() local
999 tlv = i2400m_tlv_find(i2400m, ack->pl, ack_len - sizeof(*ack), in i2400m_firmware_check()
1001 if (tlv == NULL) { in i2400m_firmware_check()
1007 l4mv = container_of(tlv, typeof(*l4mv), hdr); in i2400m_firmware_check()