rta 187 arch/mips/include/asm/octeon/cvmx-pci-defs.h uint32_t rta:1; rta 229 arch/mips/include/asm/octeon/cvmx-pci-defs.h uint32_t rta:1; rta 60 arch/mips/include/asm/octeon/cvmx-pciercx-defs.h __BITFIELD_FIELD(uint32_t rta:1, rta 665 crypto/ahash.c struct hash_alg_common *ahash_attr_alg(struct rtattr *rta, u32 type, u32 mask) rta 669 crypto/ahash.c alg = crypto_attr_alg2(rta, &crypto_ahash_type, type, mask); rta 773 crypto/algapi.c struct rtattr *rta = tb[0]; rta 776 crypto/algapi.c if (!rta) rta 778 crypto/algapi.c if (RTA_PAYLOAD(rta) < sizeof(*algt)) rta 780 crypto/algapi.c if (rta->rta_type != CRYPTOA_TYPE) rta 783 crypto/algapi.c algt = RTA_DATA(rta); rta 804 crypto/algapi.c const char *crypto_attr_alg_name(struct rtattr *rta) rta 808 crypto/algapi.c if (!rta) rta 810 crypto/algapi.c if (RTA_PAYLOAD(rta) < sizeof(*alga)) rta 812 crypto/algapi.c if (rta->rta_type != CRYPTOA_ALG) rta 815 crypto/algapi.c alga = RTA_DATA(rta); rta 822 crypto/algapi.c struct crypto_alg *crypto_attr_alg2(struct rtattr *rta, rta 828 crypto/algapi.c name = crypto_attr_alg_name(rta); rta 836 crypto/algapi.c int crypto_attr_u32(struct rtattr *rta, u32 *num) rta 840 crypto/algapi.c if (!rta) rta 842 crypto/algapi.c if (RTA_PAYLOAD(rta) < sizeof(*nu32)) rta 844 crypto/algapi.c if (rta->rta_type != CRYPTOA_U32) rta 847 crypto/algapi.c nu32 = RTA_DATA(rta); rta 49 crypto/authenc.c struct rtattr *rta = (struct rtattr *)key; rta 52 crypto/authenc.c if (!RTA_OK(rta, keylen)) rta 54 crypto/authenc.c if (rta->rta_type != CRYPTO_AUTHENC_KEYA_PARAM) rta 63 crypto/authenc.c if (RTA_PAYLOAD(rta) != sizeof(*param)) rta 67 crypto/authenc.c param = RTA_DATA(rta); rta 70 crypto/authenc.c key += rta->rta_len; rta 71 crypto/authenc.c keylen -= rta->rta_len; rta 569 crypto/shash.c struct shash_alg *shash_attr_alg(struct rtattr *rta, u32 type, u32 mask) rta 573 crypto/shash.c alg = crypto_attr_alg2(rta, &crypto_shash_type, type, mask); rta 43 drivers/edac/octeon_edac-pci.c if (cfg01.s.rta) { rta 45 drivers/edac/octeon_edac-pci.c cfg01.s.rta = 1; /* Reset */ rta 1846 drivers/md/dm-crypt.c struct rtattr *rta; rta 1848 drivers/md/dm-crypt.c rta = (struct rtattr *)p; rta 1849 drivers/md/dm-crypt.c param = RTA_DATA(rta); rta 1851 drivers/md/dm-crypt.c rta->rta_len = RTA_LENGTH(sizeof(*param)); rta 1852 drivers/md/dm-crypt.c rta->rta_type = CRYPTO_AUTHENC_KEYA_PARAM; rta 171 include/crypto/algapi.h const char *crypto_attr_alg_name(struct rtattr *rta); rta 172 include/crypto/algapi.h struct crypto_alg *crypto_attr_alg2(struct rtattr *rta, rta 176 include/crypto/algapi.h static inline struct crypto_alg *crypto_attr_alg(struct rtattr *rta, rta 179 include/crypto/algapi.h return crypto_attr_alg2(rta, NULL, type, mask); rta 182 include/crypto/algapi.h int crypto_attr_u32(struct rtattr *rta, u32 *num); rta 99 include/crypto/internal/hash.h struct hash_alg_common *ahash_attr_alg(struct rtattr *rta, u32 type, u32 mask); rta 118 include/crypto/internal/hash.h struct shash_alg *shash_attr_alg(struct rtattr *rta, u32 type, u32 mask); rta 190 include/uapi/linux/rtnetlink.h #define RTA_OK(rta,len) ((len) >= (int)sizeof(struct rtattr) && \ rta 191 include/uapi/linux/rtnetlink.h (rta)->rta_len >= sizeof(struct rtattr) && \ rta 192 include/uapi/linux/rtnetlink.h (rta)->rta_len <= (len)) rta 193 include/uapi/linux/rtnetlink.h #define RTA_NEXT(rta,attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), \ rta 194 include/uapi/linux/rtnetlink.h (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len))) rta 197 include/uapi/linux/rtnetlink.h #define RTA_DATA(rta) ((void*)(((char*)(rta)) + RTA_LENGTH(0))) rta 198 include/uapi/linux/rtnetlink.h #define RTA_PAYLOAD(rta) ((int)((rta)->rta_len) - RTA_LENGTH(0)) rta 865 net/ipv4/esp4.c struct rtattr *rta; rta 911 net/ipv4/esp4.c rta = (void *)p; rta 912 net/ipv4/esp4.c rta->rta_type = CRYPTO_AUTHENC_KEYA_PARAM; rta 913 net/ipv4/esp4.c rta->rta_len = RTA_LENGTH(sizeof(*param)); rta 914 net/ipv4/esp4.c param = RTA_DATA(rta); rta 760 net/ipv6/esp6.c struct rtattr *rta; rta 806 net/ipv6/esp6.c rta = (void *)p; rta 807 net/ipv6/esp6.c rta->rta_type = CRYPTO_AUTHENC_KEYA_PARAM; rta 808 net/ipv6/esp6.c rta->rta_len = RTA_LENGTH(sizeof(*param)); rta 809 net/ipv6/esp6.c param = RTA_DATA(rta); rta 291 net/xfrm/xfrm_user.c struct nlattr *rta) rta 296 net/xfrm/xfrm_user.c if (!rta) rta 299 net/xfrm/xfrm_user.c ualg = nla_data(rta); rta 315 net/xfrm/xfrm_user.c static int attach_crypt(struct xfrm_state *x, struct nlattr *rta) rta 320 net/xfrm/xfrm_user.c if (!rta) rta 323 net/xfrm/xfrm_user.c ualg = nla_data(rta); rta 341 net/xfrm/xfrm_user.c struct nlattr *rta) rta 347 net/xfrm/xfrm_user.c if (!rta) rta 350 net/xfrm/xfrm_user.c ualg = nla_data(rta); rta 371 net/xfrm/xfrm_user.c struct nlattr *rta) rta 376 net/xfrm/xfrm_user.c if (!rta) rta 379 net/xfrm/xfrm_user.c ualg = nla_data(rta); rta 400 net/xfrm/xfrm_user.c static int attach_aead(struct xfrm_state *x, struct nlattr *rta) rta 405 net/xfrm/xfrm_user.c if (!rta) rta 408 net/xfrm/xfrm_user.c ualg = nla_data(rta); rta 452 net/xfrm/xfrm_user.c struct nlattr *rta) rta 457 net/xfrm/xfrm_user.c if (!rta) rta 460 net/xfrm/xfrm_user.c up = nla_data(rta); rta 462 net/xfrm/xfrm_user.c ulen = nla_len(rta) >= (int)klen ? klen : sizeof(*up); rta 1166 net/xfrm/xfrm_user.c struct nlattr *rta = attrs[XFRMA_SPD_IPV4_HTHRESH]; rta 1168 net/xfrm/xfrm_user.c if (nla_len(rta) < sizeof(*thresh4)) rta 1170 net/xfrm/xfrm_user.c thresh4 = nla_data(rta); rta 1175 net/xfrm/xfrm_user.c struct nlattr *rta = attrs[XFRMA_SPD_IPV6_HTHRESH]; rta 1177 net/xfrm/xfrm_user.c if (nla_len(rta) < sizeof(*thresh6)) rta 1179 net/xfrm/xfrm_user.c thresh6 = nla_data(rta); rta 362 tools/testing/selftests/net/udpgso.c struct rtattr *rta; rta 393 tools/testing/selftests/net/udpgso.c rta = (void *)(data + off); rta 394 tools/testing/selftests/net/udpgso.c rta->rta_type = RTA_DST; rta 395 tools/testing/selftests/net/udpgso.c rta->rta_len = RTA_LENGTH(alen); rta 397 tools/testing/selftests/net/udpgso.c memcpy(RTA_DATA(rta), &addr4, alen); rta 399 tools/testing/selftests/net/udpgso.c memcpy(RTA_DATA(rta), &addr6, alen); rta 400 tools/testing/selftests/net/udpgso.c off += NLMSG_ALIGN(rta->rta_len); rta 402 tools/testing/selftests/net/udpgso.c rta = (void *)(data + off); rta 403 tools/testing/selftests/net/udpgso.c rta->rta_type = RTA_OIF; rta 404 tools/testing/selftests/net/udpgso.c rta->rta_len = RTA_LENGTH(sizeof(int)); rta 405 tools/testing/selftests/net/udpgso.c *((int *)(RTA_DATA(rta))) = 1; //if_nametoindex("lo"); rta 406 tools/testing/selftests/net/udpgso.c off += NLMSG_ALIGN(rta->rta_len); rta 409 tools/testing/selftests/net/udpgso.c rta = (void *)(data + off); rta 410 tools/testing/selftests/net/udpgso.c rta->rta_type = RTA_METRICS; rta 411 tools/testing/selftests/net/udpgso.c rta->rta_len = RTA_LENGTH(0) + RTA_LENGTH(sizeof(int)); rta 412 tools/testing/selftests/net/udpgso.c off += NLMSG_ALIGN(rta->rta_len); rta 415 tools/testing/selftests/net/udpgso.c rta = (void *)(((char *) rta) + RTA_LENGTH(0)); rta 416 tools/testing/selftests/net/udpgso.c rta->rta_type = RTAX_MTU; rta 417 tools/testing/selftests/net/udpgso.c rta->rta_len = RTA_LENGTH(sizeof(int)); rta 418 tools/testing/selftests/net/udpgso.c *((int *)(RTA_DATA(rta))) = mtu;