Lines Matching refs:BITS_PER_PAGE
58 return (map - pid_ns->pidmap)*BITS_PER_PAGE + off; in mk_pid()
62 find_next_zero_bit((map)->page, BITS_PER_PAGE, off)
75 [ 0 ... PIDMAP_ENTRIES-1] = { ATOMIC_INIT(BITS_PER_PAGE), NULL }
108 struct pidmap *map = upid->ns->pidmap + nr / BITS_PER_PAGE; in free_pidmap()
163 map = &pid_ns->pidmap[pid/BITS_PER_PAGE]; in alloc_pidmap()
169 max_scan = DIV_ROUND_UP(pid_max, BITS_PER_PAGE) - !offset; in alloc_pidmap()
195 if (offset >= BITS_PER_PAGE) in alloc_pidmap()
202 if (map < &pid_ns->pidmap[(pid_max-1)/BITS_PER_PAGE]) { in alloc_pidmap()
225 map = &pid_ns->pidmap[(last + 1)/BITS_PER_PAGE]; in next_pidmap()
230 offset = find_next_bit((map)->page, BITS_PER_PAGE, offset); in next_pidmap()
231 if (offset < BITS_PER_PAGE) in next_pidmap()