Lines Matching refs:iia
322 union ion_ioctl_arg iia; in alloc_handle() local
323 memset(&iia, 0, sizeof(iia)); in alloc_handle()
325 iia.allocation.len = MMAP_SIZE; in alloc_handle()
326 iia.allocation.align = kernel_obj_addr; in alloc_handle()
327 iia.allocation.heap_id_mask = 1 << type; in alloc_handle()
328 iia.allocation.flags = ION_FLAG_CACHED | ION_FLAG_CACHED_NEEDS_SYNC; in alloc_handle()
330 FAIL_CHECK_ALOGE(ioctl(g_fd, ION_IOC_ALLOC, (unsigned long)&iia) >= 0, ION_IOC_ALLOC); in alloc_handle()
332 return iia.allocation.handle; in alloc_handle()
345 union ion_ioctl_arg iia; in poc_write_kernel() local
346 memset(&iia, 0, sizeof(iia)); in poc_write_kernel()
348 iia.fd.handle = handle; in poc_write_kernel()
350 FAIL_CHECK_ALOGE (ioctl(g_fd, ION_IOC_SHARE, (unsigned long)&iia) >= 0, ION_IOC_SHARE); in poc_write_kernel()
353 int dma_fd = iia.fd.fd; in poc_write_kernel()