Lines Matching refs:tlv
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;
77 mlxfw_mfa2_tlv_foreach(mfa2_file, tlv, idx, from_tlv, count)
78 if (!tlv)
80 return tlv;
88 const struct mlxfw_mfa2_tlv *tlv;
92 mlxfw_mfa2_tlv_multi_foreach(mfa2_file, tlv, idx, multi) {
93 if (!tlv) {
97 if (tlv->type == type)
99 return tlv;
109 const struct mlxfw_mfa2_tlv *tlv;
113 mlxfw_mfa2_tlv_multi_foreach(mfa2_file, tlv, idx, multi) {
114 if (!tlv) {
119 if (tlv->type == type)