Lines Matching refs:p
89 unsigned long *p, in clear_multiples() argument
100 __clear_bit(m, p); in clear_multiples()
109 const struct primes *p; in expand_to_next_prime() local
132 p = rcu_dereference_protected(primes, lockdep_is_held(&lock)); in expand_to_next_prime()
133 if (x < p->last) { in expand_to_next_prime()
143 bitmap_copy(new->primes, p->primes, p->sz); in expand_to_next_prime()
145 new->last = clear_multiples(y, new->primes, p->sz, sz); in expand_to_next_prime()
151 if (p != &small_primes) in expand_to_next_prime()
152 kfree_rcu((struct primes *)p, rcu); in expand_to_next_prime()
161 const struct primes *p; in free_primes() local
164 p = rcu_dereference_protected(primes, lockdep_is_held(&lock)); in free_primes()
165 if (p != &small_primes) { in free_primes()
167 kfree_rcu((struct primes *)p, rcu); in free_primes()
188 const struct primes *p; in next_prime_number() local
191 p = rcu_dereference(primes); in next_prime_number()
192 while (x >= p->last) { in next_prime_number()
199 p = rcu_dereference(primes); in next_prime_number()
201 x = find_next_bit(p->primes, p->last, x + 1); in next_prime_number()
221 const struct primes *p; in is_prime_number() local
225 p = rcu_dereference(primes); in is_prime_number()
226 while (x >= p->sz) { in is_prime_number()
233 p = rcu_dereference(primes); in is_prime_number()
235 result = test_bit(x, p->primes); in is_prime_number()
244 const struct primes *p; in dump_primes() local
250 p = rcu_dereference(primes); in dump_primes()
253 bitmap_print_to_pagebuf(true, buf, p->primes, p->sz); in dump_primes()
255 p->last, p->sz, p->primes[BITS_TO_LONGS(p->sz) - 1], buf); in dump_primes()