Home
last modified time | relevance | path

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

/net/core/
Dpage_pool.c166 pool->alloc.cache[pool->alloc.count++] = page; in page_pool_refill_alloc_cache()
177 } while (pool->alloc.count < PP_ALLOC_CACHE_REFILL); in page_pool_refill_alloc_cache()
180 if (likely(pool->alloc.count > 0)) in page_pool_refill_alloc_cache()
181 page = pool->alloc.cache[--pool->alloc.count]; in page_pool_refill_alloc_cache()
193 if (likely(pool->alloc.count)) { in __page_pool_get_cached()
195 page = pool->alloc.cache[--pool->alloc.count]; in __page_pool_get_cached()
291 if (unlikely(pool->alloc.count > 0)) in __page_pool_alloc_pages_slow()
292 return pool->alloc.cache[--pool->alloc.count]; in __page_pool_alloc_pages_slow()
295 memset(&pool->alloc.cache, 0, sizeof(void *) * bulk); in __page_pool_alloc_pages_slow()
297 nr_pages = alloc_pages_bulk_array(gfp, bulk, pool->alloc.cache); in __page_pool_alloc_pages_slow()
[all …]
Dsock.c2820 u64 alloc; in __sk_mem_raise_allocated() local
2824 alloc = sk_sockets_allocated_read_positive(sk); in __sk_mem_raise_allocated()
2825 if (sk_prot_mem_limits(sk, 2) > alloc * in __sk_mem_raise_allocated()
Drtnetlink.c384 if ((ops->alloc || ops->setup) && !ops->dellink) in __rtnl_link_register()
3200 if (ops->alloc) { in rtnl_create_link()
3201 dev = ops->alloc(tb, ifname, name_assign_type, in rtnl_create_link()
3463 if (!ops->alloc && !ops->setup) in __rtnl_newlink()
/net/netfilter/
Dnf_conntrack_extend.c43 unsigned int newlen, newoff, oldlen, alloc; in nf_ct_ext_add() local
72 alloc = max(newlen, NF_CT_EXT_PREALLOC); in nf_ct_ext_add()
73 new = krealloc(ct->ext, alloc, gfp); in nf_ct_ext_add()
Dcore.c59 size_t alloc = sizeof(*e) + in allocate_hook_entries_size() local
67 e = kvzalloc(alloc, GFP_KERNEL); in allocate_hook_entries_size()
Dnf_tables_api.c2210 unsigned int alloc) in nf_tables_chain_alloc_rules() argument
2212 if (alloc > INT_MAX) in nf_tables_chain_alloc_rules()
2215 alloc += 1; /* NULL, ends rules */ in nf_tables_chain_alloc_rules()
2216 if (sizeof(struct nft_rule *) > INT_MAX / alloc) in nf_tables_chain_alloc_rules()
2219 alloc *= sizeof(struct nft_rule *); in nf_tables_chain_alloc_rules()
2220 alloc += sizeof(struct nft_rules_old); in nf_tables_chain_alloc_rules()
2222 return kvmalloc(alloc, GFP_KERNEL); in nf_tables_chain_alloc_rules()
8795 unsigned int alloc = 0; in nf_tables_commit_chain_prepare() local
8807 alloc++; in nf_tables_commit_chain_prepare()
8810 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/smc/
Dsmc_stats.h195 SMC_STAT_RMB(smc, alloc, is_smcd, is_rx)
/net/sunrpc/
Dsvcauth_unix.c595 .alloc = unix_gid_alloc,
897 .alloc = ip_map_alloc,
Drpc_pipe.c972 struct rpc_pipe_dir_object *(*alloc)(void *), in rpc_find_or_alloc_pipe_dir_object()
984 pdo = alloc(data); in rpc_find_or_alloc_pipe_dir_object()
Dcache.c104 new = detail->alloc(); in sunrpc_cache_add_entry()
221 tmp = detail->alloc(); in sunrpc_cache_update()
/net/sunrpc/auth_gss/
Dsvcauth_gss.c294 .alloc = rsi_alloc,
571 .alloc = rsc_alloc,
/net/mac80211/
Drate.c243 ref->priv = ref->ops->alloc(&local->hw); in rate_control_alloc()
Drc80211_minstrel_ht.c1897 .alloc = minstrel_ht_alloc,