Home
last modified time | relevance | path

Searched refs:pdst (Results 1 – 25 of 29) sorted by relevance

12

/linux/tools/testing/selftests/bpf/progs/
H A Dcrypto_bench.c60 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()
H A Dcrypto_sanity.c92 struct bpf_dynptr psrc, pdst; in decrypt_sanity() local
116 bpf_dynptr_from_mem(dst, sizeof(dst), 0, &pdst); in decrypt_sanity()
118 status = bpf_crypto_decrypt(ctx, &psrc, &pdst, NULL); in decrypt_sanity()
128 struct bpf_dynptr psrc, pdst; in encrypt_sanity() local
154 bpf_dynptr_from_mem(dst, sizeof(dst), 0, &pdst); in encrypt_sanity()
156 status = bpf_crypto_encrypt(ctx, &psrc, &pdst, NULL); in encrypt_sanity()
/linux/drivers/net/ethernet/google/gve/
H A Dgve_flow_rule.c45 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 Dcrypto.c272 u8 *pdst, *piv; in bpf_crypto_crypt() local
290 pdst = __bpf_dynptr_data_rw(dst, dst_len); in bpf_crypto_crypt()
291 if (!pdst) in bpf_crypto_crypt()
298 err = decrypt ? ctx->type->decrypt(ctx->tfm, psrc, pdst, src_len, piv) in bpf_crypto_crypt()
299 : ctx->type->encrypt(ctx->tfm, psrc, pdst, src_len, piv); in bpf_crypto_crypt()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_fs_ethtool.c242 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 Dethtool_common.c685 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()
964 if (ip_mask->pdst) { in efx_ethtool_set_class_rule()
965 if (ip_mask->pdst != PORT_FULL_MASK) in efx_ethtool_set_class_rule()
968 spec.loc_port = ip_entry->pdst; in efx_ethtool_set_class_rule()
999 if (ip6_mask->pdst) { in efx_ethtool_set_class_rule()
1000 if (ip6_mask->pdst != PORT_FULL_MASK) in efx_ethtool_set_class_rule()
1003 spec.loc_port = ip6_entry->pdst; in efx_ethtool_set_class_rule()
/linux/drivers/net/ethernet/intel/ice/
H A Dice_ethtool_fdir.c166 fsp->h_u.tcp_ip4_spec.pdst = rule->ip.v4.dst_port; in ice_get_ethtool_fdir_entry()
170 fsp->m_u.tcp_ip4_spec.pdst = rule->mask.v4.dst_port; in ice_get_ethtool_fdir_entry()
198 fsp->h_u.tcp_ip6_spec.pdst = rule->ip.v6.dst_port; in ice_get_ethtool_fdir_entry()
206 fsp->m_u.tcp_ip6_spec.pdst = rule->mask.v6.dst_port; in ice_get_ethtool_fdir_entry()
933 !tcp_ip4_spec->pdst && !tcp_ip4_spec->ip4dst) in ice_set_fdir_ip4_seg()
987 if (tcp_ip4_spec->pdst == htons(0xFFFF)) in ice_set_fdir_ip4_seg()
991 else if (!tcp_ip4_spec->pdst) in ice_set_fdir_ip4_seg()
1077 !tcp_ip6_spec->psrc && !tcp_ip6_spec->pdst) in ice_set_fdir_ip6_seg()
1133 if (tcp_ip6_spec->pdst == htons(0xFFFF)) in ice_set_fdir_ip6_seg()
1137 else if (!tcp_ip6_spec->pdst) in ice_set_fdir_ip6_seg()
[all …]
/linux/drivers/net/ethernet/wangxun/txgbe/
H A Dtxgbe_ethtool.c127 fsp->h_u.tcp_ip4_spec.pdst = rule->filter.formatted.dst_port; in txgbe_get_ethtool_fdir_entry()
128 fsp->m_u.tcp_ip4_spec.pdst = mask->formatted.dst_port; in txgbe_get_ethtool_fdir_entry()
388 input->filter.formatted.dst_port = fsp->h_u.tcp_ip4_spec.pdst; in txgbe_add_ethtool_fdir_entry()
389 mask.formatted.dst_port = fsp->m_u.tcp_ip4_spec.pdst; in txgbe_add_ethtool_fdir_entry()
/linux/drivers/net/ethernet/intel/iavf/
H A Diavf_ethtool.c948 fsp->h_u.tcp_ip4_spec.pdst = rule->ip_data.dst_port; in iavf_get_ethtool_fdir_entry()
953 fsp->m_u.tcp_ip4_spec.pdst = rule->ip_mask.dst_port; in iavf_get_ethtool_fdir_entry()
989 fsp->h_u.tcp_ip6_spec.pdst = rule->ip_data.dst_port; in iavf_get_ethtool_fdir_entry()
996 fsp->m_u.tcp_ip6_spec.pdst = rule->ip_mask.dst_port; in iavf_get_ethtool_fdir_entry()
1139 fltr->ip_data.dst_port = fsp->h_u.tcp_ip4_spec.pdst; in iavf_add_fdir_fltr_info()
1144 fltr->ip_mask.dst_port = fsp->m_u.tcp_ip4_spec.pdst; in iavf_add_fdir_fltr_info()
1181 fltr->ip_data.dst_port = fsp->h_u.tcp_ip6_spec.pdst; in iavf_add_fdir_fltr_info()
1188 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 Dbcmasp.c355 &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/infiniband/core/
H A Daddr.c414 struct dst_entry **pdst) in addr6_resolve() argument
436 *pdst = dst; in addr6_resolve()
443 struct dst_entry **pdst) in addr6_resolve() argument
/linux/drivers/net/ethernet/netronome/nfp/
H A Dnfp_net_ethtool.c1341 fs->h_u.tcp_ip4_spec.pdst = entry->key.dport; in nfp_net_fs_to_ethtool()
1345 fs->m_u.tcp_ip4_spec.pdst = entry->msk.dport; in nfp_net_fs_to_ethtool()
1357 fs->h_u.tcp_ip6_spec.pdst = entry->key.dport; in nfp_net_fs_to_ethtool()
1359 fs->m_u.tcp_ip6_spec.pdst = entry->msk.dport; in nfp_net_fs_to_ethtool()
1525 entry->msk.dport = fs->m_u.tcp_ip4_spec.pdst; in nfp_net_fs_from_ethtool()
1529 entry->key.dport = fs->h_u.tcp_ip4_spec.pdst & entry->msk.dport; in nfp_net_fs_from_ethtool()
1541 entry->msk.dport = fs->m_u.tcp_ip6_spec.pdst; in nfp_net_fs_from_ethtool()
1543 entry->key.dport = fs->h_u.tcp_ip6_spec.pdst & entry->msk.dport; in nfp_net_fs_from_ethtool()
/linux/drivers/net/ethernet/cisco/enic/
H A Denic_ethtool.c523 fsp->h_u.tcp_ip4_spec.pdst = n->keys.ports.dst; in enic_grxclsrule()
524 fsp->m_u.tcp_ip4_spec.pdst = (__u16)~0; in enic_grxclsrule()
/linux/include/uapi/linux/
H A Dethtool.h1244 __be16 pdst; member
1298 __be16 pdst; member
/linux/net/ethtool/
H A Dioctl.c3526 if (v4_m_spec->pdst) { in ethtool_rx_flow_rule_create()
3527 match->key.tp.dst = v4_spec->pdst; in ethtool_rx_flow_rule_create()
3528 match->mask.tp.dst = v4_m_spec->pdst; in ethtool_rx_flow_rule_create()
3531 v4_m_spec->pdst) { in ethtool_rx_flow_rule_create()
3578 if (v6_m_spec->pdst) { in ethtool_rx_flow_rule_create()
3579 match->key.tp.dst = v6_spec->pdst; in ethtool_rx_flow_rule_create()
3580 match->mask.tp.dst = v6_m_spec->pdst; in ethtool_rx_flow_rule_create()
3583 v6_m_spec->pdst) { in ethtool_rx_flow_rule_create()
/linux/drivers/net/ethernet/aquantia/atlantic/
H A Daq_filters.c534 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/intel/i40e/
H A Di40e_ethtool.c3395 fsp->h_u.tcp_ip6_spec.pdst = rule->src_port; in i40e_get_ethtool_fdir_entry()
3406 fsp->h_u.tcp_ip4_spec.pdst = rule->src_port; in i40e_get_ethtool_fdir_entry()
3475 fsp->m_u.tcp_ip4_spec.pdst = htons(0xFFFF); in i40e_get_ethtool_fdir_entry()
4396 if (tcp_ip4_spec->pdst == htons(0xFFFF)) in i40e_check_fdir_input_set()
4398 else if (!tcp_ip4_spec->pdst) in i40e_check_fdir_input_set()
4444 if (tcp_ip6_spec->pdst == htons(0xFFFF)) in i40e_check_fdir_input_set()
4446 else if (!tcp_ip6_spec->pdst) in i40e_check_fdir_input_set()
4898 input->src_port = fsp->h_u.tcp_ip6_spec.pdst; in i40e_add_fdir_ethtool()
4910 input->src_port = fsp->h_u.tcp_ip4_spec.pdst; in i40e_add_fdir_ethtool()
/linux/fs/f2fs/
H A Dfile.c1392 struct page *psrc, *pdst; in __clone_blkaddrs() local
1398 pdst = f2fs_get_new_data_page(dst_inode, NULL, dst + i, in __clone_blkaddrs()
1400 if (IS_ERR(pdst)) { in __clone_blkaddrs()
1402 return PTR_ERR(pdst); in __clone_blkaddrs()
1405 f2fs_wait_on_page_writeback(pdst, DATA, true, true); in __clone_blkaddrs()
1407 memcpy_page(pdst, 0, psrc, 0, PAGE_SIZE); in __clone_blkaddrs()
1408 set_page_dirty(pdst); in __clone_blkaddrs()
1409 set_page_private_gcing(pdst); in __clone_blkaddrs()
1410 f2fs_put_page(pdst, 1); in __clone_blkaddrs()
/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_ethtool.c1663 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 Den_ethtool.c1353 !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 Dbnxt_ethtool.c1153 fs->h_u.tcp_ip4_spec.pdst = fkeys->ports.dst; in bnxt_grxclsrule()
1154 fs->m_u.tcp_ip4_spec.pdst = fmasks->ports.dst; in bnxt_grxclsrule()
1185 fs->h_u.tcp_ip6_spec.pdst = fkeys->ports.dst; in bnxt_grxclsrule()
1186 fs->m_u.tcp_ip6_spec.pdst = fmasks->ports.dst; in bnxt_grxclsrule()
1385 fkeys->ports.dst = ip_spec->pdst; in bnxt_add_ntuple_cls_rule()
1386 fmasks->ports.dst = ip_mask->pdst; in bnxt_add_ntuple_cls_rule()
1418 fkeys->ports.dst = ip_spec->pdst; in bnxt_add_ntuple_cls_rule()
1419 fmasks->ports.dst = ip_mask->pdst; in bnxt_add_ntuple_cls_rule()
/linux/drivers/net/ethernet/freescale/enetc/
H A Denetc_ethtool.c533 rfse.dport_h = ntohs(l4ip4_h->pdst); in enetc_set_cls_entry()
534 rfse.dport_m = ntohs(l4ip4_m->pdst); in enetc_set_cls_entry()
/linux/drivers/net/ethernet/freescale/
H A Dgianfar_ethtool.c945 gfar_set_attribute(be16_to_cpu(value->pdst), in gfar_set_basic_ip()
946 be16_to_cpu(mask->pdst), in gfar_set_basic_ip()
/linux/drivers/net/ethernet/cadence/
H A Dmacb_main.c3492 if (enable && ((tp4sp_m->psrc == 0xFFFF) || (tp4sp_m->pdst == 0xFFFF))) in gem_enable_flow_filters()
3545 if ((tp4sp_m->psrc == 0xFFFF) || (tp4sp_m->pdst == 0xFFFF)) { in gem_prog_cmp_regs()
3550 if (tp4sp_m->psrc == tp4sp_m->pdst) { in gem_prog_cmp_regs()
3552 w0 = GEM_BFINS(T2CMP, tp4sp_v->pdst, w0); in gem_prog_cmp_regs()
3563 w0 = GEM_BFINS(T2CMP, tp4sp_v->pdst, w0); in gem_prog_cmp_regs()
3605 be16_to_cpu(fs->h_u.tcp_ip4_spec.pdst)); in gem_add_flow_filter()
3659 be16_to_cpu(fs->h_u.tcp_ip4_spec.pdst)); in gem_del_flow_filter()
/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_ethtool.c2580 fsp->h_u.tcp_ip4_spec.pdst = rule->filter.formatted.dst_port; in ixgbe_get_ethtool_fdir_entry()
2581 fsp->m_u.tcp_ip4_spec.pdst = mask->formatted.dst_port; in ixgbe_get_ethtool_fdir_entry()
2880 input->filter.formatted.dst_port = fsp->h_u.tcp_ip4_spec.pdst; in ixgbe_add_ethtool_fdir_entry()
2881 mask.formatted.dst_port = fsp->m_u.tcp_ip4_spec.pdst; in ixgbe_add_ethtool_fdir_entry()

12