Lines Matching refs:pos
180 struct rhash_head *pos; in test_bucket_stats() local
185 while ((pos = rhashtable_walk_next(&hti))) { in test_bucket_stats()
186 if (PTR_ERR(pos) == -EAGAIN) { in test_bucket_stats()
190 } else if (IS_ERR(pos)) { in test_bucket_stats()
192 PTR_ERR(pos)); in test_bucket_stats()
312 struct rhlist_head *h, *pos; in test_rhltable() local
328 rhl_for_each_entry_rcu(obj, pos, h, list_node) { in test_rhltable()
329 if (WARN(pos == &rhl_test_objects[j].list_node, "old element found, should be gone")) in test_rhltable()
338 rhl_for_each_entry_rcu(obj, pos, h, list_node) { in test_rhltable()
339 if (pos == &rhl_test_objects[i].list_node) { in test_rhltable()
483 struct rhash_head *pos, *next; in print_ht() local
486 pos = rht_ptr_exclusive(tbl->buckets + i); in print_ht()
487 next = !rht_is_a_nulls(pos) ? rht_dereference(pos->next, ht) : NULL; in print_ht()
489 if (!rht_is_a_nulls(pos)) { in print_ht()
493 while (!rht_is_a_nulls(pos)) { in print_ht()
494 struct rhlist_head *list = container_of(pos, struct rhlist_head, rhead); in print_ht()
497 pos = &list->rhead; in print_ht()
499 p = rht_obj(ht, pos); in print_ht()
506 pos = next, in print_ht()
507 next = !rht_is_a_nulls(pos) ? in print_ht()
508 rht_dereference(pos->next, ht) : NULL; in print_ht()
510 offset += sprintf(buff + offset, "]]%s", !rht_is_a_nulls(pos) ? " -> " : ""); in print_ht()