/linux-4.19.296/lib/ |
D | nlattr.c | 75 int minlen = 0, attrlen = nla_len(nla), type = nla_type(nla); in validate_nla() local 84 if (nla_attr_len[pt->type] && attrlen != nla_attr_len[pt->type]) { in validate_nla() 91 if (attrlen > 0) in validate_nla() 96 if (attrlen != sizeof(struct nla_bitfield32)) in validate_nla() 103 minlen = min_t(int, attrlen, pt->len + 1); in validate_nla() 105 minlen = attrlen; in validate_nla() 112 if (attrlen < 1) in validate_nla() 118 if (buf[attrlen - 1] == '\0') in validate_nla() 119 attrlen--; in validate_nla() 121 if (attrlen > pt->len) in validate_nla() [all …]
|
/linux-4.19.296/include/net/ |
D | netlink.h | 259 struct nlattr *__nla_reserve(struct sk_buff *skb, int attrtype, int attrlen); 261 int attrlen, int padattr); 262 void *__nla_reserve_nohdr(struct sk_buff *skb, int attrlen); 263 struct nlattr *nla_reserve(struct sk_buff *skb, int attrtype, int attrlen); 265 int attrlen, int padattr); 266 void *nla_reserve_nohdr(struct sk_buff *skb, int attrlen); 267 void __nla_put(struct sk_buff *skb, int attrtype, int attrlen, 269 void __nla_put_64bit(struct sk_buff *skb, int attrtype, int attrlen, 271 void __nla_put_nohdr(struct sk_buff *skb, int attrlen, const void *data); 272 int nla_put(struct sk_buff *skb, int attrtype, int attrlen, const void *data); [all …]
|
D | mrp.h | 13 u8 attrlen; member
|
/linux-4.19.296/include/uapi/linux/netfilter/ |
D | nfnetlink_compat.h | 41 #define NFA_NEXT(nfa,attrlen) ((attrlen) -= NFA_ALIGN((nfa)->nfa_len), \ argument
|
/linux-4.19.296/fs/xfs/libxfs/ |
D | xfs_attr_remote.h | 9 int xfs_attr3_rmt_blocks(struct xfs_mount *mp, int attrlen);
|
D | xfs_attr_remote.c | 42 int attrlen) in xfs_attr3_rmt_blocks() argument 46 return (attrlen + buflen - 1) / buflen; in xfs_attr3_rmt_blocks() 48 return XFS_B_TO_FSB(mp, attrlen); in xfs_attr3_rmt_blocks()
|
/linux-4.19.296/fs/nfs/ |
D | callback_xdr.c | 118 unsigned int attrlen; in decode_bitmap() local 123 attrlen = ntohl(*p); in decode_bitmap() 124 p = read_buf(xdr, attrlen << 2); in decode_bitmap() 127 if (likely(attrlen > 0)) in decode_bitmap() 129 if (attrlen > 1) in decode_bitmap()
|
D | nfs4xdr.c | 1598 uint32_t attrlen = 0; in encode_readdir() local 1617 attrlen = i+1; in encode_readdir() 1623 p = reserve_space(xdr, 12 + (attrlen << 2)); in encode_readdir() 1626 *p++ = cpu_to_be32(attrlen); in encode_readdir() 1627 for (i = 0; i < attrlen; i++) in encode_readdir() 3265 static int decode_attr_length(struct xdr_stream *xdr, uint32_t *attrlen, unsigned int *savep) in decode_attr_length() argument 3272 *attrlen = be32_to_cpup(p); in decode_attr_length() 4323 static int verify_attr_len(struct xdr_stream *xdr, unsigned int savep, uint32_t attrlen) in verify_attr_len() argument 4325 unsigned int attrwords = XDR_QUADLEN(attrlen); in verify_attr_len() 4480 uint32_t attrlen, bitmap[3] = {0}; in decode_server_caps() local [all …]
|
/linux-4.19.296/include/uapi/linux/ |
D | rtnetlink.h | 186 #define RTA_NEXT(rta,attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), \ argument
|
/linux-4.19.296/fs/nfsd/ |
D | nfs4xdr.c | 2409 __be32 attrlen; in nfsd4_encode_fattr() local 2913 attrlen = htonl(xdr->buf->len - attrlen_offset - 4); in nfsd4_encode_fattr() 2914 write_bytes_to_xdr_buf(xdr->buf, attrlen_offset, &attrlen, 4); in nfsd4_encode_fattr()
|
/linux-4.19.296/fs/btrfs/ |
D | send.c | 615 #define TLV_PUT(sctx, attrtype, data, attrlen) \ argument 617 ret = tlv_put(sctx, attrtype, data, attrlen); \
|