Searched refs:alloc (Results 1 – 16 of 16) sorted by relevance
/net/core/ |
D | page_pool.c | 93 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()
|
D | net_namespace.c | 227 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()
|
D | sock.c | 2569 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/ |
D | nf_conntrack_extend.c | 42 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()
|
D | core.c | 53 size_t alloc = sizeof(*e) + in allocate_hook_entries_size() local 61 e = kvzalloc(alloc, GFP_KERNEL); in allocate_hook_entries_size()
|
D | nf_tables_api.c | 1794 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/ |
D | act_meta_skbprio.c | 51 .alloc = ife_alloc_meta_u32,
|
D | act_meta_mark.c | 51 .alloc = ife_alloc_meta_u32,
|
D | act_meta_skbtcindex.c | 51 .alloc = ife_alloc_meta_u16,
|
D | act_ife.c | 186 !mops->get || !mops->alloc) in register_ife_op() 309 ret = ops->alloc(mi, metaval, atomic ? GFP_ATOMIC : GFP_KERNEL); in __add_metainfo()
|
/net/sunrpc/ |
D | svcauth_unix.c | 602 .alloc = unix_gid_alloc, 899 .alloc = ip_map_alloc,
|
D | rpc_pipe.c | 970 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()
|
D | cache.c | 87 new = detail->alloc(); in sunrpc_cache_add_entry() 188 tmp = detail->alloc(); in sunrpc_cache_update()
|
/net/sunrpc/auth_gss/ |
D | svcauth_gss.c | 287 .alloc = rsi_alloc, 558 .alloc = rsc_alloc,
|
/net/mac80211/ |
D | rate.c | 236 ref->priv = ref->ops->alloc(&local->hw); in rate_control_alloc()
|
D | rc80211_minstrel_ht.c | 1724 .alloc = minstrel_ht_alloc,
|