Home
last modified time | relevance | path

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

/freebsd-13-stable/sys/dev/agp/
HDagp_via.c243 u_int32_t apsize; in agp_via_get_aperture() local
246 apsize = pci_read_config(dev, sc->regs[REG_APSIZE], 1); in agp_via_get_aperture()
255 return (((apsize ^ 0xff) << 20) | ((1 << 20) - 1)) + 1; in agp_via_get_aperture()
257 apsize = pci_read_config(dev, sc->regs[REG_APSIZE], 2) & 0xfff; in agp_via_get_aperture()
258 switch (apsize) { in agp_via_get_aperture()
291 u_int32_t apsize, key, val; in agp_via_set_aperture() local
297 apsize = ((aperture - 1) >> 20) ^ 0xff; in agp_via_set_aperture()
302 if ((((apsize ^ 0xff) << 20) | ((1 << 20) - 1)) + 1 != aperture) in agp_via_set_aperture()
305 pci_write_config(dev, sc->regs[REG_APSIZE], apsize, 1); in agp_via_set_aperture()
HDagp_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 …]
HDagp_intel.c323 u_int32_t apsize; in agp_intel_get_aperture() local
327 apsize = pci_read_config(dev, AGP_INTEL_APSIZE, 1) & sc->aperture_mask; in agp_intel_get_aperture()
336 return ((((apsize ^ sc->aperture_mask) << 22) | ((1 << 22) - 1)) + 1); in agp_intel_get_aperture()
343 u_int32_t apsize; in agp_intel_set_aperture() local
350 apsize = ((aperture - 1) >> 22) ^ sc->aperture_mask; in agp_intel_set_aperture()
355 if ((((apsize ^ sc->aperture_mask) << 22) | ((1 << 22) - 1)) + 1 != aperture) in agp_intel_set_aperture()
358 sc->current_aperture = apsize; in agp_intel_set_aperture()
360 pci_write_config(dev, AGP_INTEL_APSIZE, apsize, 1); in agp_intel_set_aperture()
HDagp_amd.c81 u_int32_t apsize = AGP_GET_APERTURE(dev); in agp_amd_alloc_gatt() local
82 u_int32_t entries = apsize >> AGP_PAGE_SHIFT; in agp_amd_alloc_gatt()
89 apsize / (1024*1024)); in agp_amd_alloc_gatt()
HDagp_ati.c126 u_int32_t apsize = AGP_GET_APERTURE(dev); in agp_ati_alloc_gatt() local
127 u_int32_t entries = apsize >> AGP_PAGE_SHIFT; in agp_ati_alloc_gatt()
HDagp.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()