Lines Matching refs:copy
433 int copy, rc = 0; in tls_push_data() local
492 copy = min_t(size_t, size, max_open_record_len - record->len); in tls_push_data()
493 if (copy && (flags & MSG_SPLICE_PAGES)) { in tls_push_data()
499 copy, 1, 0, &off); in tls_push_data()
505 copy = rc; in tls_push_data()
508 iov_iter_revert(iter, copy); in tls_push_data()
514 zc_pfrag.size = copy; in tls_push_data()
515 tls_append_frag(record, &zc_pfrag, copy); in tls_push_data()
516 } else if (copy) { in tls_push_data()
517 copy = min_t(size_t, copy, pfrag->size - pfrag->offset); in tls_push_data()
520 pfrag->offset, copy, in tls_push_data()
524 tls_append_frag(record, pfrag, copy); in tls_push_data()
527 size -= copy; in tls_push_data()
882 int err, offset, copy, data_len, pos; in tls_device_reencrypt() local
923 copy = min_t(int, skb_pagelen(skb) - offset, data_len); in tls_device_reencrypt()
926 err = skb_store_bits(skb, offset, buf, copy); in tls_device_reencrypt()
931 offset += copy; in tls_device_reencrypt()
932 buf += copy; in tls_device_reencrypt()
949 copy = min_t(int, skb_iter->len - frag_pos, in tls_device_reencrypt()
953 err = skb_store_bits(skb_iter, frag_pos, buf, copy); in tls_device_reencrypt()
958 offset += copy; in tls_device_reencrypt()
959 buf += copy; in tls_device_reencrypt()