/freebsd/sys/contrib/dev/athk/ath10k/ |
H A D | wmi-tlv.c | 84 const struct wmi_tlv *tlv; in ath10k_wmi_tlv_iter() local 89 if (len < sizeof(*tlv)) { in ath10k_wmi_tlv_iter() 92 ptr - begin, len, sizeof(*tlv)); in ath10k_wmi_tlv_iter() 97 tlv = ptr; in ath10k_wmi_tlv_iter() 99 tlv = (const void *)ptr; in ath10k_wmi_tlv_iter() 101 tlv_tag = __le16_to_cpu(tlv->tag); in ath10k_wmi_tlv_iter() 102 tlv_len = __le16_to_cpu(tlv->len); in ath10k_wmi_tlv_iter() 103 ptr += sizeof(*tlv); in ath10k_wmi_tlv_iter() 104 len -= sizeof(*tlv); in ath10k_wmi_tlv_iter() 1763 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_pdev_suspend() local [all …]
|
/freebsd/contrib/wpa/src/eap_common/ |
H A D | eap_fast_common.c | 148 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 D | eap_teap_common.c | 426 int eap_teap_parse_tlv(struct eap_teap_tlv_parse *tlv, in eap_teap_parse_tlv() argument 434 tlv->result = TEAP_STATUS_FAILURE; in eap_teap_parse_tlv() 437 tlv->identity_type = WPA_GET_BE16(pos); in eap_teap_parse_tlv() 439 tlv->identity_type); in eap_teap_parse_tlv() 443 if (tlv->result) { in eap_teap_parse_tlv() 446 tlv->result = TEAP_STATUS_FAILURE; in eap_teap_parse_tlv() 451 tlv->result = TEAP_STATUS_FAILURE; in eap_teap_parse_tlv() 454 tlv->result = WPA_GET_BE16(pos); in eap_teap_parse_tlv() 455 if (tlv->result != TEAP_STATUS_SUCCESS && in eap_teap_parse_tlv() 456 tlv->result != TEAP_STATUS_FAILURE) { in eap_teap_parse_tlv() [all …]
|
/freebsd/sys/dev/mlxfw/ |
H A D | mlxfw_mfa2_tlv_multi.c | 36 #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 D | mlxfw_mfa2_tlv.h | 56 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 D | mlxfw_mfa2.c | 126 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 D | mlxfw_mfa2_tlv_multi.h | 45 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 D | bhnd_nvram_data_tlv.c | 64 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 D | ice_dcb.c | 122 * (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 D | i40e_dcb.c | 66 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/iwlwifi/ |
H A D | iwl-dbg-tlv.c | 8 #include "iwl-dbg-tlv.h" 48 * @tlv: TLV attach to the timer node 54 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() 71 u32 len = le32_to_cpu(tlv->length); in iwl_dbg_tlv_add() 74 node = kzalloc(struct_size(node, tlv.data, len), GFP_KERNEL); in iwl_dbg_tlv_add() 78 memcpy(&node->tlv, tlv, sizeof(node->tlv)); in iwl_dbg_tlv_add() 79 memcpy(node->tlv in iwl_dbg_tlv_add() 67 iwl_dbg_tlv_add(const struct iwl_ucode_tlv * tlv,struct list_head * list) iwl_dbg_tlv_add() argument 84 iwl_dbg_tlv_ver_support(const struct iwl_ucode_tlv * tlv) iwl_dbg_tlv_ver_support() argument 99 iwl_dbg_tlv_alloc_debug_info(struct iwl_trans * trans,const struct iwl_ucode_tlv * tlv) iwl_dbg_tlv_alloc_debug_info() argument 113 iwl_dbg_tlv_alloc_buf_alloc(struct iwl_trans * trans,const struct iwl_ucode_tlv * tlv) iwl_dbg_tlv_alloc_buf_alloc() argument 158 iwl_dbg_tlv_alloc_hcmd(struct iwl_trans * trans,const struct iwl_ucode_tlv * tlv) iwl_dbg_tlv_alloc_hcmd() argument 182 iwl_dbg_tlv_alloc_region(struct iwl_trans * trans,const struct iwl_ucode_tlv * tlv) iwl_dbg_tlv_alloc_region() argument 246 iwl_dbg_tlv_alloc_trigger(struct iwl_trans * trans,const struct iwl_ucode_tlv * tlv) iwl_dbg_tlv_alloc_trigger() argument 287 iwl_dbg_tlv_config_set(struct iwl_trans * trans,const struct iwl_ucode_tlv * tlv) iwl_dbg_tlv_config_set() argument 320 iwl_dbg_tlv_alloc(struct iwl_trans * trans,const struct iwl_ucode_tlv * tlv,bool ext) iwl_dbg_tlv_alloc() argument 473 const struct iwl_ucode_tlv *tlv; iwl_dbg_tlv_parse_bin() local 1164 struct iwl_ucode_tlv *tlv = &node->tlv; iwl_dbg_tlv_gen_active_trig_list() local [all...] |
/freebsd/sys/dev/bnxt/bnxt_re/ |
H A D | qplib_tlv.h | 34 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 D | mcu.c | 366 struct tlv *tlv = (struct tlv *)data; in mt7996_mcu_rx_log_message() local 368 const struct tlv *tlv = (const struct tlv *)data; in mt7996_mcu_rx_log_message() local 378 if (le16_to_cpu(tlv->tag) != UNI_EVENT_FW_LOG_FORMAT) in mt7996_mcu_rx_log_message() 381 data += sizeof(*tlv) + 4; in mt7996_mcu_rx_log_message() 382 len = le16_to_cpu(tlv->len) - sizeof(*tlv) - 4; in mt7996_mcu_rx_log_message() 426 struct tlv *tlv = (struct tlv *)(data + 4); in mt7996_mcu_ie_countdown() local 429 const struct tlv *tlv = (const struct tlv *)(data + 4); in mt7996_mcu_ie_countdown() local 440 while (data + sizeof(struct tlv) < tail && le16_to_cpu(tlv->len)) { in mt7996_mcu_ie_countdown() 441 switch (le16_to_cpu(tlv->tag)) { in mt7996_mcu_ie_countdown() 454 data += le16_to_cpu(tlv->len); in mt7996_mcu_ie_countdown() [all …]
|
/freebsd/contrib/tcpdump/ |
H A D | print-slow.c | 508 } 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 D | print-hncp.c | 270 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 D | pnvm.c | 39 const struct iwl_ucode_tlv *tlv; in iwl_pnvm_handle_section() 48 while (len >= sizeof(*tlv)) { in iwl_pnvm_handle_section() 51 len -= sizeof(*tlv); in iwl_pnvm_handle_section() 52 tlv = (const void *)data; in iwl_pnvm_handle_section() 54 tlv_len = le32_to_cpu(tlv->length); in iwl_pnvm_handle_section() 55 tlv_type = le32_to_cpu(tlv->type); in iwl_pnvm_handle_section() 63 data += sizeof(*tlv); in iwl_pnvm_handle_section() 172 const struct iwl_ucode_tlv *tlv; in iwl_pnvm_parse() 176 while (len >= sizeof(*tlv)) { in iwl_pnvm_parse() 180 len -= sizeof(*tlv); in iwl_pnvm_parse() 37 const struct iwl_ucode_tlv *tlv; iwl_pnvm_handle_section() local 170 const struct iwl_ucode_tlv *tlv; iwl_pnvm_parse() local [all...] |
H A D | uefi.c | 155 const struct iwl_ucode_tlv *tlv; in iwl_uefi_reduce_power_section() 160 while (len >= sizeof(*tlv)) { in iwl_uefi_reduce_power_section() 163 len -= sizeof(*tlv); in iwl_uefi_reduce_power_section() 164 tlv = (const void *)data; in iwl_uefi_reduce_power_section() 166 tlv_len = le32_to_cpu(tlv->length); in iwl_uefi_reduce_power_section() 167 tlv_type = le32_to_cpu(tlv->type); in iwl_uefi_reduce_power_section() 175 data += sizeof(*tlv); in iwl_uefi_reduce_power_parse() 209 const struct iwl_ucode_tlv *tlv; in iwl_uefi_reduce_power_parse() 213 while (len >= sizeof(*tlv)) { in iwl_uefi_reduce_power_parse() 216 len -= sizeof(*tlv); in iwl_uefi_reduce_power_parse() 119 const struct iwl_ucode_tlv *tlv; iwl_uefi_reduce_power_section() local 173 const struct iwl_ucode_tlv *tlv; iwl_uefi_reduce_power_parse() local [all...] |
/freebsd/sys/contrib/dev/mediatek/mt76/ |
H A D | mt76_connac_mcu.c | 246 struct tlv * 251 struct tlv *sta_hdr = sta_wtbl; in mt76_connac_mcu_add_nested_tlv() 252 struct tlv *ptlv, tlv = { in mt76_connac_mcu_add_nested_tlv() local 259 memcpy(ptlv, &tlv, sizeof(tlv)); in mt76_connac_mcu_add_nested_tlv() 300 struct tlv *sta_hdr = sta_wtbl; in mt76_connac_mcu_alloc_wtbl_req() 330 struct tlv *tlv; in mt76_connac_mcu_bss_omac_tlv() local 356 tlv = mt76_connac_mcu_add_tlv(skb, BSS_INFO_OMAC, sizeof(*omac)); in mt76_connac_mcu_bss_omac_tlv() 358 omac = (struct bss_info_omac *)tlv; in mt76_connac_mcu_bss_omac_tlv() 372 struct tlv *tlv; in mt76_connac_mcu_sta_basic_tlv() local 375 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 D | eap_teap.c | 546 struct wpabuf *tlv; in eap_teap_add_identity_type() local 548 tlv = eap_teap_tlv_identity_type(sm->use_machine_cred ? in eap_teap_add_identity_type() 551 return wpabuf_concat(msg, tlv); in eap_teap_add_identity_type() 1158 struct eap_teap_tlv_parse *tlv, in eap_teap_parse_decrypted() argument 1166 os_memset(tlv, 0, sizeof(*tlv)); in eap_teap_parse_decrypted() 1187 res = eap_teap_parse_tlv(tlv, tlv_type, pos, len); in eap_teap_parse_decrypted() 1251 struct eap_teap_tlv_parse tlv; in eap_teap_process_decrypted() local 1256 if (eap_teap_parse_decrypted(decrypted, &tlv, &resp) < 0) { in eap_teap_process_decrypted() 1266 if (tlv.result == TEAP_STATUS_FAILURE) { in eap_teap_process_decrypted() 1278 if (tlv.iresult == TEAP_STATUS_SUCCESS && !tlv.crypto_binding) { in eap_teap_process_decrypted() [all …]
|
/freebsd/sys/contrib/dev/athk/ath12k/ |
H A D | hal_rx.c | 24 static int ath12k_hal_reo_cmd_queue_stats(struct hal_tlv_64_hdr *tlv, in ath12k_hal_reo_cmd_queue_stats() argument 29 tlv->tl = u32_encode_bits(HAL_REO_GET_QUEUE_STATS, HAL_TLV_HDR_TAG) | in ath12k_hal_reo_cmd_queue_stats() 32 desc = (struct hal_reo_get_queue_stats *)tlv->value; in ath12k_hal_reo_cmd_queue_stats() 49 struct hal_tlv_64_hdr *tlv, in ath12k_hal_reo_cmd_flush_cache() argument 62 tlv->tl = u32_encode_bits(HAL_REO_FLUSH_CACHE, HAL_TLV_HDR_TAG) | in ath12k_hal_reo_cmd_flush_cache() 65 desc = (struct hal_reo_flush_cache *)tlv->value; in ath12k_hal_reo_cmd_flush_cache() 95 static int ath12k_hal_reo_cmd_update_rx_queue(struct hal_tlv_64_hdr *tlv, in ath12k_hal_reo_cmd_update_rx_queue() argument 100 tlv->tl = u32_encode_bits(HAL_REO_UPDATE_RX_REO_QUEUE, HAL_TLV_HDR_TAG) | in ath12k_hal_reo_cmd_update_rx_queue() 103 desc = (struct hal_reo_update_rx_queue *)tlv->value; in ath12k_hal_reo_cmd_update_rx_queue() 462 void ath12k_hal_reo_status_queue_stats(struct ath12k_base *ab, struct hal_tlv_64_hdr *tlv, in ath12k_hal_reo_status_queue_stats() argument [all …]
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt7915/ |
H A D | mcu.c | 418 static struct tlv * 422 struct tlv *ptlv, tlv = { in mt7915_mcu_add_nested_subtlv() local 428 memcpy(ptlv, &tlv, sizeof(tlv)); in mt7915_mcu_add_nested_subtlv() 486 struct tlv *tlv; in mt7915_mcu_bss_rfch_tlv() local 489 tlv = mt76_connac_mcu_add_tlv(skb, BSS_INFO_RF_CH, sizeof(*ch)); in mt7915_mcu_bss_rfch_tlv() 491 ch = (struct bss_info_rf_ch *)tlv; in mt7915_mcu_bss_rfch_tlv() 519 struct tlv *tlv; in mt7915_mcu_bss_ra_tlv() local 521 tlv = mt76_connac_mcu_add_tlv(skb, BSS_INFO_RA, sizeof(*ra)); in mt7915_mcu_bss_ra_tlv() 523 ra = (struct bss_info_ra *)tlv; in mt7915_mcu_bss_ra_tlv() 547 struct tlv *tlv; in mt7915_mcu_bss_he_tlv() local [all …]
|
/freebsd/sys/dev/qlnx/qlnxe/ |
H A D | ecore_mng_tlv.c | 1244 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/usr.sbin/ctld/ |
H A D | isns.c | 113 struct isns_tlv *tlv; in isns_req_add() local 117 isns_req_getspace(req, sizeof(*tlv) + vlen); in isns_req_add() 118 tlv = (struct isns_tlv *)&req->ir_buf[req->ir_usedlen]; in isns_req_add() 119 be32enc(tlv->it_tag, tag); in isns_req_add() 120 be32enc(tlv->it_length, vlen); in isns_req_add() 121 memcpy(tlv->it_value, value, len); in isns_req_add() 123 memset(&tlv->it_value[len], 0, vlen - len); in isns_req_add() 124 req->ir_usedlen += sizeof(*tlv) + vlen; in isns_req_add()
|
/freebsd/contrib/wpa/src/eap_server/ |
H A D | eap_server_fast.c | 1136 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 …]
|
H A D | eap_server_teap.c | 1361 struct eap_teap_tlv_parse *tlv) in eap_teap_parse_tlvs() argument 1368 os_memset(tlv, 0, sizeof(*tlv)); in eap_teap_parse_tlvs() 1388 res = eap_teap_parse_tlv(tlv, tlv_type, pos, len); in eap_teap_parse_tlvs() 1518 struct teap_attr_pac_type *tlv; in eap_teap_pac_type() local 1520 if (!pac || len != sizeof(*tlv)) in eap_teap_pac_type() 1523 tlv = (struct teap_attr_pac_type *) pac; in eap_teap_pac_type() 1525 return be_to_host16(tlv->type) == PAC_TYPE_PAC_TYPE && in eap_teap_pac_type() 1526 be_to_host16(tlv->length) == 2 && in eap_teap_pac_type() 1527 be_to_host16(tlv->pac_type) == type; in eap_teap_pac_type() 1535 struct eap_teap_tlv_parse tlv; in eap_teap_process_phase2_tlvs() local [all …]
|