Home
last modified time | relevance | path

Searched refs:scratch (Results 1 – 10 of 10) sorted by relevance

/net/xfrm/
Dxfrm_ipcomp.c45 u8 *scratch = *per_cpu_ptr(ipcomp_scratches, cpu); in ipcomp_decompress() local
47 int err = crypto_comp_decompress(tfm, start, plen, scratch, &dlen); in ipcomp_decompress()
65 skb_copy_to_linear_data(skb, scratch, len); in ipcomp_decompress()
67 while ((scratch += len, dlen -= len) > 0) { in ipcomp_decompress()
90 memcpy(skb_frag_address(frag), scratch, len); in ipcomp_decompress()
141 u8 *scratch; in ipcomp_compress() local
145 scratch = *this_cpu_ptr(ipcomp_scratches); in ipcomp_compress()
147 err = crypto_comp_compress(tfm, start, plen, scratch, &dlen); in ipcomp_compress()
156 memcpy(start + sizeof(struct ip_comp_hdr), scratch, dlen); in ipcomp_compress()
233 void *scratch; in ipcomp_alloc_scratches() local
[all …]
/net/netfilter/
Dnft_set_pipapo.c412 struct nft_pipapo_scratch *scratch; in nft_pipapo_lookup() local
425 if (unlikely(!m || !*raw_cpu_ptr(m->scratch))) in nft_pipapo_lookup()
428 scratch = *raw_cpu_ptr(m->scratch); in nft_pipapo_lookup()
430 map_index = scratch->map_index; in nft_pipapo_lookup()
432 res_map = scratch->map + (map_index ? m->bsize_max : 0); in nft_pipapo_lookup()
433 fill_map = scratch->map + (map_index ? 0 : m->bsize_max); in nft_pipapo_lookup()
463 scratch->map_index = map_index; in nft_pipapo_lookup()
480 scratch->map_index = map_index; in nft_pipapo_lookup()
1114 s = *per_cpu_ptr(m->scratch, cpu);
1136 struct nft_pipapo_scratch *scratch; local
[all …]
Dnft_set_pipapo_avx2.c1123 struct nft_pipapo_scratch *scratch; in nft_pipapo_avx2_lookup() local
1140 scratch = *raw_cpu_ptr(m->scratch); in nft_pipapo_avx2_lookup()
1141 if (unlikely(!scratch)) { in nft_pipapo_avx2_lookup()
1146 map_index = scratch->map_index; in nft_pipapo_avx2_lookup()
1148 res = scratch->map + (map_index ? m->bsize_max : 0); in nft_pipapo_avx2_lookup()
1149 fill = scratch->map + (map_index ? 0 : m->bsize_max); in nft_pipapo_avx2_lookup()
1221 scratch->map_index = !map_index; in nft_pipapo_avx2_lookup()
Dnft_set_pipapo.h155 struct nft_pipapo_scratch * __percpu *scratch; member
/net/sunrpc/
Dxdr.c708 int shift = xdr->scratch.iov_len; in xdr_commit_encode()
714 memcpy(xdr->scratch.iov_base, page, shift); in xdr_commit_encode()
716 xdr->scratch.iov_len = 0; in xdr_commit_encode()
746 xdr->scratch.iov_base = xdr->p; in xdr_get_next_encode_buffer()
747 xdr->scratch.iov_len = frag1bytes; in xdr_get_next_encode_buffer()
1059 xdr->scratch.iov_base = NULL; in xdr_init_decode()
1060 xdr->scratch.iov_len = 0; in xdr_init_decode()
1121 xdr->scratch.iov_base = buf; in xdr_set_scratch_buffer()
1122 xdr->scratch.iov_len = buflen; in xdr_set_scratch_buffer()
1129 char *cpdest = xdr->scratch.iov_base; in xdr_copy_to_scratch()
[all …]
/net/sunrpc/auth_gss/
Dgss_rpc_xdr.c787 struct page *scratch; in gssx_dec_accept_sec_context() local
789 scratch = alloc_page(GFP_KERNEL); in gssx_dec_accept_sec_context()
790 if (!scratch) in gssx_dec_accept_sec_context()
792 xdr_set_scratch_buffer(xdr, page_address(scratch), PAGE_SIZE); in gssx_dec_accept_sec_context()
837 __free_page(scratch); in gssx_dec_accept_sec_context()
/net/ipv4/
Dudp.c1399 struct udp_dev_scratch *scratch = udp_skb_scratch(skb); in udp_set_dev_scratch() local
1402 scratch->_tsize_state = skb->truesize; in udp_set_dev_scratch()
1404 scratch->len = skb->len; in udp_set_dev_scratch()
1405 scratch->csum_unnecessary = !!skb_csum_unnecessary(skb); in udp_set_dev_scratch()
1406 scratch->is_linear = !skb_is_nonlinear(skb); in udp_set_dev_scratch()
1409 scratch->_tsize_state |= UDP_SKB_IS_STATELESS; in udp_set_dev_scratch()
Dtcp.c4039 void *scratch = per_cpu(tcp_md5sig_pool, cpu).scratch; in __tcp_alloc_md5sig_pool() local
4042 if (!scratch) { in __tcp_alloc_md5sig_pool()
4043 scratch = kmalloc_node(sizeof(union tcp_md5sum_block) + in __tcp_alloc_md5sig_pool()
4047 if (!scratch) in __tcp_alloc_md5sig_pool()
4049 per_cpu(tcp_md5sig_pool, cpu).scratch = scratch; in __tcp_alloc_md5sig_pool()
Dtcp_ipv4.c1287 bp = hp->scratch; in tcp_v4_md5_hash_headers()
/net/ipv6/
Dtcp_ipv6.c674 bp = hp->scratch; in tcp_v6_md5_hash_headers()