Lines Matching refs:bd
643 struct bloom_pair *bd = &blocked_delegations; in delegation_blocked() local
645 if (bd->entries == 0) in delegation_blocked()
647 if (seconds_since_boot() - bd->swap_time > 30) { in delegation_blocked()
649 if (seconds_since_boot() - bd->swap_time > 30) { in delegation_blocked()
650 bd->entries -= bd->old_entries; in delegation_blocked()
651 bd->old_entries = bd->entries; in delegation_blocked()
652 memset(bd->set[bd->new], 0, in delegation_blocked()
653 sizeof(bd->set[0])); in delegation_blocked()
654 bd->new = 1-bd->new; in delegation_blocked()
655 bd->swap_time = seconds_since_boot(); in delegation_blocked()
660 if (test_bit(hash&255, bd->set[0]) && in delegation_blocked()
661 test_bit((hash>>8)&255, bd->set[0]) && in delegation_blocked()
662 test_bit((hash>>16)&255, bd->set[0])) in delegation_blocked()
665 if (test_bit(hash&255, bd->set[1]) && in delegation_blocked()
666 test_bit((hash>>8)&255, bd->set[1]) && in delegation_blocked()
667 test_bit((hash>>16)&255, bd->set[1])) in delegation_blocked()
676 struct bloom_pair *bd = &blocked_delegations; in block_delegations() local
681 __set_bit(hash&255, bd->set[bd->new]); in block_delegations()
682 __set_bit((hash>>8)&255, bd->set[bd->new]); in block_delegations()
683 __set_bit((hash>>16)&255, bd->set[bd->new]); in block_delegations()
684 if (bd->entries == 0) in block_delegations()
685 bd->swap_time = seconds_since_boot(); in block_delegations()
686 bd->entries += 1; in block_delegations()