Lines Matching refs:gnttab
49 static struct gnttab { struct
53 } gnttab; variable
60 k_sem_take(&gnttab.sem, K_FOREVER); in get_free_entry()
63 gref = gnttab.gref_list[0]; in get_free_entry()
66 gnttab.gref_list[0] = gnttab.gref_list[gref]; in get_free_entry()
77 gnttab.gref_list[gref] = gnttab.gref_list[0]; in put_free_entry()
78 gnttab.gref_list[0] = gref; in put_free_entry()
82 k_sem_give(&gnttab.sem); in put_free_entry()
94 gnttab.table[gref].frame = gfn; in gnttab_grant_permit_access()
95 gnttab.table[gref].domid = domid; in gnttab_grant_permit_access()
99 gnttab.table[gref].flags = flags; in gnttab_grant_permit_access()
118 pflags = &gnttab.table[gref].flags; in gnttab_reset_flags()
307 k_sem_init(&gnttab.sem, 0, NR_GRANT_ENTRIES - GNTTAB_NR_RESERVED_ENTRIES); in gnttab_init()
335 gnttab.table = (grant_entry_v1_t *)DEVICE_MMIO_TOPLEVEL_GET(grant_tables); in gnttab_init()