attrlen 33 drivers/net/ethernet/rocker/rocker_tlv.c int attrtype, int attrlen, const void *data) attrlen 36 drivers/net/ethernet/rocker/rocker_tlv.c int total_size = rocker_tlv_total_size(attrlen); attrlen 45 drivers/net/ethernet/rocker/rocker_tlv.c tlv->len = rocker_tlv_attr_size(attrlen); attrlen 46 drivers/net/ethernet/rocker/rocker_tlv.c memcpy(rocker_tlv_data(tlv), data, attrlen); attrlen 47 drivers/net/ethernet/rocker/rocker_tlv.c memset((char *) tlv + tlv->len, 0, rocker_tlv_padlen(attrlen)); attrlen 136 drivers/net/ethernet/rocker/rocker_tlv.h int attrtype, int attrlen, const void *data); attrlen 628 fs/btrfs/send.c #define TLV_PUT(sctx, attrtype, data, attrlen) \ attrlen 630 fs/btrfs/send.c ret = tlv_put(sctx, attrtype, data, attrlen); \ attrlen 108 fs/nfs/callback_xdr.c unsigned int attrlen; attrlen 113 fs/nfs/callback_xdr.c attrlen = ntohl(*p); attrlen 114 fs/nfs/callback_xdr.c p = xdr_inline_decode(xdr, attrlen << 2); attrlen 117 fs/nfs/callback_xdr.c if (likely(attrlen > 0)) attrlen 119 fs/nfs/callback_xdr.c if (attrlen > 1) attrlen 1601 fs/nfs/nfs4xdr.c uint32_t attrlen = 0; attrlen 1620 fs/nfs/nfs4xdr.c attrlen = i+1; attrlen 1626 fs/nfs/nfs4xdr.c p = reserve_space(xdr, 12 + (attrlen << 2)); attrlen 1629 fs/nfs/nfs4xdr.c *p++ = cpu_to_be32(attrlen); attrlen 1630 fs/nfs/nfs4xdr.c for (i = 0; i < attrlen; i++) attrlen 3251 fs/nfs/nfs4xdr.c static int decode_attr_length(struct xdr_stream *xdr, uint32_t *attrlen, unsigned int *savep) attrlen 3258 fs/nfs/nfs4xdr.c *attrlen = be32_to_cpup(p); attrlen 4207 fs/nfs/nfs4xdr.c static int verify_attr_len(struct xdr_stream *xdr, unsigned int savep, uint32_t attrlen) attrlen 4209 fs/nfs/nfs4xdr.c unsigned int attrwords = XDR_QUADLEN(attrlen); attrlen 4354 fs/nfs/nfs4xdr.c uint32_t attrlen, bitmap[3] = {0}; attrlen 4361 fs/nfs/nfs4xdr.c if ((status = decode_attr_length(xdr, &attrlen, &savep)) != 0) attrlen 4377 fs/nfs/nfs4xdr.c status = verify_attr_len(xdr, savep, attrlen); attrlen 4386 fs/nfs/nfs4xdr.c uint32_t attrlen, bitmap[3] = {0}; attrlen 4393 fs/nfs/nfs4xdr.c if ((status = decode_attr_length(xdr, &attrlen, &savep)) != 0) attrlen 4414 fs/nfs/nfs4xdr.c status = verify_attr_len(xdr, savep, attrlen); attrlen 4423 fs/nfs/nfs4xdr.c uint32_t attrlen, bitmap[3] = {0}; attrlen 4430 fs/nfs/nfs4xdr.c if ((status = decode_attr_length(xdr, &attrlen, &savep)) != 0) attrlen 4438 fs/nfs/nfs4xdr.c status = verify_attr_len(xdr, savep, attrlen); attrlen 4466 fs/nfs/nfs4xdr.c uint32_t bitmap[3] = {0,}, attrlen; attrlen 4481 fs/nfs/nfs4xdr.c status = decode_attr_length(xdr, &attrlen, &savep); attrlen 4500 fs/nfs/nfs4xdr.c status = verify_attr_len(xdr, savep, attrlen); attrlen 4680 fs/nfs/nfs4xdr.c uint32_t attrlen, attrlen 4692 fs/nfs/nfs4xdr.c status = decode_attr_length(xdr, &attrlen, &savep); attrlen 4701 fs/nfs/nfs4xdr.c status = verify_attr_len(xdr, savep, attrlen); attrlen 4816 fs/nfs/nfs4xdr.c uint32_t attrlen, bitmap[3]; attrlen 4823 fs/nfs/nfs4xdr.c if ((status = decode_attr_length(xdr, &attrlen, &savep)) != 0) attrlen 4861 fs/nfs/nfs4xdr.c status = verify_attr_len(xdr, savep, attrlen); attrlen 5282 fs/nfs/nfs4xdr.c uint32_t attrlen, attrlen 5298 fs/nfs/nfs4xdr.c if ((status = decode_attr_length(xdr, &attrlen, &savep)) != 0) attrlen 5309 fs/nfs/nfs4xdr.c res->acl_len = attrlen; attrlen 5316 fs/nfs/nfs4xdr.c attrlen, xdr->nwords << 2); attrlen 2416 fs/nfsd/nfs4xdr.c __be32 attrlen; attrlen 2920 fs/nfsd/nfs4xdr.c attrlen = htonl(xdr->buf->len - attrlen_offset - 4); attrlen 2921 fs/nfsd/nfs4xdr.c write_bytes_to_xdr_buf(xdr->buf, attrlen_offset, &attrlen, 4); attrlen 34 fs/xfs/libxfs/xfs_attr_remote.c int attrlen) attrlen 38 fs/xfs/libxfs/xfs_attr_remote.c return (attrlen + buflen - 1) / buflen; attrlen 40 fs/xfs/libxfs/xfs_attr_remote.c return XFS_B_TO_FSB(mp, attrlen); attrlen 9 fs/xfs/libxfs/xfs_attr_remote.h int xfs_attr3_rmt_blocks(struct xfs_mount *mp, int attrlen); attrlen 13 include/net/mrp.h u8 attrlen; attrlen 447 include/net/netlink.h struct nlattr *__nla_reserve(struct sk_buff *skb, int attrtype, int attrlen); attrlen 449 include/net/netlink.h int attrlen, int padattr); attrlen 450 include/net/netlink.h void *__nla_reserve_nohdr(struct sk_buff *skb, int attrlen); attrlen 451 include/net/netlink.h struct nlattr *nla_reserve(struct sk_buff *skb, int attrtype, int attrlen); attrlen 453 include/net/netlink.h int attrlen, int padattr); attrlen 454 include/net/netlink.h void *nla_reserve_nohdr(struct sk_buff *skb, int attrlen); attrlen 455 include/net/netlink.h void __nla_put(struct sk_buff *skb, int attrtype, int attrlen, attrlen 457 include/net/netlink.h void __nla_put_64bit(struct sk_buff *skb, int attrtype, int attrlen, attrlen 459 include/net/netlink.h void __nla_put_nohdr(struct sk_buff *skb, int attrlen, const void *data); attrlen 460 include/net/netlink.h int nla_put(struct sk_buff *skb, int attrtype, int attrlen, const void *data); attrlen 461 include/net/netlink.h int nla_put_64bit(struct sk_buff *skb, int attrtype, int attrlen, attrlen 463 include/net/netlink.h int nla_put_nohdr(struct sk_buff *skb, int attrlen, const void *data); attrlen 464 include/net/netlink.h int nla_append(struct sk_buff *skb, int attrlen, const void *data); attrlen 41 include/uapi/linux/netfilter/nfnetlink_compat.h #define NFA_NEXT(nfa,attrlen) ((attrlen) -= NFA_ALIGN((nfa)->nfa_len), \ attrlen 193 include/uapi/linux/rtnetlink.h #define RTA_NEXT(rta,attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), \ attrlen 163 lib/nlattr.c int minlen = 0, attrlen = nla_len(nla), type = nla_type(nla); attrlen 176 lib/nlattr.c if ((nla_attr_len[pt->type] && attrlen != nla_attr_len[pt->type]) || attrlen 177 lib/nlattr.c (pt->type == NLA_EXACT_LEN_WARN && attrlen != pt->len)) { attrlen 204 lib/nlattr.c if (attrlen != pt->len) attrlen 218 lib/nlattr.c if (attrlen > 0) attrlen 223 lib/nlattr.c if (attrlen != sizeof(struct nla_bitfield32)) attrlen 233 lib/nlattr.c minlen = min_t(int, attrlen, pt->len + 1); attrlen 235 lib/nlattr.c minlen = attrlen; attrlen 244 lib/nlattr.c if (attrlen < 1) attrlen 250 lib/nlattr.c if (buf[attrlen - 1] == '\0') attrlen 251 lib/nlattr.c attrlen--; attrlen 253 lib/nlattr.c if (attrlen > pt->len) attrlen 259 lib/nlattr.c if (pt->len && attrlen > pt->len) attrlen 267 lib/nlattr.c if (attrlen == 0) attrlen 269 lib/nlattr.c if (attrlen < NLA_HDRLEN) attrlen 288 lib/nlattr.c if (attrlen == 0) attrlen 290 lib/nlattr.c if (attrlen < NLA_HDRLEN) attrlen 316 lib/nlattr.c if (attrlen < pt->len) attrlen 326 lib/nlattr.c if (attrlen < minlen) attrlen 609 lib/nlattr.c int attrlen = nla_len(nla); attrlen 612 lib/nlattr.c if (attrlen > 0 && buf[attrlen - 1] == '\0') attrlen 613 lib/nlattr.c attrlen--; attrlen 615 lib/nlattr.c d = attrlen - len; attrlen 636 lib/nlattr.c struct nlattr *__nla_reserve(struct sk_buff *skb, int attrtype, int attrlen) attrlen 640 lib/nlattr.c nla = skb_put(skb, nla_total_size(attrlen)); attrlen 642 lib/nlattr.c nla->nla_len = nla_attr_size(attrlen); attrlen 644 lib/nlattr.c memset((unsigned char *) nla + nla->nla_len, 0, nla_padlen(attrlen)); attrlen 665 lib/nlattr.c int attrlen, int padattr) attrlen 670 lib/nlattr.c return __nla_reserve(skb, attrtype, attrlen); attrlen 684 lib/nlattr.c void *__nla_reserve_nohdr(struct sk_buff *skb, int attrlen) attrlen 686 lib/nlattr.c return skb_put_zero(skb, NLA_ALIGN(attrlen)); attrlen 702 lib/nlattr.c struct nlattr *nla_reserve(struct sk_buff *skb, int attrtype, int attrlen) attrlen 704 lib/nlattr.c if (unlikely(skb_tailroom(skb) < nla_total_size(attrlen))) attrlen 707 lib/nlattr.c return __nla_reserve(skb, attrtype, attrlen); attrlen 725 lib/nlattr.c struct nlattr *nla_reserve_64bit(struct sk_buff *skb, int attrtype, int attrlen, attrlen 731 lib/nlattr.c len = nla_total_size_64bit(attrlen); attrlen 733 lib/nlattr.c len = nla_total_size(attrlen); attrlen 737 lib/nlattr.c return __nla_reserve_64bit(skb, attrtype, attrlen, padattr); attrlen 751 lib/nlattr.c void *nla_reserve_nohdr(struct sk_buff *skb, int attrlen) attrlen 753 lib/nlattr.c if (unlikely(skb_tailroom(skb) < NLA_ALIGN(attrlen))) attrlen 756 lib/nlattr.c return __nla_reserve_nohdr(skb, attrlen); attrlen 770 lib/nlattr.c void __nla_put(struct sk_buff *skb, int attrtype, int attrlen, attrlen 775 lib/nlattr.c nla = __nla_reserve(skb, attrtype, attrlen); attrlen 776 lib/nlattr.c memcpy(nla_data(nla), data, attrlen); attrlen 791 lib/nlattr.c void __nla_put_64bit(struct sk_buff *skb, int attrtype, int attrlen, attrlen 796 lib/nlattr.c nla = __nla_reserve_64bit(skb, attrtype, attrlen, padattr); attrlen 797 lib/nlattr.c memcpy(nla_data(nla), data, attrlen); attrlen 810 lib/nlattr.c void __nla_put_nohdr(struct sk_buff *skb, int attrlen, const void *data) attrlen 814 lib/nlattr.c start = __nla_reserve_nohdr(skb, attrlen); attrlen 815 lib/nlattr.c memcpy(start, data, attrlen); attrlen 829 lib/nlattr.c int nla_put(struct sk_buff *skb, int attrtype, int attrlen, const void *data) attrlen 831 lib/nlattr.c if (unlikely(skb_tailroom(skb) < nla_total_size(attrlen))) attrlen 834 lib/nlattr.c __nla_put(skb, attrtype, attrlen, data); attrlen 850 lib/nlattr.c int nla_put_64bit(struct sk_buff *skb, int attrtype, int attrlen, attrlen 856 lib/nlattr.c len = nla_total_size_64bit(attrlen); attrlen 858 lib/nlattr.c len = nla_total_size(attrlen); attrlen 862 lib/nlattr.c __nla_put_64bit(skb, attrtype, attrlen, data, padattr); attrlen 876 lib/nlattr.c int nla_put_nohdr(struct sk_buff *skb, int attrlen, const void *data) attrlen 878 lib/nlattr.c if (unlikely(skb_tailroom(skb) < NLA_ALIGN(attrlen))) attrlen 881 lib/nlattr.c __nla_put_nohdr(skb, attrlen, data); attrlen 895 lib/nlattr.c int nla_append(struct sk_buff *skb, int attrlen, const void *data) attrlen 897 lib/nlattr.c if (unlikely(skb_tailroom(skb) < NLA_ALIGN(attrlen))) attrlen 900 lib/nlattr.c skb_put_data(skb, data, attrlen); attrlen 355 net/802/mrp.c u8 attrtype, u8 attrlen) attrlen 370 net/802/mrp.c mh->attrlen = attrlen; attrlen 376 net/802/mrp.c const void *firstattrvalue, u8 attrlen) attrlen 380 net/802/mrp.c if (skb_tailroom(app->pdu) < sizeof(*vah) + attrlen) attrlen 382 net/802/mrp.c vah = __skb_put(app->pdu, sizeof(*vah) + attrlen); attrlen 384 net/802/mrp.c memcpy(vah->firstattrvalue, firstattrvalue, attrlen); attrlen 386 net/802/mrp.c memcpy(mrp_cb(app->pdu)->attrvalue, firstattrvalue, attrlen); attrlen 410 net/802/mrp.c mrp_cb(app->pdu)->mh->attrlen != attr->len) { attrlen 638 net/802/mrp.c mrp_cb(skb)->mh->attrlen, attrlen 694 net/802/mrp.c if (sizeof(struct mrp_skb_cb) + mrp_cb(skb)->mh->attrlen > attrlen 698 net/802/mrp.c mrp_cb(skb)->mh->attrlen) < 0) attrlen 700 net/802/mrp.c *offset += mrp_cb(skb)->mh->attrlen; attrlen 724 net/802/mrp.c mrp_cb(skb)->mh->attrlen); attrlen 734 net/802/mrp.c mrp_cb(skb)->mh->attrlen); attrlen 754 net/802/mrp.c mrp_cb(skb)->mh->attrlen == 0) attrlen 184 net/core/lwtunnel.c int attrlen; attrlen 187 net/core/lwtunnel.c attrlen = rtnh_attrlen(rtnh); attrlen 188 net/core/lwtunnel.c if (attrlen > 0) { attrlen 190 net/core/lwtunnel.c nla_entype = nla_find(attrs, attrlen, RTA_ENCAP_TYPE); attrlen 171 net/decnet/dn_fib.c int attrlen; attrlen 180 net/decnet/dn_fib.c attrlen = rtnh_attrlen(nhp); attrlen 181 net/decnet/dn_fib.c if (attrlen > 0) { attrlen 184 net/decnet/dn_fib.c gw_attr = nla_find((struct nlattr *) (nhp + 1), attrlen, RTA_GATEWAY); attrlen 252 net/decnet/dn_table.c int attrlen = nhlen - sizeof(struct rtnexthop); attrlen 255 net/decnet/dn_table.c if (attrlen < 0 || (nhlen -= nhp->rtnh_len) < 0) attrlen 259 net/decnet/dn_table.c if (attrlen) { attrlen 262 net/decnet/dn_table.c gw_attr = nla_find((struct nlattr *) (nhp + 1), attrlen, RTA_GATEWAY); attrlen 668 net/ipv4/fib_semantics.c int attrlen; attrlen 687 net/ipv4/fib_semantics.c attrlen = rtnh_attrlen(rtnh); attrlen 688 net/ipv4/fib_semantics.c if (attrlen > 0) { attrlen 691 net/ipv4/fib_semantics.c nla = nla_find(attrs, attrlen, RTA_GATEWAY); attrlen 692 net/ipv4/fib_semantics.c nlav = nla_find(attrs, attrlen, RTA_VIA); attrlen 708 net/ipv4/fib_semantics.c nla = nla_find(attrs, attrlen, RTA_FLOW); attrlen 712 net/ipv4/fib_semantics.c fib_cfg.fc_encap = nla_find(attrs, attrlen, RTA_ENCAP); attrlen 713 net/ipv4/fib_semantics.c nla = nla_find(attrs, attrlen, RTA_ENCAP_TYPE); attrlen 886 net/ipv4/fib_semantics.c int attrlen; attrlen 894 net/ipv4/fib_semantics.c attrlen = rtnh_attrlen(rtnh); attrlen 895 net/ipv4/fib_semantics.c if (attrlen > 0) { attrlen 898 net/ipv4/fib_semantics.c nla = nla_find(attrs, attrlen, RTA_GATEWAY); attrlen 899 net/ipv4/fib_semantics.c nlav = nla_find(attrs, attrlen, RTA_VIA); attrlen 934 net/ipv4/fib_semantics.c nla = nla_find(attrs, attrlen, RTA_FLOW); attrlen 5071 net/ipv6/route.c int attrlen; attrlen 5093 net/ipv6/route.c attrlen = rtnh_attrlen(rtnh); attrlen 5094 net/ipv6/route.c if (attrlen > 0) { attrlen 5097 net/ipv6/route.c nla = nla_find(attrs, attrlen, RTA_GATEWAY); attrlen 5102 net/ipv6/route.c r_cfg.fc_encap = nla_find(attrs, attrlen, RTA_ENCAP); attrlen 5103 net/ipv6/route.c nla = nla_find(attrs, attrlen, RTA_ENCAP_TYPE); attrlen 5234 net/ipv6/route.c int attrlen; attrlen 5246 net/ipv6/route.c attrlen = rtnh_attrlen(rtnh); attrlen 5247 net/ipv6/route.c if (attrlen > 0) { attrlen 5250 net/ipv6/route.c nla = nla_find(attrs, attrlen, RTA_GATEWAY); attrlen 845 net/mpls/af_mpls.c int attrlen; attrlen 848 net/mpls/af_mpls.c attrlen = rtnh_attrlen(rtnh); attrlen 849 net/mpls/af_mpls.c nla = nla_find(attrs, attrlen, RTA_VIA); attrlen 860 net/mpls/af_mpls.c nla = nla_find(attrs, attrlen, RTA_NEWDST); attrlen 893 net/mpls/af_mpls.c int attrlen; attrlen 908 net/mpls/af_mpls.c attrlen = rtnh_attrlen(rtnh); attrlen 909 net/mpls/af_mpls.c if (attrlen > 0) { attrlen 912 net/mpls/af_mpls.c nla_via = nla_find(attrs, attrlen, RTA_VIA); attrlen 913 net/mpls/af_mpls.c nla_newdst = nla_find(attrs, attrlen, RTA_NEWDST); attrlen 200 net/netfilter/nfnetlink.c int attrlen = nlh->nlmsg_len - min_len; attrlen 210 net/netfilter/nfnetlink.c attr, attrlen, attrlen 417 net/netfilter/nfnetlink.c int attrlen = nlh->nlmsg_len - min_len; attrlen 427 net/netfilter/nfnetlink.c attr, attrlen, attrlen 513 net/netfilter/nfnetlink.c int attrlen = nlh->nlmsg_len - min_len; attrlen 526 net/netfilter/nfnetlink.c err = nla_parse_deprecated(cda, NFNL_BATCH_MAX, attr, attrlen,