Lines Matching full:scratch
44 u8 *scratch = *this_cpu_ptr(ipcomp_scratches); in ipcomp_decompress() local
46 int err = crypto_comp_decompress(tfm, start, plen, scratch, &dlen); in ipcomp_decompress()
62 skb_copy_to_linear_data(skb, scratch, len); in ipcomp_decompress()
64 while ((scratch += len, dlen -= len) > 0) { in ipcomp_decompress()
85 memcpy(skb_frag_address(frag), scratch, len); in ipcomp_decompress()
132 u8 *scratch; in ipcomp_compress() local
136 scratch = *this_cpu_ptr(ipcomp_scratches); in ipcomp_compress()
138 err = crypto_comp_compress(tfm, start, plen, scratch, &dlen); in ipcomp_compress()
147 memcpy(start + sizeof(struct ip_comp_hdr), scratch, dlen); in ipcomp_compress()
224 void *scratch; in ipcomp_alloc_scratches() local
226 scratch = vmalloc_node(IPCOMP_SCRATCH_SIZE, cpu_to_node(i)); in ipcomp_alloc_scratches()
227 if (!scratch) in ipcomp_alloc_scratches()
229 *per_cpu_ptr(scratches, i) = scratch; in ipcomp_alloc_scratches()