Home
last modified time | relevance | path

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

/freebsd/sys/dev/agp/
H A Dagp_via.c242 u_int32_t apsize; in agp_via_get_aperture() local
245 apsize = pci_read_config(dev, sc->regs[REG_APSIZE], 1); in agp_via_get_aperture()
254 return (((apsize ^ 0xff) << 20) | ((1 << 20) - 1)) + 1; in agp_via_get_aperture()
256 apsize = pci_read_config(dev, sc->regs[REG_APSIZE], 2) & 0xfff; in agp_via_get_aperture()
257 switch (apsize) { in agp_via_get_aperture()
290 u_int32_t apsize, key, val; in agp_via_set_aperture() local
296 apsize = ((aperture - 1) >> 20) ^ 0xff; in agp_via_set_aperture()
301 if ((((apsize ^ 0xff) << 20) | ((1 << 20) - 1)) + 1 != aperture) in agp_via_set_aperture()
304 pci_write_config(dev, sc->regs[REG_APSIZE], apsize, 1); in agp_via_set_aperture()
H A Dagp_amd64.c434 uint32_t apsize; in agp_amd64_nvidia_set_aperture() local
437 case 0x02000000: apsize = 0x0f; break; /* 32 MB */ in agp_amd64_nvidia_set_aperture()
438 case 0x04000000: apsize = 0x0e; break; /* 64 MB */ in agp_amd64_nvidia_set_aperture()
439 case 0x08000000: apsize = 0x0c; break; /* 128 MB */ in agp_amd64_nvidia_set_aperture()
440 case 0x10000000: apsize = 0x08; break; /* 256 MB */ in agp_amd64_nvidia_set_aperture()
441 case 0x20000000: apsize = 0x00; break; /* 512 MB */ in agp_amd64_nvidia_set_aperture()
448 0xfffffff0) | apsize, 4); in agp_amd64_nvidia_set_aperture()
471 uint32_t apsize; in agp_amd64_via_set_aperture() local
473 apsize = ((aperture - 1) >> 20) ^ 0xff; in agp_amd64_via_set_aperture()
474 if ((((apsize ^ 0xff) << 20) | ((1 << 20) - 1)) + 1 != aperture) in agp_amd64_via_set_aperture()
[all …]
H A Dagp_intel.c322 u_int32_t apsize; in agp_intel_get_aperture() local
326 apsize = pci_read_config(dev, AGP_INTEL_APSIZE, 1) & sc->aperture_mask; in agp_intel_get_aperture()
335 return ((((apsize ^ sc->aperture_mask) << 22) | ((1 << 22) - 1)) + 1); in agp_intel_get_aperture()
342 u_int32_t apsize; in agp_intel_set_aperture() local
349 apsize = ((aperture - 1) >> 22) ^ sc->aperture_mask; in agp_intel_set_aperture()
354 if ((((apsize ^ sc->aperture_mask) << 22) | ((1 << 22) - 1)) + 1 != aperture) in agp_intel_set_aperture()
357 sc->current_aperture = apsize; in agp_intel_set_aperture()
359 pci_write_config(dev, AGP_INTEL_APSIZE, apsize, 1); in agp_intel_set_aperture()
H A Dagp_amd.c80 u_int32_t apsize = AGP_GET_APERTURE(dev); in agp_amd_alloc_gatt() local
81 u_int32_t entries = apsize >> AGP_PAGE_SHIFT; in agp_amd_alloc_gatt()
88 apsize / (1024*1024)); in agp_amd_alloc_gatt()
H A Dagp_ati.c125 u_int32_t apsize = AGP_GET_APERTURE(dev); in agp_ati_alloc_gatt() local
126 u_int32_t entries = apsize >> AGP_PAGE_SHIFT; in agp_ati_alloc_gatt()
H A Dagp.c135 u_int32_t apsize = AGP_GET_APERTURE(dev); in agp_alloc_gatt() local
136 u_int32_t entries = apsize >> AGP_PAGE_SHIFT; in agp_alloc_gatt()
142 apsize / (1024*1024)); in agp_alloc_gatt()