Home
last modified time | relevance | path

Searched refs:attrtype (Results 1 – 25 of 27) 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.h533 static inline void vxlan_flag_attr_error(int attrtype, in vxlan_flag_attr_error() argument
541 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/ife/
H A Dife.c127 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/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 …]
/linux/net/802/
H A Dgarp.c276 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 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()
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/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 Dmm.c85 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()
/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.c73 static int nla_put_srh(struct sk_buff *skb, int attrtype, in nla_put_srh() argument
82 nla = nla_reserve(skb, attrtype, len); in nla_put_srh()
/linux/net/bridge/
H A Dbr_netlink.c931 int attrtype, unsigned long mask) in br_set_port_flag() argument
933 if (!tb[attrtype]) in br_set_port_flag()
936 if (nla_get_u8(tb[attrtype])) in br_set_port_flag()
/linux/net/core/
H A Dfib_rules.c254 static int nla_put_port_range(struct sk_buff *skb, int attrtype, in nla_put_port_range() argument
257 return nla_put(skb, attrtype, sizeof(*range), range); in nla_put_port_range()
/linux/drivers/net/vxlan/
H A Dvxlan_core.c4027 int attrtype, unsigned long mask, bool changelink, in vxlan_nl2flag() argument
4033 if (!tb[attrtype]) in vxlan_nl2flag()
4037 vxlan_flag_attr_error(attrtype, extack); in vxlan_nl2flag()
4041 if (vxlan_policy[attrtype].type == NLA_FLAG) in vxlan_nl2flag()
4043 else if (nla_get_u8(tb[attrtype])) in vxlan_nl2flag()
/linux/drivers/net/
H A Dmacsec.c1554 static int nla_put_sci(struct sk_buff *skb, int attrtype, sci_t value, in nla_put_sci() argument
1557 return nla_put_u64_64bit(skb, attrtype, (__force u64)value, padattr); in nla_put_sci()
1565 static int nla_put_ssci(struct sk_buff *skb, int attrtype, ssci_t value) in nla_put_ssci() argument
1567 return nla_put_u32(skb, attrtype, (__force u64)value); in nla_put_ssci()
/linux/net/sched/
H A Dsch_taprio.c2317 static int taprio_put_stat(struct sk_buff *skb, u64 val, u16 attrtype) in taprio_put_stat() argument
2321 if (nla_put_u64_64bit(skb, attrtype, val, TCA_TAPRIO_OFFLOAD_STATS_PAD)) in taprio_put_stat()
/linux/net/mpls/
H A Daf_mpls.c1743 int nla_put_labels(struct sk_buff *skb, int attrtype, in nla_put_labels() argument
1750 nla = nla_reserve(skb, attrtype, labels*4); in nla_put_labels()
/linux/net/netfilter/
H A Dnf_conntrack_netlink.c153 static int ctnetlink_dump_zone_id(struct sk_buff *skb, int attrtype, in ctnetlink_dump_zone_id() argument
158 if (nla_put_be16(skb, attrtype, htons(zone->id))) in ctnetlink_dump_zone_id()

12