Home
last modified time | relevance | path

Searched refs:g_fd (Results 1 – 6 of 6) sorted by relevance

/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8429/
Dpoc.c88 int g_fd = -1; variable
96 g_fd = open(dev_path, O_RDWR); in open_driver()
97 if (g_fd < 0) { in open_driver()
102 return g_fd; in open_driver()
106 ioctl(g_fd, NVMAP_IOC_CREATE, g_allocation); in trigger_nvmap_create()
111 ioctl(g_fd, NVMAP_IOC_FROM_FD, &g_allocation_dup); in trigger_nvmap_create_dup()
120 ioctl(g_fd, NVMAP_IOC_ALLOC, &alloc); in trigger_nvmap_alloc()
124 ioctl(g_fd, NVMAP_IOC_FREE, fd); in trigger_nvmap_free()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8428/
Dpoc.c104 int g_fd = -1; variable
116 g_fd = open(dev_path, O_RDWR); in open_driver()
117 if (g_fd < 0) { in open_driver()
122 return g_fd; in open_driver()
127 ioctl(g_fd, NVMAP_IOC_CREATE, g_allocation); in trigger_nvmap_create()
134 ioctl(g_fd, NVMAP_IOC_ALLOC, &g_real_alloc); in trigger_nvmap_alloc()
139 ioctl(g_fd, NVMAP_IOC_FREE, handle); in trigger_nvmap_free()
186 ioctl(g_fd, NVMAP_IOC_RESERVE, &g_op_list); in trigger_rw_handle()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8460/
Dpoc.c109 int g_fd = -1; variable
113 g_fd = open(dev_path, O_RDWR); in open_driver()
114 return g_fd; in open_driver()
129 ioctl(g_fd, NVMAP_IOC_CREATE, &op); in main()
136 ioctl(g_fd, NVMAP_IOC_ALLOC, &alloc); in main()
152 ioctl(g_fd, NVMAP_IOC_PIN_MULT, &err_pin); // construct op.addr in main()
153 ioctl(g_fd, NVMAP_IOC_PIN_MULT_32, &pin); in main()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8434/
Dpoc.c79 int g_fd = -1; variable
89 ioctl(g_fd, IOCTL_KGSL_DRAWCTXT_CREATE, &ctx); in trigger_kgsl_create_drawctx()
96 ioctl(g_fd, IOCTL_KGSL_DRAWCTXT_DESTROY, &ctx); in trigger_kgsl_free_drawctx()
101 ioctl(g_fd, IOCTL_KGSL_TIMESTAMP_EVENT, &g_event); in trigger_kgsl_timestamp_event()
106 g_fd = open(dev_path, O_RDWR); in open_driver()
107 return g_fd; in open_driver()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-0508/
Dpoc.c103 int g_fd = -1; variable
141 g_fd = open(dev_path, O_RDONLY); in open_driver()
142 if (g_fd < 0) { in open_driver()
143 return g_fd; in open_driver()
163 ioctl(g_fd, DRM_IOCTL_TEGRA_GEM_CREATE, &para); in gem_create()
169 ioctl(g_fd, DRM_IOCTL_PRIME_HANDLE_TO_FD, &para); in handle_to_fd()
192 close(g_fd); in main()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8430/
Dpoc.c94 int g_fd = -1; variable
106 g_fd = open(dev_path, O_RDONLY); in open_driver()
107 if (g_fd < 0) { in open_driver()
127 ioctl(g_fd, NVHOST_IOCTL_CHANNEL_OPEN, &args); in trigger_channel_open()
154 ioctl(g_fd, NVHOST_IOCTL_CHANNEL_SET_ERROR_NOTIFIER, &g_error_notifier); in trigger_set_error_notifier()