Lines Matching refs:bd
644 struct bloom_pair *bd = &blocked_delegations; in delegation_blocked() local
646 if (bd->entries == 0) in delegation_blocked()
648 if (seconds_since_boot() - bd->swap_time > 30) { in delegation_blocked()
650 if (seconds_since_boot() - bd->swap_time > 30) { in delegation_blocked()
651 bd->entries -= bd->old_entries; in delegation_blocked()
652 bd->old_entries = bd->entries; in delegation_blocked()
653 memset(bd->set[bd->new], 0, in delegation_blocked()
654 sizeof(bd->set[0])); in delegation_blocked()
655 bd->new = 1-bd->new; in delegation_blocked()
656 bd->swap_time = seconds_since_boot(); in delegation_blocked()
661 if (test_bit(hash&255, bd->set[0]) && in delegation_blocked()
662 test_bit((hash>>8)&255, bd->set[0]) && in delegation_blocked()
663 test_bit((hash>>16)&255, bd->set[0])) in delegation_blocked()
666 if (test_bit(hash&255, bd->set[1]) && in delegation_blocked()
667 test_bit((hash>>8)&255, bd->set[1]) && in delegation_blocked()
668 test_bit((hash>>16)&255, bd->set[1])) in delegation_blocked()
677 struct bloom_pair *bd = &blocked_delegations; in block_delegations() local
682 __set_bit(hash&255, bd->set[bd->new]); in block_delegations()
683 __set_bit((hash>>8)&255, bd->set[bd->new]); in block_delegations()
684 __set_bit((hash>>16)&255, bd->set[bd->new]); in block_delegations()
685 if (bd->entries == 0) in block_delegations()
686 bd->swap_time = seconds_since_boot(); in block_delegations()
687 bd->entries += 1; in block_delegations()