Lines Matching refs:EXTRACT_16BITS
160 #define ForCES_BLN(forcesh) ((uint32_t)(EXTRACT_16BITS(&(forcesh)->fm_len) << 2))
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)), \
396 + F_ALN_LEN(EXTRACT_16BITS(&(tlv)->length))))
421 if (EXTRACT_16BITS(&tlv->length) < TLV_HDRL) in tlv_valid()
423 if (EXTRACT_16BITS(&tlv->length) > rlen) in tlv_valid()
425 if (rlen < F_ALN_LEN(EXTRACT_16BITS(&tlv->length))) in tlv_valid()
698 type = EXTRACT_16BITS(&tlv->type); in fdatatlv_print()
779 type = EXTRACT_16BITS(&tlv->type); in sdatatlv_print()
810 type = EXTRACT_16BITS(&kdtlv->type); in pkeyitlv_print()
816 EXTRACT_16BITS(&kdtlv->length))); in pkeyitlv_print()
824 tll = EXTRACT_16BITS(&kdtlv->length); in pkeyitlv_print()
901 tll = EXTRACT_16BITS(&keytlv->length); in pdatacnt_print()
927 type = EXTRACT_16BITS(&pdtlv->type); in pdatacnt_print()
932 EXTRACT_16BITS(&pdtlv->length))); in pdatacnt_print()
940 tll = EXTRACT_16BITS(&pdtlv->length) - TLV_HDRL; in pdatacnt_print()
941 aln = F_ALN_LEN(EXTRACT_16BITS(&pdtlv->length)); in pdatacnt_print()
942 if (aln > EXTRACT_16BITS(&pdtlv->length)) { in pdatacnt_print()
946 type, EXTRACT_16BITS(&pdtlv->length), aln - len)); in pdatacnt_print()
948 pad = aln - EXTRACT_16BITS(&pdtlv->length); in pdatacnt_print()
957 ib, ops->s, EXTRACT_16BITS(&pdtlv->length), tll, pad)); in pdatacnt_print()
960 ib, ops->s, EXTRACT_16BITS(&pdtlv->length), tll)); in pdatacnt_print()
972 type, EXTRACT_16BITS(&pdtlv->length))); in pdatacnt_print()
974 if (EXTRACT_16BITS(&pdtlv->length)) { in pdatacnt_print()
1006 ib, EXTRACT_16BITS(&pdh->pflags), EXTRACT_16BITS(&pdh->pIDcnt))); in pdata_print()
1009 if (EXTRACT_16BITS(&pdh->pflags) & F_SELKEY) { in pdata_print()
1014 if (EXTRACT_16BITS(&pdh->pflags) & F_SELTABRANGE) { in pdata_print()
1018 if (EXTRACT_16BITS(&pdh->pflags) & F_TABAPPEND) { in pdata_print()
1024 idcnt = EXTRACT_16BITS(&pdh->pIDcnt); in pdata_print()
1066 type = EXTRACT_16BITS(&pdtlv->type); in genoptlv_print()
1067 tll = EXTRACT_16BITS(&pdtlv->length) - TLV_HDRL; in genoptlv_print()
1070 tok2str(ForCES_TLV, NULL, type), type, EXTRACT_16BITS(&pdtlv->length))); in genoptlv_print()
1081 EXTRACT_16BITS(&pdtlv->length))); in genoptlv_print()
1087 EXTRACT_16BITS(&pdtlv->length), tll)); in genoptlv_print()
1125 type = EXTRACT_16BITS(&pdtlv->type); in recpdoptlv_print()
1127 tll = EXTRACT_16BITS(&pdtlv->length) - TLV_HDRL; in recpdoptlv_print()
1132 EXTRACT_16BITS(&pdtlv->length), in recpdoptlv_print()
1133 EXTRACT_16BITS(&pdtlv->length) - TLV_HDRL)); in recpdoptlv_print()
1143 EXTRACT_16BITS(&pdtlv->type), len - EXTRACT_16BITS(&pdtlv->length))); in recpdoptlv_print()
1185 type = EXTRACT_16BITS(&otlv->type); in otlv_print()
1186 tll = EXTRACT_16BITS(&otlv->length) - TLV_HDRL; in otlv_print()
1190 EXTRACT_16BITS(&otlv->length))); in otlv_print()
1195 EXTRACT_16BITS(&otlv->length))); in otlv_print()
1473 if (EXTRACT_16BITS(&tlv->type) == F_TLV_METD) { in redirect_print()
1475 EXTRACT_16BITS(&tlv->length), 0, indent); in redirect_print()
1476 } else if ((EXTRACT_16BITS(&tlv->type) == F_TLV_REDD)) { in redirect_print()
1478 EXTRACT_16BITS(&tlv->length), 0, indent); in redirect_print()
1481 EXTRACT_16BITS(&tlv->type), in redirect_print()
1482 EXTRACT_16BITS(&tlv->length))); in redirect_print()
1491 EXTRACT_16BITS(&tlv->type), in redirect_print()
1492 rlen - EXTRACT_16BITS(&tlv->length))); in redirect_print()
1558 if (op_valid(EXTRACT_16BITS(&otlv->type), op_msk)) { in lfbselect_print()
1565 EXTRACT_16BITS(&otlv->type), EXTRACT_16BITS(&otlv->length))); in lfbselect_print()
1574 EXTRACT_16BITS(&otlv->type), rlen - EXTRACT_16BITS(&otlv->length))); in lfbselect_print()
1636 if (!ttlv_valid(EXTRACT_16BITS(&tltlv->type))) { in forces_type_print()
1638 EXTRACT_16BITS(&tltlv->type))); in forces_type_print()
1644 tok2str(ForCES_TLV, NULL, EXTRACT_16BITS(&tltlv->type)), in forces_type_print()
1645 EXTRACT_16BITS(&tltlv->length), in forces_type_print()
1646 EXTRACT_16BITS(&tltlv->length) - TLV_HDRL)); in forces_type_print()
1649 EXTRACT_16BITS(&tltlv->length), tops->op_msk, 9); in forces_type_print()
1664 TLV_HDRL, rlen, EXTRACT_16BITS(&tltlv->length))); in forces_type_print()