Lines Matching refs:bridge
429 static void check_via_agp3 (struct agp_bridge_data *bridge) in check_via_agp3() argument
433 pci_read_config_byte(bridge->dev, VIA_AGPSEL, ®); in check_via_agp3()
436 bridge->driver = &via_agp3_driver; in check_via_agp3()
443 struct agp_bridge_data *bridge; in agp_via_probe() local
454 bridge = agp_alloc_bridge(); in agp_via_probe()
455 if (!bridge) in agp_via_probe()
458 bridge->dev = pdev; in agp_via_probe()
459 bridge->capndx = cap_ptr; in agp_via_probe()
460 bridge->driver = &via_driver; in agp_via_probe()
469 check_via_agp3(bridge); in agp_via_probe()
474 get_agp_version(bridge); in agp_via_probe()
475 if (bridge->major_version >= 3) in agp_via_probe()
476 check_via_agp3(bridge); in agp_via_probe()
480 bridge->capndx+PCI_AGP_STATUS, &bridge->mode); in agp_via_probe()
482 pci_set_drvdata(pdev, bridge); in agp_via_probe()
483 return agp_add_bridge(bridge); in agp_via_probe()
488 struct agp_bridge_data *bridge = pci_get_drvdata(pdev); in agp_via_remove() local
490 agp_remove_bridge(bridge); in agp_via_remove()
491 agp_put_bridge(bridge); in agp_via_remove()
506 struct agp_bridge_data *bridge = pci_get_drvdata(pdev); in agp_via_resume() local
511 if (bridge->driver == &via_agp3_driver) in agp_via_resume()
513 else if (bridge->driver == &via_driver) in agp_via_resume()