Lines Matching refs:match

80 static void agp_i810_set_desc(device_t dev, const struct agp_i810_match *match);
163 const struct agp_i810_match *match; member
494 agp_i810_set_desc(device_t dev, const struct agp_i810_match *match) in agp_i810_set_desc() argument
497 device_set_desc(dev, match->name); in agp_i810_set_desc()
504 const struct agp_i810_match *match; in agp_i810_probe() local
509 match = agp_i810_match(dev); in agp_i810_probe()
510 if (match == NULL) in agp_i810_probe()
523 if (match->driver->check_active != NULL) { in agp_i810_probe()
524 err = match->driver->check_active(bdev); in agp_i810_probe()
532 match->driver->set_desc(dev, match); in agp_i810_probe()
575 switch (sc->match->driver->chiptype) { in agp_i915_get_stolen_size()
650 stolen = sc->match->driver->gen > 2 ? 48 * 1024 : 0; in agp_i915_get_stolen_size()
653 stolen = sc->match->driver->gen > 2 ? 64 * 1024 : 0; in agp_i915_get_stolen_size()
656 stolen = sc->match->driver->gen > 2 ? 128 * 1024 : 0; in agp_i915_get_stolen_size()
659 stolen = sc->match->driver->gen > 2 ? 256 * 1024 : 0; in agp_i915_get_stolen_size()
662 if (sc->match->driver->chiptype == CHIP_I965 || in agp_i915_get_stolen_size()
663 sc->match->driver->chiptype == CHIP_G4X) in agp_i915_get_stolen_size()
669 if (sc->match->driver->chiptype == CHIP_I965 || in agp_i915_get_stolen_size()
670 sc->match->driver->chiptype == CHIP_G4X) in agp_i915_get_stolen_size()
676 if (sc->match->driver->chiptype == CHIP_I965 || in agp_i915_get_stolen_size()
677 sc->match->driver->chiptype == CHIP_G4X) in agp_i915_get_stolen_size()
683 if (sc->match->driver->chiptype == CHIP_I965 || in agp_i915_get_stolen_size()
684 sc->match->driver->chiptype == CHIP_G4X) in agp_i915_get_stolen_size()
842 sc->match = agp_i810_match(dev); in agp_i810_attach()
844 agp_set_aperture_resource(dev, sc->match->driver->gen <= 2 ? in agp_i810_attach()
851 (1ULL << sc->match->driver->busdma_addr_mask_sz) - 1) { in agp_i810_attach()
854 sc->match->driver->busdma_addr_mask_sz) - 1); in agp_i810_attach()
858 if (bus_alloc_resources(dev, sc->match->driver->res_spec, sc->sc_res)) { in agp_i810_attach()
867 if ((error = sc->match->driver->get_stolen_size(dev)) != 0 || in agp_i810_attach()
868 (error = sc->match->driver->install_gatt(dev)) != 0 || in agp_i810_attach()
869 (error = sc->match->driver->get_gtt_mappable_entries(dev)) != 0 || in agp_i810_attach()
870 (error = sc->match->driver->get_gtt_total_entries(dev)) != 0 || in agp_i810_attach()
871 (error = sc->match->driver->chipset_flush_setup(dev)) != 0) { in agp_i810_attach()
872 bus_release_resources(dev, sc->match->driver->res_spec, in agp_i810_attach()
887 sc->match->driver->dump_regs(dev); in agp_i810_attach()
917 sc->match->driver->deinstall_gatt(dev); in agp_i810_detach()
919 sc->match->driver->chipset_flush_teardown(dev); in agp_i810_detach()
925 bus_release_resources(dev, sc->match->driver->res_spec, sc->sc_res); in agp_i810_detach()
969 return (sc->match->driver->set_aperture(dev, aperture)); in agp_i810_method_set_aperture()
1069 sc->match->driver->install_gtt_pte(dev, index, physical, 0); in agp_i810_bind_page()
1087 sc->match->driver->install_gtt_pte(dev, index, 0, 0); in agp_i810_unbind_page()
1150 if (sc->match->driver->chiptype != CHIP_I810) in agp_i810_alloc_memory()
1275 sc->match->driver->install_gtt_pte(dev, (offset + i) >> in agp_i810_bind_memory()
1291 if (sc->match->driver->chiptype != CHIP_I810) in agp_i810_bind_memory()
1316 sc->match->driver->install_gtt_pte(dev, in agp_i810_unbind_memory()
1328 if (sc->match->driver->chiptype != CHIP_I810) in agp_i810_unbind_memory()
1331 sc->match->driver->install_gtt_pte(dev, i >> AGP_PAGE_SHIFT, in agp_i810_unbind_memory()
1384 sc->match->driver->install_gtt_pte(dev, first_entry + i, in agp_intel_gtt_clear_range()
1386 sc->match->driver->sync_gtt_pte(dev, first_entry + num_entries - 1); in agp_intel_gtt_clear_range()
1400 sc->match->driver->install_gtt_pte(dev, first_entry + i, in agp_intel_gtt_insert_pages()
1403 sc->match->driver->sync_gtt_pte(dev, first_entry + num_entries - 1); in agp_intel_gtt_insert_pages()
1411 sc->match->driver->install_gtt_pte(intel_agp, addr, pg, flags); in intel_gtt_insert_page()
1429 sc->match->driver->install_gtt_pte(intel_agp, in intel_gtt_insert_sg_entries()
1434 sc->match->driver->sync_gtt_pte(intel_agp, pg_start + i - 1); in intel_gtt_insert_sg_entries()
1623 sc->match->driver->chipset_flush(dev); in agp_intel_gtt_chipset_flush()
1666 sc->match->driver->sync_gtt_pte(intel_agp, entry); in intel_gtt_sync_pte()
1678 sc->match->driver->write_gtt(intel_agp, entry, val); in intel_gtt_write()