Lines Matching refs:tlv
9 #define MLXFW_MFA2_TLV_TOTAL_SIZE(tlv) \
10 NLA_ALIGN(sizeof(*(tlv)) + be16_to_cpu((tlv)->len))
24 const struct mlxfw_mfa2_tlv *tlv)
30 tlv_len = MLXFW_MFA2_TLV_TOTAL_SIZE(tlv);
32 if (tlv->type == MLXFW_MFA2_TLV_MULTI_PART) {
33 multi = mlxfw_mfa2_tlv_multi_get(mfa2_file, tlv);
39 next = (void *) tlv + tlv_len;
47 const struct mlxfw_mfa2_tlv *tlv;
50 mlxfw_mfa2_tlv_foreach(mfa2_file, tlv, idx, from_tlv, count)
51 if (!tlv)
53 return tlv;
61 const struct mlxfw_mfa2_tlv *tlv;
65 mlxfw_mfa2_tlv_multi_foreach(mfa2_file, tlv, idx, multi) {
66 if (!tlv) {
70 if (tlv->type == type)
72 return tlv;
82 const struct mlxfw_mfa2_tlv *tlv;
86 mlxfw_mfa2_tlv_multi_foreach(mfa2_file, tlv, idx, multi) {
87 if (!tlv) {
92 if (tlv->type == type)