Lines Matching refs:num_obj
1585 const unsigned int num_obj = 3; in test_unmap() local
1587 uint32_t bo[num_obj + 1]; in test_unmap()
1588 size_t map_size = sizeof(linear) * num_obj + (PAGE_SIZE - 1); in test_unmap()
1597 for (i = 0; i < num_obj; i++, bo_ptr += sizeof(linear)) { in test_unmap()
1601 bo[num_obj] = create_bo(fd, 0); in test_unmap()
1603 for (i = 0; i < num_obj; i++) in test_unmap()
1604 igt_assert_eq(copy(fd, bo[num_obj], bo[i]), 0); in test_unmap()
1609 for (i = 0; i < num_obj; i++) in test_unmap()
1610 igt_assert_eq(copy(fd, bo[num_obj], bo[i]), -expected); in test_unmap()
1612 for (i = 0; i < (num_obj + 1); i++) in test_unmap()
1619 const unsigned int num_obj = 3; in test_unmap_after_close() local
1621 uint32_t bo[num_obj + 1]; in test_unmap_after_close()
1622 size_t map_size = sizeof(linear) * num_obj + (PAGE_SIZE - 1); in test_unmap_after_close()
1631 for (i = 0; i < num_obj; i++, bo_ptr += sizeof(linear)) { in test_unmap_after_close()
1635 bo[num_obj] = create_bo(fd, 0); in test_unmap_after_close()
1637 for (i = 0; i < num_obj; i++) in test_unmap_after_close()
1638 igt_assert_eq(copy(fd, bo[num_obj], bo[i]), 0); in test_unmap_after_close()
1640 for (i = 0; i < (num_obj + 1); i++) in test_unmap_after_close()