Home
last modified time | relevance | path

Searched refs:alloc (Results 1 – 16 of 16) sorted by relevance

/net/core/
Dpage_pool.c93 if (likely(pool->alloc.count)) { in __page_pool_get_cached()
95 page = pool->alloc.cache[--pool->alloc.count]; in __page_pool_get_cached()
111 pool->alloc.count = __ptr_ring_consume_batched(r, in __page_pool_get_cached()
112 pool->alloc.cache, in __page_pool_get_cached()
276 if (unlikely(pool->alloc.count == PP_ALLOC_CACHE_SIZE)) in __page_pool_recycle_direct()
280 pool->alloc.cache[pool->alloc.count++] = page; in __page_pool_recycle_direct()
360 while (pool->alloc.count) { in page_pool_scrub()
361 page = pool->alloc.cache[--pool->alloc.count]; in page_pool_scrub()
Dnet_namespace.c227 static int __peernet2id_alloc(struct net *net, struct net *peer, bool *alloc) in __peernet2id_alloc() argument
230 bool alloc_it = *alloc; in __peernet2id_alloc()
232 *alloc = false; in __peernet2id_alloc()
242 *alloc = true; in __peernet2id_alloc()
264 bool alloc = false, alive = false; in peernet2id_alloc() local
277 alive = alloc = true; in peernet2id_alloc()
278 id = __peernet2id_alloc(net, peer, &alloc); in peernet2id_alloc()
280 if (alloc && id >= 0) in peernet2id_alloc()
Dsock.c2569 u64 alloc; in __sk_mem_raise_allocated() local
2573 alloc = sk_sockets_allocated_read_positive(sk); in __sk_mem_raise_allocated()
2574 if (sk_prot_mem_limits(sk, 2) > alloc * in __sk_mem_raise_allocated()
/net/netfilter/
Dnf_conntrack_extend.c42 unsigned int newlen, newoff, oldlen, alloc; in nf_ct_ext_add() local
70 alloc = max(newlen, NF_CT_EXT_PREALLOC); in nf_ct_ext_add()
72 new = __krealloc(old, alloc, gfp); in nf_ct_ext_add()
Dcore.c53 size_t alloc = sizeof(*e) + in allocate_hook_entries_size() local
61 e = kvzalloc(alloc, GFP_KERNEL); in allocate_hook_entries_size()
Dnf_tables_api.c1794 unsigned int alloc) in nf_tables_chain_alloc_rules() argument
1796 if (alloc > INT_MAX) in nf_tables_chain_alloc_rules()
1799 alloc += 1; /* NULL, ends rules */ in nf_tables_chain_alloc_rules()
1800 if (sizeof(struct nft_rule *) > INT_MAX / alloc) in nf_tables_chain_alloc_rules()
1803 alloc *= sizeof(struct nft_rule *); in nf_tables_chain_alloc_rules()
1804 alloc += sizeof(struct nft_rules_old); in nf_tables_chain_alloc_rules()
1806 return kvmalloc(alloc, GFP_KERNEL); in nf_tables_chain_alloc_rules()
6935 unsigned int alloc = 0; in nf_tables_commit_chain_prepare() local
6947 alloc++; in nf_tables_commit_chain_prepare()
6950 chain->rules_next = nf_tables_chain_alloc_rules(chain, alloc); in nf_tables_commit_chain_prepare()
/net/sched/
Dact_meta_skbprio.c51 .alloc = ife_alloc_meta_u32,
Dact_meta_mark.c51 .alloc = ife_alloc_meta_u32,
Dact_meta_skbtcindex.c51 .alloc = ife_alloc_meta_u16,
Dact_ife.c186 !mops->get || !mops->alloc) in register_ife_op()
309 ret = ops->alloc(mi, metaval, atomic ? GFP_ATOMIC : GFP_KERNEL); in __add_metainfo()
/net/sunrpc/
Dsvcauth_unix.c602 .alloc = unix_gid_alloc,
899 .alloc = ip_map_alloc,
Drpc_pipe.c970 struct rpc_pipe_dir_object *(*alloc)(void *), in rpc_find_or_alloc_pipe_dir_object()
982 pdo = alloc(data); in rpc_find_or_alloc_pipe_dir_object()
Dcache.c87 new = detail->alloc(); in sunrpc_cache_add_entry()
188 tmp = detail->alloc(); in sunrpc_cache_update()
/net/sunrpc/auth_gss/
Dsvcauth_gss.c287 .alloc = rsi_alloc,
558 .alloc = rsc_alloc,
/net/mac80211/
Drate.c236 ref->priv = ref->ops->alloc(&local->hw); in rate_control_alloc()
Drc80211_minstrel_ht.c1724 .alloc = minstrel_ht_alloc,