Lines Matching refs:copy_size
852 size_t copy_size = 0; in caam_dmaobj_copy_to_orig() local
876 copy_size = MIN(dst_rlen, sgtdata->length); in caam_dmaobj_copy_to_orig()
878 copy_size = MIN(dst_rlen, sgtdata->length); in caam_dmaobj_copy_to_orig()
879 memcpy(sgtdata->orig, sgtdata->dma, copy_size); in caam_dmaobj_copy_to_orig()
882 length += copy_size; in caam_dmaobj_copy_to_orig()
883 dst_rlen -= copy_size; in caam_dmaobj_copy_to_orig()
896 size_t copy_size = 0; in caam_dmaobj_copy_ltrim_to_orig() local
952 copy_size = MIN(dst_rlen, sgtdata->length - offset); in caam_dmaobj_copy_ltrim_to_orig()
953 memmove(dst, &sgtdata->dma[offset], copy_size); in caam_dmaobj_copy_ltrim_to_orig()
956 copy_size = MIN(dst_rlen, sgtdata->length); in caam_dmaobj_copy_ltrim_to_orig()
958 memmove(dst, sgtdata->dma, copy_size); in caam_dmaobj_copy_ltrim_to_orig()
961 dst += copy_size; in caam_dmaobj_copy_ltrim_to_orig()
962 dst_rlen -= copy_size; in caam_dmaobj_copy_ltrim_to_orig()
963 length += copy_size; in caam_dmaobj_copy_ltrim_to_orig()