• Home
  • Raw
  • Download

Lines Matching refs:p

91 				     unsigned long *p,  in clear_multiples()  argument
102 __clear_bit(m, p); in clear_multiples()
111 const struct primes *p; in expand_to_next_prime() local
134 p = rcu_dereference_protected(primes, lockdep_is_held(&lock)); in expand_to_next_prime()
135 if (x < p->last) { in expand_to_next_prime()
145 bitmap_copy(new->primes, p->primes, p->sz); in expand_to_next_prime()
147 new->last = clear_multiples(y, new->primes, p->sz, sz); in expand_to_next_prime()
153 if (p != &small_primes) in expand_to_next_prime()
154 kfree_rcu((struct primes *)p, rcu); in expand_to_next_prime()
163 const struct primes *p; in free_primes() local
166 p = rcu_dereference_protected(primes, lockdep_is_held(&lock)); in free_primes()
167 if (p != &small_primes) { in free_primes()
169 kfree_rcu((struct primes *)p, rcu); in free_primes()
190 const struct primes *p; in next_prime_number() local
193 p = rcu_dereference(primes); in next_prime_number()
194 while (x >= p->last) { in next_prime_number()
201 p = rcu_dereference(primes); in next_prime_number()
203 x = find_next_bit(p->primes, p->last, x + 1); in next_prime_number()
223 const struct primes *p; in is_prime_number() local
227 p = rcu_dereference(primes); in is_prime_number()
228 while (x >= p->sz) { in is_prime_number()
235 p = rcu_dereference(primes); in is_prime_number()
237 result = test_bit(x, p->primes); in is_prime_number()
246 const struct primes *p; in dump_primes() local
252 p = rcu_dereference(primes); in dump_primes()
255 bitmap_print_to_pagebuf(true, buf, p->primes, p->sz); in dump_primes()
257 p->last, p->sz, p->primes[BITS_TO_LONGS(p->sz) - 1], buf); in dump_primes()