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 status = ioctl(gup_fd, cmd, &gup); in gup_thread()
67 cmd_to_str(cmd), gup.get_delta_usec, in gup_thread()
68 gup.put_delta_usec); in gup_thread()
69 if (gup.size != size) in gup_thread()
70 ksft_print_msg(", truncated (size: %lld)", gup.size); in gup_thread()
75 gup.size = size; in gup_thread()
76 status = ioctl(gup_fd, cmd, &gup); in gup_thread()
82 if (gup.size != size) in gup_thread()
83 ksft_print_msg("Truncated (size: %lld)\n", gup.size); in gup_thread()
94 struct gup_test gup = { 0 }; in main() local
121 gup.which_pages[0] = 1; in main()
125 gup.test_flags |= GUP_TEST_FLAG_DUMP_PAGES_USE_PIN; in main()
129 gup.gup_flags = strtol(optarg, 0, 0); in main()
198 gup.which_pages[extra_arg_count] = page_index; in main()
211 gup.nr_pages_per_call = nr_pages; in main()
213 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 += psize()) in main()
261 ret = pthread_create(&tid[i], NULL, gup_thread, &gup); in main()