Lines Matching refs:remove_ioc
385 struct sgx_enclave_remove_pages remove_ioc;
489 memset(&remove_ioc, 0, sizeof(remove_ioc));
491 remove_ioc.offset = heap->offset;
492 remove_ioc.length = heap->size;
496 ret = ioctl(self->encl.fd, SGX_IOC_ENCLAVE_REMOVE_PAGES, &remove_ioc);
501 EXPECT_EQ(remove_ioc.count, heap->size);
1227 struct sgx_enclave_remove_pages remove_ioc;
1494 memset(&remove_ioc, 0, sizeof(remove_ioc));
1496 remove_ioc.offset = total_size;
1497 remove_ioc.length = 3 * PAGE_SIZE;
1499 ret = ioctl(self->encl.fd, SGX_IOC_ENCLAVE_REMOVE_PAGES, &remove_ioc);
1504 EXPECT_EQ(remove_ioc.count, 3 * PAGE_SIZE);
1564 struct sgx_enclave_remove_pages remove_ioc;
1656 memset(&remove_ioc, 0, sizeof(remove_ioc));
1658 remove_ioc.offset = encl_get_data_offset(&self->encl) + PAGE_SIZE;
1659 remove_ioc.length = PAGE_SIZE;
1661 ret = ioctl(self->encl.fd, SGX_IOC_ENCLAVE_REMOVE_PAGES, &remove_ioc);
1667 EXPECT_EQ(remove_ioc.count, 0);
1915 struct sgx_enclave_remove_pages remove_ioc;
1981 memset(&remove_ioc, 0, sizeof(remove_ioc));
1983 remove_ioc.offset = encl_get_data_offset(&self->encl) + PAGE_SIZE;
1984 remove_ioc.length = PAGE_SIZE;
1985 ret = ioctl(self->encl.fd, SGX_IOC_ENCLAVE_REMOVE_PAGES, &remove_ioc);
1990 EXPECT_EQ(remove_ioc.count, 4096);