Home
last modified time | relevance | path

Searched refs:cache (Results 1 – 25 of 31) sorted by relevance

12

/net/core/
A Ddst_cache.c71 if (!dst_cache->cache) in dst_cache_get()
86 if (!dst_cache->cache) in dst_cache_get_ip4()
90 idst = this_cpu_ptr(dst_cache->cache); in dst_cache_get_ip4()
108 if (!dst_cache->cache) in dst_cache_set_ip4()
112 idst = this_cpu_ptr(dst_cache->cache); in dst_cache_set_ip4()
125 if (!dst_cache->cache) in dst_cache_set_ip6()
144 if (!dst_cache->cache) in dst_cache_get_ip6()
169 if (!dst_cache->cache) in dst_cache_init()
183 if (!dst_cache->cache) in dst_cache_destroy()
189 free_percpu(dst_cache->cache); in dst_cache_destroy()
[all …]
A Dpage_pool.c405 pool->alloc.cache[pool->alloc.count++] = netmem; in page_pool_refill_alloc_cache()
421 netmem = pool->alloc.cache[--pool->alloc.count]; in page_pool_refill_alloc_cache()
436 netmem = pool->alloc.cache[--pool->alloc.count]; in __page_pool_get_cached()
562 return pool->alloc.cache[--pool->alloc.count]; in __page_pool_alloc_netmems_slow()
568 (struct page **)pool->alloc.cache); in __page_pool_alloc_netmems_slow()
576 netmem = pool->alloc.cache[i]; in __page_pool_alloc_netmems_slow()
583 pool->alloc.cache[pool->alloc.count++] = netmem; in __page_pool_alloc_netmems_slow()
592 netmem = pool->alloc.cache[--pool->alloc.count]; in __page_pool_alloc_netmems_slow()
770 pool->alloc.cache[pool->alloc.count++] = netmem; in page_pool_recycle_in_cache()
1111 netmem = pool->alloc.cache[--pool->alloc.count]; in page_pool_empty_alloc_cache_once()
[all …]
/net/mac80211/
A Dmesh_pathtbl.c55 struct mesh_tx_cache *cache; in mesh_fast_tx_deinit() local
57 cache = &sdata->u.mesh.tx_cache; in mesh_fast_tx_deinit()
64 struct mesh_tx_cache *cache; in mesh_fast_tx_init() local
66 cache = &sdata->u.mesh.tx_cache; in mesh_fast_tx_init()
68 INIT_HLIST_HEAD(&cache->walk_head); in mesh_fast_tx_init()
69 spin_lock_init(&cache->walk_lock); in mesh_fast_tx_init()
438 struct mesh_tx_cache *cache; in mesh_fast_tx_get() local
440 cache = &sdata->u.mesh.tx_cache; in mesh_fast_tx_get()
471 struct mesh_tx_cache *cache; in mesh_fast_tx_cache() local
579 spin_lock(&cache->walk_lock); in mesh_fast_tx_cache()
[all …]
A Drx.c2171 for (i = 0; i < ARRAY_SIZE(cache->entries); i++) in ieee80211_init_frag_cache()
2172 skb_queue_head_init(&cache->entries[i].skb_list); in ieee80211_init_frag_cache()
2179 for (i = 0; i < ARRAY_SIZE(cache->entries); i++) in ieee80211_destroy_frag_cache()
2180 __skb_queue_purge(&cache->entries[i].skb_list); in ieee80211_destroy_frag_cache()
2190 entry = &cache->entries[cache->next++]; in ieee80211_reassemble_add()
2191 if (cache->next >= IEEE80211_FRAGMENT_MAX) in ieee80211_reassemble_add()
2192 cache->next = 0; in ieee80211_reassemble_add()
2216 idx = cache->next; in ieee80211_reassemble_find()
2225 entry = &cache->entries[idx]; in ieee80211_reassemble_find()
2285 cache = &rx->sta->frags; in ieee80211_rx_h_defragment()
[all …]
/net/rds/
A Dib_recv.c93 tmp = xchg(&cache->xfer, NULL); in rds_ib_cache_xfer_to_ready()
95 if (cache->ready) in rds_ib_cache_xfer_to_ready()
98 cache->ready = tmp; in rds_ib_cache_xfer_to_ready()
108 if (!cache->percpu) in rds_ib_recv_alloc_cache()
116 cache->xfer = NULL; in rds_ib_recv_alloc_cache()
117 cache->ready = NULL; in rds_ib_recv_alloc_cache()
150 if (cache->ready) { in rds_ib_cache_splice_all_lists()
152 cache->ready = NULL; in rds_ib_cache_splice_all_lists()
506 old = xchg(&cache->xfer, NULL); in rds_ib_recv_cache_put()
525 cache->ready = head->next; in rds_ib_recv_cache_get()
[all …]
/net/sunrpc/
A Dauth.c383 unsigned int hashsize = 1U << cache->hashbits; in rpcauth_clear_credcache()
387 spin_lock(&cache->lock); in rpcauth_clear_credcache()
389 head = &cache->hashtable[i]; in rpcauth_clear_credcache()
398 spin_unlock(&cache->lock); in rpcauth_clear_credcache()
409 struct rpc_cred_cache *cache = auth->au_credcache; in rpcauth_destroy_credcache() local
411 if (cache) { in rpcauth_destroy_credcache()
413 rpcauth_clear_credcache(cache); in rpcauth_destroy_credcache()
414 kfree(cache->hashtable); in rpcauth_destroy_credcache()
415 kfree(cache); in rpcauth_destroy_credcache()
544 spin_lock(&cache->lock); in rpcauth_lookup_credcache()
[all …]
A DMakefile15 sunrpc_syms.o cache.o rpc_pipe.o sysfs.o \
/net/ipv4/
A Dipmr_base.c154 it->cache = &mrt->mfc_cache_list; in mr_mfc_seq_idx()
161 it->cache = &mrt->mfc_unres_queue; in mr_mfc_seq_idx()
162 list_for_each_entry(mfc, it->cache, list) in mr_mfc_seq_idx()
167 it->cache = NULL; in mr_mfc_seq_idx()
185 if (c->list.next != it->cache) in mr_mfc_seq_next()
188 if (it->cache == &mrt->mfc_unres_queue) in mr_mfc_seq_next()
193 it->cache = &mrt->mfc_unres_queue; in mr_mfc_seq_next()
196 if (!list_empty(it->cache)) in mr_mfc_seq_next()
197 return list_first_entry(it->cache, struct mr_mfc, list); in mr_mfc_seq_next()
201 it->cache = NULL; in mr_mfc_seq_next()
A Dipmr.c1299 struct mfc_cache *cache; in mroute_clean_tables() local
2145 struct mfc_cache *cache; in ip_mr_input() local
2199 if (!cache) { in ip_mr_input()
2208 if (!cache) { in ip_mr_input()
2297 struct mfc_cache *cache; in ip_mr_output() local
2318 if (!cache) { in ip_mr_output()
2326 if (!cache) { in ip_mr_output()
2404 struct mfc_cache *cache; in ipmr_get_route() local
2422 if (!cache) { in ipmr_get_route()
2684 struct mfc_cache *cache; in ipmr_rtm_getroute() local
[all …]
A Dtcp_input.c1851 struct tcp_sack_block *cache; in tcp_sacktag_write_queue() local
1941 cache = tp->recv_sack_cache; in tcp_sacktag_write_queue()
1943 while (tcp_sack_cache_ok(tp, cache) && !cache->start_seq && in tcp_sacktag_write_queue()
1944 !cache->end_seq) in tcp_sacktag_write_queue()
1945 cache++; in tcp_sacktag_write_queue()
1960 cache++; in tcp_sacktag_write_queue()
1972 cache->start_seq, in tcp_sacktag_write_queue()
1977 if (!after(end_seq, cache->end_seq)) in tcp_sacktag_write_queue()
1982 cache->end_seq); in tcp_sacktag_write_queue()
1990 cache++; in tcp_sacktag_write_queue()
[all …]
A Dcipso_ipv4.c254 secattr->cache = entry->lsm_data; in cipso_v4_cache_check()
321 refcount_inc(&secattr->cache->refcount); in cipso_v4_cache_add()
322 entry->lsm_data = secattr->cache; in cipso_v4_cache_add()
/net/ipv6/
A Drpl_iptunnel.c20 struct dst_cache cache; member
105 err = dst_cache_init(&rlwt->cache, GFP_ATOMIC); in rpl_build_state()
124 dst_cache_destroy(&rpl_lwt_lwtunnel(lwt)->cache); in rpl_destroy_state()
214 dst = dst_cache_get(&rlwt->cache); in rpl_output()
241 dst_cache_set_ip6(&rlwt->cache, dst, &fl6.saddr); in rpl_output()
279 dst = dst_cache_get(&rlwt->cache); in rpl_input()
295 dst_cache_set_ip6(&rlwt->cache, dst, in rpl_input()
A Dip6mr.c2306 struct mfc6_cache *cache; in ip6_mr_input() local
2333 if (!cache) { in ip6_mr_input()
2345 if (!cache) { in ip6_mr_input()
2370 struct mfc6_cache *cache; in ip6_mr_output() local
2390 if (!cache) { in ip6_mr_output()
2399 if (!cache) { in ip6_mr_output()
2423 struct mfc6_cache *cache; in ip6mr_get_route() local
2434 if (!cache && skb->dev) { in ip6mr_get_route()
2442 if (!cache) { in ip6mr_get_route()
2696 struct mfc6_cache *cache; in ip6mr_rtm_getroute() local
[all …]
A Dioam6_iptunnel.c42 struct dst_cache cache; member
177 err = dst_cache_init(&ilwt->cache, GFP_ATOMIC); in ioam6_build_state()
242 dst_cache_destroy(&ilwt->cache); in ioam6_build_state()
365 dst = dst_cache_get(&ilwt->cache); in ioam6_output()
439 dst_cache_set_ip6(&ilwt->cache, in ioam6_output()
442 dst_cache_set_ip6(&ilwt->cache, dst, &fl6.saddr); in ioam6_output()
473 dst_cache_destroy(&ioam6_lwt_state(lwt)->cache); in ioam6_destroy_state()
A Dseg6_iptunnel.c51 struct dst_cache cache; member
491 dst = dst_cache_get(&slwt->cache); in seg6_input_core()
507 dst_cache_set_ip6(&slwt->cache, dst, in seg6_input_core()
567 dst = dst_cache_get(&slwt->cache); in seg6_output_core()
594 dst_cache_set_ip6(&slwt->cache, dst, &fl6.saddr); in seg6_output_core()
704 err = dst_cache_init(&slwt->cache, GFP_ATOMIC); in seg6_build_state()
727 dst_cache_destroy(&seg6_lwt_lwtunnel(lwt)->cache); in seg6_destroy_state()
A Dcalipso.c220 secattr->cache = entry->lsm_data; in calipso_cache_check()
288 refcount_inc(&secattr->cache->refcount); in calipso_cache_add()
289 entry->lsm_data = secattr->cache; in calipso_cache_add()
/net/tipc/
A Dmonitor.c92 struct tipc_mon_domain cache; member
273 struct tipc_mon_domain *cache = &mon->cache; in mon_update_local_domain() local
293 cache->members[i] = mon_cpu_to_le32(peer->addr); in mon_update_local_domain()
299 cache->len = mon_cpu_to_le16(dom->len); in mon_update_local_domain()
300 cache->gen = mon_cpu_to_le16(dom->gen); in mon_update_local_domain()
301 cache->member_cnt = mon_cpu_to_le16(member_cnt); in mon_update_local_domain()
302 cache->up_map = mon_cpu_to_le64(dom->up_map); in mon_update_local_domain()
592 len = mon_le16_to_cpu(mon->cache.len); in tipc_mon_prep()
594 memcpy(data, &mon->cache, len); in tipc_mon_prep()
A Dudp_media.c172 struct udp_media_addr *dst, struct dst_cache *cache) in tipc_udp_xmit() argument
178 ndst = dst_cache_get(cache); in tipc_udp_xmit()
194 dst_cache_set_ip4(cache, &rt->dst, fl.saddr); in tipc_udp_xmit()
217 dst_cache_set_ip6(cache, ndst, &fl6.saddr); in tipc_udp_xmit()
/net/bluetooth/
A Dhci_core.c161 INIT_LIST_HEAD(&cache->unknown); in hci_inquiry_cache_flush()
162 INIT_LIST_HEAD(&cache->resolve); in hci_inquiry_cache_flush()
171 BT_DBG("cache %p, %pMR", cache, bdaddr); in hci_inquiry_cache_lookup()
173 list_for_each_entry(e, &cache->all, all) { in hci_inquiry_cache_lookup()
187 BT_DBG("cache %p, %pMR", cache, bdaddr); in hci_inquiry_cache_lookup_unknown()
220 struct list_head *pos = &cache->resolve; in hci_inquiry_cache_update_resolve()
270 list_add(&ie->all, &cache->all); in hci_inquiry_cache_update()
276 list_add(&ie->list, &cache->unknown); in hci_inquiry_cache_update()
288 cache->timestamp = jiffies; in hci_inquiry_cache_update()
304 list_for_each_entry(e, &cache->all, all) { in inquiry_cache_dump()
[all …]
/net/openvswitch/
A Dflow_table.c361 struct mask_cache_entry __percpu *cache = NULL; in tbl_mask_cache_alloc() local
377 cache = __alloc_percpu(array_size(sizeof(struct mask_cache_entry), in tbl_mask_cache_alloc()
380 if (!cache) { in tbl_mask_cache_alloc()
386 new->mask_cache = cache; in tbl_mask_cache_alloc()
801 u32 cache = 0; in ovs_flow_tbl_lookup_stats() local
803 return flow_lookup(tbl, ti, ma, key, n_mask_hit, &cache, in ovs_flow_tbl_lookup_stats()
A Dconntrack.c995 struct nf_conntrack_ecache *cache = nf_ct_ecache_find(ct); in ovs_ct_commit() local
997 if (cache) in ovs_ct_commit()
998 cache->ctmask = info->eventmask; in ovs_ct_commit()
/net/netfilter/
A Dnf_conntrack_ecache.c227 events = xchg(&e->cache, 0); in nf_ct_deliver_cached_events()
/net/ethernet/
A Deth.c334 .cache = eth_header_cache,
/net/9p/
A Dclient.c231 fc->cache = c->fcall_cache; in p9_fcall_init()
234 fc->cache = NULL; in p9_fcall_init()
252 if (fc->cache) in p9_fcall_fini()
253 kmem_cache_free(fc->cache, fc->sdata); in p9_fcall_fini()
/net/netfilter/ipvs/
A DKconfig182 destination IP load balancing. It is usually used in cache cluster.
197 usually used in cache cluster. It differs from the LBLC scheduling

Completed in 82 milliseconds

12