Lines Matching refs:gup
52 struct gup_test gup = *(struct gup_test *)data;
59 gup.size = size;
60 if (ioctl(gup_fd, cmd, &gup))
65 cmd_to_str(cmd), gup.get_delta_usec,
66 gup.put_delta_usec);
67 if (gup.size != size)
68 printf(", truncated (size: %lld)", gup.size);
73 gup.size = size;
74 if (ioctl(gup_fd, cmd, &gup)) {
81 if (gup.size != size)
82 printf("Truncated (size: %lld)\n", gup.size);
91 struct gup_test gup = { 0 };
118 gup.which_pages[0] = 1;
122 gup.test_flags |= GUP_TEST_FLAG_DUMP_PAGES_USE_PIN;
126 gup.gup_flags = strtol(optarg, 0, 0);
169 /* fault pages in gup, do not fault in userland */
195 gup.which_pages[extra_arg_count] = page_index;
207 gup.nr_pages_per_call = nr_pages;
209 gup.gup_flags |= FOLL_WRITE;
237 gup.addr = (unsigned long)p;
251 gup.gup_flags |= FOLL_TOUCH;
253 for (; (unsigned long)p < gup.addr + size; p += psize())
260 ret = pthread_create(&tid[i], NULL, gup_thread, &gup);