Lines Matching refs:gatt
137 struct agp_gatt *gatt; in agp_alloc_gatt() local
149 gatt = malloc(sizeof(struct agp_gatt), M_AGP, M_NOWAIT); in agp_alloc_gatt()
150 if (!gatt) in agp_alloc_gatt()
153 gatt->ag_entries = entries; in agp_alloc_gatt()
154 gatt->ag_virtual = kmem_alloc_contig(entries * sizeof(uint32_t), in agp_alloc_gatt()
156 if (!gatt->ag_virtual) { in agp_alloc_gatt()
159 free(gatt, M_AGP); in agp_alloc_gatt()
162 gatt->ag_physical = vtophys((vm_offset_t) gatt->ag_virtual); in agp_alloc_gatt()
164 return gatt; in agp_alloc_gatt()
168 agp_free_gatt(struct agp_gatt *gatt) in agp_free_gatt() argument
170 kmem_free(gatt->ag_virtual, gatt->ag_entries * sizeof(uint32_t)); in agp_free_gatt()
171 free(gatt, M_AGP); in agp_free_gatt()