Lines Matching defs:shared
105 static grant_entry_t *shared;
110 #define GT_PGADDR(i) ((uintptr_t)shared + ((i) << MMU_PAGESHIFT))
264 shared[ref].frame = frame;
265 shared[ref].domid = domid;
267 shared[ref].flags = GTF_permit_access | (readonly ? GTF_readonly : 0);
278 shared[ref].frame = frame;
279 shared[ref].domid = domid;
281 shared[ref].flags = GTF_permit_access | (readonly ? GTF_readonly : 0);
292 nflags = shared[ref].flags;
305 nflags = shared[ref].flags;
311 } while ((nflags = CMPXCHG(&shared[ref].flags, flags, 0)) != flags);
360 shared[ref].frame = pfn;
361 shared[ref].domid = domid;
363 shared[ref].flags = GTF_accept_transfer;
378 while (!((flags = shared[ref].flags) & GTF_transfer_committed)) {
379 if (CMPXCHG(&shared[ref].flags, flags, 0) == flags)
386 flags = shared[ref].flags;
392 frame = shared[ref].frame;
544 va = (caddr_t)shared;
594 shared = (grant_entry_t *)xen_alloc_pages(set.nr_frames);
598 shared = vmem_xalloc(heap_arena, set.nr_frames * MMU_PAGESIZE,