Lines Matching refs:bucket
368 unsigned bucket; member
427 unsigned bucket, entry; in table_seq_start() local
430 bucket = n >> 32; in table_seq_start()
433 if (bucket >= ls->ls_rsbtbl_size) in table_seq_start()
450 tree = toss ? &ls->ls_rsbtbl[bucket].toss : &ls->ls_rsbtbl[bucket].keep; in table_seq_start()
452 spin_lock(&ls->ls_rsbtbl[bucket].lock); in table_seq_start()
459 ri->bucket = bucket; in table_seq_start()
460 spin_unlock(&ls->ls_rsbtbl[bucket].lock); in table_seq_start()
465 spin_unlock(&ls->ls_rsbtbl[bucket].lock); in table_seq_start()
475 bucket++; in table_seq_start()
478 if (bucket >= ls->ls_rsbtbl_size) { in table_seq_start()
482 tree = toss ? &ls->ls_rsbtbl[bucket].toss : &ls->ls_rsbtbl[bucket].keep; in table_seq_start()
484 spin_lock(&ls->ls_rsbtbl[bucket].lock); in table_seq_start()
490 ri->bucket = bucket; in table_seq_start()
491 spin_unlock(&ls->ls_rsbtbl[bucket].lock); in table_seq_start()
495 spin_unlock(&ls->ls_rsbtbl[bucket].lock); in table_seq_start()
507 unsigned bucket; in table_seq_next() local
510 bucket = n >> 32; in table_seq_next()
516 spin_lock(&ls->ls_rsbtbl[bucket].lock); in table_seq_next()
524 spin_unlock(&ls->ls_rsbtbl[bucket].lock); in table_seq_next()
529 spin_unlock(&ls->ls_rsbtbl[bucket].lock); in table_seq_next()
540 bucket++; in table_seq_next()
543 if (bucket >= ls->ls_rsbtbl_size) { in table_seq_next()
547 tree = toss ? &ls->ls_rsbtbl[bucket].toss : &ls->ls_rsbtbl[bucket].keep; in table_seq_next()
549 spin_lock(&ls->ls_rsbtbl[bucket].lock); in table_seq_next()
555 ri->bucket = bucket; in table_seq_next()
556 spin_unlock(&ls->ls_rsbtbl[bucket].lock); in table_seq_next()
560 spin_unlock(&ls->ls_rsbtbl[bucket].lock); in table_seq_next()