Lines Matching refs:bd
817 struct bloom_pair *bd = &blocked_delegations; in delegation_blocked() local
819 if (bd->entries == 0) in delegation_blocked()
821 if (seconds_since_boot() - bd->swap_time > 30) { in delegation_blocked()
823 if (seconds_since_boot() - bd->swap_time > 30) { in delegation_blocked()
824 bd->entries -= bd->old_entries; in delegation_blocked()
825 bd->old_entries = bd->entries; in delegation_blocked()
826 memset(bd->set[bd->new], 0, in delegation_blocked()
827 sizeof(bd->set[0])); in delegation_blocked()
828 bd->new = 1-bd->new; in delegation_blocked()
829 bd->swap_time = seconds_since_boot(); in delegation_blocked()
834 if (test_bit(hash&255, bd->set[0]) && in delegation_blocked()
835 test_bit((hash>>8)&255, bd->set[0]) && in delegation_blocked()
836 test_bit((hash>>16)&255, bd->set[0])) in delegation_blocked()
839 if (test_bit(hash&255, bd->set[1]) && in delegation_blocked()
840 test_bit((hash>>8)&255, bd->set[1]) && in delegation_blocked()
841 test_bit((hash>>16)&255, bd->set[1])) in delegation_blocked()
850 struct bloom_pair *bd = &blocked_delegations; in block_delegations() local
855 __set_bit(hash&255, bd->set[bd->new]); in block_delegations()
856 __set_bit((hash>>8)&255, bd->set[bd->new]); in block_delegations()
857 __set_bit((hash>>16)&255, bd->set[bd->new]); in block_delegations()
858 if (bd->entries == 0) in block_delegations()
859 bd->swap_time = seconds_since_boot(); in block_delegations()
860 bd->entries += 1; in block_delegations()