Lines Matching refs:gtt
244 void *gtt, *cpu; in test_wc() local
252 gtt = gem_mmap__gtt(fd, handle, 4096, PROT_READ | PROT_WRITE); in test_wc()
258 memcpy(cpu, gtt, 4096); in test_wc()
265 memcpy(gtt, cpu, 4096); in test_wc()
281 munmap(gtt, 4096); in test_wc()
402 uint32_t *gtt, *cpu; in test_coherency() local
410 gtt = gem_mmap__gtt(fd, handle, OBJECT_SIZE, PROT_READ | PROT_WRITE); in test_coherency()
420 gtt[x] = i; in test_coherency()
426 munmap(gtt, OBJECT_SIZE); in test_coherency()
434 uint32_t *gtt; in test_clflush() local
440 gtt = gem_mmap__gtt(fd, handle, OBJECT_SIZE, PROT_READ | PROT_WRITE); in test_clflush()
443 igt_clflush_range(gtt, OBJECT_SIZE); in test_clflush()
445 munmap(gtt, OBJECT_SIZE); in test_clflush()
473 uint32_t *gtt[2]; in test_hang() local
475 for (int i = 0; i < ARRAY_SIZE(gtt); i++) { in test_hang()
481 gtt[i] = gem_mmap__gtt(fd, handle, OBJECT_SIZE, PROT_WRITE); in test_hang()
492 found[0] = READ_ONCE(gtt[0][x]); in test_hang()
493 found[1] = READ_ONCE(gtt[1][x]); in test_hang()
505 gtt[0][x] = patterns[next_pattern]; in test_hang()
506 gtt[1][x] = patterns[next_pattern]; in test_hang()