Lines Matching refs:mode
31 int mode; member
59 u32 mode = nvkm_pci_rd32(pci, 0x004c); in nvkm_agp_preinit() local
66 if ((mode | pci->agp.mode) & PCI_AGP_COMMAND_FW) { in nvkm_agp_preinit()
67 mode = pci->agp.mode & ~PCI_AGP_COMMAND_FW; in nvkm_agp_preinit()
68 agp_enable(pci->agp.bridge, mode); in nvkm_agp_preinit()
92 agp_enable(pci->agp.bridge, pci->agp.mode); in nvkm_agp_init()
110 int mode = -1; in nvkm_agp_ctor() local
120 mode = 0; in nvkm_agp_ctor()
122 mode = nvkm_longopt(device->cfgopt, "NvAGP", mode); in nvkm_agp_ctor()
132 pci->agp.mode = info.mode; in nvkm_agp_ctor()
148 quirk->mode); in nvkm_agp_ctor()
149 mode = quirk->mode; in nvkm_agp_ctor()
156 if (mode >= 1) { in nvkm_agp_ctor()
157 if (pci->agp.mode & 0x00000008) in nvkm_agp_ctor()
158 mode /= 4; /* AGPv3 */ in nvkm_agp_ctor()
159 pci->agp.mode &= ~0x00000007; in nvkm_agp_ctor()
160 pci->agp.mode |= (mode & 0x7); in nvkm_agp_ctor()
162 if (mode == 0) { in nvkm_agp_ctor()
171 pci->agp.mode &= ~PCI_AGP_COMMAND_FW; in nvkm_agp_ctor()