attrtype 44 drivers/block/drbd/drbd_nla.c struct nlattr *drbd_nla_find_nested(int maxtype, struct nlattr *nla, int attrtype) attrtype 55 drivers/block/drbd/drbd_nla.c return nla_find_nested(nla, attrtype); attrtype 7 drivers/block/drbd/drbd_nla.h extern struct nlattr *drbd_nla_find_nested(int maxtype, struct nlattr *nla, int attrtype); attrtype 154 drivers/infiniband/core/addr.c int attrtype; attrtype 159 drivers/infiniband/core/addr.c attrtype = RDMA_NLA_F_MANDATORY | LS_NLA_TYPE_IPV4; attrtype 162 drivers/infiniband/core/addr.c attrtype = RDMA_NLA_F_MANDATORY | LS_NLA_TYPE_IPV6; attrtype 182 drivers/infiniband/core/addr.c nla_put(skb, attrtype, size, daddr); attrtype 33 drivers/net/ethernet/rocker/rocker_tlv.c int attrtype, int attrlen, const void *data) attrtype 44 drivers/net/ethernet/rocker/rocker_tlv.c tlv->type = attrtype; attrtype 136 drivers/net/ethernet/rocker/rocker_tlv.h int attrtype, int attrlen, const void *data); attrtype 139 drivers/net/ethernet/rocker/rocker_tlv.h rocker_tlv_put_u8(struct rocker_desc_info *desc_info, int attrtype, u8 value) attrtype 143 drivers/net/ethernet/rocker/rocker_tlv.h return rocker_tlv_put(desc_info, attrtype, sizeof(u8), &tmp); attrtype 147 drivers/net/ethernet/rocker/rocker_tlv.h rocker_tlv_put_u16(struct rocker_desc_info *desc_info, int attrtype, u16 value) attrtype 151 drivers/net/ethernet/rocker/rocker_tlv.h return rocker_tlv_put(desc_info, attrtype, sizeof(u16), &tmp); attrtype 155 drivers/net/ethernet/rocker/rocker_tlv.h rocker_tlv_put_be16(struct rocker_desc_info *desc_info, int attrtype, __be16 value) attrtype 159 drivers/net/ethernet/rocker/rocker_tlv.h return rocker_tlv_put(desc_info, attrtype, sizeof(__be16), &tmp); attrtype 163 drivers/net/ethernet/rocker/rocker_tlv.h rocker_tlv_put_u32(struct rocker_desc_info *desc_info, int attrtype, u32 value) attrtype 167 drivers/net/ethernet/rocker/rocker_tlv.h return rocker_tlv_put(desc_info, attrtype, sizeof(u32), &tmp); attrtype 171 drivers/net/ethernet/rocker/rocker_tlv.h rocker_tlv_put_be32(struct rocker_desc_info *desc_info, int attrtype, __be32 value) attrtype 175 drivers/net/ethernet/rocker/rocker_tlv.h return rocker_tlv_put(desc_info, attrtype, sizeof(__be32), &tmp); attrtype 179 drivers/net/ethernet/rocker/rocker_tlv.h rocker_tlv_put_u64(struct rocker_desc_info *desc_info, int attrtype, u64 value) attrtype 183 drivers/net/ethernet/rocker/rocker_tlv.h return rocker_tlv_put(desc_info, attrtype, sizeof(u64), &tmp); attrtype 187 drivers/net/ethernet/rocker/rocker_tlv.h rocker_tlv_nest_start(struct rocker_desc_info *desc_info, int attrtype) attrtype 191 drivers/net/ethernet/rocker/rocker_tlv.h if (rocker_tlv_put(desc_info, attrtype, 0, NULL) < 0) attrtype 1333 drivers/net/geneve.c int attrtype; attrtype 1343 drivers/net/geneve.c attrtype = IFLA_GENEVE_REMOTE; attrtype 1360 drivers/net/geneve.c attrtype = IFLA_GENEVE_REMOTE6; attrtype 1400 drivers/net/geneve.c attrtype = IFLA_GENEVE_ID; attrtype 1434 drivers/net/geneve.c attrtype = IFLA_GENEVE_PORT; attrtype 1442 drivers/net/geneve.c attrtype = IFLA_GENEVE_COLLECT_METADATA; attrtype 1450 drivers/net/geneve.c attrtype = IFLA_GENEVE_UDP_CSUM; attrtype 1460 drivers/net/geneve.c attrtype = IFLA_GENEVE_UDP_ZERO_CSUM6_TX; attrtype 1475 drivers/net/geneve.c attrtype = IFLA_GENEVE_UDP_ZERO_CSUM6_RX; attrtype 1489 drivers/net/geneve.c NL_SET_ERR_MSG_ATTR(extack, data[attrtype], attrtype 1480 drivers/net/macsec.c static int nla_put_sci(struct sk_buff *skb, int attrtype, sci_t value, attrtype 1483 drivers/net/macsec.c return nla_put_u64_64bit(skb, attrtype, (__force u64)value, padattr); attrtype 3662 drivers/net/vxlan.c int attrtype, unsigned long mask, bool changelink, attrtype 3668 drivers/net/vxlan.c if (!tb[attrtype]) attrtype 3672 drivers/net/vxlan.c vxlan_flag_attr_error(attrtype, extack); attrtype 3676 drivers/net/vxlan.c if (vxlan_policy[attrtype].type == NLA_FLAG) attrtype 3678 drivers/net/vxlan.c else if (nla_get_u8(tb[attrtype])) attrtype 628 fs/btrfs/send.c #define TLV_PUT(sctx, attrtype, data, attrlen) \ attrtype 630 fs/btrfs/send.c ret = tlv_put(sctx, attrtype, data, attrlen); \ attrtype 635 fs/btrfs/send.c #define TLV_PUT_INT(sctx, attrtype, bits, value) \ attrtype 637 fs/btrfs/send.c ret = tlv_put_u##bits(sctx, attrtype, value); \ attrtype 642 fs/btrfs/send.c #define TLV_PUT_U8(sctx, attrtype, data) TLV_PUT_INT(sctx, attrtype, 8, data) attrtype 643 fs/btrfs/send.c #define TLV_PUT_U16(sctx, attrtype, data) TLV_PUT_INT(sctx, attrtype, 16, data) attrtype 644 fs/btrfs/send.c #define TLV_PUT_U32(sctx, attrtype, data) TLV_PUT_INT(sctx, attrtype, 32, data) attrtype 645 fs/btrfs/send.c #define TLV_PUT_U64(sctx, attrtype, data) TLV_PUT_INT(sctx, attrtype, 64, data) attrtype 646 fs/btrfs/send.c #define TLV_PUT_STRING(sctx, attrtype, str, len) \ attrtype 648 fs/btrfs/send.c ret = tlv_put_string(sctx, attrtype, str, len); \ attrtype 652 fs/btrfs/send.c #define TLV_PUT_PATH(sctx, attrtype, p) \ attrtype 654 fs/btrfs/send.c ret = tlv_put_string(sctx, attrtype, p->start, \ attrtype 659 fs/btrfs/send.c #define TLV_PUT_UUID(sctx, attrtype, uuid) \ attrtype 661 fs/btrfs/send.c ret = tlv_put_uuid(sctx, attrtype, uuid); \ attrtype 665 fs/btrfs/send.c #define TLV_PUT_BTRFS_TIMESPEC(sctx, attrtype, eb, ts) \ attrtype 667 fs/btrfs/send.c ret = tlv_put_btrfs_timespec(sctx, attrtype, eb, ts); \ attrtype 66 include/linux/genl_magic_struct.h static inline int nla_put_u64_0pad(struct sk_buff *skb, int attrtype, u64 value) attrtype 68 include/linux/genl_magic_struct.h return nla_put_64bit(skb, attrtype, sizeof(u64), &value, 0); attrtype 34 include/linux/sock_diag.h struct sk_buff *skb, int attrtype); attrtype 15 include/net/garp.h u8 attrtype; attrtype 14 include/net/ife.h void *ife_tlv_meta_decode(void *skbdata, const void *ifehdr_end, u16 *attrtype, attrtype 16 include/net/ife.h int ife_tlv_meta_encode(void *skbdata, u16 attrtype, u16 dlen, attrtype 33 include/net/ife.h static inline void *ife_tlv_meta_decode(void *skbdata, u16 *attrtype, u16 *dlen, attrtype 39 include/net/ife.h static inline int ife_tlv_meta_encode(void *skbdata, u16 attrtype, u16 dlen, attrtype 12 include/net/mrp.h u8 attrtype; attrtype 441 include/net/netlink.h struct nlattr *nla_find(const struct nlattr *head, int len, int attrtype); attrtype 447 include/net/netlink.h struct nlattr *__nla_reserve(struct sk_buff *skb, int attrtype, int attrlen); attrtype 448 include/net/netlink.h struct nlattr *__nla_reserve_64bit(struct sk_buff *skb, int attrtype, attrtype 451 include/net/netlink.h struct nlattr *nla_reserve(struct sk_buff *skb, int attrtype, int attrlen); attrtype 452 include/net/netlink.h struct nlattr *nla_reserve_64bit(struct sk_buff *skb, int attrtype, attrtype 455 include/net/netlink.h void __nla_put(struct sk_buff *skb, int attrtype, int attrlen, attrtype 457 include/net/netlink.h void __nla_put_64bit(struct sk_buff *skb, int attrtype, int attrlen, attrtype 460 include/net/netlink.h int nla_put(struct sk_buff *skb, int attrtype, int attrlen, const void *data); attrtype 461 include/net/netlink.h int nla_put_64bit(struct sk_buff *skb, int attrtype, int attrlen, attrtype 739 include/net/netlink.h int hdrlen, int attrtype) attrtype 742 include/net/netlink.h nlmsg_attrlen(nlh, hdrlen), attrtype); attrtype 1122 include/net/netlink.h nla_find_nested(const struct nlattr *nla, int attrtype) attrtype 1124 include/net/netlink.h return nla_find(nla_data(nla), nla_len(nla), attrtype); attrtype 1176 include/net/netlink.h static inline int nla_put_u8(struct sk_buff *skb, int attrtype, u8 value) attrtype 1181 include/net/netlink.h return nla_put(skb, attrtype, sizeof(u8), &tmp); attrtype 1190 include/net/netlink.h static inline int nla_put_u16(struct sk_buff *skb, int attrtype, u16 value) attrtype 1194 include/net/netlink.h return nla_put(skb, attrtype, sizeof(u16), &tmp); attrtype 1203 include/net/netlink.h static inline int nla_put_be16(struct sk_buff *skb, int attrtype, __be16 value) attrtype 1207 include/net/netlink.h return nla_put(skb, attrtype, sizeof(__be16), &tmp); attrtype 1216 include/net/netlink.h static inline int nla_put_net16(struct sk_buff *skb, int attrtype, __be16 value) attrtype 1220 include/net/netlink.h return nla_put_be16(skb, attrtype | NLA_F_NET_BYTEORDER, tmp); attrtype 1229 include/net/netlink.h static inline int nla_put_le16(struct sk_buff *skb, int attrtype, __le16 value) attrtype 1233 include/net/netlink.h return nla_put(skb, attrtype, sizeof(__le16), &tmp); attrtype 1242 include/net/netlink.h static inline int nla_put_u32(struct sk_buff *skb, int attrtype, u32 value) attrtype 1246 include/net/netlink.h return nla_put(skb, attrtype, sizeof(u32), &tmp); attrtype 1255 include/net/netlink.h static inline int nla_put_be32(struct sk_buff *skb, int attrtype, __be32 value) attrtype 1259 include/net/netlink.h return nla_put(skb, attrtype, sizeof(__be32), &tmp); attrtype 1268 include/net/netlink.h static inline int nla_put_net32(struct sk_buff *skb, int attrtype, __be32 value) attrtype 1272 include/net/netlink.h return nla_put_be32(skb, attrtype | NLA_F_NET_BYTEORDER, tmp); attrtype 1281 include/net/netlink.h static inline int nla_put_le32(struct sk_buff *skb, int attrtype, __le32 value) attrtype 1285 include/net/netlink.h return nla_put(skb, attrtype, sizeof(__le32), &tmp); attrtype 1295 include/net/netlink.h static inline int nla_put_u64_64bit(struct sk_buff *skb, int attrtype, attrtype 1300 include/net/netlink.h return nla_put_64bit(skb, attrtype, sizeof(u64), &tmp, padattr); attrtype 1310 include/net/netlink.h static inline int nla_put_be64(struct sk_buff *skb, int attrtype, __be64 value, attrtype 1315 include/net/netlink.h return nla_put_64bit(skb, attrtype, sizeof(__be64), &tmp, padattr); attrtype 1325 include/net/netlink.h static inline int nla_put_net64(struct sk_buff *skb, int attrtype, __be64 value, attrtype 1330 include/net/netlink.h return nla_put_be64(skb, attrtype | NLA_F_NET_BYTEORDER, tmp, attrtype 1341 include/net/netlink.h static inline int nla_put_le64(struct sk_buff *skb, int attrtype, __le64 value, attrtype 1346 include/net/netlink.h return nla_put_64bit(skb, attrtype, sizeof(__le64), &tmp, padattr); attrtype 1355 include/net/netlink.h static inline int nla_put_s8(struct sk_buff *skb, int attrtype, s8 value) attrtype 1359 include/net/netlink.h return nla_put(skb, attrtype, sizeof(s8), &tmp); attrtype 1368 include/net/netlink.h static inline int nla_put_s16(struct sk_buff *skb, int attrtype, s16 value) attrtype 1372 include/net/netlink.h return nla_put(skb, attrtype, sizeof(s16), &tmp); attrtype 1381 include/net/netlink.h static inline int nla_put_s32(struct sk_buff *skb, int attrtype, s32 value) attrtype 1385 include/net/netlink.h return nla_put(skb, attrtype, sizeof(s32), &tmp); attrtype 1395 include/net/netlink.h static inline int nla_put_s64(struct sk_buff *skb, int attrtype, s64 value, attrtype 1400 include/net/netlink.h return nla_put_64bit(skb, attrtype, sizeof(s64), &tmp, padattr); attrtype 1409 include/net/netlink.h static inline int nla_put_string(struct sk_buff *skb, int attrtype, attrtype 1412 include/net/netlink.h return nla_put(skb, attrtype, strlen(str) + 1, str); attrtype 1420 include/net/netlink.h static inline int nla_put_flag(struct sk_buff *skb, int attrtype) attrtype 1422 include/net/netlink.h return nla_put(skb, attrtype, 0, NULL); attrtype 1432 include/net/netlink.h static inline int nla_put_msecs(struct sk_buff *skb, int attrtype, attrtype 1437 include/net/netlink.h return nla_put_64bit(skb, attrtype, sizeof(u64), &tmp, padattr); attrtype 1447 include/net/netlink.h static inline int nla_put_in_addr(struct sk_buff *skb, int attrtype, attrtype 1452 include/net/netlink.h return nla_put_be32(skb, attrtype, tmp); attrtype 1462 include/net/netlink.h static inline int nla_put_in6_addr(struct sk_buff *skb, int attrtype, attrtype 1465 include/net/netlink.h return nla_put(skb, attrtype, sizeof(*addr), addr); attrtype 1683 include/net/netlink.h int attrtype) attrtype 1687 include/net/netlink.h if (nla_put(skb, attrtype, 0, NULL) < 0) attrtype 1703 include/net/netlink.h static inline struct nlattr *nla_nest_start(struct sk_buff *skb, int attrtype) attrtype 1705 include/net/netlink.h return nla_nest_start_noflag(skb, attrtype | NLA_F_NESTED); attrtype 459 include/net/vxlan.h static inline void vxlan_flag_attr_error(int attrtype, attrtype 467 include/net/vxlan.h switch (attrtype) { attrtype 491 lib/nlattr.c struct nlattr *nla_find(const struct nlattr *head, int len, int attrtype) attrtype 497 lib/nlattr.c if (nla_type(nla) == attrtype) attrtype 636 lib/nlattr.c struct nlattr *__nla_reserve(struct sk_buff *skb, int attrtype, int attrlen) attrtype 641 lib/nlattr.c nla->nla_type = attrtype; attrtype 664 lib/nlattr.c struct nlattr *__nla_reserve_64bit(struct sk_buff *skb, int attrtype, attrtype 670 lib/nlattr.c return __nla_reserve(skb, attrtype, attrlen); attrtype 702 lib/nlattr.c struct nlattr *nla_reserve(struct sk_buff *skb, int attrtype, int attrlen) attrtype 707 lib/nlattr.c return __nla_reserve(skb, attrtype, attrlen); attrtype 725 lib/nlattr.c struct nlattr *nla_reserve_64bit(struct sk_buff *skb, int attrtype, int attrlen, attrtype 737 lib/nlattr.c return __nla_reserve_64bit(skb, attrtype, attrlen, padattr); attrtype 770 lib/nlattr.c void __nla_put(struct sk_buff *skb, int attrtype, int attrlen, attrtype 775 lib/nlattr.c nla = __nla_reserve(skb, attrtype, attrlen); attrtype 791 lib/nlattr.c void __nla_put_64bit(struct sk_buff *skb, int attrtype, int attrlen, attrtype 796 lib/nlattr.c nla = __nla_reserve_64bit(skb, attrtype, attrlen, padattr); attrtype 829 lib/nlattr.c int nla_put(struct sk_buff *skb, int attrtype, int attrlen, const void *data) attrtype 834 lib/nlattr.c __nla_put(skb, attrtype, attrlen, data); attrtype 850 lib/nlattr.c int nla_put_64bit(struct sk_buff *skb, int attrtype, int attrlen, attrtype 862 lib/nlattr.c __nla_put_64bit(skb, attrtype, attrlen, data, padattr); attrtype 262 net/802/garp.c static int garp_pdu_append_msg(struct garp_applicant *app, u8 attrtype) attrtype 269 net/802/garp.c gm->attrtype = attrtype; attrtype 270 net/802/garp.c garp_cb(app->pdu)->cur_type = attrtype; attrtype 426 net/802/garp.c u8 attrtype) attrtype 444 net/802/garp.c if (attrtype > app->app->maxattr) attrtype 471 net/802/garp.c attr = garp_attr_lookup(app, ga->data, dlen, attrtype); attrtype 485 net/802/garp.c if (gm->attrtype == 0) attrtype 490 net/802/garp.c if (garp_pdu_parse_attr(app, skb, gm->attrtype) < 0) attrtype 355 net/802/mrp.c u8 attrtype, u8 attrlen) attrtype 369 net/802/mrp.c mh->attrtype = attrtype; attrtype 409 net/802/mrp.c mrp_cb(app->pdu)->mh->attrtype != attr->type || attrtype 639 net/802/mrp.c mrp_cb(skb)->mh->attrtype); attrtype 752 net/802/mrp.c if (mrp_cb(skb)->mh->attrtype == 0 || attrtype 753 net/802/mrp.c mrp_cb(skb)->mh->attrtype > app->app->maxattr || attrtype 163 net/batman-adv/netlink.c batadv_netlink_get_ifindex(const struct nlmsghdr *nlh, int attrtype) attrtype 165 net/batman-adv/netlink.c struct nlattr *attr = nlmsg_find_attr(nlh, GENL_HDRLEN, attrtype); attrtype 18 net/batman-adv/netlink.h int batadv_netlink_get_ifindex(const struct nlmsghdr *nlh, int attrtype); attrtype 704 net/bridge/br_netlink.c int attrtype, unsigned long mask) attrtype 709 net/bridge/br_netlink.c if (!tb[attrtype]) attrtype 712 net/bridge/br_netlink.c if (nla_get_u8(tb[attrtype])) attrtype 4121 net/core/devlink.c int attrtype; attrtype 4156 net/core/devlink.c int attrtype) attrtype 4164 net/core/devlink.c item->attrtype = attrtype; attrtype 4202 net/core/devlink.c item->attrtype = DEVLINK_ATTR_FMSG_OBJ_NAME; attrtype 4279 net/core/devlink.c item->attrtype = DEVLINK_ATTR_FMSG_OBJ_VALUE_DATA; attrtype 4470 net/core/devlink.c int attrtype = DEVLINK_ATTR_FMSG_OBJ_VALUE_DATA; attrtype 4478 net/core/devlink.c return nla_put_u8(skb, attrtype, tmp); attrtype 4480 net/core/devlink.c return nla_put_u8(skb, attrtype, *(u8 *) msg->value); attrtype 4482 net/core/devlink.c return nla_put_u32(skb, attrtype, *(u32 *) msg->value); attrtype 4484 net/core/devlink.c return nla_put_u64_64bit(skb, attrtype, *(u64 *) msg->value, attrtype 4487 net/core/devlink.c return nla_put_string(skb, attrtype, (char *) &msg->value); attrtype 4489 net/core/devlink.c return nla_put(skb, attrtype, msg->len, (void *) &msg->value); attrtype 4514 net/core/devlink.c switch (item->attrtype) { attrtype 4519 net/core/devlink.c err = nla_put_flag(skb, item->attrtype); attrtype 4528 net/core/devlink.c err = nla_put_string(skb, item->attrtype, attrtype 239 net/core/fib_rules.c static int nla_put_port_range(struct sk_buff *skb, int attrtype, attrtype 242 net/core/fib_rules.c return nla_put(skb, attrtype, sizeof(*range), range); attrtype 60 net/core/sock_diag.c int sock_diag_put_meminfo(struct sock *sk, struct sk_buff *skb, int attrtype) attrtype 66 net/core/sock_diag.c return nla_put(skb, attrtype, sizeof(mem), &mem); attrtype 71 net/core/sock_diag.c struct sk_buff *skb, int attrtype) attrtype 80 net/core/sock_diag.c nla_reserve(skb, attrtype, 0); attrtype 95 net/core/sock_diag.c attr = nla_reserve(skb, attrtype, flen); attrtype 126 net/ife/ife.c void *ife_tlv_meta_decode(void *skbdata, const void *ifehdr_end, u16 *attrtype, attrtype 136 net/ife/ife.c *attrtype = ntohs(tlv->type); attrtype 158 net/ife/ife.c int ife_tlv_meta_encode(void *skbdata, u16 attrtype, u16 dlen, const void *dval) attrtype 163 net/ife/ife.c u32 htlv = attrtype << 16 | (dlen + NLA_HDRLEN); attrtype 5537 net/ipv6/addrconf.c static void snmp6_fill_stats(u64 *stats, struct inet6_dev *idev, int attrtype, attrtype 5540 net/ipv6/addrconf.c switch (attrtype) { attrtype 50 net/ipv6/seg6_iptunnel.c static int nla_put_srh(struct sk_buff *skb, int attrtype, attrtype 59 net/ipv6/seg6_iptunnel.c nla = nla_reserve(skb, attrtype, len); attrtype 1678 net/mpls/af_mpls.c int nla_put_labels(struct sk_buff *skb, int attrtype, attrtype 1685 net/mpls/af_mpls.c nla = nla_reserve(skb, attrtype, labels*4); attrtype 204 net/mpls/internal.h int nla_put_labels(struct sk_buff *skb, int attrtype, u8 labels, attrtype 145 net/netfilter/nf_conntrack_netlink.c static int ctnetlink_dump_zone_id(struct sk_buff *skb, int attrtype, attrtype 150 net/netfilter/nf_conntrack_netlink.c if (nla_put_be16(skb, attrtype, htons(zone->id))) attrtype 2356 net/openvswitch/flow_netlink.c int attrtype, void *data, int len, bool log) attrtype 2364 net/openvswitch/flow_netlink.c a->nla_type = attrtype; attrtype 2374 net/openvswitch/flow_netlink.c int ovs_nla_add_action(struct sw_flow_actions **sfa, int attrtype, void *data, attrtype 2379 net/openvswitch/flow_netlink.c a = __add_action(sfa, attrtype, data, len, log); attrtype 2385 net/openvswitch/flow_netlink.c int attrtype, bool log) attrtype 2390 net/openvswitch/flow_netlink.c err = ovs_nla_add_action(sfa, attrtype, NULL, 0, log); attrtype 60 net/openvswitch/flow_netlink.h int ovs_nla_add_action(struct sw_flow_actions **sfa, int attrtype, attrtype 994 net/wireless/nl80211.c int attrtype) attrtype 1004 net/wireless/nl80211.c txqattr = nla_nest_start_noflag(msg, attrtype);