Home
last modified time | relevance | path

Searched refs:NLA_ALIGN (Results 1 – 9 of 9) sorted by relevance

/freebsd/sys/dev/mlxfw/
H A Dmlxfw_mfa2_tlv_multi.c37 NLA_ALIGN(sizeof(*(tlv)) + be16_to_cpu((tlv)->len))
45 multi_len = NLA_ALIGN(sizeof(struct mlxfw_mfa2_tlv_multi)); in mlxfw_mfa2_tlv_multi_child()
63 tlv_len = NLA_ALIGN(tlv_len + be16_to_cpu(multi->total_len)); in mlxfw_mfa2_tlv_next()
H A Dmlxfw.h38 #define NLA_ALIGN(len) (((len) + NLA_ALIGNTO - 1) & ~(NLA_ALIGNTO - 1)) macro
H A Dmlxfw_mfa2.c303 first_tlv_ptr = (const u8 *) fw->data + NLA_ALIGN(mlxfw_mfa2_fingerprint_len); in mlxfw_mfa2_file_init()
337 mfa2_file->cb = (const u8 *) fw->data + NLA_ALIGN(be32_to_cpu(pd->cb_offset)); in mlxfw_mfa2_file_init()
/freebsd/sys/netlink/
H A Dnetlink_ctl.h49 #define NLA_ALIGN(_len) _roundup2(_len, NLA_ALIGN_SIZE) macro
60 #define NLA_NEXT(_attr) (struct nlattr *)((char *)_attr + NLA_ALIGN(_attr->nla_len))
66 _attr = (_len -= NLA_ALIGN(_attr->nla_len), NLA_NEXT(_attr)))
H A Dnetlink.h263 #define NLA_ALIGN(_len) NL_ITEM_ALIGN(_len) macro
H A Dnetlink_message_writer.h213 #define nlmsg_reserve_attr(_ns, _at, _t) ((_t *)_nlmsg_reserve_attr(_ns, _at, NLA_ALIGN(sizeof(_t))))
H A Dnetlink_message_writer.c366 required_len = NLA_ALIGN(attr_len + sizeof(struct nlattr)); in nlattr_add()
H A Dnetlink_snl.h62 #define NLA_NEXT(_attr) (struct nlattr *)(void *)((char *)_attr + NLA_ALIGN(_attr->nla_len))
1130 int required_len = NLA_ALIGN(attr_len + sizeof(struct nlattr)); in snl_add_msg_attr()
/freebsd/tests/sys/netlink/
H A Dnetlink_socket.c265 nla = (struct nlattr *)((char *)nla + NLA_ALIGN(nla->nla_len))) { in nla_RTA_DST()