Home
last modified time | relevance | path

Searched refs:psrc (Results 1 – 25 of 37) sorted by relevance

12

/Linux-v6.6/arch/um/kernel/
Dmaccess.c12 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-v6.6/drivers/media/common/videobuf2/
Dvideobuf2-v4l2.c254 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-v6.6/drivers/net/ethernet/mellanox/mlx5/core/
Den_fs_ethtool.c241 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-v6.6/drivers/net/ethernet/intel/ice/
Dice_ethtool_fdir.c157 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-v6.6/drivers/net/ethernet/sfc/
Dethtool_common.c695 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-v6.6/drivers/net/ethernet/sfc/siena/
Dethtool_common.c695 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-v6.6/drivers/net/ethernet/sfc/falcon/
Dethtool.c842 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-v6.6/drivers/media/dvb-core/
Ddvb_vb2.c260 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-v6.6/drivers/net/ethernet/intel/iavf/
Diavf_ethtool.c1096 fsp->h_u.tcp_ip4_spec.psrc = rule->ip_data.src_port; in iavf_get_ethtool_fdir_entry()
1101 fsp->m_u.tcp_ip4_spec.psrc = rule->ip_mask.src_port; in iavf_get_ethtool_fdir_entry()
1137 fsp->h_u.tcp_ip6_spec.psrc = rule->ip_data.src_port; in iavf_get_ethtool_fdir_entry()
1144 fsp->m_u.tcp_ip6_spec.psrc = rule->ip_mask.src_port; in iavf_get_ethtool_fdir_entry()
1284 fltr->ip_data.src_port = fsp->h_u.tcp_ip4_spec.psrc; in iavf_add_fdir_fltr_info()
1289 fltr->ip_mask.src_port = fsp->m_u.tcp_ip4_spec.psrc; in iavf_add_fdir_fltr_info()
1326 fltr->ip_data.src_port = fsp->h_u.tcp_ip6_spec.psrc; in iavf_add_fdir_fltr_info()
1333 fltr->ip_mask.src_port = fsp->m_u.tcp_ip6_spec.psrc; in iavf_add_fdir_fltr_info()
/Linux-v6.6/drivers/net/ethernet/broadcom/asp2/
Dbcmasp.c335 &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-v6.6/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_flows.c615 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-v6.6/drivers/crypto/
Dtalitos.c876 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-v6.6/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-ethtool.c459 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-v6.6/arch/powerpc/sysdev/
Dmpic.c1226 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-v6.6/drivers/net/ethernet/cisco/enic/
Denic_ethtool.c438 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-v6.6/net/ethtool/
Dioctl.c3215 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-v6.6/include/uapi/linux/
Dethtool.h979 __be16 psrc; member
1033 __be16 psrc; member
/Linux-v6.6/drivers/net/ethernet/aquantia/atlantic/
Daq_filters.c536 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-v6.6/drivers/net/ethernet/intel/i40e/
Di40e_ethtool.c3391 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-v6.6/drivers/net/ethernet/mellanox/mlx4/
Den_ethtool.c1371 !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-v6.6/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_ethtool.c1664 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-v6.6/net/ipv6/
Dmcast.c1915 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-v6.6/drivers/net/ethernet/cadence/
Dmacb_main.c3467 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-v6.6/fs/f2fs/
Dfile.c1306 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()
1321 f2fs_put_page(psrc, 1); in __clone_blkaddrs()
/Linux-v6.6/drivers/net/ethernet/freescale/enetc/
Denetc_ethtool.c544 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()

12