Lines Matching refs:agp
857 marvel_agp_setup(alpha_agp_info *agp) in marvel_agp_setup() argument
867 aper->arena = agp->hose->sg_pci; in marvel_agp_setup()
878 agp->aperture.bus_base = in marvel_agp_setup()
880 agp->aperture.size = aper->pg_count * PAGE_SIZE; in marvel_agp_setup()
881 agp->aperture.sysdata = aper; in marvel_agp_setup()
887 marvel_agp_cleanup(alpha_agp_info *agp) in marvel_agp_cleanup() argument
889 struct marvel_agp_aperture *aper = agp->aperture.sysdata; in marvel_agp_cleanup()
904 kfree(agp); in marvel_agp_cleanup()
908 marvel_agp_configure(alpha_agp_info *agp) in marvel_agp_configure() argument
910 io7_ioport_csrs *csrs = ((struct io7_port *)agp->hose->sysdata)->csrs; in marvel_agp_configure()
911 struct io7 *io7 = ((struct io7_port *)agp->hose->sysdata)->io7; in marvel_agp_configure()
927 if (agp->mode.bits.rate != 2) in marvel_agp_configure()
936 if (agp->mode.bits.rate == 2) in marvel_agp_configure()
956 agp->mode.bits.rate, in marvel_agp_configure()
959 agp->mode.bits.rate = new_rate; in marvel_agp_configure()
963 agp->hose->index, agp->mode.bits.rate, in marvel_agp_configure()
964 agp->mode.bits.sba ? " - SBA" : "", agp->mode.bits.rq); in marvel_agp_configure()
966 csrs->AGP_CMD.csr = agp->mode.lw; in marvel_agp_configure()
972 marvel_agp_bind_memory(alpha_agp_info *agp, off_t pg_start, struct agp_memory *mem) in marvel_agp_bind_memory() argument
974 struct marvel_agp_aperture *aper = agp->aperture.sysdata; in marvel_agp_bind_memory()
980 marvel_agp_unbind_memory(alpha_agp_info *agp, off_t pg_start, struct agp_memory *mem) in marvel_agp_unbind_memory() argument
982 struct marvel_agp_aperture *aper = agp->aperture.sysdata; in marvel_agp_unbind_memory()
988 marvel_agp_translate(alpha_agp_info *agp, dma_addr_t addr) in marvel_agp_translate() argument
990 struct marvel_agp_aperture *aper = agp->aperture.sysdata; in marvel_agp_translate()
994 if (addr < agp->aperture.bus_base || in marvel_agp_translate()
995 addr >= agp->aperture.bus_base + agp->aperture.size) { in marvel_agp_translate()
1023 alpha_agp_info *agp; in marvel_agp_info() local
1062 agp = kmalloc_obj(*agp); in marvel_agp_info()
1063 if (!agp) in marvel_agp_info()
1069 agp->hose = hose; in marvel_agp_info()
1070 agp->private = NULL; in marvel_agp_info()
1071 agp->ops = &marvel_agp_ops; in marvel_agp_info()
1076 agp->aperture.bus_base = 0; in marvel_agp_info()
1077 agp->aperture.size = 0; in marvel_agp_info()
1078 agp->aperture.sysdata = NULL; in marvel_agp_info()
1087 agp->capability.lw = csrs->AGP_STAT.csr; in marvel_agp_info()
1088 agp->capability.bits.rq = 0xf; in marvel_agp_info()
1093 agp->mode.lw = csrs->AGP_CMD.csr; in marvel_agp_info()
1095 return agp; in marvel_agp_info()