Lines Matching refs:device

63 	struct nvif_device *device = &nouveau_drm(dev)->device;  in NVReadCRTC()  local
67 val = nvif_rd32(device, reg); in NVReadCRTC()
74 struct nvif_device *device = &nouveau_drm(dev)->device; in NVWriteCRTC() local
77 nvif_wr32(device, reg, val); in NVWriteCRTC()
83 struct nvif_device *device = &nouveau_drm(dev)->device; in NVReadRAMDAC() local
87 val = nvif_rd32(device, reg); in NVReadRAMDAC()
94 struct nvif_device *device = &nouveau_drm(dev)->device; in NVWriteRAMDAC() local
97 nvif_wr32(device, reg, val); in NVWriteRAMDAC()
123 struct nvif_device *device = &nouveau_drm(dev)->device; in NVWriteVgaCrtc() local
124 nvif_wr08(device, NV_PRMCIO_CRX__COLOR + head * NV_PRMCIO_SIZE, index); in NVWriteVgaCrtc()
125 nvif_wr08(device, NV_PRMCIO_CR__COLOR + head * NV_PRMCIO_SIZE, value); in NVWriteVgaCrtc()
131 struct nvif_device *device = &nouveau_drm(dev)->device; in NVReadVgaCrtc() local
133 nvif_wr08(device, NV_PRMCIO_CRX__COLOR + head * NV_PRMCIO_SIZE, index); in NVReadVgaCrtc()
134 val = nvif_rd08(device, NV_PRMCIO_CR__COLOR + head * NV_PRMCIO_SIZE); in NVReadVgaCrtc()
168 struct nvif_device *device = &nouveau_drm(dev)->device; in NVReadPRMVIO() local
174 if (head && drm->device.info.family == NV_DEVICE_INFO_V0_CURIE) in NVReadPRMVIO()
177 val = nvif_rd08(device, reg); in NVReadPRMVIO()
184 struct nvif_device *device = &nouveau_drm(dev)->device; in NVWritePRMVIO() local
189 if (head && drm->device.info.family == NV_DEVICE_INFO_V0_CURIE) in NVWritePRMVIO()
192 nvif_wr08(device, reg, value); in NVWritePRMVIO()
197 struct nvif_device *device = &nouveau_drm(dev)->device; in NVSetEnablePalette() local
198 nvif_rd08(device, NV_PRMCIO_INP0__COLOR + head * NV_PRMCIO_SIZE); in NVSetEnablePalette()
199 nvif_wr08(device, NV_PRMCIO_ARX + head * NV_PRMCIO_SIZE, enable ? 0 : 0x20); in NVSetEnablePalette()
204 struct nvif_device *device = &nouveau_drm(dev)->device; in NVGetEnablePalette() local
205 nvif_rd08(device, NV_PRMCIO_INP0__COLOR + head * NV_PRMCIO_SIZE); in NVGetEnablePalette()
206 return !(nvif_rd08(device, NV_PRMCIO_ARX + head * NV_PRMCIO_SIZE) & 0x20); in NVGetEnablePalette()
212 struct nvif_device *device = &nouveau_drm(dev)->device; in NVWriteVgaAttr() local
218 nvif_rd08(device, NV_PRMCIO_INP0__COLOR + head * NV_PRMCIO_SIZE); in NVWriteVgaAttr()
219 nvif_wr08(device, NV_PRMCIO_ARX + head * NV_PRMCIO_SIZE, index); in NVWriteVgaAttr()
220 nvif_wr08(device, NV_PRMCIO_AR__WRITE + head * NV_PRMCIO_SIZE, value); in NVWriteVgaAttr()
226 struct nvif_device *device = &nouveau_drm(dev)->device; in NVReadVgaAttr() local
233 nvif_rd08(device, NV_PRMCIO_INP0__COLOR + head * NV_PRMCIO_SIZE); in NVReadVgaAttr()
234 nvif_wr08(device, NV_PRMCIO_ARX + head * NV_PRMCIO_SIZE, index); in NVReadVgaAttr()
235 val = nvif_rd08(device, NV_PRMCIO_AR__READ + head * NV_PRMCIO_SIZE); in NVReadVgaAttr()
262 struct nvif_device *device = &nouveau_drm(dev)->device; in nv_heads_tied() local
265 if (drm->device.info.chipset == 0x11) in nv_heads_tied()
266 return !!(nvif_rd32(device, NV_PBUS_DEBUG_1) & (1 << 28)); in nv_heads_tied()
321 if (drm->device.info.chipset == 0x11 && !nv_heads_tied(dev)) in NVLockVgaCrtcs()
338 return drm->device.info.family >= NV_DEVICE_INFO_V0_CELSIUS ? NV10_CURSOR_SIZE : NV04_CURSOR_SIZE; in nv_cursor_width()
360 if (drm->device.info.family == NV_DEVICE_INFO_V0_TNT) { in nv_set_crtc_base()
385 if (drm->device.info.family == NV_DEVICE_INFO_V0_CURIE) in nv_show_cursor()
401 if (drm->device.info.family == NV_DEVICE_INFO_V0_TNT) in nv_pitch_align()