Lines Matching refs:suboffset
141 int suboffset = (offset >> 12) % (4096 - sizeof(offset)); in test_big_cpu() local
144 gem_write(fd, handle, offset + suboffset, &offset, sizeof(offset)); in test_big_cpu()
145 gem_read(fd, handle, offset + suboffset, &tmp, sizeof(tmp)); in test_big_cpu()
153 int suboffset = 4096 - (offset % (4096 - sizeof(offset))); in test_big_cpu() local
156 gem_write(fd, handle, (offset<<12) + suboffset, &offset, sizeof(offset)); in test_big_cpu()
157 gem_read(fd, handle, (offset<<12) + suboffset, &tmp, sizeof(tmp)); in test_big_cpu()
166 int suboffset = tmp % (4096 - sizeof(offset)); in test_big_cpu() local
168 gem_write(fd, handle, (tmp << 12) + suboffset, &offset, sizeof(offset)); in test_big_cpu()
169 gem_read(fd, handle, (tmp << 12) + suboffset, &tmp, sizeof(tmp)); in test_big_cpu()
205 int suboffset = (offset >> 12) % (4096 / sizeof(offset) - 1) * sizeof(offset); in test_big_gtt() local
207 gem_write(fd, handle, offset + suboffset, &offset, sizeof(offset)); in test_big_gtt()
209 igt_assert_eq_u64(ptr[(offset + suboffset)/sizeof(offset)], offset); in test_big_gtt()
216 int suboffset = (4096 - (offset % (4096 - sizeof(offset)))) & -sizeof(offset); in test_big_gtt() local
217 gem_write(fd, handle, (offset<<12) + suboffset, &offset, sizeof(offset)); in test_big_gtt()
219 igt_assert_eq_u64(ptr[((offset<<12) + suboffset)/sizeof(offset)], offset); in test_big_gtt()
227 int suboffset = (tmp % 4096) & -sizeof(offset); in test_big_gtt() local
229 tmp = (tmp << 12) + suboffset; in test_big_gtt()