/freebsd-11-stable/sys/dev/mlxfw/ |
H A D | mlxfw_mfa2_tlv_multi.c | 38 #define MLXFW_MFA2_TLV_TOTAL_SIZE(tlv) \ 39 NLA_ALIGN(sizeof(*(tlv)) + be16_to_cpu((tlv)->len)) 53 const struct mlxfw_mfa2_tlv *tlv) 59 tlv_len = MLXFW_MFA2_TLV_TOTAL_SIZE(tlv); 61 if (tlv->type == MLXFW_MFA2_TLV_MULTI_PART) { 62 multi = mlxfw_mfa2_tlv_multi_get(mfa2_file, tlv); 66 next = (const u8 *) tlv + tlv_len; 74 const struct mlxfw_mfa2_tlv *tlv; local 77 mlxfw_mfa2_tlv_foreach(mfa2_file, tlv, id 52 mlxfw_mfa2_tlv_next(const struct mlxfw_mfa2_file *mfa2_file, const struct mlxfw_mfa2_tlv *tlv) argument 88 const struct mlxfw_mfa2_tlv *tlv; local 109 const struct mlxfw_mfa2_tlv *tlv; local [all...] |
H A D | mlxfw_mfa2_tlv.h | 58 const struct mlxfw_mfa2_tlv *tlv, u8 payload_type, 63 tlv_top = (const u8 *) tlv + be16_to_cpu(tlv->len) - 1; 64 if (!mlxfw_mfa2_valid_ptr(mfa2_file, (const u8 *) tlv) || 67 if (tlv->type != payload_type) 69 if (varsize && (be16_to_cpu(tlv->len) < payload_size)) 71 if (!varsize && (be16_to_cpu(tlv->len) != payload_size)) 74 return tlv->data; 80 const struct mlxfw_mfa2_tlv *tlv) \ 82 return mlxfw_mfa2_tlv_payload_get(mfa2_file, tlv, \ 57 mlxfw_mfa2_tlv_payload_get(const struct mlxfw_mfa2_file *mfa2_file, const struct mlxfw_mfa2_tlv *tlv, u8 payload_type, size_t payload_size, bool varsize) argument [all...] |
H A D | mlxfw_mfa2_tlv_multi.h | 47 const struct mlxfw_mfa2_tlv *tlv); 63 #define mlxfw_mfa2_tlv_foreach(mfa2_file, tlv, idx, from_tlv, count) \ 64 for (idx = 0, tlv = from_tlv; idx < (count); \ 65 idx++, tlv = mlxfw_mfa2_tlv_next(mfa2_file, tlv)) 67 #define mlxfw_mfa2_tlv_multi_foreach(mfa2_file, tlv, idx, multi) \ 68 mlxfw_mfa2_tlv_foreach(mfa2_file, tlv, idx, \
|
H A D | mlxfw_mfa2.c | 53 * | | package descriptor tlv +-----> |num_devices=n | 58 * | | PSID tlv | | +-----------------+ 60 * | | component index tlv | | 65 * | | component descriptor tlv +-----> |Among others: | 128 const struct mlxfw_mfa2_tlv *tlv; local 132 mlxfw_mfa2_tlv_multi_foreach(mfa2_file, tlv, idx, multi) { 133 if (!tlv) { 149 const struct mlxfw_mfa2_tlv *tlv; local 165 /* Validate the device has PSID tlv */ 166 tlv 221 const struct mlxfw_mfa2_tlv *tlv; local 257 const struct mlxfw_mfa2_tlv *tlv; local 366 const struct mlxfw_mfa2_tlv *tlv; local [all...] |
/freebsd-11-stable/contrib/wpa/src/eap_common/ |
H A D | eap_fast_common.c | 148 int eap_fast_parse_tlv(struct eap_fast_tlv_parse *tlv, argument 155 if (tlv->eap_payload_tlv) { 158 tlv->iresult = EAP_TLV_RESULT_FAILURE; 161 tlv->eap_payload_tlv = pos; 162 tlv->eap_payload_tlv_len = len; 166 if (tlv->result) { 169 tlv->result = EAP_TLV_RESULT_FAILURE; 175 tlv->result = EAP_TLV_RESULT_FAILURE; 178 tlv->result = WPA_GET_BE16(pos); 179 if (tlv [all...] |
H A D | eap_teap_common.c | 417 int eap_teap_parse_tlv(struct eap_teap_tlv_parse *tlv, argument 423 if (tlv->result) { 426 tlv->result = TEAP_STATUS_FAILURE; 431 tlv->result = TEAP_STATUS_FAILURE; 434 tlv->result = WPA_GET_BE16(pos); 435 if (tlv->result != TEAP_STATUS_SUCCESS && 436 tlv->result != TEAP_STATUS_FAILURE) { 438 tlv->result); 439 tlv->result = TEAP_STATUS_FAILURE; 442 tlv [all...] |
H A D | eap_fast_common.h | 104 int eap_fast_parse_tlv(struct eap_fast_tlv_parse *tlv,
|
H A D | eap_teap_common.h | 210 int eap_teap_parse_tlv(struct eap_teap_tlv_parse *tlv,
|
/freebsd-11-stable/sys/dev/ixl/ |
H A D | i40e_dcb.c | 62 * @tlv: IEEE 802.1Qaz ETS CFG TLV 67 static void i40e_parse_ieee_etscfg_tlv(struct i40e_lldp_org_tlv *tlv, argument 71 u8 *buf = tlv->tlvinfo; 133 * @tlv: IEEE 802.1Qaz ETS REC TLV 138 static void i40e_parse_ieee_etsrec_tlv(struct i40e_lldp_org_tlv *tlv, argument 141 u8 *buf = tlv->tlvinfo; 188 * @tlv: IEEE 802.1Qaz PFC CFG TLV 193 static void i40e_parse_ieee_pfccfg_tlv(struct i40e_lldp_org_tlv *tlv, argument 196 u8 *buf = tlv->tlvinfo; 215 * @tlv 220 i40e_parse_ieee_app_tlv(struct i40e_lldp_org_tlv *tlv, struct i40e_dcbx_config *dcbcfg) argument 275 i40e_parse_ieee_tlv(struct i40e_lldp_org_tlv *tlv, struct i40e_dcbx_config *dcbcfg) argument 309 i40e_parse_cee_pgcfg_tlv(struct i40e_cee_feat_tlv *tlv, struct i40e_dcbx_config *dcbcfg) argument 362 i40e_parse_cee_pfccfg_tlv(struct i40e_cee_feat_tlv *tlv, struct i40e_dcbx_config *dcbcfg) argument 386 i40e_parse_cee_app_tlv(struct i40e_cee_feat_tlv *tlv, struct i40e_dcbx_config *dcbcfg) argument 441 i40e_parse_cee_tlv(struct i40e_lldp_org_tlv *tlv, struct i40e_dcbx_config *dcbcfg) argument 502 i40e_parse_org_tlv(struct i40e_lldp_org_tlv *tlv, struct i40e_dcbx_config *dcbcfg) argument 534 struct i40e_lldp_org_tlv *tlv; local 998 i40e_add_ieee_ets_tlv(struct i40e_lldp_org_tlv *tlv, struct i40e_dcbx_config *dcbcfg) argument 1073 i40e_add_ieee_etsrec_tlv(struct i40e_lldp_org_tlv *tlv, struct i40e_dcbx_config *dcbcfg) argument 1137 i40e_add_ieee_pfc_tlv(struct i40e_lldp_org_tlv *tlv, struct i40e_dcbx_config *dcbcfg) argument 1175 i40e_add_ieee_app_pri_tlv(struct i40e_lldp_org_tlv *tlv, struct i40e_dcbx_config *dcbcfg) argument 1225 i40e_add_dcb_tlv(struct i40e_lldp_org_tlv *tlv, struct i40e_dcbx_config *dcbcfg, u16 tlvid) argument 1293 struct i40e_lldp_org_tlv *tlv; local [all...] |
/freebsd-11-stable/contrib/tcpdump/ |
H A D | print-slow.c | 365 /* is the packet big enough to include the tlv header ? */ 368 /* did we capture enough for fully decoding the tlv header ? */ 395 /* is the packet big enough to include the tlv ? */ 398 /* did we capture enough for fully decoding the tlv ? */ 516 } tlv; local 567 tlv.slow_oam_info = (const struct slow_oam_info_t *)tptr; 569 if (tlv.slow_oam_info->info_length != 578 tlv.slow_oam_info->oam_version, 579 EXTRACT_16BITS(&tlv.slow_oam_info->revision))); 583 tlv [all...] |
H A D | print-nflog.c | 74 const nflog_tlv_t *tlv; local 105 tlv = (const nflog_tlv_t *) p; 106 size = tlv->tlv_length; 124 if (tlv->tlv_type == NFULA_PAYLOAD) {
|
H A D | print-hncp.c | 270 const u_char *tlv, *value; local 277 tlv = cp + i; 278 type = (uint8_t)tlv[0]; 279 optlen = (uint8_t)tlv[1]; 280 value = tlv + 2; 322 const u_char *tlv, *value; local 329 tlv = cp + i; 330 type = EXTRACT_16BITS(tlv); 331 optlen = EXTRACT_16BITS(tlv + 2); 332 value = tlv 413 const u_char *tlv, *value; local [all...] |
H A D | print-forces.c | 191 /* http://www.iana.org/assignments/forces/forces.xhtml#oper-tlv-types */ 392 #define TLV_RDAT_LEN(tlv) ((int)(EXTRACT_16BITS(&(tlv)->length) - TLV_SET_LEN(0)) 394 #define GO_NXT_TLV(tlv,rlen) ((rlen) -= F_ALN_LEN(EXTRACT_16BITS(&(tlv)->length)), \ 395 (const struct forces_tlv*)(((const char*)(tlv)) \ 396 + F_ALN_LEN(EXTRACT_16BITS(&(tlv)->length)))) 417 static inline u_int tlv_valid(const struct forces_tlv *tlv, u_int rlen) argument 421 if (EXTRACT_16BITS(&tlv->length) < TLV_HDRL) 423 if (EXTRACT_16BITS(&tlv 649 const struct forces_tlv *tlv = (const struct forces_tlv *)pptr; local 687 const struct forces_tlv *tlv = (const struct forces_tlv *)pptr; local 768 const struct forces_tlv *tlv = (const struct forces_tlv *)pptr; local 797 const struct forces_tlv *tlv = (const struct forces_tlv *)pptr; local 1442 const struct forces_tlv *tlv = (const struct forces_tlv *)pptr; local [all...] |
H A D | print-lldp.c | 1154 uint16_t tlv; local 1175 while (tlen >= sizeof(tlv)) { 1177 ND_TCHECK2(*tptr, sizeof(tlv)); 1179 tlv = EXTRACT_16BITS(tptr); 1181 tlv_type = LLDP_EXTRACT_TYPE(tlv); 1182 tlv_len = LLDP_EXTRACT_LEN(tlv); 1185 tlen -= sizeof(tlv); 1186 tptr += sizeof(tlv); 1198 /* decode every tlv */ 1424 uint16_t tlv, ca local [all...] |
/freebsd-11-stable/usr.sbin/ctld/ |
H A D | isns.c | 116 struct isns_tlv *tlv; local 120 isns_req_getspace(req, sizeof(*tlv) + vlen); 121 tlv = (struct isns_tlv *)&req->ir_buf[req->ir_usedlen]; 122 be32enc(tlv->it_tag, tag); 123 be32enc(tlv->it_length, vlen); 124 memcpy(tlv->it_value, value, len); 126 memset(&tlv->it_value[len], 0, vlen - len); 127 req->ir_usedlen += sizeof(*tlv) + vlen;
|
/freebsd-11-stable/contrib/wpa/src/eap_peer/ |
H A D | eap_teap.c | 1096 struct eap_teap_tlv_parse *tlv, 1104 os_memset(tlv, 0, sizeof(*tlv)); 1125 res = eap_teap_parse_tlv(tlv, tlv_type, pos, len); 1189 struct eap_teap_tlv_parse tlv; local 1193 if (eap_teap_parse_decrypted(decrypted, &tlv, &resp) < 0) { 1203 if (tlv.result == TEAP_STATUS_FAILURE) { 1215 if ((tlv.iresult == TEAP_STATUS_SUCCESS || 1217 tlv.result == TEAP_STATUS_SUCCESS)) && 1218 !tlv 1095 eap_teap_parse_decrypted(struct wpabuf *decrypted, struct eap_teap_tlv_parse *tlv, struct wpabuf **resp) argument 1468 u8 *tlv; local [all...] |
H A D | eap_fast.c | 1087 struct eap_fast_tlv_parse *tlv, 1094 os_memset(tlv, 0, sizeof(*tlv)); 1114 res = eap_fast_parse_tlv(tlv, tlv_type, pos, len); 1185 struct eap_fast_tlv_parse tlv; local 1188 if (eap_fast_parse_decrypted(decrypted, &tlv, &resp) < 0) 1194 if (tlv.result == EAP_TLV_RESULT_FAILURE) { 1200 if (tlv.iresult == EAP_TLV_RESULT_FAILURE) { 1206 if (tlv.crypto_binding) { 1208 tlv 1086 eap_fast_parse_decrypted(struct wpabuf *decrypted, struct eap_fast_tlv_parse *tlv, struct wpabuf **resp) argument 1402 u8 *tlv; local [all...] |
/freebsd-11-stable/contrib/wpa/src/eap_server/ |
H A D | eap_server_fast.c | 1132 struct eap_fast_tlv_parse *tlv) 1138 os_memset(tlv, 0, sizeof(*tlv)); 1157 res = eap_fast_parse_tlv(tlv, tlv_type, pos, len); 1238 struct eap_tlv_pac_type_tlv *tlv; local 1240 if (pac == NULL || len != sizeof(*tlv)) 1243 tlv = (struct eap_tlv_pac_type_tlv *) pac; 1245 return be_to_host16(tlv->tlv_type) == PAC_TYPE_PAC_TYPE && 1246 be_to_host16(tlv->length) == 2 && 1247 be_to_host16(tlv 1131 eap_fast_parse_tlvs(struct wpabuf *data, struct eap_fast_tlv_parse *tlv) argument 1255 struct eap_fast_tlv_parse tlv; local [all...] |
H A D | eap_server_teap.c | 1206 struct eap_teap_tlv_parse *tlv) 1213 os_memset(tlv, 0, sizeof(*tlv)); 1233 res = eap_teap_parse_tlv(tlv, tlv_type, pos, len); 1363 struct teap_attr_pac_type *tlv; local 1365 if (!pac || len != sizeof(*tlv)) 1368 tlv = (struct teap_attr_pac_type *) pac; 1370 return be_to_host16(tlv->type) == PAC_TYPE_PAC_TYPE && 1371 be_to_host16(tlv->length) == 2 && 1372 be_to_host16(tlv 1205 eap_teap_parse_tlvs(struct wpabuf *data, struct eap_teap_tlv_parse *tlv) argument 1380 struct eap_teap_tlv_parse tlv; local [all...] |
/freebsd-11-stable/sys/dev/qlnx/qlnxe/ |
H A D | ecore_mng_tlv.c | 1247 struct ecore_drv_tlv_hdr tlv; local 1261 OSAL_MEMSET(&tlv, 0, sizeof(tlv)); 1263 offset += sizeof(tlv) + sizeof(u32) * tlv.tlv_length) { 1265 tlv.tlv_type = TLV_TYPE(p_tlv); 1266 tlv.tlv_length = TLV_LENGTH(p_tlv); 1267 tlv.tlv_flags = TLV_FLAGS(p_tlv); 1270 "Type %d length = %d flags = 0x%x\n", tlv.tlv_type, 1271 tlv 1306 struct ecore_drv_tlv_hdr tlv; local [all...] |
H A D | ecore_vf.c | 66 DP_VERBOSE(p_hwfn, ECORE_MSG_IOV, "preparing to send %s tlv over vf pf channel\n", 81 /* Init first tlv header */ 221 /* clear mailbox and prep first tlv */ 224 /* add list termination tlv */ 313 /* clear mailbox and prep first tlv */ 353 /* add list termination tlv */ 808 /* add list termination tlv */ 846 /* clear mailbox and prep first tlv */ 877 /* add list termination tlv */ 925 /* clear mailbox and prep first tlv */ 1196 ecore_vf_handle_vp_update_is_needed(struct ecore_hwfn *p_hwfn, struct ecore_sp_vport_update_params *p_data, u16 tlv) argument 1238 u16 tlv; local 1266 u16 size, tlv; local [all...] |
H A D | ecore_sriov.c | 61 "CHANNEL_TLV_NONE", /* ends tlv sequence */ 1307 u16 tlv) 1313 /* vf->op_current = tlv; @@@TBD MichalK */ 1316 if (ecore_iov_tlv_supported(tlv)) 1321 ecore_channel_tlvs_string[tlv]); 1326 vf->abs_vf_id, tlv); 1360 /* place a given tlv on the tlv buffer, continuing current tlv list */ 1371 /* Return a pointer to the start of the added tlv */ 1305 ecore_iov_lock_vf_pf_channel(struct ecore_hwfn *p_hwfn, struct ecore_vf_info *vf, u16 tlv) argument 1379 struct channel_tlv *tlv; local 2952 u16 tlv = CHANNEL_TLV_VPORT_UPDATE_ACTIVATE; local 2974 u16 tlv = CHANNEL_TLV_VPORT_UPDATE_VLAN_STRIP; local 2999 u16 tlv = CHANNEL_TLV_VPORT_UPDATE_TX_SWITCH; local 3026 u16 tlv = CHANNEL_TLV_VPORT_UPDATE_MCAST; local 3047 u16 tlv = CHANNEL_TLV_VPORT_UPDATE_ACCEPT_PARAM; local 3069 u16 tlv = CHANNEL_TLV_VPORT_UPDATE_ACCEPT_ANY_VLAN; local 3092 u16 tlv = CHANNEL_TLV_VPORT_UPDATE_RSS; local 3158 u16 tlv = CHANNEL_TLV_VPORT_UPDATE_SGE_TPA; local [all...] |
/freebsd-11-stable/contrib/libpcap/ |
H A D | pcap-common.c | 1507 nflog_tlv_t *tlv; local 1528 tlv = (nflog_tlv_t *) p; 1531 tlv->tlv_type = SWAPSHORT(tlv->tlv_type); 1532 tlv->tlv_length = SWAPSHORT(tlv->tlv_length); 1535 size = tlv->tlv_length;
|
/freebsd-11-stable/sys/net/ |
H A D | ieee8023ad_lacp.h | 109 #define TLV_SET(tlv, type, length) \ 111 (tlv)->tlv_type = (type); \ 112 (tlv)->tlv_length = sizeof(*tlv) + (length); \
|
/freebsd-11-stable/contrib/wpa/wpa_supplicant/dbus/ |
H A D | dbus_new_handlers_p2p.c | 2775 struct wpabuf *tlv = NULL; local 2803 } else if (os_strcmp(entry.key, "tlv") == 0) { 2807 tlv = wpabuf_alloc_copy(entry.bytearray_value, 2831 if (tlv == NULL) 2833 ref = wpas_p2p_sd_request(wpa_s, addr, tlv); 2834 wpabuf_free(tlv); 2852 if (tlv) 2853 wpabuf_free(tlv); 2867 struct wpabuf *tlv = NULL; local 2895 tlv [all...] |