Lines Matching refs:gup
53 struct gup_test gup = *(struct gup_test *)data; in gup_thread() local
60 gup.size = size; in gup_thread()
61 if (ioctl(gup_fd, cmd, &gup)) in gup_thread()
66 cmd_to_str(cmd), gup.get_delta_usec, in gup_thread()
67 gup.put_delta_usec); in gup_thread()
68 if (gup.size != size) in gup_thread()
69 printf(", truncated (size: %lld)", gup.size); in gup_thread()
74 gup.size = size; in gup_thread()
75 if (ioctl(gup_fd, cmd, &gup)) { in gup_thread()
82 if (gup.size != size) in gup_thread()
83 printf("Truncated (size: %lld)\n", gup.size); in gup_thread()
92 struct gup_test gup = { 0 }; in main() local
119 gup.which_pages[0] = 1; in main()
123 gup.test_flags |= GUP_TEST_FLAG_DUMP_PAGES_USE_PIN; in main()
127 gup.gup_flags = strtol(optarg, 0, 0); in main()
196 gup.which_pages[extra_arg_count] = page_index; in main()
208 gup.nr_pages_per_call = nr_pages; in main()
210 gup.gup_flags |= FOLL_WRITE; in main()
238 gup.addr = (unsigned long)p; in main()
252 gup.gup_flags |= FOLL_TOUCH; in main()
254 for (; (unsigned long)p < gup.addr + size; p += PAGE_SIZE) in main()
261 ret = pthread_create(&tid[i], NULL, gup_thread, &gup); in main()