/linux-6.1.9/tools/testing/selftests/net/mptcp/ |
D | pm_nl_ctl.c | 309 struct rtattr *rta; in resolve_mptcp_pm_netlink() local 317 rta = (void *)(data + off); in resolve_mptcp_pm_netlink() 319 rta->rta_type = CTRL_ATTR_FAMILY_NAME; in resolve_mptcp_pm_netlink() 320 rta->rta_len = RTA_LENGTH(namelen); in resolve_mptcp_pm_netlink() 321 memcpy(RTA_DATA(rta), MPTCP_PM_NAME, namelen); in resolve_mptcp_pm_netlink() 322 off += NLMSG_ALIGN(rta->rta_len); in resolve_mptcp_pm_netlink() 333 struct rtattr *rta, *addr; in dsf() local 396 rta = (void *)(data + off); in dsf() 397 if (inet_pton(AF_INET, params[arg], RTA_DATA(rta))) { in dsf() 399 rta->rta_type = MPTCP_PM_ADDR_ATTR_ADDR4; in dsf() [all …]
|
/linux-6.1.9/tools/testing/selftests/net/ |
D | udpgso.c | 362 struct rtattr *rta; in set_route_mtu() local 393 rta = (void *)(data + off); in set_route_mtu() 394 rta->rta_type = RTA_DST; in set_route_mtu() 395 rta->rta_len = RTA_LENGTH(alen); in set_route_mtu() 397 memcpy(RTA_DATA(rta), &addr4, alen); in set_route_mtu() 399 memcpy(RTA_DATA(rta), &addr6, alen); in set_route_mtu() 400 off += NLMSG_ALIGN(rta->rta_len); in set_route_mtu() 402 rta = (void *)(data + off); in set_route_mtu() 403 rta->rta_type = RTA_OIF; in set_route_mtu() 404 rta->rta_len = RTA_LENGTH(sizeof(int)); in set_route_mtu() [all …]
|
D | tap.c | 36 struct rtattr *rta = in rtattr_add() local 38 rta->rta_type = type; in rtattr_add() 39 rta->rta_len = RTA_LENGTH(len); in rtattr_add() 40 nh->nlmsg_len = RTA_ALIGN(nh->nlmsg_len) + RTA_ALIGN(rta->rta_len); in rtattr_add() 41 return rta; in rtattr_add() 59 struct rtattr *rta = rtattr_add(nh, type, strlen(s)); in rtattr_add_str() local 61 memcpy(RTA_DATA(rta), s, strlen(s)); in rtattr_add_str() 62 return rta; in rtattr_add_str() 68 struct rtattr *rta = rtattr_add(nh, type, strlen(s) + 1); in rtattr_add_strsz() local 70 strcpy(RTA_DATA(rta), s); in rtattr_add_strsz() [all …]
|
D | tun.c | 74 struct rtattr *rta; in tun_delete() local 90 rta = (struct rtattr *)(((char *)&req) + NLMSG_ALIGN(req.nh.nlmsg_len)); in tun_delete() 91 rta->rta_type = IFLA_IFNAME; in tun_delete() 92 rta->rta_len = RTA_LENGTH(IFNAMSIZ); in tun_delete() 93 req.nh.nlmsg_len += rta->rta_len; in tun_delete() 94 memcpy(RTA_DATA(rta), dev, IFNAMSIZ); in tun_delete()
|
/linux-6.1.9/include/uapi/linux/ |
D | rtnetlink.h | 220 #define RTA_OK(rta,len) ((len) >= (int)sizeof(struct rtattr) && \ argument 221 (rta)->rta_len >= sizeof(struct rtattr) && \ 222 (rta)->rta_len <= (len)) 223 #define RTA_NEXT(rta,attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), \ argument 224 (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len))) 227 #define RTA_DATA(rta) ((void*)(((char*)(rta)) + RTA_LENGTH(0))) argument 228 #define RTA_PAYLOAD(rta) ((int)((rta)->rta_len) - RTA_LENGTH(0)) argument
|
/linux-6.1.9/crypto/ |
D | authenc.c | 49 struct rtattr *rta = (struct rtattr *)key; in crypto_authenc_extractkeys() local 52 if (!RTA_OK(rta, keylen)) in crypto_authenc_extractkeys() 54 if (rta->rta_type != CRYPTO_AUTHENC_KEYA_PARAM) in crypto_authenc_extractkeys() 63 if (RTA_PAYLOAD(rta) != sizeof(*param)) in crypto_authenc_extractkeys() 67 param = RTA_DATA(rta); in crypto_authenc_extractkeys() 70 key += rta->rta_len; in crypto_authenc_extractkeys() 71 keylen -= rta->rta_len; in crypto_authenc_extractkeys()
|
D | algapi.c | 829 struct rtattr *rta = tb[0]; in crypto_get_attr_type() local 832 if (!rta) in crypto_get_attr_type() 834 if (RTA_PAYLOAD(rta) < sizeof(*algt)) in crypto_get_attr_type() 836 if (rta->rta_type != CRYPTOA_TYPE) in crypto_get_attr_type() 839 algt = RTA_DATA(rta); in crypto_get_attr_type() 877 const char *crypto_attr_alg_name(struct rtattr *rta) in crypto_attr_alg_name() argument 881 if (!rta) in crypto_attr_alg_name() 883 if (RTA_PAYLOAD(rta) < sizeof(*alga)) in crypto_attr_alg_name() 885 if (rta->rta_type != CRYPTOA_ALG) in crypto_attr_alg_name() 888 alga = RTA_DATA(rta); in crypto_attr_alg_name()
|
/linux-6.1.9/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-6.1.9/drivers/crypto/marvell/octeontx/ |
D | otx_cptvf_algs.c | 843 struct rtattr *rta = (void *)key; in otx_cpt_aead_cbc_aes_sha_setkey() local 846 if (!RTA_OK(rta, keylen)) in otx_cpt_aead_cbc_aes_sha_setkey() 849 if (rta->rta_type != CRYPTO_AUTHENC_KEYA_PARAM) in otx_cpt_aead_cbc_aes_sha_setkey() 852 if (RTA_PAYLOAD(rta) < sizeof(*param)) in otx_cpt_aead_cbc_aes_sha_setkey() 855 param = RTA_DATA(rta); in otx_cpt_aead_cbc_aes_sha_setkey() 857 key += RTA_ALIGN(rta->rta_len); in otx_cpt_aead_cbc_aes_sha_setkey() 858 keylen -= RTA_ALIGN(rta->rta_len); in otx_cpt_aead_cbc_aes_sha_setkey() 901 struct rtattr *rta = (void *)key; in otx_cpt_aead_ecb_null_sha_setkey() local 904 if (!RTA_OK(rta, keylen)) in otx_cpt_aead_ecb_null_sha_setkey() 907 if (rta->rta_type != CRYPTO_AUTHENC_KEYA_PARAM) in otx_cpt_aead_ecb_null_sha_setkey() [all …]
|
/linux-6.1.9/drivers/crypto/marvell/octeontx2/ |
D | otx2_cptvf_algs.c | 898 struct rtattr *rta = (void *)key; in otx2_cpt_aead_cbc_aes_sha_setkey() local 900 if (!RTA_OK(rta, keylen)) in otx2_cpt_aead_cbc_aes_sha_setkey() 903 if (rta->rta_type != CRYPTO_AUTHENC_KEYA_PARAM) in otx2_cpt_aead_cbc_aes_sha_setkey() 906 if (RTA_PAYLOAD(rta) < sizeof(*param)) in otx2_cpt_aead_cbc_aes_sha_setkey() 909 param = RTA_DATA(rta); in otx2_cpt_aead_cbc_aes_sha_setkey() 911 key += RTA_ALIGN(rta->rta_len); in otx2_cpt_aead_cbc_aes_sha_setkey() 912 keylen -= RTA_ALIGN(rta->rta_len); in otx2_cpt_aead_cbc_aes_sha_setkey() 949 struct rtattr *rta = (void *)key; in otx2_cpt_aead_ecb_null_sha_setkey() local 952 if (!RTA_OK(rta, keylen)) in otx2_cpt_aead_ecb_null_sha_setkey() 955 if (rta->rta_type != CRYPTO_AUTHENC_KEYA_PARAM) in otx2_cpt_aead_ecb_null_sha_setkey() [all …]
|
/linux-6.1.9/net/xfrm/ |
D | xfrm_user.c | 369 struct nlattr *rta, struct netlink_ext_ack *extack) in attach_one_algo() argument 374 if (!rta) in attach_one_algo() 377 ualg = nla_data(rta); in attach_one_algo() 395 static int attach_crypt(struct xfrm_state *x, struct nlattr *rta, in attach_crypt() argument 401 if (!rta) in attach_crypt() 404 ualg = nla_data(rta); in attach_crypt() 424 struct nlattr *rta, struct netlink_ext_ack *extack) in attach_auth() argument 430 if (!rta) in attach_auth() 433 ualg = nla_data(rta); in attach_auth() 456 struct nlattr *rta, struct netlink_ext_ack *extack) in attach_auth_trunc() argument [all …]
|
/linux-6.1.9/net/ipv4/ |
D | esp4.c | 1051 struct rtattr *rta; in esp_init_authenc() local 1099 rta = (void *)p; in esp_init_authenc() 1100 rta->rta_type = CRYPTO_AUTHENC_KEYA_PARAM; in esp_init_authenc() 1101 rta->rta_len = RTA_LENGTH(sizeof(*param)); in esp_init_authenc() 1102 param = RTA_DATA(rta); in esp_init_authenc()
|
/linux-6.1.9/net/ipv6/ |
D | esp6.c | 1094 struct rtattr *rta; in esp_init_authenc() local 1142 rta = (void *)p; in esp_init_authenc() 1143 rta->rta_type = CRYPTO_AUTHENC_KEYA_PARAM; in esp_init_authenc() 1144 rta->rta_len = RTA_LENGTH(sizeof(*param)); in esp_init_authenc() 1145 param = RTA_DATA(rta); in esp_init_authenc()
|
/linux-6.1.9/include/crypto/ |
D | algapi.h | 134 const char *crypto_attr_alg_name(struct rtattr *rta);
|
/linux-6.1.9/Documentation/RCU/ |
D | torture.rst | 27 …rcu-torture: rtc: (null) ver: 155441 tfle: 0 rta: 155441 rtaf: 8884 rtf: 155440 rtmbe: 0… 56 * "rta": Number of structures allocated from the torture freelist. 61 the value indicated by "rta".
|
/linux-6.1.9/arch/mips/include/asm/octeon/ |
D | cvmx-pciercx-defs.h | 60 __BITFIELD_FIELD(uint32_t rta:1,
|
D | cvmx-pci-defs.h | 187 uint32_t rta:1; member 229 uint32_t rta:1;
|
/linux-6.1.9/drivers/md/ |
D | dm-crypt.c | 2362 struct rtattr *rta; in crypt_copy_authenckey() local 2364 rta = (struct rtattr *)p; in crypt_copy_authenckey() 2365 param = RTA_DATA(rta); in crypt_copy_authenckey() 2367 rta->rta_len = RTA_LENGTH(sizeof(*param)); in crypt_copy_authenckey() 2368 rta->rta_type = CRYPTO_AUTHENC_KEYA_PARAM; in crypt_copy_authenckey()
|