/Linux-v4.19/tools/testing/selftests/net/ |
D | udpgso.c | 371 struct rtattr *rta; in set_route_mtu() local 402 rta = (void *)(data + off); in set_route_mtu() 403 rta->rta_type = RTA_DST; in set_route_mtu() 404 rta->rta_len = RTA_LENGTH(alen); in set_route_mtu() 406 memcpy(RTA_DATA(rta), &addr4, alen); in set_route_mtu() 408 memcpy(RTA_DATA(rta), &addr6, alen); in set_route_mtu() 409 off += NLMSG_ALIGN(rta->rta_len); in set_route_mtu() 411 rta = (void *)(data + off); in set_route_mtu() 412 rta->rta_type = RTA_OIF; in set_route_mtu() 413 rta->rta_len = RTA_LENGTH(sizeof(int)); in set_route_mtu() [all …]
|
/Linux-v4.19/include/uapi/linux/ |
D | rtnetlink.h | 183 #define RTA_OK(rta,len) ((len) >= (int)sizeof(struct rtattr) && \ argument 184 (rta)->rta_len >= sizeof(struct rtattr) && \ 185 (rta)->rta_len <= (len)) 186 #define RTA_NEXT(rta,attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), \ argument 187 (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len))) 190 #define RTA_DATA(rta) ((void*)(((char*)(rta)) + RTA_LENGTH(0))) argument 191 #define RTA_PAYLOAD(rta) ((int)((rta)->rta_len) - RTA_LENGTH(0)) argument
|
/Linux-v4.19/crypto/ |
D | algapi.c | 743 struct rtattr *rta = tb[0]; in crypto_get_attr_type() local 746 if (!rta) in crypto_get_attr_type() 748 if (RTA_PAYLOAD(rta) < sizeof(*algt)) in crypto_get_attr_type() 750 if (rta->rta_type != CRYPTOA_TYPE) in crypto_get_attr_type() 753 algt = RTA_DATA(rta); in crypto_get_attr_type() 774 const char *crypto_attr_alg_name(struct rtattr *rta) in crypto_attr_alg_name() argument 778 if (!rta) in crypto_attr_alg_name() 780 if (RTA_PAYLOAD(rta) < sizeof(*alga)) in crypto_attr_alg_name() 782 if (rta->rta_type != CRYPTOA_ALG) in crypto_attr_alg_name() 785 alga = RTA_DATA(rta); in crypto_attr_alg_name() [all …]
|
D | authenc.c | 54 struct rtattr *rta = (struct rtattr *)key; in crypto_authenc_extractkeys() local 57 if (!RTA_OK(rta, keylen)) in crypto_authenc_extractkeys() 59 if (rta->rta_type != CRYPTO_AUTHENC_KEYA_PARAM) in crypto_authenc_extractkeys() 61 if (RTA_PAYLOAD(rta) < sizeof(*param)) in crypto_authenc_extractkeys() 64 param = RTA_DATA(rta); in crypto_authenc_extractkeys() 67 key += RTA_ALIGN(rta->rta_len); in crypto_authenc_extractkeys() 68 keylen -= RTA_ALIGN(rta->rta_len); in crypto_authenc_extractkeys()
|
D | ahash.c | 642 struct hash_alg_common *ahash_attr_alg(struct rtattr *rta, u32 type, u32 mask) in ahash_attr_alg() argument 646 alg = crypto_attr_alg2(rta, &crypto_ahash_type, type, mask); in ahash_attr_alg()
|
D | shash.c | 569 struct shash_alg *shash_attr_alg(struct rtattr *rta, u32 type, u32 mask) in shash_attr_alg() argument 573 alg = crypto_attr_alg2(rta, &crypto_shash_type, type, mask); in shash_attr_alg()
|
/Linux-v4.19/include/crypto/ |
D | algapi.h | 172 const char *crypto_attr_alg_name(struct rtattr *rta); 173 struct crypto_alg *crypto_attr_alg2(struct rtattr *rta, 177 static inline struct crypto_alg *crypto_attr_alg(struct rtattr *rta, in crypto_attr_alg() argument 180 return crypto_attr_alg2(rta, NULL, type, mask); in crypto_attr_alg() 183 int crypto_attr_u32(struct rtattr *rta, u32 *num);
|
/Linux-v4.19/drivers/edac/ |
D | octeon_edac-pci.c | 43 if (cfg01.s.rta) { in octeon_pci_poll() 45 cfg01.s.rta = 1; /* Reset */ in octeon_pci_poll()
|
/Linux-v4.19/net/xfrm/ |
D | xfrm_user.c | 270 struct nlattr *rta) in attach_one_algo() argument 275 if (!rta) in attach_one_algo() 278 ualg = nla_data(rta); in attach_one_algo() 294 static int attach_crypt(struct xfrm_state *x, struct nlattr *rta) in attach_crypt() argument 299 if (!rta) in attach_crypt() 302 ualg = nla_data(rta); in attach_crypt() 320 struct nlattr *rta) in attach_auth() argument 326 if (!rta) in attach_auth() 329 ualg = nla_data(rta); in attach_auth() 350 struct nlattr *rta) in attach_auth_trunc() argument [all …]
|
/Linux-v4.19/include/crypto/internal/ |
D | hash.h | 104 struct hash_alg_common *ahash_attr_alg(struct rtattr *rta, u32 type, u32 mask); 123 struct shash_alg *shash_attr_alg(struct rtattr *rta, u32 type, u32 mask);
|
/Linux-v4.19/net/ipv6/ |
D | esp6.c | 787 struct rtattr *rta; in esp_init_authenc() local 833 rta = (void *)p; in esp_init_authenc() 834 rta->rta_type = CRYPTO_AUTHENC_KEYA_PARAM; in esp_init_authenc() 835 rta->rta_len = RTA_LENGTH(sizeof(*param)); in esp_init_authenc() 836 param = RTA_DATA(rta); in esp_init_authenc()
|
/Linux-v4.19/net/ipv4/ |
D | esp4.c | 876 struct rtattr *rta; in esp_init_authenc() local 922 rta = (void *)p; in esp_init_authenc() 923 rta->rta_type = CRYPTO_AUTHENC_KEYA_PARAM; in esp_init_authenc() 924 rta->rta_len = RTA_LENGTH(sizeof(*param)); in esp_init_authenc() 925 param = RTA_DATA(rta); in esp_init_authenc()
|
/Linux-v4.19/drivers/crypto/ccree/ |
D | cc_aead.c | 543 struct rtattr *rta = (struct rtattr *)key; in cc_aead_setkey() local 557 if (!RTA_OK(rta, keylen)) in cc_aead_setkey() 559 if (rta->rta_type != CRYPTO_AUTHENC_KEYA_PARAM) in cc_aead_setkey() 561 if (RTA_PAYLOAD(rta) < sizeof(*param)) in cc_aead_setkey() 563 param = RTA_DATA(rta); in cc_aead_setkey() 565 key += RTA_ALIGN(rta->rta_len); in cc_aead_setkey() 566 keylen -= RTA_ALIGN(rta->rta_len); in cc_aead_setkey()
|
/Linux-v4.19/Documentation/RCU/ |
D | torture.txt | 186 …rcu-torture: rtc: (null) ver: 155441 tfle: 0 rta: 155441 rtaf: 8884 rtf: 155440 rtmbe: 0… 215 o "rta": Number of structures allocated from the torture freelist. 220 the value indicated by "rta".
|
/Linux-v4.19/arch/mips/include/asm/octeon/ |
D | cvmx-pciercx-defs.h | 60 __BITFIELD_FIELD(uint32_t rta:1,
|
D | cvmx-pci-defs.h | 202 uint32_t rta:1; member 244 uint32_t rta:1;
|
/Linux-v4.19/drivers/md/ |
D | dm-crypt.c | 1936 struct rtattr *rta; in crypt_copy_authenckey() local 1938 rta = (struct rtattr *)p; in crypt_copy_authenckey() 1939 param = RTA_DATA(rta); in crypt_copy_authenckey() 1941 rta->rta_len = RTA_LENGTH(sizeof(*param)); in crypt_copy_authenckey() 1942 rta->rta_type = CRYPTO_AUTHENC_KEYA_PARAM; in crypt_copy_authenckey()
|
/Linux-v4.19/drivers/crypto/bcm/ |
D | cipher.c | 2848 struct rtattr *rta = (void *)key; in aead_authenc_setkey() local 2859 if (!RTA_OK(rta, keylen)) in aead_authenc_setkey() 2861 if (rta->rta_type != CRYPTO_AUTHENC_KEYA_PARAM) in aead_authenc_setkey() 2863 if (RTA_PAYLOAD(rta) < sizeof(*param)) in aead_authenc_setkey() 2866 param = RTA_DATA(rta); in aead_authenc_setkey() 2869 key += RTA_ALIGN(rta->rta_len); in aead_authenc_setkey() 2870 keylen -= RTA_ALIGN(rta->rta_len); in aead_authenc_setkey()
|