Lines Matching refs:aperture

64 gart_delete_aperture(void *aperture)
66 dprintf(" gart_delete_aperture(%p)\n", aperture);
71 gart_get_aperture_info(void *aperture, aperture_info *info)
73 dprintf(" gart_get_aperture_info(%p)\n", aperture);
85 gart_set_aperture_size(void *aperture, size_t size)
87 dprintf(" gart_set_aperture_size(%p, %lu)\n", aperture, size);
93 gart_bind_page(void *aperture, uint32 offset, addr_t physicalAddress)
95 dprintf(" gart_bind_page(%p, offset %lx, physical %lx)\n", aperture,
102 gart_unbind_page(void *aperture, uint32 offset)
104 dprintf(" gart_unbind_page(%p, offset %lx)\n", aperture, offset);
110 gart_flush_tlbs(void *aperture)
112 dprintf(" gart_flush_tlbs(%p)\n", aperture);
154 allocate(aperture_id aperture, size_t size, size_t alignment, uint32 flags,
161 status_t status = sGART->allocate_memory(aperture, size, alignment, flags,
174 aperture_id aperture = sGART->map_aperture(0, 0, 0, 0, &apertureBase);
175 printf("Map Aperture: %ld, base %lx\n", aperture, apertureBase);
178 sGART->get_aperture_info(aperture, &info);
183 allocate(aperture, 2 * B_PAGE_SIZE, 0, 0, base[0], physical[0]);
184 allocate(aperture, 4 * B_PAGE_SIZE, 0, B_APERTURE_NON_RESERVED, base[1],
186 allocate(aperture, 1 * B_PAGE_SIZE, 0, B_APERTURE_NEED_PHYSICAL, base[2],
188 sGART->deallocate_memory(aperture, base[2]);
189 allocate(aperture, 1 * B_PAGE_SIZE, 4 * B_PAGE_SIZE, 0, base[2],
192 sGART->deallocate_memory(aperture, base[1]);
194 allocate(aperture, 5 * B_PAGE_SIZE, 0, 0, base[1], physical[1]);
196 sGART->deallocate_memory(aperture, base[2]);
197 sGART->deallocate_memory(aperture, base[0]);
198 if (sGART->deallocate_memory(aperture, 0x12345) == B_OK)
202 status_t status = sGART->bind_aperture(aperture, -1, (addr_t)buffer,
207 allocate(aperture, 25 * B_PAGE_SIZE, 0, 0, base[0], physical[0]);
209 allocate(aperture, 4 * B_PAGE_SIZE, 0, 0, base[0], physical[0]);
215 status = sGART->bind_aperture(aperture, area, 0, 0, 0, false, 0, &base[4]);
219 sGART->unbind_aperture(aperture, base[3]);
220 sGART->unbind_aperture(aperture, base[4]);
221 // sGART->deallocate_memory(aperture, base[0]);
226 sGART->unmap_aperture(aperture);