Lines Matching refs:copy
417 int copy, rc = 0; in tls_push_data() local
472 copy = min_t(size_t, size, (pfrag->size - pfrag->offset)); in tls_push_data()
473 copy = min_t(size_t, copy, (max_open_record_len - record->len)); in tls_push_data()
475 if (copy) { in tls_push_data()
477 pfrag->offset, copy, msg_iter); in tls_push_data()
480 tls_append_frag(record, pfrag, copy); in tls_push_data()
483 size -= copy; in tls_push_data()
779 int err = 0, offset = rxm->offset, copy, nsg, data_len, pos; in tls_device_reencrypt() local
815 copy = min_t(int, skb_pagelen(skb) - offset, data_len); in tls_device_reencrypt()
818 err = skb_store_bits(skb, offset, buf, copy); in tls_device_reencrypt()
823 offset += copy; in tls_device_reencrypt()
824 buf += copy; in tls_device_reencrypt()
841 copy = min_t(int, skb_iter->len - frag_pos, in tls_device_reencrypt()
845 err = skb_store_bits(skb_iter, frag_pos, buf, copy); in tls_device_reencrypt()
850 offset += copy; in tls_device_reencrypt()
851 buf += copy; in tls_device_reencrypt()