Searched refs:gatt (Results 1 – 6 of 6) sorted by relevance
/dragonfly/sys/dev/agp/ |
H A D | agp_sis.c | 48 struct agp_gatt *gatt; member 126 struct agp_gatt *gatt; in agp_sis_attach() local 136 gatt = agp_alloc_gatt(dev); in agp_sis_attach() 137 if (gatt) in agp_sis_attach() 149 sc->gatt = gatt; in agp_sis_attach() 152 pci_write_config(dev, AGP_SIS_ATTBASE, gatt->ag_physical, 4); in agp_sis_attach() 184 agp_free_gatt(sc->gatt); in agp_sis_detach() 229 if (offset >= (sc->gatt->ag_entries << AGP_PAGE_SHIFT)) in agp_sis_bind_page() 232 sc->gatt->ag_virtual[offset >> AGP_PAGE_SHIFT] = physical; in agp_sis_bind_page() 241 if (offset >= (sc->gatt->ag_entries << AGP_PAGE_SHIFT)) in agp_sis_unbind_page() [all …]
|
H A D | agp_via.c | 52 struct agp_gatt *gatt; member 160 struct agp_gatt *gatt; in agp_via_attach() local 186 gatt = agp_alloc_gatt(dev); in agp_via_attach() 187 if (gatt) in agp_via_attach() 199 sc->gatt = gatt; in agp_via_attach() 211 pci_write_config(dev, sc->regs[REG_ATTBASE], gatt->ag_physical, 4); in agp_via_attach() 231 agp_free_gatt(sc->gatt); in agp_via_detach() 353 if (offset >= (sc->gatt->ag_entries << AGP_PAGE_SHIFT)) in agp_via_bind_page() 356 sc->gatt->ag_virtual[offset >> AGP_PAGE_SHIFT] = physical; in agp_via_bind_page() 365 if (offset >= (sc->gatt->ag_entries << AGP_PAGE_SHIFT)) in agp_via_unbind_page() [all …]
|
H A D | agp_amd64.c | 72 struct agp_gatt *gatt; member 163 struct agp_gatt *gatt; in agp_amd64_attach() local 189 gatt = agp_alloc_gatt(dev); in agp_amd64_attach() 190 if (gatt) in agp_amd64_attach() 202 sc->gatt = gatt; in agp_amd64_attach() 231 (uint32_t)(gatt->ag_physical >> 8) & AGP_AMD64_ATTBASE_MASK, in agp_amd64_attach() 259 agp_free_gatt(sc->gatt); in agp_amd64_detach() 333 if (offset >= (sc->gatt->ag_entries << AGP_PAGE_SHIFT)) in agp_amd64_bind_page() 336 sc->gatt->ag_virtual[offset >> AGP_PAGE_SHIFT] = in agp_amd64_bind_page() 347 if (offset >= (sc->gatt->ag_entries << AGP_PAGE_SHIFT)) in agp_amd64_unbind_page() [all …]
|
H A D | agp.c | 132 struct agp_gatt *gatt; in agp_alloc_gatt() local 144 gatt = kmalloc(sizeof(struct agp_gatt), M_AGP, M_INTWAIT); in agp_alloc_gatt() 145 gatt->ag_entries = entries; in agp_alloc_gatt() 148 if (!gatt->ag_virtual) { in agp_alloc_gatt() 151 kfree(gatt, M_AGP); in agp_alloc_gatt() 154 gatt->ag_physical = vtophys((vm_offset_t) gatt->ag_virtual); in agp_alloc_gatt() 157 return gatt; in agp_alloc_gatt() 161 agp_free_gatt(struct agp_gatt *gatt) in agp_free_gatt() argument 163 contigfree(gatt->ag_virtual, in agp_free_gatt() 164 gatt->ag_entries * sizeof(u_int32_t), M_AGP); in agp_free_gatt() [all …]
|
H A D | intel-gtt.c | 153 struct agp_gatt *gatt; member 827 sc->gatt->ag_physical = pgtblctl & ~1; in agp_i830_install_gatt() 864 sc->gatt = kmalloc(sizeof(struct agp_gatt), M_DRM, M_WAITOK); in agp_i810_attach() 865 sc->gatt->ag_entries = AGP_GET_APERTURE(dev) >> AGP_PAGE_SHIFT; in agp_i810_attach() 874 kfree(sc->gatt); in agp_i810_attach() 924 kfree(sc->gatt); in agp_i810_detach() 941 sc->gatt->ag_physical | 1); in agp_i810_resume() 1058 if (offset >= (sc->gatt->ag_entries << AGP_PAGE_SHIFT)) { in agp_i810_bind_page() 1061 AGP_PAGE_SHIFT, sc->gatt->ag_entries); in agp_i810_bind_page() 1080 if (offset >= (sc->gatt->ag_entries << AGP_PAGE_SHIFT)) in agp_i810_unbind_page()
|
H A D | agppriv.h | 93 void agp_free_gatt(struct agp_gatt *gatt);
|