| /linux/include/net/ |
| H A D | netlink.h | 548 struct nlattr *nla_find(const struct nlattr *head, int len, int attrtype); 554 struct nlattr *__nla_reserve(struct sk_buff *skb, int attrtype, int attrlen); 555 struct nlattr *__nla_reserve_64bit(struct sk_buff *skb, int attrtype, 558 struct nlattr *nla_reserve(struct sk_buff *skb, int attrtype, int attrlen); 559 struct nlattr *nla_reserve_64bit(struct sk_buff *skb, int attrtype, 562 void __nla_put(struct sk_buff *skb, int attrtype, int attrlen, 564 void __nla_put_64bit(struct sk_buff *skb, int attrtype, int attrlen, 567 int nla_put(struct sk_buff *skb, int attrtype, int attrlen, const void *data); 568 int nla_put_64bit(struct sk_buff *skb, int attrtype, int attrlen, 864 int hdrlen, int attrtype) in nlmsg_find_attr() argument [all …]
|
| H A D | ife.h | 14 void *ife_tlv_meta_decode(void *skbdata, const void *ifehdr_end, u16 *attrtype, 16 int ife_tlv_meta_encode(void *skbdata, u16 attrtype, u16 dlen, 33 static inline void *ife_tlv_meta_decode(void *skbdata, u16 *attrtype, u16 *dlen, in ife_tlv_meta_decode() argument 39 static inline int ife_tlv_meta_encode(void *skbdata, u16 attrtype, u16 dlen, in ife_tlv_meta_encode() argument
|
| H A D | garp.h | 17 u8 attrtype; member
|
| H A D | mrp.h | 16 u8 attrtype; member
|
| H A D | vxlan.h | 533 static inline void vxlan_flag_attr_error(int attrtype, in vxlan_flag_attr_error() argument 541 switch (attrtype) { in vxlan_flag_attr_error()
|
| /linux/drivers/net/ethernet/rocker/ |
| H A D | rocker_tlv.h | 136 int attrtype, int attrlen, const void *data); 139 rocker_tlv_put_u8(struct rocker_desc_info *desc_info, int attrtype, u8 value) in rocker_tlv_put_u8() argument 143 return rocker_tlv_put(desc_info, attrtype, sizeof(u8), &tmp); in rocker_tlv_put_u8() 147 rocker_tlv_put_u16(struct rocker_desc_info *desc_info, int attrtype, u16 value) in rocker_tlv_put_u16() argument 151 return rocker_tlv_put(desc_info, attrtype, sizeof(u16), &tmp); in rocker_tlv_put_u16() 155 rocker_tlv_put_be16(struct rocker_desc_info *desc_info, int attrtype, __be16 value) in rocker_tlv_put_be16() argument 159 return rocker_tlv_put(desc_info, attrtype, sizeof(__be16), &tmp); in rocker_tlv_put_be16() 163 rocker_tlv_put_u32(struct rocker_desc_info *desc_info, int attrtype, u32 value) in rocker_tlv_put_u32() argument 167 return rocker_tlv_put(desc_info, attrtype, sizeof(u32), &tmp); in rocker_tlv_put_u32() 171 rocker_tlv_put_be32(struct rocker_desc_info *desc_info, int attrtype, __be32 value) in rocker_tlv_put_be32() argument [all …]
|
| H A D | rocker_tlv.c | 33 int attrtype, int attrlen, const void *data) in rocker_tlv_put() argument 44 tlv->type = attrtype; in rocker_tlv_put()
|
| /linux/lib/ |
| H A D | nlattr.c | 745 struct nlattr *nla_find(const struct nlattr *head, int len, int attrtype) in nla_find() argument 751 if (nla_type(nla) == attrtype) in nla_find() 902 struct nlattr *__nla_reserve(struct sk_buff *skb, int attrtype, int attrlen) in __nla_reserve() argument 907 nla->nla_type = attrtype; in __nla_reserve() 930 struct nlattr *__nla_reserve_64bit(struct sk_buff *skb, int attrtype, in __nla_reserve_64bit() argument 935 return __nla_reserve(skb, attrtype, attrlen); in __nla_reserve_64bit() 967 struct nlattr *nla_reserve(struct sk_buff *skb, int attrtype, int attrlen) in nla_reserve() argument 972 return __nla_reserve(skb, attrtype, attrlen); in nla_reserve() 990 struct nlattr *nla_reserve_64bit(struct sk_buff *skb, int attrtype, int attrlen, in nla_reserve_64bit() argument 1002 return __nla_reserve_64bit(skb, attrtype, attrlen, padattr); in nla_reserve_64bit() [all …]
|
| /linux/net/ife/ |
| H A D | ife.c | 127 void *ife_tlv_meta_decode(void *skbdata, const void *ifehdr_end, u16 *attrtype, in ife_tlv_meta_decode() argument 137 *attrtype = ntohs(tlv->type); in ife_tlv_meta_decode() 159 int ife_tlv_meta_encode(void *skbdata, u16 attrtype, u16 dlen, const void *dval) in ife_tlv_meta_encode() argument 164 u32 htlv = attrtype << 16 | (dlen + NLA_HDRLEN); in ife_tlv_meta_encode()
|
| /linux/net/802/ |
| H A D | garp.c | 276 static int garp_pdu_append_msg(struct garp_applicant *app, u8 attrtype) in garp_pdu_append_msg() argument 283 gm->attrtype = attrtype; in garp_pdu_append_msg() 284 garp_cb(app->pdu)->cur_type = attrtype; in garp_pdu_append_msg() 440 u8 attrtype) in garp_pdu_parse_attr() argument 458 if (attrtype > app->app->maxattr) in garp_pdu_parse_attr() 485 attr = garp_attr_lookup(app, ga->data, dlen, attrtype); in garp_pdu_parse_attr() 499 if (gm->attrtype == 0) in garp_pdu_parse_msg() 504 if (garp_pdu_parse_attr(app, skb, gm->attrtype) < 0) in garp_pdu_parse_msg()
|
| H A D | mrp.c | 369 u8 attrtype, u8 attrlen) in mrp_pdu_append_msg_hdr() argument 383 mh->attrtype = attrtype; in mrp_pdu_append_msg_hdr() 423 mrp_cb(app->pdu)->mh->attrtype != attr->type || in mrp_pdu_append_vecattr_event() 657 mrp_cb(skb)->mh->attrtype); in mrp_pdu_parse_vecattr_event() 770 if (mrp_cb(skb)->mh->attrtype == 0 || in mrp_pdu_parse_msg() 771 mrp_cb(skb)->mh->attrtype > app->app->maxattr || in mrp_pdu_parse_msg()
|
| /linux/drivers/block/drbd/ |
| H A D | drbd_nla.c | 44 struct nlattr *drbd_nla_find_nested(int maxtype, struct nlattr *nla, int attrtype) in drbd_nla_find_nested() argument 55 return nla_find_nested(nla, attrtype); in drbd_nla_find_nested()
|
| H A D | drbd_nla.h | 7 extern struct nlattr *drbd_nla_find_nested(int maxtype, struct nlattr *nla, int attrtype);
|
| /linux/net/ethtool/ |
| H A D | bitset.h | 16 int ethnl_put_bitset(struct sk_buff *skb, int attrtype, 20 int ethnl_put_bitset32(struct sk_buff *skb, int attrtype, const u32 *val,
|
| H A D | bitset.c | 232 int ethnl_put_bitset32(struct sk_buff *skb, int attrtype, const u32 *val, in ethnl_put_bitset32() argument 239 nest = nla_nest_start(skb, attrtype); in ethnl_put_bitset32() 774 int ethnl_put_bitset(struct sk_buff *skb, int attrtype, in ethnl_put_bitset() argument 802 ret = ethnl_put_bitset32(skb, attrtype, val32, mask32, nbits, names, in ethnl_put_bitset() 856 int ethnl_put_bitset(struct sk_buff *skb, int attrtype, in ethnl_put_bitset() argument 861 return ethnl_put_bitset32(skb, attrtype, (const u32 *)val, in ethnl_put_bitset()
|
| H A D | netlink.h | 19 u16 attrtype); 44 * @attrtype: attribute type 51 static inline int ethnl_put_strz(struct sk_buff *skb, u16 attrtype, in ethnl_put_strz() argument 57 attr = nla_reserve(skb, attrtype, len + 1); in ethnl_put_strz()
|
| H A D | pause.c | 106 static int ethtool_put_stat(struct sk_buff *skb, u64 val, u16 attrtype, in ethtool_put_stat() argument 111 if (nla_put_u64_64bit(skb, attrtype, val, padtype)) in ethtool_put_stat()
|
| H A D | mm.c | 85 static int mm_put_stat(struct sk_buff *skb, u64 val, u16 attrtype) in mm_put_stat() argument 89 if (nla_put_u64_64bit(skb, attrtype, val, ETHTOOL_A_MM_STAT_PAD)) in mm_put_stat()
|
| H A D | tsinfo.c | 176 static int tsinfo_put_stat(struct sk_buff *skb, u64 val, u16 attrtype) in tsinfo_put_stat() 180 if (nla_put_uint(skb, attrtype, val)) in tsinfo_put_stats() 170 tsinfo_put_stat(struct sk_buff * skb,u64 val,u16 attrtype) tsinfo_put_stat() argument
|
| /linux/include/linux/ |
| H A D | genl_magic_struct.h | 64 static inline int nla_put_u64_0pad(struct sk_buff *skb, int attrtype, u64 value) in nla_put_u64_0pad() argument 66 return nla_put_64bit(skb, attrtype, sizeof(u64), &value, 0); in nla_put_u64_0pad()
|
| H A D | sock_diag.h | 52 struct sk_buff *skb, int attrtype);
|
| /linux/net/openvswitch/ |
| H A D | flow_netlink.h | 60 int ovs_nla_add_action(struct sw_flow_actions **sfa, int attrtype,
|
| /linux/net/devlink/ |
| H A D | netlink.c | 134 struct devlink *devlink, int attrtype) in devlink_nl_put_nested_handle() argument 139 nested_attr = nla_nest_start(msg, attrtype); in devlink_nl_put_nested_handle()
|
| /linux/net/ipv6/ |
| H A D | rpl_iptunnel.c | 315 static int nla_put_rpl_srh(struct sk_buff *skb, int attrtype, in nla_put_rpl_srh() argument 324 nla = nla_reserve(skb, attrtype, len); in nla_put_rpl_srh()
|
| /linux/fs/btrfs/ |
| H A D | send.c | 717 #define TLV_PUT(sctx, attrtype, data, attrlen) \ argument 719 ret = tlv_put(sctx, attrtype, data, attrlen); \ 724 #define TLV_PUT_INT(sctx, attrtype, bits, value) \ argument 726 ret = tlv_put_u##bits(sctx, attrtype, value); \ 731 #define TLV_PUT_U8(sctx, attrtype, data) TLV_PUT_INT(sctx, attrtype, 8, data) argument 732 #define TLV_PUT_U16(sctx, attrtype, data) TLV_PUT_INT(sctx, attrtype, 16, data) argument 733 #define TLV_PUT_U32(sctx, attrtype, data) TLV_PUT_INT(sctx, attrtype, 32, data) argument 734 #define TLV_PUT_U64(sctx, attrtype, data) TLV_PUT_INT(sctx, attrtype, 64, data) argument 735 #define TLV_PUT_STRING(sctx, attrtype, str, len) \ argument 737 ret = tlv_put_string(sctx, attrtype, str, len); \ [all …]
|