cipso_v4_cache 73 net/ipv4/cipso_ipv4.c static struct cipso_v4_map_cache_bkt *cipso_v4_cache; cipso_v4_cache 171 net/ipv4/cipso_ipv4.c cipso_v4_cache = kcalloc(CIPSO_V4_CACHE_BUCKETS, cipso_v4_cache 174 net/ipv4/cipso_ipv4.c if (!cipso_v4_cache) cipso_v4_cache 178 net/ipv4/cipso_ipv4.c spin_lock_init(&cipso_v4_cache[iter].lock); cipso_v4_cache 179 net/ipv4/cipso_ipv4.c cipso_v4_cache[iter].size = 0; cipso_v4_cache 180 net/ipv4/cipso_ipv4.c INIT_LIST_HEAD(&cipso_v4_cache[iter].list); cipso_v4_cache 200 net/ipv4/cipso_ipv4.c spin_lock_bh(&cipso_v4_cache[iter].lock); cipso_v4_cache 203 net/ipv4/cipso_ipv4.c &cipso_v4_cache[iter].list, list) { cipso_v4_cache 207 net/ipv4/cipso_ipv4.c cipso_v4_cache[iter].size = 0; cipso_v4_cache 208 net/ipv4/cipso_ipv4.c spin_unlock_bh(&cipso_v4_cache[iter].lock); cipso_v4_cache 248 net/ipv4/cipso_ipv4.c spin_lock_bh(&cipso_v4_cache[bkt].lock); cipso_v4_cache 249 net/ipv4/cipso_ipv4.c list_for_each_entry(entry, &cipso_v4_cache[bkt].list, list) { cipso_v4_cache 259 net/ipv4/cipso_ipv4.c spin_unlock_bh(&cipso_v4_cache[bkt].lock); cipso_v4_cache 274 net/ipv4/cipso_ipv4.c spin_unlock_bh(&cipso_v4_cache[bkt].lock); cipso_v4_cache 279 net/ipv4/cipso_ipv4.c spin_unlock_bh(&cipso_v4_cache[bkt].lock); cipso_v4_cache 325 net/ipv4/cipso_ipv4.c spin_lock_bh(&cipso_v4_cache[bkt].lock); cipso_v4_cache 326 net/ipv4/cipso_ipv4.c if (cipso_v4_cache[bkt].size < cipso_v4_cache_bucketsize) { cipso_v4_cache 327 net/ipv4/cipso_ipv4.c list_add(&entry->list, &cipso_v4_cache[bkt].list); cipso_v4_cache 328 net/ipv4/cipso_ipv4.c cipso_v4_cache[bkt].size += 1; cipso_v4_cache 330 net/ipv4/cipso_ipv4.c old_entry = list_entry(cipso_v4_cache[bkt].list.prev, cipso_v4_cache 333 net/ipv4/cipso_ipv4.c list_add(&entry->list, &cipso_v4_cache[bkt].list); cipso_v4_cache 336 net/ipv4/cipso_ipv4.c spin_unlock_bh(&cipso_v4_cache[bkt].lock);