Lines Matching refs:bkt
203 u32 bkt;
212 bkt = hash & (CALIPSO_CACHE_BUCKETS - 1);
213 spin_lock_bh(&calipso_cache[bkt].lock);
214 list_for_each_entry(entry, &calipso_cache[bkt].list, list) {
224 spin_unlock_bh(&calipso_cache[bkt].lock);
239 spin_unlock_bh(&calipso_cache[bkt].lock);
244 spin_unlock_bh(&calipso_cache[bkt].lock);
268 u32 bkt;
291 bkt = entry->hash & (CALIPSO_CACHE_BUCKETS - 1);
292 spin_lock_bh(&calipso_cache[bkt].lock);
293 if (calipso_cache[bkt].size < calipso_cache_bucketsize) {
294 list_add(&entry->list, &calipso_cache[bkt].list);
295 calipso_cache[bkt].size += 1;
297 old_entry = list_entry(calipso_cache[bkt].list.prev,
300 list_add(&entry->list, &calipso_cache[bkt].list);
303 spin_unlock_bh(&calipso_cache[bkt].lock);