Home
last modified time | relevance | path

Searched refs:apsize (Results 1 – 6 of 6) sorted by relevance

/freebsd-12.1/sys/dev/agp/
H A Dagp_via.c245 u_int32_t apsize; in agp_via_get_aperture() local
248 apsize = pci_read_config(dev, sc->regs[REG_APSIZE], 1); in agp_via_get_aperture()
257 return (((apsize ^ 0xff) << 20) | ((1 << 20) - 1)) + 1; in agp_via_get_aperture()
259 apsize = pci_read_config(dev, sc->regs[REG_APSIZE], 2) & 0xfff; in agp_via_get_aperture()
260 switch (apsize) { in agp_via_get_aperture()
293 u_int32_t apsize, key, val; in agp_via_set_aperture() local
299 apsize = ((aperture - 1) >> 20) ^ 0xff; in agp_via_set_aperture()
304 if ((((apsize ^ 0xff) << 20) | ((1 << 20) - 1)) + 1 != aperture) in agp_via_set_aperture()
307 pci_write_config(dev, sc->regs[REG_APSIZE], apsize, 1); in agp_via_set_aperture()
H A Dagp_amd64.c435 uint32_t apsize; in agp_amd64_nvidia_set_aperture() local
438 case 0x02000000: apsize = 0x0f; break; /* 32 MB */ in agp_amd64_nvidia_set_aperture()
439 case 0x04000000: apsize = 0x0e; break; /* 64 MB */ in agp_amd64_nvidia_set_aperture()
440 case 0x08000000: apsize = 0x0c; break; /* 128 MB */ in agp_amd64_nvidia_set_aperture()
441 case 0x10000000: apsize = 0x08; break; /* 256 MB */ in agp_amd64_nvidia_set_aperture()
442 case 0x20000000: apsize = 0x00; break; /* 512 MB */ in agp_amd64_nvidia_set_aperture()
449 0xfffffff0) | apsize, 4); in agp_amd64_nvidia_set_aperture()
472 uint32_t apsize; in agp_amd64_via_set_aperture() local
474 apsize = ((aperture - 1) >> 20) ^ 0xff; in agp_amd64_via_set_aperture()
475 if ((((apsize ^ 0xff) << 20) | ((1 << 20) - 1)) + 1 != aperture) in agp_amd64_via_set_aperture()
[all …]
H A Dagp_intel.c325 u_int32_t apsize; in agp_intel_get_aperture() local
329 apsize = pci_read_config(dev, AGP_INTEL_APSIZE, 1) & sc->aperture_mask; in agp_intel_get_aperture()
338 return ((((apsize ^ sc->aperture_mask) << 22) | ((1 << 22) - 1)) + 1); in agp_intel_get_aperture()
345 u_int32_t apsize; in agp_intel_set_aperture() local
352 apsize = ((aperture - 1) >> 22) ^ sc->aperture_mask; in agp_intel_set_aperture()
357 if ((((apsize ^ sc->aperture_mask) << 22) | ((1 << 22) - 1)) + 1 != aperture) in agp_intel_set_aperture()
360 sc->current_aperture = apsize; in agp_intel_set_aperture()
362 pci_write_config(dev, AGP_INTEL_APSIZE, apsize, 1); in agp_intel_set_aperture()
H A Dagp_amd.c83 u_int32_t apsize = AGP_GET_APERTURE(dev); in agp_amd_alloc_gatt() local
84 u_int32_t entries = apsize >> AGP_PAGE_SHIFT; in agp_amd_alloc_gatt()
91 apsize / (1024*1024)); in agp_amd_alloc_gatt()
H A Dagp_ati.c129 u_int32_t apsize = AGP_GET_APERTURE(dev); in agp_ati_alloc_gatt() local
130 u_int32_t entries = apsize >> AGP_PAGE_SHIFT; in agp_ati_alloc_gatt()
H A Dagp.c138 u_int32_t apsize = AGP_GET_APERTURE(dev); in agp_alloc_gatt() local
139 u_int32_t entries = apsize >> AGP_PAGE_SHIFT; in agp_alloc_gatt()
145 apsize / (1024*1024)); in agp_alloc_gatt()