/netbsd/sys/external/bsd/drm2/linux/ |
H A D | linux_writecomb.c | 81 struct mtrr *mtrr; in arch_phys_wc_add() local 86 mtrr = kmem_alloc(sizeof(*mtrr), KM_SLEEP); in arch_phys_wc_add() 87 mtrr->base = base; in arch_phys_wc_add() 88 mtrr->len = size; in arch_phys_wc_add() 111 mtrr->type = 0; in arch_phys_wc_add() 112 mtrr->flags = 0; in arch_phys_wc_add() 119 kmem_free(mtrr, sizeof(*mtrr)); in arch_phys_wc_add() 130 struct mtrr *mtrr; in arch_phys_wc_del() local 142 mtrr->type = 0; in arch_phys_wc_del() 143 mtrr->flags = 0; in arch_phys_wc_del() [all …]
|
/netbsd/sys/arch/i386/i386/ |
H A D | mtrr_k6.c | 72 static struct mtrr *mtrr_var; 151 mtrr_var = (struct mtrr *) in k6_mtrr_init_first() 161 struct mtrr *mtrrp; in k6_raw2soft() 189 struct mtrr *mtrrp; in k6_soft2raw() 261 struct mtrr *freep; in k6_mtrr_setone() 319 struct mtrr mtrr; in k6_mtrr_set() local 330 error = copyin(&mtrrp[i], &mtrr, sizeof(mtrr)); in k6_mtrr_set() 334 mtrr = mtrrp[i]; in k6_mtrr_set() 335 error = k6_mtrr_validate(&mtrr, p); in k6_mtrr_set() 338 error = k6_mtrr_setone(&mtrr, p); in k6_mtrr_set() [all …]
|
/netbsd/sys/arch/x86/x86/ |
H A D | mtrr_i686.c | 124 static struct mtrr *mtrr_fixed; 125 static struct mtrr *mtrr_var; 353 struct mtrr *mtrrp; in i686_raw2soft() 419 struct mtrr *mtrrp; in i686_soft2raw() 548 struct mtrr *lowp, *highp, *mp, *freep; in i686_mtrr_setone() 693 struct mtrr mtrr; in i686_mtrr_set() local 703 error = copyin(&mtrrp[i], &mtrr, sizeof mtrr); in i686_mtrr_set() 707 mtrr = mtrrp[i]; in i686_mtrr_set() 708 error = i686_mtrr_validate(&mtrr, p); in i686_mtrr_set() 711 error = i686_mtrr_setone(&mtrr, p); in i686_mtrr_set() [all …]
|
/netbsd/sys/external/bsd/drm/dist/shared-core/ |
H A D | savage_bci.c | 571 dev_priv->mtrr[0].handle = -1; in savage_driver_firstopen() 572 dev_priv->mtrr[1].handle = -1; in savage_driver_firstopen() 573 dev_priv->mtrr[2].handle = -1; in savage_driver_firstopen() 585 dev_priv->mtrr[0].base = fb_base; in savage_driver_firstopen() 587 dev_priv->mtrr[0].handle = in savage_driver_firstopen() 592 dev_priv->mtrr[1].handle = in savage_driver_firstopen() 597 dev_priv->mtrr[2].handle = in savage_driver_firstopen() 616 dev_priv->mtrr[0].base = fb_base; in savage_driver_firstopen() 618 dev_priv->mtrr[0].handle = in savage_driver_firstopen() 665 if (dev_priv->mtrr[i].handle >= 0) in savage_driver_lastclose() [all …]
|
H A D | i915_dma.c | 191 dev_priv->ring.map.mtrr = 0; in i915_initialize() 819 dev_priv->hws_map.mtrr = 0; in i915_set_status_page()
|
/netbsd/sys/arch/x86/include/ |
H A D | sysarch.h | 103 struct mtrr *mtrrp; in _X86_SYSARCH_L() 108 struct mtrr *mtrrp; in _X86_SYSARCH_L() 124 struct mtrr; 138 int _X86_SYSARCH_L(set_mtrr)(struct mtrr *, int *); 139 int _X86_SYSARCH_L(get_mtrr)(struct mtrr *, int *);
|
H A D | mtrr.h | 112 struct mtrr; 121 int (*set)(struct mtrr *, int *n, struct proc *p, int flags); 122 int (*get)(struct mtrr *, int *n, struct proc *p, int flags); 144 struct mtrr { struct
|
H A D | Makefile | 20 math.h mutex.h mtrr.h \
|
/netbsd/lib/libarch/i386/ |
H A D | i386_mtrr.c | 9 i386_get_mtrr(struct mtrr *mtrrp, int *n) in i386_get_mtrr() 19 i386_set_mtrr(struct mtrr *mtrrp, int *n) in i386_set_mtrr()
|
/netbsd/lib/libarch/x86_64/ |
H A D | x86_64_mtrr.c | 9 x86_64_get_mtrr(struct mtrr *mtrrp, int *n) in x86_64_get_mtrr() 19 x86_64_set_mtrr(struct mtrr *mtrrp, int *n) in x86_64_set_mtrr()
|
/netbsd/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/pci/ |
H A D | nouveau_nvkm_subdev_pci_agp.c | 105 arch_phys_wc_del(pci->agp.mtrr); in nvkm_agp_dtor() 151 pci->agp.mtrr = -1; in nvkm_agp_ctor() 198 pci->agp.mtrr = arch_phys_wc_add(pci->agp.base, pci->agp.size); in nvkm_agp_ctor()
|
/netbsd/sys/external/bsd/drm2/dist/drm/nouveau/ |
H A D | nouveau_ttm.c | 287 drm->ttm.mtrr = arch_phys_wc_add(device->func->resource_addr(device, 1), in nouveau_ttm_init() 324 arch_phys_wc_del(drm->ttm.mtrr); in nouveau_ttm_fini() 325 drm->ttm.mtrr = 0; in nouveau_ttm_fini()
|
H A D | nouveau_drv.h | 161 int mtrr; member
|
/netbsd/sys/external/bsd/drm/dist/bsd-core/ |
H A D | drm_ioctl.c | 168 map->mtrr = mapinlist->mtrr; in drm_getmap()
|
H A D | drm_bufs.c | 184 map->mtrr = 1; in drm_addmap() 222 map->mtrr = dev->agp->mtrr; /* for getmap */ in drm_addmap() 309 request->mtrr = map->mtrr; in drm_addmap_ioctl() 349 if (map->mtrr) { in drm_rmmap()
|
H A D | drm_memory.c | 308 struct mtrr mtrrmap; in drm_mtrr_add() 325 struct mtrr mtrrmap; in drm_mtrr_del()
|
H A D | drm_sysctl.c | 310 if (!map->mtrr)
|
/netbsd/sys/compat/netbsd32/ |
H A D | netbsd32_drm.c | 185 int mtrr; /**< MTRR slot used */ member 196 m64->mtrr = m32->mtrr; in map32to64() 207 m32->mtrr = m64->mtrr; in map64to32()
|
/netbsd/sys/external/bsd/drm2/dist/drm/ |
H A D | drm_ioc32.c | 174 int mtrr; /* MTRR slot used */ member 198 m32.mtrr = map.mtrr; in compat_drm_getmap() 227 m32.mtrr = map.mtrr; in compat_drm_addmap()
|
H A D | drm_bufs.c | 185 map->mtrr = -1; in drm_addmap_core() 221 map->mtrr = in drm_addmap_core() 306 map->mtrr = dev->agp->agp_mtrr; /* for getmap */ in drm_addmap_core() 469 map->mtrr = -1; in drm_legacy_addmap_ioctl() 523 map->mtrr = arch_phys_wc_index(r_list->map->mtrr); in drm_legacy_getmap_ioctl() 574 arch_phys_wc_del(map->mtrr); in drm_legacy_rmmap_locked()
|
/netbsd/sys/external/bsd/drm2/dist/drm/nouveau/include/nvkm/subdev/ |
H A D | pci.h | 30 int mtrr; member
|
/netbsd/sys/arch/i386/include/ |
H A D | Makefile | 18 math.h mcontext.h mutex.h mtrr.h multiboot.h multiboot2.h \
|
/netbsd/sys/arch/amd64/include/ |
H A D | Makefile | 18 math.h mcontext.h mutex.h mtrr.h \
|
/netbsd/sys/arch/amd64/amd64/ |
H A D | netbsd32_machdep.c | 675 struct mtrr *m64p, *mp; in x86_64_get_mtrr32() 704 size = n * sizeof(struct mtrr); in x86_64_get_mtrr32() 737 struct mtrr *m64p, *mp; in x86_64_set_mtrr32() 765 size = n * sizeof(struct mtrr); in x86_64_set_mtrr32()
|
/netbsd/sys/external/bsd/drm2/dist/include/drm/ |
H A D | drm_legacy.h | 174 int mtrr; /**< MTRR slot used */ member
|