Home
last modified time | relevance | path

Searched refs:copy_len (Results 1 – 9 of 9) sorted by relevance

/net/xfrm/
Dxfrm_compat.c398 size_t size, int copy_len, int payload) in xfrm_attr_cpy32() argument
407 if (WARN_ON_ONCE(copy_len > payload)) in xfrm_attr_cpy32()
408 copy_len = payload; in xfrm_attr_cpy32()
415 memcpy(nla, src, nla_attr_size(copy_len)); in xfrm_attr_cpy32()
417 *pos += nla_attr_size(copy_len); in xfrm_attr_cpy32()
420 memset(dst + *pos, 0, payload - copy_len); in xfrm_attr_cpy32()
421 *pos += payload - copy_len; in xfrm_attr_cpy32()
/net/sunrpc/xprtrdma/
Drpc_rdma.c1056 rpcrdma_inline_fixup(struct rpc_rqst *rqst, char *srcp, int copy_len, int pad) in rpcrdma_inline_fixup() argument
1074 if (curlen > copy_len) in rpcrdma_inline_fixup()
1075 curlen = copy_len; in rpcrdma_inline_fixup()
1077 copy_len -= curlen; in rpcrdma_inline_fixup()
1083 if (copy_len && rqst->rq_rcv_buf.page_len) { in rpcrdma_inline_fixup()
1087 if (pagelist_len > copy_len) in rpcrdma_inline_fixup()
1088 pagelist_len = copy_len; in rpcrdma_inline_fixup()
1100 copy_len -= curlen; in rpcrdma_inline_fixup()
1121 if (copy_len || pad) { in rpcrdma_inline_fixup()
/net/netfilter/
Dnft_log.c186 li->u.ulog.copy_len = in nft_log_init()
251 htonl(li->u.ulog.copy_len))) in nft_log_dump()
Dxt_NFLOG.c28 li.u.ulog.copy_len = info->len; in nflog_tg()
Dnfnetlink_log.c660 .copy_len = 0xffff,
759 (li->u.ulog.copy_len < data_len)) in nfulnl_log_packet()
760 data_len = li->u.ulog.copy_len; in nfulnl_log_packet()
/net/bridge/netfilter/
Debt_nflog.c31 li.u.ulog.copy_len = info->len; in ebt_nflog_tg()
/net/packet/
Daf_packet.c3463 int copy_len; in packet_recvmsg() local
3471 copy_len = msg->msg_namelen; in packet_recvmsg()
3477 copy_len = msg->msg_namelen; in packet_recvmsg()
3485 if (WARN_ON_ONCE(copy_len > max_len)) { in packet_recvmsg()
3486 copy_len = max_len; in packet_recvmsg()
3487 msg->msg_namelen = copy_len; in packet_recvmsg()
3489 memcpy(msg->msg_name, &PACKET_SKB_CB(skb)->sa, copy_len); in packet_recvmsg()
/net/core/
Dfilter.c5131 int ret, copy_len = 0; in BPF_CALL_5() local
5136 copy_len = ret; in BPF_CALL_5()
5137 if (optlen < copy_len) { in BPF_CALL_5()
5138 copy_len = optlen; in BPF_CALL_5()
5142 memcpy(optval, start, copy_len); in BPF_CALL_5()
5146 memset(optval + copy_len, 0, optlen - copy_len); in BPF_CALL_5()
6734 u8 search_kind, search_len, copy_len, magic_len; in BPF_CALL_4() local
6786 copy_len = op[1]; in BPF_CALL_4()
6787 ret = copy_len; in BPF_CALL_4()
6788 if (copy_len > len) { in BPF_CALL_4()
[all …]
/net/mptcp/
Dprotocol.c266 size_t copy_len) in __mptcp_move_skb() argument
293 MPTCP_SKB_CB(skb)->end_seq = MPTCP_SKB_CB(skb)->map_seq + copy_len; in __mptcp_move_skb()
298 WRITE_ONCE(msk->ack_seq, msk->ack_seq + copy_len); in __mptcp_move_skb()