| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | crypto_sanity.c | 90 struct bpf_dynptr psrc, pdst; in decrypt_sanity() local 115 bpf_dynptr_from_mem(dst_bad, sizeof(dst_bad), 0, &pdst); in decrypt_sanity() 116 status = bpf_crypto_decrypt(ctx, &psrc, &pdst, NULL); in decrypt_sanity() 126 bpf_dynptr_from_mem(dst, sizeof(dst), 0, &pdst); in decrypt_sanity() 127 status = bpf_crypto_decrypt(ctx, &psrc, &pdst, NULL); in decrypt_sanity() 137 struct bpf_dynptr psrc, pdst; in encrypt_sanity() local 162 bpf_dynptr_from_mem(dst_bad, sizeof(dst_bad), 0, &pdst); in encrypt_sanity() 163 status = bpf_crypto_encrypt(ctx, &psrc, &pdst, NULL); in encrypt_sanity() 173 bpf_dynptr_from_mem(dst, sizeof(dst), 0, &pdst); in encrypt_sanity() 174 status = bpf_crypto_encrypt(ctx, &psrc, &pdst, NULL); in encrypt_sanity()
|
| H A D | crypto_bench.c | 60 struct bpf_dynptr psrc, pdst; in crypto_encrypt() local 75 bpf_dynptr_from_mem(dst, len, 0, &pdst); in crypto_encrypt() 77 status = bpf_crypto_encrypt(ctx, &psrc, &pdst, NULL); in crypto_encrypt() 86 struct bpf_dynptr psrc, pdst; in crypto_decrypt() local 99 bpf_dynptr_from_mem(dst, len, 0, &pdst); in crypto_decrypt() 101 status = bpf_crypto_decrypt(ctx, &psrc, &pdst, NULL); in crypto_decrypt()
|
| /linux/drivers/net/ethernet/google/gve/ |
| H A D | gve_flow_rule.c | 45 fsp->h_u.tcp_ip4_spec.pdst = flow_rule->key.dst_port; in gve_fill_ethtool_flow_spec() 50 fsp->m_u.tcp_ip4_spec.pdst = flow_rule->mask.dst_port; in gve_fill_ethtool_flow_spec() 72 fsp->h_u.tcp_ip6_spec.pdst = flow_rule->key.dst_port; in gve_fill_ethtool_flow_spec() 79 fsp->m_u.tcp_ip6_spec.pdst = flow_rule->mask.dst_port; in gve_fill_ethtool_flow_spec() 144 rule->key.dst_port = fsp->h_u.tcp_ip4_spec.pdst; in gve_generate_flow_rule() 148 rule->mask.dst_port = fsp->m_u.tcp_ip4_spec.pdst; in gve_generate_flow_rule() 167 rule->key.dst_port = fsp->h_u.tcp_ip6_spec.pdst; in gve_generate_flow_rule() 173 rule->mask.dst_port = fsp->m_u.tcp_ip6_spec.pdst; in gve_generate_flow_rule()
|
| /linux/kernel/bpf/ |
| H A D | crypto.c | 278 u8 *pdst, *piv; in bpf_crypto_crypt() local 296 pdst = __bpf_dynptr_data_rw(dst, dst_len); in bpf_crypto_crypt() 297 if (!pdst) in bpf_crypto_crypt() 304 err = decrypt ? ctx->type->decrypt(ctx->tfm, psrc, pdst, src_len, piv) in bpf_crypto_crypt() 305 : ctx->type->encrypt(ctx->tfm, psrc, pdst, src_len, piv); in bpf_crypto_crypt()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | en_fs_ethtool.c | 242 l4_mask->pdst, l4_val->pdst); in parse_tcp4() 255 l4_mask->pdst, l4_val->pdst); in parse_udp4() 298 l4_mask->pdst, l4_val->pdst); in parse_tcp6() 311 l4_mask->pdst, l4_val->pdst); in parse_udp6() 586 if (l4_mask->pdst) in validate_tcpudp4() 644 if (l4_mask->pdst) in validate_tcpudp6()
|
| /linux/drivers/net/ethernet/sfc/siena/ |
| H A D | ethtool_common.c | 685 ip_entry->pdst = spec.loc_port; in efx_ethtool_get_class_rule() 686 ip_mask->pdst = PORT_FULL_MASK; in efx_ethtool_get_class_rule() 714 ip6_entry->pdst = spec.loc_port; in efx_ethtool_get_class_rule() 715 ip6_mask->pdst = PORT_FULL_MASK; in efx_ethtool_get_class_rule() 970 if (ip_mask->pdst) { in efx_ethtool_set_class_rule() 971 if (ip_mask->pdst != PORT_FULL_MASK) in efx_ethtool_set_class_rule() 974 spec.loc_port = ip_entry->pdst; in efx_ethtool_set_class_rule() 1005 if (ip6_mask->pdst) { in efx_ethtool_set_class_rule() 1006 if (ip6_mask->pdst != PORT_FULL_MASK) in efx_ethtool_set_class_rule() 1009 spec.loc_port = ip6_entry->pdst; in efx_ethtool_set_class_rule()
|
| /linux/drivers/net/ethernet/sfc/falcon/ |
| H A D | ethtool.c | 832 ip_entry->pdst = spec.loc_port; in ef4_ethtool_get_class_rule() 833 ip_mask->pdst = PORT_FULL_MASK; in ef4_ethtool_get_class_rule() 861 ip6_entry->pdst = spec.loc_port; in ef4_ethtool_get_class_rule() 862 ip6_mask->pdst = PORT_FULL_MASK; in ef4_ethtool_get_class_rule() 1089 if (ip_mask->pdst) { in ef4_ethtool_set_class_rule() 1090 if (ip_mask->pdst != PORT_FULL_MASK) in ef4_ethtool_set_class_rule() 1093 spec.loc_port = ip_entry->pdst; in ef4_ethtool_set_class_rule() 1124 if (ip6_mask->pdst) { in ef4_ethtool_set_class_rule() 1125 if (ip6_mask->pdst != PORT_FULL_MASK) in ef4_ethtool_set_class_rule() 1128 spec.loc_port = ip6_entry->pdst; in ef4_ethtool_set_class_rule()
|
| /linux/drivers/net/ethernet/sfc/ |
| H A D | ethtool_common.c | 684 ip_entry->pdst = spec.loc_port; in efx_ethtool_get_class_rule() 685 ip_mask->pdst = PORT_FULL_MASK; in efx_ethtool_get_class_rule() 713 ip6_entry->pdst = spec.loc_port; in efx_ethtool_get_class_rule() 714 ip6_mask->pdst = PORT_FULL_MASK; in efx_ethtool_get_class_rule() 979 if (ip_mask->pdst) { in efx_ethtool_set_class_rule() 980 if (ip_mask->pdst != PORT_FULL_MASK) in efx_ethtool_set_class_rule() 983 spec.loc_port = ip_entry->pdst; in efx_ethtool_set_class_rule() 1014 if (ip6_mask->pdst) { in efx_ethtool_set_class_rule() 1015 if (ip6_mask->pdst != PORT_FULL_MASK) in efx_ethtool_set_class_rule() 1018 spec.loc_port = ip6_entry->pdst; in efx_ethtool_set_class_rule()
|
| /linux/drivers/net/ethernet/intel/idpf/ |
| H A D | idpf_ethtool.c | 124 udph->dest = fsp->h_u.udp_ip4_spec.pdst; in idpf_fsteer_fill_udp() 126 udpm->dest = fsp->m_u.udp_ip4_spec.pdst; in idpf_fsteer_fill_udp() 129 udph->dest = fsp->h_u.udp_ip6_spec.pdst; in idpf_fsteer_fill_udp() 131 udpm->dest = fsp->m_u.udp_ip6_spec.pdst; in idpf_fsteer_fill_udp() 148 tcph->dest = fsp->h_u.tcp_ip4_spec.pdst; in idpf_fsteer_fill_tcp() 150 tcpm->dest = fsp->m_u.tcp_ip4_spec.pdst; in idpf_fsteer_fill_tcp() 153 tcph->dest = fsp->h_u.tcp_ip6_spec.pdst; in idpf_fsteer_fill_tcp() 155 tcpm->dest = fsp->m_u.tcp_ip6_spec.pdst; in idpf_fsteer_fill_tcp()
|
| /linux/drivers/net/ethernet/intel/iavf/ |
| H A D | iavf_ethtool.c | 946 fsp->h_u.tcp_ip4_spec.pdst = rule->ip_data.dst_port; in iavf_get_ethtool_fdir_entry() 951 fsp->m_u.tcp_ip4_spec.pdst = rule->ip_mask.dst_port; in iavf_get_ethtool_fdir_entry() 987 fsp->h_u.tcp_ip6_spec.pdst = rule->ip_data.dst_port; in iavf_get_ethtool_fdir_entry() 994 fsp->m_u.tcp_ip6_spec.pdst = rule->ip_mask.dst_port; in iavf_get_ethtool_fdir_entry() 1137 fltr->ip_data.dst_port = fsp->h_u.tcp_ip4_spec.pdst; in iavf_add_fdir_fltr_info() 1142 fltr->ip_mask.dst_port = fsp->m_u.tcp_ip4_spec.pdst; in iavf_add_fdir_fltr_info() 1179 fltr->ip_data.dst_port = fsp->h_u.tcp_ip6_spec.pdst; in iavf_add_fdir_fltr_info() 1186 fltr->ip_mask.dst_port = fsp->m_u.tcp_ip6_spec.pdst; in iavf_add_fdir_fltr_info()
|
| /linux/drivers/net/ethernet/broadcom/asp2/ |
| H A D | bcmasp.c | 355 &match->pdst, &mask->pdst, in bcmasp_netfilt_tcpip4_wr() 356 sizeof(match->pdst)); in bcmasp_netfilt_tcpip4_wr() 385 &match->pdst, &mask->pdst, in bcmasp_netfilt_tcpip6_wr() 386 sizeof(match->pdst)); in bcmasp_netfilt_tcpip6_wr()
|
| /linux/drivers/net/ethernet/netronome/nfp/ |
| H A D | nfp_net_ethtool.c | 1342 fs->h_u.tcp_ip4_spec.pdst = entry->key.dport; in nfp_net_fs_to_ethtool() 1346 fs->m_u.tcp_ip4_spec.pdst = entry->msk.dport; in nfp_net_fs_to_ethtool() 1358 fs->h_u.tcp_ip6_spec.pdst = entry->key.dport; in nfp_net_fs_to_ethtool() 1360 fs->m_u.tcp_ip6_spec.pdst = entry->msk.dport; in nfp_net_fs_to_ethtool() 1530 entry->msk.dport = fs->m_u.tcp_ip4_spec.pdst; in nfp_net_fs_from_ethtool() 1534 entry->key.dport = fs->h_u.tcp_ip4_spec.pdst & entry->msk.dport; in nfp_net_fs_from_ethtool() 1546 entry->msk.dport = fs->m_u.tcp_ip6_spec.pdst; in nfp_net_fs_from_ethtool() 1548 entry->key.dport = fs->h_u.tcp_ip6_spec.pdst & entry->msk.dport; in nfp_net_fs_from_ethtool()
|
| /linux/drivers/net/ethernet/aquantia/atlantic/ |
| H A D | aq_filters.c | 534 ntohs(fsp->h_u.tcp_ip4_spec.pdst); in aq_set_data_fl3l4() 539 ntohs(fsp->h_u.tcp_ip6_spec.pdst); in aq_set_data_fl3l4()
|
| /linux/drivers/net/ethernet/chelsio/cxgb4/ |
| H A D | cxgb4_ethtool.c | 1663 fs->h_u.tcp_ip6_spec.pdst = cpu_to_be16(dfs->val.lport); in cxgb4_fill_filter_rule() 1664 fs->m_u.tcp_ip6_spec.pdst = cpu_to_be16(dfs->mask.lport); in cxgb4_fill_filter_rule() 1678 fs->h_u.tcp_ip4_spec.pdst = cpu_to_be16(dfs->val.lport); in cxgb4_fill_filter_rule() 1679 fs->m_u.tcp_ip4_spec.pdst = cpu_to_be16(dfs->mask.lport); in cxgb4_fill_filter_rule()
|
| /linux/drivers/net/ethernet/mellanox/mlx4/ |
| H A D | en_ethtool.c | 1353 !all_zeros_or_all_ones(l4_mask->pdst)) in mlx4_en_validate_flow() 1515 spec_l4->tcp_udp.dst_port = cmd->fs.h_u.tcp_ip4_spec.pdst; in add_tcp_udp_rule() 1527 spec_l4->tcp_udp.dst_port = cmd->fs.h_u.udp_ip4_spec.pdst; in add_tcp_udp_rule() 1537 if (l4_mask->pdst) in add_tcp_udp_rule()
|
| /linux/drivers/net/ethernet/broadcom/bnxt/ |
| H A D | bnxt_ethtool.c | 1214 fs->h_u.tcp_ip4_spec.pdst = fkeys->ports.dst; in bnxt_grxclsrule() 1215 fs->m_u.tcp_ip4_spec.pdst = fmasks->ports.dst; in bnxt_grxclsrule() 1246 fs->h_u.tcp_ip6_spec.pdst = fkeys->ports.dst; in bnxt_grxclsrule() 1247 fs->m_u.tcp_ip6_spec.pdst = fmasks->ports.dst; in bnxt_grxclsrule() 1447 fkeys->ports.dst = ip_spec->pdst; in bnxt_add_ntuple_cls_rule() 1448 fmasks->ports.dst = ip_mask->pdst; in bnxt_add_ntuple_cls_rule() 1480 fkeys->ports.dst = ip_spec->pdst; in bnxt_add_ntuple_cls_rule() 1481 fmasks->ports.dst = ip_mask->pdst; in bnxt_add_ntuple_cls_rule()
|
| /linux/drivers/net/ethernet/freescale/ |
| H A D | gianfar_ethtool.c | 957 gfar_set_attribute(be16_to_cpu(value->pdst), in gfar_set_basic_ip() 958 be16_to_cpu(mask->pdst), in gfar_set_basic_ip()
|
| /linux/drivers/net/ethernet/cadence/ |
| H A D | macb_main.c | 3845 if (enable && ((tp4sp_m->psrc == 0xFFFF) || (tp4sp_m->pdst == 0xFFFF))) in gem_enable_flow_filters() 3898 if ((tp4sp_m->psrc == 0xFFFF) || (tp4sp_m->pdst == 0xFFFF)) { in gem_prog_cmp_regs() 3903 if (tp4sp_m->psrc == tp4sp_m->pdst) { in gem_prog_cmp_regs() 3905 w0 = GEM_BFINS(T2CMP, tp4sp_v->pdst, w0); in gem_prog_cmp_regs() 3916 w0 = GEM_BFINS(T2CMP, tp4sp_v->pdst, w0); in gem_prog_cmp_regs() 3958 be16_to_cpu(fs->h_u.tcp_ip4_spec.pdst)); in gem_add_flow_filter() 4012 be16_to_cpu(fs->h_u.tcp_ip4_spec.pdst)); in gem_del_flow_filter()
|
| /linux/drivers/net/ethernet/freescale/enetc/ |
| H A D | enetc_ethtool.c | 805 rfse.dport_h = ntohs(l4ip4_h->pdst); in enetc_set_cls_entry() 806 rfse.dport_m = ntohs(l4ip4_m->pdst); in enetc_set_cls_entry()
|
| /linux/drivers/net/ethernet/intel/ixgbe/ |
| H A D | ixgbe_ethtool.c | 2712 fsp->h_u.tcp_ip4_spec.pdst = rule->filter.formatted.dst_port; in ixgbe_get_ethtool_fdir_entry() 2713 fsp->m_u.tcp_ip4_spec.pdst = mask->formatted.dst_port; in ixgbe_get_ethtool_fdir_entry() 3014 input->filter.formatted.dst_port = fsp->h_u.tcp_ip4_spec.pdst; in ixgbe_add_ethtool_fdir_entry() 3015 mask.formatted.dst_port = fsp->m_u.tcp_ip4_spec.pdst; in ixgbe_add_ethtool_fdir_entry()
|
| /linux/drivers/dma/ |
| H A D | at_hdmac.c | 1052 dma_addr_t psrc, dma_addr_t pdst, size_t len) in atdma_create_memset_lli() argument 1076 lli->daddr = pdst; in atdma_create_memset_lli()
|
| /linux/drivers/net/ethernet/qlogic/qede/ |
| H A D | qede_filter.c | 1346 fsp->h_u.tcp_ip4_spec.pdst = fltr->tuple.dst_port; in qede_get_cls_rule_entry() 1355 fsp->h_u.tcp_ip6_spec.pdst = fltr->tuple.dst_port; in qede_get_cls_rule_entry()
|
| /linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
| H A D | hclge_main.c | 5946 if (!spec->pdst) in hclge_fd_check_tcpip4_tuple() 6003 if (!spec->pdst) in hclge_fd_check_tcpip6_tuple() 6276 rule->tuples.dst_port = be16_to_cpu(fs->h_u.tcp_ip4_spec.pdst); in hclge_fd_get_tcpip4_tuple() 6277 rule->tuples_mask.dst_port = be16_to_cpu(fs->m_u.tcp_ip4_spec.pdst); in hclge_fd_get_tcpip4_tuple() 6328 rule->tuples.dst_port = be16_to_cpu(fs->h_u.tcp_ip6_spec.pdst); in hclge_fd_get_tcpip6_tuple() 6329 rule->tuples_mask.dst_port = be16_to_cpu(fs->m_u.tcp_ip6_spec.pdst); in hclge_fd_get_tcpip6_tuple() 6745 spec->pdst = cpu_to_be16(rule->tuples.dst_port); in hclge_fd_get_tcpip4_info() 6746 spec_mask->pdst = rule->unused_tuple & BIT(INNER_DST_PORT) ? in hclge_fd_get_tcpip4_info() 6803 spec->pdst = cpu_to_be16(rule->tuples.dst_port); in hclge_fd_get_tcpip6_info() 6804 spec_mask->pdst = rule->unused_tuple & BIT(INNER_DST_PORT) ? in hclge_fd_get_tcpip6_info()
|
| /linux/net/sched/ |
| H A D | cls_flower.c | 2120 void *pdst = fl_key_get_start(&dst->key, src); in fl_mask_copy() 2122 memcpy(pdst, psrc, fl_mask_range(src)); in fl_mask_copy() 2124 void *pdst = fl_key_get_start(&dst->key, src); fl_mask_copy() local
|
| /linux/drivers/net/ethernet/sun/ |
| H A D | niu.c | 7147 fsp->h_u.tcp_ip4_spec.pdst = cpu_to_be16(prt); in niu_get_ip4fs_from_tcam_key() 7155 fsp->m_u.tcp_ip4_spec.pdst = cpu_to_be16(prt); in niu_get_ip4fs_from_tcam_key() 7419 dport = be16_to_cpu(fsp->h_u.tcp_ip4_spec.pdst); in niu_get_tcamkey_from_ip4fs() 7420 dpm = be16_to_cpu(fsp->m_u.tcp_ip4_spec.pdst); in niu_get_tcamkey_from_ip4fs()
|