Home
last modified time | relevance | path

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

12

/linux-6.1.9/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-6.1.9/drivers/staging/media/deprecated/zr364xx/
Dzr364xx.c555 unsigned char *psrc; in zr364xx_read_video_callback() local
577 psrc = (u8 *)pipe_info->transfer_buffer; in zr364xx_read_video_callback()
598 memcpy(ptr, psrc, 64); in zr364xx_read_video_callback()
603 memcpy(ptr, psrc + 64, 64); in zr364xx_read_video_callback()
607 memcpy(ptr, psrc + 128, in zr364xx_read_video_callback()
611 psrc[0], psrc[1], psrc[2], in zr364xx_read_video_callback()
612 psrc[3], psrc[4], psrc[5], in zr364xx_read_video_callback()
613 psrc[6], psrc[7], psrc[8]); in zr364xx_read_video_callback()
622 memcpy(pdest, psrc, purb->actual_length); in zr364xx_read_video_callback()
/linux-6.1.9/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-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Den_fs_ethtool.c245 set_tcp(headers_c, headers_v, l4_mask->psrc, l4_val->psrc, in parse_tcp4()
258 set_udp(headers_c, headers_v, l4_mask->psrc, l4_val->psrc, in parse_udp4()
301 set_tcp(headers_c, headers_v, l4_mask->psrc, l4_val->psrc, in parse_tcp6()
314 set_udp(headers_c, headers_v, l4_mask->psrc, l4_val->psrc, in parse_udp6()
588 if (l4_mask->psrc) in validate_tcpudp4()
646 if (l4_mask->psrc) in validate_tcpudp6()
/linux-6.1.9/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-6.1.9/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-6.1.9/drivers/net/ethernet/sfc/
Dethtool_common.c732 ip_entry->psrc = spec.rem_port; in efx_ethtool_get_class_rule()
733 ip_mask->psrc = PORT_FULL_MASK; in efx_ethtool_get_class_rule()
761 ip6_entry->psrc = spec.rem_port; in efx_ethtool_get_class_rule()
762 ip6_mask->psrc = PORT_FULL_MASK; in efx_ethtool_get_class_rule()
1025 if (ip_mask->psrc) { in efx_ethtool_set_class_rule()
1026 if (ip_mask->psrc != PORT_FULL_MASK) in efx_ethtool_set_class_rule()
1029 spec.rem_port = ip_entry->psrc; in efx_ethtool_set_class_rule()
1060 if (ip6_mask->psrc) { in efx_ethtool_set_class_rule()
1061 if (ip6_mask->psrc != PORT_FULL_MASK) in efx_ethtool_set_class_rule()
1064 spec.rem_port = ip6_entry->psrc; in efx_ethtool_set_class_rule()
/linux-6.1.9/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-6.1.9/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-6.1.9/drivers/net/ethernet/intel/iavf/
Diavf_ethtool.c1090 fsp->h_u.tcp_ip4_spec.psrc = rule->ip_data.src_port; in iavf_get_ethtool_fdir_entry()
1095 fsp->m_u.tcp_ip4_spec.psrc = rule->ip_mask.src_port; in iavf_get_ethtool_fdir_entry()
1131 fsp->h_u.tcp_ip6_spec.psrc = rule->ip_data.src_port; in iavf_get_ethtool_fdir_entry()
1138 fsp->m_u.tcp_ip6_spec.psrc = rule->ip_mask.src_port; in iavf_get_ethtool_fdir_entry()
1278 fltr->ip_data.src_port = fsp->h_u.tcp_ip4_spec.psrc; in iavf_add_fdir_fltr_info()
1283 fltr->ip_mask.src_port = fsp->m_u.tcp_ip4_spec.psrc; in iavf_add_fdir_fltr_info()
1317 fltr->ip_data.src_port = fsp->h_u.tcp_ip6_spec.psrc; in iavf_add_fdir_fltr_info()
1324 fltr->ip_mask.src_port = fsp->m_u.tcp_ip6_spec.psrc; in iavf_add_fdir_fltr_info()
/linux-6.1.9/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_flows.c590 if (ipv4_l4_mask->psrc) { in otx2_prepare_ipv4_flow()
591 memcpy(&pkt->sport, &ipv4_l4_hdr->psrc, in otx2_prepare_ipv4_flow()
593 memcpy(&pmask->sport, &ipv4_l4_mask->psrc, in otx2_prepare_ipv4_flow()
715 if (ipv6_l4_mask->psrc) { in otx2_prepare_ipv6_flow()
716 memcpy(&pkt->sport, &ipv6_l4_hdr->psrc, in otx2_prepare_ipv6_flow()
718 memcpy(&pmask->sport, &ipv6_l4_mask->psrc, in otx2_prepare_ipv6_flow()
/linux-6.1.9/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-ethtool.c429 if (l4_mask->psrc) { in dpaa2_eth_prep_l4_rule()
431 *(__be16 *)(key + off) = l4_value->psrc; in dpaa2_eth_prep_l4_rule()
432 *(__be16 *)(mask + off) = l4_mask->psrc; in dpaa2_eth_prep_l4_rule()
/linux-6.1.9/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-6.1.9/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-6.1.9/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-6.1.9/include/uapi/linux/
Dethtool.h938 __be16 psrc; member
992 __be16 psrc; member
/linux-6.1.9/net/ethtool/
Dioctl.c3166 if (v4_m_spec->psrc) { in ethtool_rx_flow_rule_create()
3167 match->key.tp.src = v4_spec->psrc; in ethtool_rx_flow_rule_create()
3168 match->mask.tp.src = v4_m_spec->psrc; in ethtool_rx_flow_rule_create()
3174 if (v4_m_spec->psrc || in ethtool_rx_flow_rule_create()
3218 if (v6_m_spec->psrc) { in ethtool_rx_flow_rule_create()
3219 match->key.tp.src = v6_spec->psrc; in ethtool_rx_flow_rule_create()
3220 match->mask.tp.src = v6_m_spec->psrc; in ethtool_rx_flow_rule_create()
3226 if (v6_m_spec->psrc || in ethtool_rx_flow_rule_create()
/linux-6.1.9/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-6.1.9/drivers/net/ethernet/intel/i40e/
Di40e_ethtool.c3389 fsp->h_u.tcp_ip6_spec.psrc = rule->dst_port; in i40e_get_ethtool_fdir_entry()
3400 fsp->h_u.tcp_ip4_spec.psrc = rule->dst_port; in i40e_get_ethtool_fdir_entry()
3467 fsp->m_u.tcp_ip4_spec.psrc = htons(0xFFFF); in i40e_get_ethtool_fdir_entry()
4380 if (tcp_ip4_spec->psrc == htons(0xFFFF)) in i40e_check_fdir_input_set()
4382 else if (!tcp_ip4_spec->psrc) in i40e_check_fdir_input_set()
4428 if (tcp_ip6_spec->psrc == htons(0xFFFF)) in i40e_check_fdir_input_set()
4430 else if (!tcp_ip6_spec->psrc) in i40e_check_fdir_input_set()
4889 input->dst_port = fsp->h_u.tcp_ip6_spec.psrc; in i40e_add_fdir_ethtool()
4901 input->dst_port = fsp->h_u.tcp_ip4_spec.psrc; in i40e_add_fdir_ethtool()
/linux-6.1.9/drivers/net/ethernet/freescale/enetc/
Denetc_ethtool.c475 rfse.sport_h = ntohs(l4ip4_h->psrc); in enetc_set_cls_entry()
476 rfse.sport_m = ntohs(l4ip4_m->psrc); in enetc_set_cls_entry()
/linux-6.1.9/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-6.1.9/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-6.1.9/net/ipv6/
Dmcast.c1917 struct in6_addr *psrc; in add_grec() local
1939 if (AVAILABLE(skb) < sizeof(*psrc) + in add_grec()
1957 psrc = skb_put(skb, sizeof(*psrc)); in add_grec()
1958 *psrc = psf->sf_addr; in add_grec()
/linux-6.1.9/drivers/net/ethernet/cadence/
Dmacb_main.c3368 if (enable && ((tp4sp_m->psrc == 0xFFFF) || (tp4sp_m->pdst == 0xFFFF))) in gem_enable_flow_filters()
3421 if ((tp4sp_m->psrc == 0xFFFF) || (tp4sp_m->pdst == 0xFFFF)) { in gem_prog_cmp_regs()
3426 if (tp4sp_m->psrc == tp4sp_m->pdst) { in gem_prog_cmp_regs()
3427 w0 = GEM_BFINS(T2MASK, tp4sp_v->psrc, w0); in gem_prog_cmp_regs()
3435 if (tp4sp_m->psrc == 0xFFFF) { /* src port */ in gem_prog_cmp_regs()
3436 w0 = GEM_BFINS(T2CMP, tp4sp_v->psrc, w0); in gem_prog_cmp_regs()
3480 be16_to_cpu(fs->h_u.tcp_ip4_spec.psrc), in gem_add_flow_filter()
3534 be16_to_cpu(fs->h_u.tcp_ip4_spec.psrc), in gem_del_flow_filter()
/linux-6.1.9/fs/f2fs/
Dfile.c1311 struct page *psrc, *pdst; in __clone_blkaddrs() local
1313 psrc = f2fs_get_lock_data_page(src_inode, in __clone_blkaddrs()
1315 if (IS_ERR(psrc)) in __clone_blkaddrs()
1316 return PTR_ERR(psrc); in __clone_blkaddrs()
1320 f2fs_put_page(psrc, 1); in __clone_blkaddrs()
1323 memcpy_page(pdst, 0, psrc, 0, PAGE_SIZE); in __clone_blkaddrs()
1326 f2fs_put_page(psrc, 1); in __clone_blkaddrs()

12