Home
last modified time | relevance | path

Searched refs:attrtype (Results 1 – 25 of 30) sorted by relevance

12

/linux/drivers/net/ethernet/rocker/
H A Drocker_tlv.h136 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 Drocker_tlv.c33 int attrtype, int attrlen, const void *data) in rocker_tlv_put() argument
44 tlv->type = attrtype; in rocker_tlv_put()
/linux/include/net/
H A Dife.h14 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 Dgarp.h17 u8 attrtype; member
H A Dmrp.h16 u8 attrtype; member
H A Dvxlan.h531 static inline void vxlan_flag_attr_error(int attrtype, in vxlan_flag_attr_error() argument
539 switch (attrtype) { in vxlan_flag_attr_error()
/linux/lib/
H A Dnlattr.c745 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/devlink/
H A Dhealth.c14 int attrtype; member
734 static void devlink_fmsg_nest_common(struct devlink_fmsg *fmsg, int attrtype) in devlink_fmsg_nest_common() argument
747 item->attrtype = attrtype; in devlink_fmsg_nest_common()
793 item->attrtype = DEVLINK_ATTR_FMSG_OBJ_NAME; in devlink_fmsg_put_name()
870 item->attrtype = DEVLINK_ATTR_FMSG_OBJ_VALUE_DATA; in devlink_fmsg_put_value()
992 int attrtype = DEVLINK_ATTR_FMSG_OBJ_VALUE_DATA; in devlink_fmsg_item_fill_data() local
1000 return nla_put_u8(skb, attrtype, tmp); in devlink_fmsg_item_fill_data()
1002 return nla_put_u8(skb, attrtype, *(u8 *)msg->value); in devlink_fmsg_item_fill_data()
1004 return nla_put_u32(skb, attrtype, *(u32 *)msg->value); in devlink_fmsg_item_fill_data()
1006 return devlink_nl_put_u64(skb, attrtype, *(u64 *)msg->value); in devlink_fmsg_item_fill_data()
[all …]
H A Ddevl_internal.h150 u32 rel_index, int attrtype,
227 static inline int devlink_nl_put_u64(struct sk_buff *msg, int attrtype, u64 val) in devlink_nl_put_u64() argument
229 return nla_put_u64_64bit(msg, attrtype, val, DEVLINK_ATTR_PAD); in devlink_nl_put_u64()
233 struct devlink *devlink, int attrtype);
H A Dnetlink.c144 struct devlink *devlink, int attrtype) in devlink_nl_put_nested_handle() argument
149 nested_attr = nla_nest_start(msg, attrtype); in devlink_nl_put_nested_handle()
H A Dcore.c232 u32 rel_index, int attrtype, in devlink_rel_devlink_handle_put() argument
242 err = devlink_nl_put_nested_handle(msg, net, rel_devlink, attrtype); in devlink_rel_devlink_handle_put()
/linux/net/ethtool/
H A Dbitset.c233 int ethnl_put_bitset32(struct sk_buff *skb, int attrtype, const u32 *val, in ethnl_put_bitset32() argument
240 nest = nla_nest_start(skb, attrtype); in ethnl_put_bitset32()
775 int ethnl_put_bitset(struct sk_buff *skb, int attrtype, in ethnl_put_bitset() argument
803 ret = ethnl_put_bitset32(skb, attrtype, val32, mask32, nbits, names, in ethnl_put_bitset()
857 int ethnl_put_bitset(struct sk_buff *skb, int attrtype, in ethnl_put_bitset() argument
862 return ethnl_put_bitset32(skb, attrtype, (const u32 *)val, in ethnl_put_bitset()
H A Dnetlink.h18 u16 attrtype);
50 static inline int ethnl_put_strz(struct sk_buff *skb, u16 attrtype, in ethnl_put_strz() argument
56 attr = nla_reserve(skb, attrtype, len + 1); in ethnl_put_strz()
/linux/net/802/
H A Dmrp.c369 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()
779 if (mrp_cb(skb)->mh->attrtype == 0 || in mrp_pdu_parse_msg()
780 mrp_cb(skb)->mh->attrtype > app->app->maxattr || in mrp_pdu_parse_msg()
/linux/drivers/net/
H A Dgeneve.c2130 int attrtype; in geneve_nl2info() local
2134 attrtype = IFLA_GENEVE_COLLECT_METADATA; in geneve_nl2info()
2151 attrtype = IFLA_GENEVE_REMOTE; in geneve_nl2info()
2170 attrtype = IFLA_GENEVE_REMOTE6; in geneve_nl2info()
2204 attrtype = IFLA_GENEVE_LOCAL; in geneve_nl2info()
2227 attrtype = IFLA_GENEVE_LOCAL6; in geneve_nl2info()
2269 attrtype = IFLA_GENEVE_ID; in geneve_nl2info()
2303 attrtype = IFLA_GENEVE_PORT; in geneve_nl2info()
2313 attrtype = IFLA_GENEVE_PORT_RANGE; in geneve_nl2info()
2323 attrtype = IFLA_GENEVE_UDP_CSUM; in geneve_nl2info()
[all …]
H A Dmacsec.c1555 static int nla_put_sci(struct sk_buff *skb, int attrtype, sci_t value, in nla_put_sci() argument
1558 return nla_put_u64_64bit(skb, attrtype, (__force u64)value, padattr); in nla_put_sci()
1566 static int nla_put_ssci(struct sk_buff *skb, int attrtype, ssci_t value) in nla_put_ssci() argument
1568 return nla_put_u32(skb, attrtype, (__force u64)value); in nla_put_ssci()
/linux/net/openvswitch/
H A Dflow_netlink.h60 int ovs_nla_add_action(struct sw_flow_actions **sfa, int attrtype,
H A Dflow_netlink.c2458 int attrtype, void *data, int len, bool log) in __add_action() argument
2466 a->nla_type = attrtype; in __add_action()
2476 int ovs_nla_add_action(struct sw_flow_actions **sfa, int attrtype, void *data, in ovs_nla_add_action() argument
2481 a = __add_action(sfa, attrtype, data, len, log); in ovs_nla_add_action()
2487 int attrtype, bool log) in add_nested_action_start() argument
2492 err = ovs_nla_add_action(sfa, attrtype, NULL, 0, log); in add_nested_action_start()
/linux/include/linux/
H A Dsock_diag.h52 struct sk_buff *skb, int attrtype);
/linux/net/ipv6/
H A Drpl_iptunnel.c324 static int nla_put_rpl_srh(struct sk_buff *skb, int attrtype, in nla_put_rpl_srh() argument
333 nla = nla_reserve(skb, attrtype, len); in nla_put_rpl_srh()
H A Dseg6_iptunnel.c75 static int nla_put_srh(struct sk_buff *skb, int attrtype, in nla_put_srh() argument
84 nla = nla_reserve(skb, attrtype, len); in nla_put_srh()
/linux/fs/btrfs/
H A Dsend.c719 #define TLV_PUT(sctx, attrtype, data, attrlen) \ argument
721 ret = tlv_put(sctx, attrtype, data, attrlen); \
726 #define TLV_PUT_INT(sctx, attrtype, bits, value) \ argument
728 ret = tlv_put_u##bits(sctx, attrtype, value); \
733 #define TLV_PUT_U8(sctx, attrtype, data) TLV_PUT_INT(sctx, attrtype, 8, data) argument
734 #define TLV_PUT_U16(sctx, attrtype, data) TLV_PUT_INT(sctx, attrtype, 16, data) argument
735 #define TLV_PUT_U32(sctx, attrtype, data) TLV_PUT_INT(sctx, attrtype, 32, data) argument
736 #define TLV_PUT_U64(sctx, attrtype, data) TLV_PUT_INT(sctx, attrtype, 64, data) argument
737 #define TLV_PUT_STRING(sctx, attrtype, str, len) \ argument
739 ret = tlv_put_string(sctx, attrtype, str, len); \
[all …]
/linux/net/batman-adv/
H A Dnetlink.c166 static int batadv_netlink_get_ifindex(const struct nlmsghdr *nlh, int attrtype) in batadv_netlink_get_ifindex() argument
168 struct nlattr *attr = nlmsg_find_attr(nlh, GENL_HDRLEN, attrtype); in batadv_netlink_get_ifindex()
/linux/net/core/
H A Dfib_rules.c252 static int nla_put_port_range(struct sk_buff *skb, int attrtype, in nla_put_port_range() argument
255 return nla_put(skb, attrtype, sizeof(*range), range); in nla_put_port_range()
/linux/drivers/net/vxlan/
H A Dvxlan_core.c4040 int attrtype, unsigned long mask, bool changelink, in vxlan_nl2flag() argument
4046 if (!tb[attrtype]) in vxlan_nl2flag()
4050 vxlan_flag_attr_error(attrtype, extack); in vxlan_nl2flag()
4054 if (vxlan_policy[attrtype].type == NLA_FLAG) in vxlan_nl2flag()
4056 else if (nla_get_u8(tb[attrtype])) in vxlan_nl2flag()

12