Lines Matching refs:agp
854 marvel_agp_setup(alpha_agp_info *agp) in marvel_agp_setup() argument
864 aper->arena = agp->hose->sg_pci; in marvel_agp_setup()
875 agp->aperture.bus_base = in marvel_agp_setup()
877 agp->aperture.size = aper->pg_count * PAGE_SIZE; in marvel_agp_setup()
878 agp->aperture.sysdata = aper; in marvel_agp_setup()
884 marvel_agp_cleanup(alpha_agp_info *agp) in marvel_agp_cleanup() argument
886 struct marvel_agp_aperture *aper = agp->aperture.sysdata; in marvel_agp_cleanup()
901 kfree(agp); in marvel_agp_cleanup()
905 marvel_agp_configure(alpha_agp_info *agp) in marvel_agp_configure() argument
907 io7_ioport_csrs *csrs = ((struct io7_port *)agp->hose->sysdata)->csrs; in marvel_agp_configure()
908 struct io7 *io7 = ((struct io7_port *)agp->hose->sysdata)->io7; in marvel_agp_configure()
924 if (agp->mode.bits.rate != 2) in marvel_agp_configure()
933 if (agp->mode.bits.rate == 2) in marvel_agp_configure()
953 agp->mode.bits.rate, in marvel_agp_configure()
956 agp->mode.bits.rate = new_rate; in marvel_agp_configure()
960 agp->hose->index, agp->mode.bits.rate, in marvel_agp_configure()
961 agp->mode.bits.sba ? " - SBA" : "", agp->mode.bits.rq); in marvel_agp_configure()
963 csrs->AGP_CMD.csr = agp->mode.lw; in marvel_agp_configure()
969 marvel_agp_bind_memory(alpha_agp_info *agp, off_t pg_start, struct agp_memory *mem) in marvel_agp_bind_memory() argument
971 struct marvel_agp_aperture *aper = agp->aperture.sysdata; in marvel_agp_bind_memory()
977 marvel_agp_unbind_memory(alpha_agp_info *agp, off_t pg_start, struct agp_memory *mem) in marvel_agp_unbind_memory() argument
979 struct marvel_agp_aperture *aper = agp->aperture.sysdata; in marvel_agp_unbind_memory()
985 marvel_agp_translate(alpha_agp_info *agp, dma_addr_t addr) in marvel_agp_translate() argument
987 struct marvel_agp_aperture *aper = agp->aperture.sysdata; in marvel_agp_translate()
991 if (addr < agp->aperture.bus_base || in marvel_agp_translate()
992 addr >= agp->aperture.bus_base + agp->aperture.size) { in marvel_agp_translate()
1020 alpha_agp_info *agp; in marvel_agp_info() local
1059 agp = kmalloc(sizeof(*agp), GFP_KERNEL); in marvel_agp_info()
1060 if (!agp) in marvel_agp_info()
1066 agp->hose = hose; in marvel_agp_info()
1067 agp->private = NULL; in marvel_agp_info()
1068 agp->ops = &marvel_agp_ops; in marvel_agp_info()
1073 agp->aperture.bus_base = 0; in marvel_agp_info()
1074 agp->aperture.size = 0; in marvel_agp_info()
1075 agp->aperture.sysdata = NULL; in marvel_agp_info()
1084 agp->capability.lw = csrs->AGP_STAT.csr; in marvel_agp_info()
1085 agp->capability.bits.rq = 0xf; in marvel_agp_info()
1090 agp->mode.lw = csrs->AGP_CMD.csr; in marvel_agp_info()
1092 return agp; in marvel_agp_info()