Lines Matching refs:pos
1550 unsigned long *pos, void *start, in next_freelist_entry() argument
1561 idx = s->random_seq[*pos]; in next_freelist_entry()
1562 *pos += 1; in next_freelist_entry()
1563 if (*pos >= freelist_count) in next_freelist_entry()
1564 *pos = 0; in next_freelist_entry()
1576 unsigned long idx, pos, page_limit, freelist_count; in shuffle_freelist() local
1582 pos = get_random_int() % freelist_count; in shuffle_freelist()
1588 cur = next_freelist_entry(s, page, &pos, start, page_limit, in shuffle_freelist()
1594 next = next_freelist_entry(s, page, &pos, start, page_limit, in shuffle_freelist()
4523 long start, end, pos; in add_location() local
4532 pos = start + (end - start + 1) / 2; in add_location()
4538 if (pos == end) in add_location()
4541 caddr = t->loc[pos].addr; in add_location()
4544 l = &t->loc[pos]; in add_location()
4566 end = pos; in add_location()
4568 start = pos; in add_location()
4577 l = t->loc + pos; in add_location()
4578 if (pos < t->count) in add_location()
4580 (t->count - pos) * sizeof(struct location)); in add_location()