Home
last modified time | relevance | path

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

/net/xfrm/
Dxfrm_compat.c400 size_t size, int copy_len, int payload) in xfrm_attr_cpy32() argument
409 if (WARN_ON_ONCE(copy_len > payload)) in xfrm_attr_cpy32()
410 copy_len = payload; in xfrm_attr_cpy32()
417 memcpy(nla, src, nla_attr_size(copy_len)); in xfrm_attr_cpy32()
419 *pos += nla_attr_size(copy_len); in xfrm_attr_cpy32()
422 memset(dst + *pos, 0, payload - copy_len); in xfrm_attr_cpy32()
423 *pos += payload - copy_len; in xfrm_attr_cpy32()
/net/sunrpc/xprtrdma/
Drpc_rdma.c1039 rpcrdma_inline_fixup(struct rpc_rqst *rqst, char *srcp, int copy_len, int pad) in rpcrdma_inline_fixup() argument
1057 if (curlen > copy_len) in rpcrdma_inline_fixup()
1058 curlen = copy_len; in rpcrdma_inline_fixup()
1060 copy_len -= curlen; in rpcrdma_inline_fixup()
1066 if (copy_len && rqst->rq_rcv_buf.page_len) { in rpcrdma_inline_fixup()
1070 if (pagelist_len > copy_len) in rpcrdma_inline_fixup()
1071 pagelist_len = copy_len; in rpcrdma_inline_fixup()
1083 copy_len -= curlen; in rpcrdma_inline_fixup()
1104 if (copy_len || pad) { in rpcrdma_inline_fixup()
/net/netfilter/
Dnft_log.c200 li->u.ulog.copy_len = in nft_log_init()
269 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.c664 .copy_len = 0xffff,
765 (li->u.ulog.copy_len < data_len)) in nfulnl_log_packet()
766 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.c5246 int ret, copy_len = 0; in BPF_CALL_5() local
5251 copy_len = ret; in BPF_CALL_5()
5252 if (optlen < copy_len) { in BPF_CALL_5()
5253 copy_len = optlen; in BPF_CALL_5()
5257 memcpy(optval, start, copy_len); in BPF_CALL_5()
5261 memset(optval + copy_len, 0, optlen - copy_len); in BPF_CALL_5()
7093 u8 search_kind, search_len, copy_len, magic_len; in BPF_CALL_4() local
7145 copy_len = op[1]; in BPF_CALL_4()
7146 ret = copy_len; in BPF_CALL_4()
7147 if (copy_len > len) { in BPF_CALL_4()
[all …]
/net/mptcp/
Dprotocol.c275 size_t copy_len) in __mptcp_move_skb() argument
305 MPTCP_SKB_CB(skb)->end_seq = MPTCP_SKB_CB(skb)->map_seq + copy_len; in __mptcp_move_skb()
311 WRITE_ONCE(msk->ack_seq, msk->ack_seq + copy_len); in __mptcp_move_skb()