/linux-6.6.21/arch/um/kernel/ |
D | maccess.c | 12 void *psrc = (void *)rounddown((unsigned long)src, PAGE_SIZE); in copy_from_kernel_nofault_allowed() local 16 if (os_mincore(psrc, size + src - psrc) <= 0) in copy_from_kernel_nofault_allowed()
|
/linux-6.6.21/drivers/media/common/videobuf2/ |
D | videobuf2-v4l2.c | 254 struct v4l2_plane *psrc = &b->m.planes[plane]; in vb2_fill_vb2_v4l2_buffer() local 256 if (psrc->bytesused == 0) in vb2_fill_vb2_v4l2_buffer() 260 pdst->bytesused = psrc->bytesused; in vb2_fill_vb2_v4l2_buffer() 262 pdst->bytesused = psrc->bytesused ? in vb2_fill_vb2_v4l2_buffer() 263 psrc->bytesused : pdst->length; in vb2_fill_vb2_v4l2_buffer() 264 pdst->data_offset = psrc->data_offset; in vb2_fill_vb2_v4l2_buffer() 521 struct vb2_plane *psrc = &vb->planes[plane]; in __fill_v4l2_buffer() local 523 pdst->bytesused = psrc->bytesused; in __fill_v4l2_buffer() 524 pdst->length = psrc->length; in __fill_v4l2_buffer() 526 pdst->m.mem_offset = psrc->m.offset; in __fill_v4l2_buffer() [all …]
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_fs_ethtool.c | 241 set_tcp(headers_c, headers_v, l4_mask->psrc, l4_val->psrc, in parse_tcp4() 254 set_udp(headers_c, headers_v, l4_mask->psrc, l4_val->psrc, in parse_udp4() 297 set_tcp(headers_c, headers_v, l4_mask->psrc, l4_val->psrc, in parse_tcp6() 310 set_udp(headers_c, headers_v, l4_mask->psrc, l4_val->psrc, in parse_udp6() 584 if (l4_mask->psrc) in validate_tcpudp4() 642 if (l4_mask->psrc) in validate_tcpudp6()
|
/linux-6.6.21/drivers/net/ethernet/intel/ice/ |
D | ice_ethtool_fdir.c | 157 fsp->h_u.tcp_ip4_spec.psrc = rule->ip.v4.src_port; in ice_get_ethtool_fdir_entry() 161 fsp->m_u.tcp_ip4_spec.psrc = rule->mask.v4.src_port; in ice_get_ethtool_fdir_entry() 189 fsp->h_u.tcp_ip6_spec.psrc = rule->ip.v6.src_port; in ice_get_ethtool_fdir_entry() 197 fsp->m_u.tcp_ip6_spec.psrc = rule->mask.v6.src_port; in ice_get_ethtool_fdir_entry() 922 if (!tcp_ip4_spec->psrc && !tcp_ip4_spec->ip4src && in ice_set_fdir_ip4_seg() 967 if (tcp_ip4_spec->psrc == htons(0xFFFF)) in ice_set_fdir_ip4_seg() 971 else if (!tcp_ip4_spec->psrc) in ice_set_fdir_ip4_seg() 1067 !tcp_ip6_spec->psrc && !tcp_ip6_spec->pdst) in ice_set_fdir_ip6_seg() 1113 if (tcp_ip6_spec->psrc == htons(0xFFFF)) in ice_set_fdir_ip6_seg() 1117 else if (!tcp_ip6_spec->psrc) in ice_set_fdir_ip6_seg() [all …]
|
/linux-6.6.21/drivers/net/ethernet/sfc/siena/ |
D | ethtool_common.c | 695 ip_entry->psrc = spec.rem_port; in efx_ethtool_get_class_rule() 696 ip_mask->psrc = PORT_FULL_MASK; in efx_ethtool_get_class_rule() 724 ip6_entry->psrc = spec.rem_port; in efx_ethtool_get_class_rule() 725 ip6_mask->psrc = PORT_FULL_MASK; in efx_ethtool_get_class_rule() 989 if (ip_mask->psrc) { in efx_ethtool_set_class_rule() 990 if (ip_mask->psrc != PORT_FULL_MASK) in efx_ethtool_set_class_rule() 993 spec.rem_port = ip_entry->psrc; in efx_ethtool_set_class_rule() 1024 if (ip6_mask->psrc) { in efx_ethtool_set_class_rule() 1025 if (ip6_mask->psrc != PORT_FULL_MASK) in efx_ethtool_set_class_rule() 1028 spec.rem_port = ip6_entry->psrc; in efx_ethtool_set_class_rule()
|
/linux-6.6.21/drivers/net/ethernet/sfc/ |
D | ethtool_common.c | 695 ip_entry->psrc = spec.rem_port; in efx_ethtool_get_class_rule() 696 ip_mask->psrc = PORT_FULL_MASK; in efx_ethtool_get_class_rule() 724 ip6_entry->psrc = spec.rem_port; in efx_ethtool_get_class_rule() 725 ip6_mask->psrc = PORT_FULL_MASK; in efx_ethtool_get_class_rule() 988 if (ip_mask->psrc) { in efx_ethtool_set_class_rule() 989 if (ip_mask->psrc != PORT_FULL_MASK) in efx_ethtool_set_class_rule() 992 spec.rem_port = ip_entry->psrc; in efx_ethtool_set_class_rule() 1023 if (ip6_mask->psrc) { in efx_ethtool_set_class_rule() 1024 if (ip6_mask->psrc != PORT_FULL_MASK) in efx_ethtool_set_class_rule() 1027 spec.rem_port = ip6_entry->psrc; in efx_ethtool_set_class_rule()
|
/linux-6.6.21/drivers/net/ethernet/sfc/falcon/ |
D | ethtool.c | 842 ip_entry->psrc = spec.rem_port; in ef4_ethtool_get_class_rule() 843 ip_mask->psrc = PORT_FULL_MASK; in ef4_ethtool_get_class_rule() 871 ip6_entry->psrc = spec.rem_port; in ef4_ethtool_get_class_rule() 872 ip6_mask->psrc = PORT_FULL_MASK; in ef4_ethtool_get_class_rule() 1090 if (ip_mask->psrc) { in ef4_ethtool_set_class_rule() 1091 if (ip_mask->psrc != PORT_FULL_MASK) in ef4_ethtool_set_class_rule() 1094 spec.rem_port = ip_entry->psrc; in ef4_ethtool_set_class_rule() 1125 if (ip6_mask->psrc) { in ef4_ethtool_set_class_rule() 1126 if (ip6_mask->psrc != PORT_FULL_MASK) in ef4_ethtool_set_class_rule() 1129 spec.rem_port = ip6_entry->psrc; in ef4_ethtool_set_class_rule()
|
/linux-6.6.21/drivers/media/dvb-core/ |
D | dvb_vb2.c | 260 unsigned char *psrc = (unsigned char *)src; in dvb_vb2_fill_buffer() local 298 memcpy(vbuf + ctx->offset, psrc, ll); in dvb_vb2_fill_buffer() 300 psrc += ll; in dvb_vb2_fill_buffer()
|
/linux-6.6.21/drivers/net/ethernet/intel/iavf/ |
D | iavf_ethtool.c | 1088 fsp->h_u.tcp_ip4_spec.psrc = rule->ip_data.src_port; in iavf_get_ethtool_fdir_entry() 1093 fsp->m_u.tcp_ip4_spec.psrc = rule->ip_mask.src_port; in iavf_get_ethtool_fdir_entry() 1129 fsp->h_u.tcp_ip6_spec.psrc = rule->ip_data.src_port; in iavf_get_ethtool_fdir_entry() 1136 fsp->m_u.tcp_ip6_spec.psrc = rule->ip_mask.src_port; in iavf_get_ethtool_fdir_entry() 1276 fltr->ip_data.src_port = fsp->h_u.tcp_ip4_spec.psrc; in iavf_add_fdir_fltr_info() 1281 fltr->ip_mask.src_port = fsp->m_u.tcp_ip4_spec.psrc; in iavf_add_fdir_fltr_info() 1318 fltr->ip_data.src_port = fsp->h_u.tcp_ip6_spec.psrc; in iavf_add_fdir_fltr_info() 1325 fltr->ip_mask.src_port = fsp->m_u.tcp_ip6_spec.psrc; in iavf_add_fdir_fltr_info()
|
/linux-6.6.21/drivers/net/ethernet/broadcom/asp2/ |
D | bcmasp.c | 335 &match->psrc, &mask->psrc, in bcmasp_netfilt_tcpip4_wr() 336 sizeof(match->psrc)); in bcmasp_netfilt_tcpip4_wr() 365 &match->psrc, &mask->psrc, in bcmasp_netfilt_tcpip6_wr() 366 sizeof(match->psrc)); in bcmasp_netfilt_tcpip6_wr()
|
/linux-6.6.21/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_flows.c | 615 if (ipv4_l4_mask->psrc) { in otx2_prepare_ipv4_flow() 616 memcpy(&pkt->sport, &ipv4_l4_hdr->psrc, in otx2_prepare_ipv4_flow() 618 memcpy(&pmask->sport, &ipv4_l4_mask->psrc, in otx2_prepare_ipv4_flow() 745 if (ipv6_l4_mask->psrc) { in otx2_prepare_ipv6_flow() 746 memcpy(&pkt->sport, &ipv6_l4_hdr->psrc, in otx2_prepare_ipv6_flow() 748 memcpy(&pmask->sport, &ipv6_l4_mask->psrc, in otx2_prepare_ipv6_flow()
|
/linux-6.6.21/drivers/crypto/ |
D | talitos.c | 876 struct scatterlist *psrc; member 1720 if (req_ctx->psrc) in common_nonsnoop_hash_unmap() 1721 talitos_sg_unmap(dev, edesc, req_ctx->psrc, NULL, 0, 0); in common_nonsnoop_hash_unmap() 1826 sg_copy_to_buffer(req_ctx->psrc, sg_count, edesc->buf, length); in common_nonsnoop_hash() 1828 sg_count = dma_map_sg(dev, req_ctx->psrc, sg_count, in common_nonsnoop_hash() 1838 sg_count = talitos_sg_map(dev, req_ctx->psrc, length, edesc, in common_nonsnoop_hash() 1884 sg_count = talitos_sg_map(dev, req_ctx->psrc, length, edesc, in common_nonsnoop_hash() 1924 return talitos_edesc_alloc(ctx->dev, req_ctx->psrc, NULL, NULL, 0, in ahash_edesc_alloc() 2033 req_ctx->psrc = req_ctx->bufsl; in ahash_process_req() 2049 req_ctx->psrc = scatterwalk_ffwd(req_ctx->bufsl, areq->src, in ahash_process_req() [all …]
|
/linux-6.6.21/drivers/net/ethernet/freescale/dpaa2/ |
D | dpaa2-ethtool.c | 459 if (l4_mask->psrc) { in dpaa2_eth_prep_l4_rule() 461 *(__be16 *)(key + off) = l4_value->psrc; in dpaa2_eth_prep_l4_rule() 462 *(__be16 *)(mask + off) = l4_mask->psrc; in dpaa2_eth_prep_l4_rule()
|
/linux-6.6.21/arch/powerpc/sysdev/ |
D | mpic.c | 1226 const u32 *psrc; in mpic_alloc() local 1325 psrc = of_get_property(mpic->node, "protected-sources", &psize); in mpic_alloc() 1326 if (psrc) { in mpic_alloc() 1331 if (psrc[i] > intvec_top) in mpic_alloc() 1333 __set_bit(psrc[i], mpic->protected); in mpic_alloc()
|
/linux-6.6.21/drivers/net/ethernet/cisco/enic/ |
D | enic_ethtool.c | 438 fsp->h_u.tcp_ip4_spec.psrc = n->keys.ports.src; in enic_grxclsrule() 439 fsp->m_u.tcp_ip4_spec.psrc = (__u16)~0; in enic_grxclsrule()
|
/linux-6.6.21/net/ethtool/ |
D | ioctl.c | 3215 if (v4_m_spec->psrc) { in ethtool_rx_flow_rule_create() 3216 match->key.tp.src = v4_spec->psrc; in ethtool_rx_flow_rule_create() 3217 match->mask.tp.src = v4_m_spec->psrc; in ethtool_rx_flow_rule_create() 3223 if (v4_m_spec->psrc || in ethtool_rx_flow_rule_create() 3267 if (v6_m_spec->psrc) { in ethtool_rx_flow_rule_create() 3268 match->key.tp.src = v6_spec->psrc; in ethtool_rx_flow_rule_create() 3269 match->mask.tp.src = v6_m_spec->psrc; in ethtool_rx_flow_rule_create() 3275 if (v6_m_spec->psrc || in ethtool_rx_flow_rule_create()
|
/linux-6.6.21/include/uapi/linux/ |
D | ethtool.h | 979 __be16 psrc; member 1033 __be16 psrc; member
|
/linux-6.6.21/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_filters.c | 536 ntohs(fsp->h_u.tcp_ip4_spec.psrc); in aq_set_data_fl3l4() 541 ntohs(fsp->h_u.tcp_ip6_spec.psrc); in aq_set_data_fl3l4()
|
/linux-6.6.21/drivers/net/ethernet/intel/i40e/ |
D | i40e_ethtool.c | 3391 fsp->h_u.tcp_ip6_spec.psrc = rule->dst_port; in i40e_get_ethtool_fdir_entry() 3402 fsp->h_u.tcp_ip4_spec.psrc = rule->dst_port; in i40e_get_ethtool_fdir_entry() 3469 fsp->m_u.tcp_ip4_spec.psrc = htons(0xFFFF); in i40e_get_ethtool_fdir_entry() 4382 if (tcp_ip4_spec->psrc == htons(0xFFFF)) in i40e_check_fdir_input_set() 4384 else if (!tcp_ip4_spec->psrc) in i40e_check_fdir_input_set() 4430 if (tcp_ip6_spec->psrc == htons(0xFFFF)) in i40e_check_fdir_input_set() 4432 else if (!tcp_ip6_spec->psrc) in i40e_check_fdir_input_set() 4891 input->dst_port = fsp->h_u.tcp_ip6_spec.psrc; in i40e_add_fdir_ethtool() 4903 input->dst_port = fsp->h_u.tcp_ip4_spec.psrc; in i40e_add_fdir_ethtool()
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx4/ |
D | en_ethtool.c | 1371 !all_zeros_or_all_ones(l4_mask->psrc) || in mlx4_en_validate_flow() 1533 spec_l4->tcp_udp.src_port = cmd->fs.h_u.tcp_ip4_spec.psrc; in add_tcp_udp_rule() 1545 spec_l4->tcp_udp.src_port = cmd->fs.h_u.udp_ip4_spec.psrc; in add_tcp_udp_rule() 1554 if (l4_mask->psrc) in add_tcp_udp_rule()
|
/linux-6.6.21/drivers/net/ethernet/chelsio/cxgb4/ |
D | cxgb4_ethtool.c | 1664 fs->h_u.tcp_ip6_spec.psrc = cpu_to_be16(dfs->val.fport); in cxgb4_fill_filter_rule() 1665 fs->m_u.tcp_ip6_spec.psrc = cpu_to_be16(dfs->mask.fport); in cxgb4_fill_filter_rule() 1679 fs->h_u.tcp_ip4_spec.psrc = cpu_to_be16(dfs->val.fport); in cxgb4_fill_filter_rule() 1680 fs->m_u.tcp_ip4_spec.psrc = cpu_to_be16(dfs->mask.fport); in cxgb4_fill_filter_rule()
|
/linux-6.6.21/net/ipv6/ |
D | mcast.c | 1915 struct in6_addr *psrc; in add_grec() local 1937 if (AVAILABLE(skb) < sizeof(*psrc) + in add_grec() 1955 psrc = skb_put(skb, sizeof(*psrc)); in add_grec() 1956 *psrc = psf->sf_addr; in add_grec()
|
/linux-6.6.21/drivers/net/ethernet/cadence/ |
D | macb_main.c | 3467 if (enable && ((tp4sp_m->psrc == 0xFFFF) || (tp4sp_m->pdst == 0xFFFF))) in gem_enable_flow_filters() 3520 if ((tp4sp_m->psrc == 0xFFFF) || (tp4sp_m->pdst == 0xFFFF)) { in gem_prog_cmp_regs() 3525 if (tp4sp_m->psrc == tp4sp_m->pdst) { in gem_prog_cmp_regs() 3526 w0 = GEM_BFINS(T2MASK, tp4sp_v->psrc, w0); in gem_prog_cmp_regs() 3534 if (tp4sp_m->psrc == 0xFFFF) { /* src port */ in gem_prog_cmp_regs() 3535 w0 = GEM_BFINS(T2CMP, tp4sp_v->psrc, w0); in gem_prog_cmp_regs() 3579 be16_to_cpu(fs->h_u.tcp_ip4_spec.psrc), in gem_add_flow_filter() 3633 be16_to_cpu(fs->h_u.tcp_ip4_spec.psrc), in gem_del_flow_filter()
|
/linux-6.6.21/fs/f2fs/ |
D | file.c | 1306 struct page *psrc, *pdst; in __clone_blkaddrs() local 1308 psrc = f2fs_get_lock_data_page(src_inode, in __clone_blkaddrs() 1310 if (IS_ERR(psrc)) in __clone_blkaddrs() 1311 return PTR_ERR(psrc); in __clone_blkaddrs() 1315 f2fs_put_page(psrc, 1); in __clone_blkaddrs() 1318 memcpy_page(pdst, 0, psrc, 0, PAGE_SIZE); in __clone_blkaddrs() 1322 f2fs_put_page(psrc, 1); in __clone_blkaddrs()
|
/linux-6.6.21/drivers/net/ethernet/freescale/enetc/ |
D | enetc_ethtool.c | 544 rfse.sport_h = ntohs(l4ip4_h->psrc); in enetc_set_cls_entry() 545 rfse.sport_m = ntohs(l4ip4_m->psrc); in enetc_set_cls_entry()
|