Home
last modified time | relevance | path

Searched refs:tlv (Results 1 – 25 of 97) sorted by relevance

1234

/freebsd/sys/contrib/dev/athk/ath10k/
H A Dwmi-tlv.c85 const struct wmi_tlv *tlv; in ath10k_wmi_tlv_iter() local
90 if (len < sizeof(*tlv)) { in ath10k_wmi_tlv_iter()
93 ptr - begin, len, sizeof(*tlv)); in ath10k_wmi_tlv_iter()
98 tlv = ptr; in ath10k_wmi_tlv_iter()
100 tlv = (const void *)ptr; in ath10k_wmi_tlv_iter()
102 tlv_tag = __le16_to_cpu(tlv->tag); in ath10k_wmi_tlv_iter()
103 tlv_len = __le16_to_cpu(tlv->len); in ath10k_wmi_tlv_iter()
104 ptr += sizeof(*tlv); in ath10k_wmi_tlv_iter()
105 len -= sizeof(*tlv); in ath10k_wmi_tlv_iter()
1768 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_pdev_suspend() local
[all …]
/freebsd/contrib/wpa/src/eap_common/
H A Deap_fast_common.c148 int eap_fast_parse_tlv(struct eap_fast_tlv_parse *tlv, in eap_fast_parse_tlv() argument
155 if (tlv->eap_payload_tlv) { in eap_fast_parse_tlv()
158 tlv->iresult = EAP_TLV_RESULT_FAILURE; in eap_fast_parse_tlv()
161 tlv->eap_payload_tlv = pos; in eap_fast_parse_tlv()
162 tlv->eap_payload_tlv_len = len; in eap_fast_parse_tlv()
166 if (tlv->result) { in eap_fast_parse_tlv()
169 tlv->result = EAP_TLV_RESULT_FAILURE; in eap_fast_parse_tlv()
175 tlv->result = EAP_TLV_RESULT_FAILURE; in eap_fast_parse_tlv()
178 tlv->result = WPA_GET_BE16(pos); in eap_fast_parse_tlv()
179 if (tlv->result != EAP_TLV_RESULT_SUCCESS && in eap_fast_parse_tlv()
[all …]
H A Deap_teap_common.c397 int eap_teap_parse_tlv(struct eap_teap_tlv_parse *tlv, in eap_teap_parse_tlv() argument
405 tlv->result = TEAP_STATUS_FAILURE; in eap_teap_parse_tlv()
408 tlv->identity_type = WPA_GET_BE16(pos); in eap_teap_parse_tlv()
410 tlv->identity_type); in eap_teap_parse_tlv()
414 if (tlv->result) { in eap_teap_parse_tlv()
417 tlv->result = TEAP_STATUS_FAILURE; in eap_teap_parse_tlv()
422 tlv->result = TEAP_STATUS_FAILURE; in eap_teap_parse_tlv()
425 tlv->result = WPA_GET_BE16(pos); in eap_teap_parse_tlv()
426 if (tlv->result != TEAP_STATUS_SUCCESS && in eap_teap_parse_tlv()
427 tlv->result != TEAP_STATUS_FAILURE) { in eap_teap_parse_tlv()
[all …]
/freebsd/sys/dev/mlxfw/
H A Dmlxfw_mfa2_tlv_multi.c36 #define MLXFW_MFA2_TLV_TOTAL_SIZE(tlv) \ argument
37 NLA_ALIGN(sizeof(*(tlv)) + be16_to_cpu((tlv)->len))
51 const struct mlxfw_mfa2_tlv *tlv) in mlxfw_mfa2_tlv_next() argument
57 tlv_len = MLXFW_MFA2_TLV_TOTAL_SIZE(tlv); in mlxfw_mfa2_tlv_next()
59 if (tlv->type == MLXFW_MFA2_TLV_MULTI_PART) { in mlxfw_mfa2_tlv_next()
60 multi = mlxfw_mfa2_tlv_multi_get(mfa2_file, tlv); in mlxfw_mfa2_tlv_next()
66 next = (const u8 *) tlv + tlv_len; in mlxfw_mfa2_tlv_next()
74 const struct mlxfw_mfa2_tlv *tlv; in mlxfw_mfa2_tlv_advance() local
77 mlxfw_mfa2_tlv_foreach(mfa2_file, tlv, idx, from_tlv, count) in mlxfw_mfa2_tlv_advance()
78 if (!tlv) in mlxfw_mfa2_tlv_advance()
[all …]
H A Dmlxfw_mfa2_tlv.h56 const struct mlxfw_mfa2_tlv *tlv, u8 payload_type, in mlxfw_mfa2_tlv_payload_get() argument
61 tlv_top = (const u8 *) tlv + be16_to_cpu(tlv->len) - 1; in mlxfw_mfa2_tlv_payload_get()
62 if (!mlxfw_mfa2_valid_ptr(mfa2_file, (const u8 *) tlv) || in mlxfw_mfa2_tlv_payload_get()
65 if (tlv->type != payload_type) in mlxfw_mfa2_tlv_payload_get()
67 if (varsize && (be16_to_cpu(tlv->len) < payload_size)) in mlxfw_mfa2_tlv_payload_get()
69 if (!varsize && (be16_to_cpu(tlv->len) != payload_size)) in mlxfw_mfa2_tlv_payload_get()
72 return tlv->data; in mlxfw_mfa2_tlv_payload_get()
78 const struct mlxfw_mfa2_tlv *tlv) \
80 return mlxfw_mfa2_tlv_payload_get(mfa2_file, tlv, \
88 const struct mlxfw_mfa2_tlv *tlv) \
[all …]
H A Dmlxfw_mfa2.c126 const struct mlxfw_mfa2_tlv *tlv; in mlxfw_mfa2_tlv_multi_validate() local
130 mlxfw_mfa2_tlv_multi_foreach(mfa2_file, tlv, idx, multi) { in mlxfw_mfa2_tlv_multi_validate()
131 if (!tlv) { in mlxfw_mfa2_tlv_multi_validate()
147 const struct mlxfw_mfa2_tlv *tlv; in mlxfw_mfa2_file_dev_validate() local
164 tlv = mlxfw_mfa2_tlv_multi_child_find(mfa2_file, multi, in mlxfw_mfa2_file_dev_validate()
166 if (!tlv) { in mlxfw_mfa2_file_dev_validate()
171 psid = mlxfw_mfa2_tlv_psid_get(mfa2_file, tlv); in mlxfw_mfa2_file_dev_validate()
178 psid->psid, be16_to_cpu(tlv->len), true); in mlxfw_mfa2_file_dev_validate()
193 tlv = mlxfw_mfa2_tlv_multi_child_find(mfa2_file, multi, in mlxfw_mfa2_file_dev_validate()
196 if (!tlv) in mlxfw_mfa2_file_dev_validate()
[all …]
H A Dmlxfw_mfa2_tlv_multi.h45 const struct mlxfw_mfa2_tlv *tlv);
61 #define mlxfw_mfa2_tlv_foreach(mfa2_file, tlv, idx, from_tlv, count) \ argument
62 for (idx = 0, tlv = from_tlv; idx < (count); \
63 idx++, tlv = mlxfw_mfa2_tlv_next(mfa2_file, tlv))
65 #define mlxfw_mfa2_tlv_multi_foreach(mfa2_file, tlv, idx, multi) \ argument
66 mlxfw_mfa2_tlv_foreach(mfa2_file, tlv, idx, \
/freebsd/sys/dev/bhnd/nvram/
H A Dbhnd_nvram_data_tlv.c64 BHND_NVRAM_DATA_CLASS_DEFN(tlv, "WGT634U", BHND_NVRAM_DATA_CAP_DEVPATHS,
99 struct bhnd_nvram_tlv *tlv,
103 struct bhnd_nvram_tlv *tlv,
107 struct bhnd_nvram_tlv *tlv,
110 struct bhnd_nvram_tlv *tlv,
360 bhnd_nvram_tlv_init(struct bhnd_nvram_tlv *tlv, struct bhnd_nvram_io *src) in bhnd_nvram_tlv_init() argument
367 BHND_NV_ASSERT(tlv->data == NULL, ("tlv data already initialized")); in bhnd_nvram_tlv_init()
374 if ((tlv->data = bhnd_nvram_iobuf_copy_range(src, 0x0, size)) == NULL) in bhnd_nvram_tlv_init()
378 tlv->count = 0; in bhnd_nvram_tlv_init()
380 while ((env = bhnd_nvram_tlv_next_env(tlv, &next, NULL)) != NULL) { in bhnd_nvram_tlv_init()
[all …]
/freebsd/sys/dev/ice/
H A Dice_dcb.c122 * (Add tlv)
129 * (Delete tlv)
336 * @tlv: IEEE 802.1Qaz ETS CFG TLV
342 ice_parse_ieee_etscfg_tlv(struct ice_lldp_org_tlv *tlv, in ice_parse_ieee_etscfg_tlv() argument
346 u8 *buf = tlv->tlvinfo; in ice_parse_ieee_etscfg_tlv()
368 * @tlv: IEEE 802.1Qaz ETS REC TLV
374 ice_parse_ieee_etsrec_tlv(struct ice_lldp_org_tlv *tlv, in ice_parse_ieee_etsrec_tlv() argument
377 u8 *buf = tlv->tlvinfo; in ice_parse_ieee_etsrec_tlv()
385 * @tlv: IEEE 802.1Qaz PFC CFG TLV
391 ice_parse_ieee_pfccfg_tlv(struct ice_lldp_org_tlv *tlv, in ice_parse_ieee_pfccfg_tlv() argument
418 ice_parse_ieee_app_tlv(struct ice_lldp_org_tlv * tlv,struct ice_dcbx_cfg * dcbcfg) ice_parse_ieee_app_tlv() argument
475 ice_parse_ieee_tlv(struct ice_lldp_org_tlv * tlv,struct ice_dcbx_cfg * dcbcfg) ice_parse_ieee_tlv() argument
509 ice_parse_cee_pgcfg_tlv(struct ice_cee_feat_tlv * tlv,struct ice_dcbx_cfg * dcbcfg) ice_parse_cee_pgcfg_tlv() argument
568 ice_parse_cee_pfccfg_tlv(struct ice_cee_feat_tlv * tlv,struct ice_dcbx_cfg * dcbcfg) ice_parse_cee_pfccfg_tlv() argument
593 ice_parse_cee_app_tlv(struct ice_cee_feat_tlv * tlv,struct ice_dcbx_cfg * dcbcfg) ice_parse_cee_app_tlv() argument
647 ice_parse_cee_tlv(struct ice_lldp_org_tlv * tlv,struct ice_dcbx_cfg * dcbcfg) ice_parse_cee_tlv() argument
707 ice_parse_org_tlv(struct ice_lldp_org_tlv * tlv,struct ice_dcbx_cfg * dcbcfg) ice_parse_org_tlv() argument
735 struct ice_lldp_org_tlv *tlv; ice_lldp_to_dcb_cfg() local
1356 ice_add_ieee_ets_tlv(struct ice_lldp_org_tlv * tlv,struct ice_dcbx_cfg * dcbcfg) ice_add_ieee_ets_tlv() argument
1397 ice_add_ieee_etsrec_tlv(struct ice_lldp_org_tlv * tlv,struct ice_dcbx_cfg * dcbcfg) ice_add_ieee_etsrec_tlv() argument
1428 ice_add_ieee_pfc_tlv(struct ice_lldp_org_tlv * tlv,struct ice_dcbx_cfg * dcbcfg) ice_add_ieee_pfc_tlv() argument
1466 ice_add_ieee_app_pri_tlv(struct ice_lldp_org_tlv * tlv,struct ice_dcbx_cfg * dcbcfg) ice_add_ieee_app_pri_tlv() argument
1515 ice_add_dscp_up_tlv(struct ice_lldp_org_tlv * tlv,struct ice_dcbx_cfg * dcbcfg) ice_add_dscp_up_tlv() argument
1551 ice_add_dscp_enf_tlv(struct ice_lldp_org_tlv * tlv) ice_add_dscp_enf_tlv() argument
1575 ice_add_dscp_tc_bw_tlv(struct ice_lldp_org_tlv * tlv,struct ice_dcbx_cfg * dcbcfg) ice_add_dscp_tc_bw_tlv() argument
1624 ice_add_dscp_pfc_tlv(struct ice_lldp_org_tlv * tlv,struct ice_dcbx_cfg * dcbcfg) ice_add_dscp_pfc_tlv() argument
1651 ice_add_dcb_tlv(struct ice_lldp_org_tlv * tlv,struct ice_dcbx_cfg * dcbcfg,u16 tlvid) ice_add_dcb_tlv() argument
1703 struct ice_lldp_org_tlv *tlv; ice_dcb_cfg_to_lldp() local
[all...]
/freebsd/sys/dev/ixl/
H A Di40e_dcb.c66 static void i40e_parse_ieee_etscfg_tlv(struct i40e_lldp_org_tlv *tlv, in i40e_parse_ieee_etscfg_tlv() argument
70 u8 *buf = tlv->tlvinfo; in i40e_parse_ieee_etscfg_tlv()
137 static void i40e_parse_ieee_etsrec_tlv(struct i40e_lldp_org_tlv *tlv, in i40e_parse_ieee_etsrec_tlv() argument
140 u8 *buf = tlv->tlvinfo; in i40e_parse_ieee_etsrec_tlv()
192 static void i40e_parse_ieee_pfccfg_tlv(struct i40e_lldp_org_tlv *tlv, in i40e_parse_ieee_pfccfg_tlv() argument
195 u8 *buf = tlv->tlvinfo; in i40e_parse_ieee_pfccfg_tlv()
219 static void i40e_parse_ieee_app_tlv(struct i40e_lldp_org_tlv *tlv, in i40e_parse_ieee_app_tlv() argument
228 typelength = I40E_NTOHS(tlv->typelength); in i40e_parse_ieee_app_tlv()
231 buf = tlv->tlvinfo; in i40e_parse_ieee_app_tlv()
234 length -= (sizeof(tlv->ouisubtype) + 1); in i40e_parse_ieee_app_tlv()
[all …]
/freebsd/sys/contrib/dev/mediatek/mt76/mt7925/
H A Dmcu.c224 struct mt7925_wow_pattern_tlv *tlv; in mt7925_mcu_set_wow_pattern() local
233 skb = mt76_mcu_msg_alloc(dev, NULL, sizeof(hdr) + sizeof(*tlv)); in mt7925_mcu_set_wow_pattern()
238 tlv = (struct mt7925_wow_pattern_tlv *)skb_put(skb, sizeof(*tlv)); in mt7925_mcu_set_wow_pattern()
239 tlv->tag = cpu_to_le16(UNI_SUSPEND_WOW_PATTERN); in mt7925_mcu_set_wow_pattern()
240 tlv->len = cpu_to_le16(sizeof(*tlv)); in mt7925_mcu_set_wow_pattern()
241 tlv->bss_idx = 0xF; in mt7925_mcu_set_wow_pattern()
242 tlv->data_len = pattern->pattern_len; in mt7925_mcu_set_wow_pattern()
243 tlv->enable = enable; in mt7925_mcu_set_wow_pattern()
244 tlv->index = index; in mt7925_mcu_set_wow_pattern()
245 tlv->offset = 0; in mt7925_mcu_set_wow_pattern()
[all …]
/freebsd/sys/contrib/dev/iwlwifi/
H A Diwl-dbg-tlv.c54 struct iwl_ucode_tlv *tlv; member
68 static struct iwl_ucode_tlv *iwl_dbg_tlv_add(const struct iwl_ucode_tlv *tlv, in iwl_dbg_tlv_add() argument
71 u32 len = le32_to_cpu(tlv->length); in iwl_dbg_tlv_add()
74 node = kzalloc_flex(*node, tlv.data, len); in iwl_dbg_tlv_add()
78 memcpy(&node->tlv, tlv, sizeof(node->tlv)); in iwl_dbg_tlv_add()
79 memcpy(node->tlv.data, tlv->data, len); in iwl_dbg_tlv_add()
82 return &node->tlv; in iwl_dbg_tlv_add()
85 static bool iwl_dbg_tlv_ver_support(const struct iwl_ucode_tlv *tlv) in iwl_dbg_tlv_ver_support() argument
87 const struct iwl_fw_ini_header *hdr = (const void *)&tlv->data[0]; in iwl_dbg_tlv_ver_support()
88 u32 type = le32_to_cpu(tlv->type); in iwl_dbg_tlv_ver_support()
[all …]
/freebsd/sys/dev/bnxt/bnxt_re/
H A Dqplib_tlv.h34 struct tlv tlv; member
44 (rtlv)->tlv.cmd_discr = CMD_DISCR_TLV_ENCAP; \
45 (rtlv)->tlv.tlv_type = TLV_TYPE_ROCE_SP_COMMAND; \
46 (rtlv)->tlv.length = (content_bytes); \
47 (rtlv)->tlv.flags = TLV_FLAGS_REQUIRED; \
48 (rtlv)->tlv.flags |= (more) ? TLV_FLAGS_MORE : 0; \
54 (rtlv)->tlv.cmd_discr = CMD_DISCR_TLV_ENCAP; \
55 (rtlv)->tlv.tlv_type = (ext_type); \
56 (rtlv)->tlv.length = (content_bytes); \
57 (rtlv)->tlv.flags |= (more) ? TLV_FLAGS_MORE : 0; \
[all …]
/freebsd/sys/contrib/dev/mediatek/mt76/mt7996/
H A Dmcu.c450 struct tlv *tlv = (struct tlv *)data; in mt7996_mcu_rx_log_message() local
452 const struct tlv *tlv = (const struct tlv *)data; in mt7996_mcu_rx_log_message() local
462 if (le16_to_cpu(tlv->tag) != UNI_EVENT_FW_LOG_FORMAT) in mt7996_mcu_rx_log_message()
465 data += sizeof(*tlv) + 4; in mt7996_mcu_rx_log_message()
466 len = le16_to_cpu(tlv->len) - sizeof(*tlv) - 4; in mt7996_mcu_rx_log_message()
512 struct tlv *tlv = (struct tlv *)(data + 4); in mt7996_mcu_ie_countdown() local
515 const struct tlv *tlv = (const struct tlv *)(data + 4); in mt7996_mcu_ie_countdown() local
526 while (data + sizeof(struct tlv) < tail && le16_to_cpu(tlv->len)) { in mt7996_mcu_ie_countdown()
527 switch (le16_to_cpu(tlv->tag)) { in mt7996_mcu_ie_countdown()
540 data += le16_to_cpu(tlv->len); in mt7996_mcu_ie_countdown()
[all …]
/freebsd/contrib/tcpdump/
H A Dprint-slow.c508 } tlv; in slow_oam_print() local
561 tlv.slow_oam_info = (const struct slow_oam_info_t *)tptr; in slow_oam_print()
563 if (GET_U_1(tlv.slow_oam_info->info_length) != in slow_oam_print()
572 GET_U_1(tlv.slow_oam_info->oam_version), in slow_oam_print()
573 GET_BE_U_2(tlv.slow_oam_info->revision)); in slow_oam_print()
575 state = GET_U_1(tlv.slow_oam_info->state); in slow_oam_print()
583 GET_U_1(tlv.slow_oam_info->oam_config)), in slow_oam_print()
584 GET_BE_U_2(tlv.slow_oam_info->oam_pdu_config) & in slow_oam_print()
588 GET_BE_U_3(tlv.slow_oam_info->oui)), in slow_oam_print()
589 GET_BE_U_3(tlv.slow_oam_info->oui), in slow_oam_print()
[all …]
H A Dprint-hncp.c270 const uint8_t *tlv, *value; in dhcpv4_print() local
277 tlv = cp + i; in dhcpv4_print()
278 type = GET_U_1(tlv); in dhcpv4_print()
279 optlen = GET_U_1(tlv + 1); in dhcpv4_print()
280 value = tlv + 2; in dhcpv4_print()
322 const u_char *tlv, *value; in dhcpv6_print() local
329 tlv = cp + i; in dhcpv6_print()
330 type = GET_BE_U_2(tlv); in dhcpv6_print()
331 optlen = GET_BE_U_2(tlv + 2); in dhcpv6_print()
332 value = tlv + 4; in dhcpv6_print()
[all …]
/freebsd/sys/contrib/dev/iwlwifi/fw/
H A Dpnvm.c40 const struct iwl_ucode_tlv *tlv; in iwl_pnvm_handle_section() local
49 while (len >= sizeof(*tlv)) { in iwl_pnvm_handle_section()
52 len -= sizeof(*tlv); in iwl_pnvm_handle_section()
53 tlv = (const void *)data; in iwl_pnvm_handle_section()
55 tlv_len = le32_to_cpu(tlv->length); in iwl_pnvm_handle_section()
56 tlv_type = le32_to_cpu(tlv->type); in iwl_pnvm_handle_section()
64 data += sizeof(*tlv); in iwl_pnvm_handle_section()
174 const struct iwl_ucode_tlv *tlv; in iwl_pnvm_parse() local
178 while (len >= sizeof(*tlv)) { in iwl_pnvm_parse()
182 len -= sizeof(*tlv); in iwl_pnvm_parse()
[all …]
/freebsd/sys/contrib/dev/mediatek/mt76/
H A Dmt76_connac_mcu.c247 struct tlv *
252 struct tlv *sta_hdr = sta_wtbl; in mt76_connac_mcu_add_nested_tlv()
253 struct tlv *ptlv, tlv = { in mt76_connac_mcu_add_nested_tlv() local
260 memcpy(ptlv, &tlv, sizeof(tlv)); in mt76_connac_mcu_add_nested_tlv()
304 struct tlv *sta_hdr = sta_wtbl; in mt76_connac_mcu_alloc_wtbl_req()
334 struct tlv *tlv; in mt76_connac_mcu_bss_omac_tlv() local
360 tlv = mt76_connac_mcu_add_tlv(skb, BSS_INFO_OMAC, sizeof(*omac)); in mt76_connac_mcu_bss_omac_tlv()
362 omac = (struct bss_info_omac *)tlv; in mt76_connac_mcu_bss_omac_tlv()
377 struct tlv *tlv; in mt76_connac_mcu_sta_basic_tlv() local
380 tlv = mt76_connac_mcu_add_tlv(skb, STA_REC_BASIC, sizeof(*basic)); in mt76_connac_mcu_sta_basic_tlv()
[all …]
/freebsd/contrib/wpa/src/eap_peer/
H A Deap_teap.c392 struct wpabuf *tlv; in eap_teap_add_identity_type() local
394 tlv = eap_teap_tlv_identity_type(sm->use_machine_cred ? in eap_teap_add_identity_type()
397 return wpabuf_concat(msg, tlv); in eap_teap_add_identity_type()
812 struct eap_teap_tlv_parse *tlv, in eap_teap_parse_decrypted() argument
820 os_memset(tlv, 0, sizeof(*tlv)); in eap_teap_parse_decrypted()
841 res = eap_teap_parse_tlv(tlv, tlv_type, pos, len); in eap_teap_parse_decrypted()
873 struct eap_teap_tlv_parse tlv; in eap_teap_process_decrypted() local
878 if (eap_teap_parse_decrypted(decrypted, &tlv, &resp) < 0) { in eap_teap_process_decrypted()
888 if (tlv.result == TEAP_STATUS_FAILURE) { in eap_teap_process_decrypted()
900 if (tlv.iresult == TEAP_STATUS_SUCCESS && !tlv.crypto_binding) { in eap_teap_process_decrypted()
[all …]
H A Deap_fast.c1097 struct eap_fast_tlv_parse *tlv, in eap_fast_parse_decrypted() argument
1104 os_memset(tlv, 0, sizeof(*tlv)); in eap_fast_parse_decrypted()
1124 res = eap_fast_parse_tlv(tlv, tlv_type, pos, len); in eap_fast_parse_decrypted()
1195 struct eap_fast_tlv_parse tlv; in eap_fast_process_decrypted() local
1198 if (eap_fast_parse_decrypted(decrypted, &tlv, &resp) < 0) in eap_fast_process_decrypted()
1204 if (tlv.result == EAP_TLV_RESULT_FAILURE) { in eap_fast_process_decrypted()
1210 if (tlv.iresult == EAP_TLV_RESULT_FAILURE) { in eap_fast_process_decrypted()
1216 if (tlv.crypto_binding) { in eap_fast_process_decrypted()
1218 tlv.crypto_binding, in eap_fast_process_decrypted()
1219 tlv.crypto_binding_len); in eap_fast_process_decrypted()
[all …]
/freebsd/sys/dev/qlnx/qlnxe/
H A Decore_mng_tlv.c1244 struct ecore_drv_tlv_hdr tlv; in ecore_mfw_update_tlvs() local
1258 OSAL_MEMSET(&tlv, 0, sizeof(tlv)); in ecore_mfw_update_tlvs()
1260 offset += sizeof(tlv) + sizeof(u32) * tlv.tlv_length) { in ecore_mfw_update_tlvs()
1262 tlv.tlv_type = TLV_TYPE(p_tlv); in ecore_mfw_update_tlvs()
1263 tlv.tlv_length = TLV_LENGTH(p_tlv); in ecore_mfw_update_tlvs()
1264 tlv.tlv_flags = TLV_FLAGS(p_tlv); in ecore_mfw_update_tlvs()
1267 "Type %d length = %d flags = 0x%x\n", tlv.tlv_type, in ecore_mfw_update_tlvs()
1268 tlv.tlv_length, tlv.tlv_flags); in ecore_mfw_update_tlvs()
1271 len = ecore_mfw_get_gen_tlv_value(&tlv, &p_tlv_data->generic, &buffer); in ecore_mfw_update_tlvs()
1273 len = ecore_mfw_get_eth_tlv_value(&tlv, &p_tlv_data->eth, &buffer); in ecore_mfw_update_tlvs()
[all …]
/freebsd/sys/contrib/dev/mediatek/mt76/mt7915/
H A Dmcu.c472 static struct tlv *
476 struct tlv *ptlv, tlv = { in mt7915_mcu_add_nested_subtlv() local
482 memcpy(ptlv, &tlv, sizeof(tlv)); in mt7915_mcu_add_nested_subtlv()
540 struct tlv *tlv; in mt7915_mcu_bss_rfch_tlv() local
543 tlv = mt76_connac_mcu_add_tlv(skb, BSS_INFO_RF_CH, sizeof(*ch)); in mt7915_mcu_bss_rfch_tlv()
545 ch = (struct bss_info_rf_ch *)tlv; in mt7915_mcu_bss_rfch_tlv()
573 struct tlv *tlv; in mt7915_mcu_bss_ra_tlv() local
575 tlv = mt76_connac_mcu_add_tlv(skb, BSS_INFO_RA, sizeof(*ra)); in mt7915_mcu_bss_ra_tlv()
577 ra = (struct bss_info_ra *)tlv; in mt7915_mcu_bss_ra_tlv()
601 struct tlv *tlv; in mt7915_mcu_bss_he_tlv() local
[all …]
/freebsd/contrib/wpa/src/eap_server/
H A Deap_server_fast.c1136 struct eap_fast_tlv_parse *tlv) in eap_fast_parse_tlvs() argument
1142 os_memset(tlv, 0, sizeof(*tlv)); in eap_fast_parse_tlvs()
1161 res = eap_fast_parse_tlv(tlv, tlv_type, pos, len); in eap_fast_parse_tlvs()
1242 struct eap_tlv_pac_type_tlv *tlv; in eap_fast_pac_type() local
1244 if (pac == NULL || len != sizeof(*tlv)) in eap_fast_pac_type()
1247 tlv = (struct eap_tlv_pac_type_tlv *) pac; in eap_fast_pac_type()
1249 return be_to_host16(tlv->tlv_type) == PAC_TYPE_PAC_TYPE && in eap_fast_pac_type()
1250 be_to_host16(tlv->length) == 2 && in eap_fast_pac_type()
1251 be_to_host16(tlv->pac_type) == type; in eap_fast_pac_type()
1259 struct eap_fast_tlv_parse tlv; in eap_fast_process_phase2_tlvs() local
[all …]
/freebsd/sys/contrib/dev/athk/ath11k/
H A Dhal_rx.c24 static int ath11k_hal_reo_cmd_queue_stats(struct hal_tlv_hdr *tlv, in ath11k_hal_reo_cmd_queue_stats() argument
29 tlv->tl = FIELD_PREP(HAL_TLV_HDR_TAG, HAL_REO_GET_QUEUE_STATS) | in ath11k_hal_reo_cmd_queue_stats()
32 desc = (struct hal_reo_get_queue_stats *)tlv->value; in ath11k_hal_reo_cmd_queue_stats()
48 static int ath11k_hal_reo_cmd_flush_cache(struct ath11k_hal *hal, struct hal_tlv_hdr *tlv, in ath11k_hal_reo_cmd_flush_cache() argument
61 tlv->tl = FIELD_PREP(HAL_TLV_HDR_TAG, HAL_REO_FLUSH_CACHE) | in ath11k_hal_reo_cmd_flush_cache()
64 desc = (struct hal_reo_flush_cache *)tlv->value; in ath11k_hal_reo_cmd_flush_cache()
94 static int ath11k_hal_reo_cmd_update_rx_queue(struct hal_tlv_hdr *tlv, in ath11k_hal_reo_cmd_update_rx_queue() argument
99 tlv->tl = FIELD_PREP(HAL_TLV_HDR_TAG, HAL_REO_UPDATE_RX_REO_QUEUE) | in ath11k_hal_reo_cmd_update_rx_queue()
102 desc = (struct hal_reo_update_rx_queue *)tlv->value; in ath11k_hal_reo_cmd_update_rx_queue()
436 struct hal_tlv_hdr *tlv = (struct hal_tlv_hdr *)reo_desc; in ath11k_hal_reo_status_queue_stats() local
[all …]
/freebsd/usr.sbin/ctld/
H A Disns.cc73 struct isns_tlv tlv; in add() local
77 getspace(sizeof(tlv) + vlen); in add()
78 be32enc(&tlv.it_tag, tag); in add()
79 be32enc(&tlv.it_length, vlen); in add()
80 append(&tlv, sizeof(tlv)); in add()

1234