Lines Matching refs:alloc
178 struct ioctl_gntdev_alloc_grant_ref alloc; in osdep_gntshr_share_pages() local
180 alloc.gref_ids = malloc(count * sizeof(uint32_t)); in osdep_gntshr_share_pages()
181 if ( alloc.gref_ids == NULL ) in osdep_gntshr_share_pages()
184 alloc.domid = domid; in osdep_gntshr_share_pages()
185 alloc.flags = writable ? GNTDEV_ALLOC_FLAG_WRITABLE : 0; in osdep_gntshr_share_pages()
186 alloc.count = count; in osdep_gntshr_share_pages()
196 alloc.va = area; in osdep_gntshr_share_pages()
198 alloc.notify.offset = 0; in osdep_gntshr_share_pages()
199 alloc.notify.action = 0; in osdep_gntshr_share_pages()
202 alloc.notify.offset = notify_offset; in osdep_gntshr_share_pages()
203 alloc.notify.action |= UNMAP_NOTIFY_CLEAR_BYTE; in osdep_gntshr_share_pages()
207 alloc.notify.event_channel_port = notify_port; in osdep_gntshr_share_pages()
208 alloc.notify.action |= UNMAP_NOTIFY_SEND_EVENT; in osdep_gntshr_share_pages()
211 err = ioctl(fd, IOCTL_GNTDEV_ALLOC_GRANT_REF, &alloc); in osdep_gntshr_share_pages()
220 memcpy(refs, alloc.gref_ids, count * sizeof(uint32_t)); in osdep_gntshr_share_pages()
223 free(alloc.gref_ids); in osdep_gntshr_share_pages()