Lines Matching refs:bd
766 struct bloom_pair *bd = &blocked_delegations; in delegation_blocked() local
768 if (bd->entries == 0) in delegation_blocked()
770 if (seconds_since_boot() - bd->swap_time > 30) { in delegation_blocked()
772 if (seconds_since_boot() - bd->swap_time > 30) { in delegation_blocked()
773 bd->entries -= bd->old_entries; in delegation_blocked()
774 bd->old_entries = bd->entries; in delegation_blocked()
775 memset(bd->set[bd->new], 0, in delegation_blocked()
776 sizeof(bd->set[0])); in delegation_blocked()
777 bd->new = 1-bd->new; in delegation_blocked()
778 bd->swap_time = seconds_since_boot(); in delegation_blocked()
783 if (test_bit(hash&255, bd->set[0]) && in delegation_blocked()
784 test_bit((hash>>8)&255, bd->set[0]) && in delegation_blocked()
785 test_bit((hash>>16)&255, bd->set[0])) in delegation_blocked()
788 if (test_bit(hash&255, bd->set[1]) && in delegation_blocked()
789 test_bit((hash>>8)&255, bd->set[1]) && in delegation_blocked()
790 test_bit((hash>>16)&255, bd->set[1])) in delegation_blocked()
799 struct bloom_pair *bd = &blocked_delegations; in block_delegations() local
804 __set_bit(hash&255, bd->set[bd->new]); in block_delegations()
805 __set_bit((hash>>8)&255, bd->set[bd->new]); in block_delegations()
806 __set_bit((hash>>16)&255, bd->set[bd->new]); in block_delegations()
807 if (bd->entries == 0) in block_delegations()
808 bd->swap_time = seconds_since_boot(); in block_delegations()
809 bd->entries += 1; in block_delegations()