Lines Matching defs:device
62 struct nvif_object *device = &nouveau_drm(dev)->client.device.object;
66 val = nvif_rd32(device, reg);
73 struct nvif_object *device = &nouveau_drm(dev)->client.device.object;
76 nvif_wr32(device, reg, val);
82 struct nvif_object *device = &nouveau_drm(dev)->client.device.object;
86 val = nvif_rd32(device, reg);
93 struct nvif_object *device = &nouveau_drm(dev)->client.device.object;
96 nvif_wr32(device, reg, val);
122 struct nvif_object *device = &nouveau_drm(dev)->client.device.object;
123 nvif_wr08(device, NV_PRMCIO_CRX__COLOR + head * NV_PRMCIO_SIZE, index);
124 nvif_wr08(device, NV_PRMCIO_CR__COLOR + head * NV_PRMCIO_SIZE, value);
130 struct nvif_object *device = &nouveau_drm(dev)->client.device.object;
132 nvif_wr08(device, NV_PRMCIO_CRX__COLOR + head * NV_PRMCIO_SIZE, index);
133 val = nvif_rd08(device, NV_PRMCIO_CR__COLOR + head * NV_PRMCIO_SIZE);
167 struct nvif_object *device = &nouveau_drm(dev)->client.device.object;
173 if (head && drm->client.device.info.family == NV_DEVICE_INFO_V0_CURIE)
176 val = nvif_rd08(device, reg);
183 struct nvif_object *device = &nouveau_drm(dev)->client.device.object;
188 if (head && drm->client.device.info.family == NV_DEVICE_INFO_V0_CURIE)
191 nvif_wr08(device, reg, value);
196 struct nvif_object *device = &nouveau_drm(dev)->client.device.object;
197 nvif_rd08(device, NV_PRMCIO_INP0__COLOR + head * NV_PRMCIO_SIZE);
198 nvif_wr08(device, NV_PRMCIO_ARX + head * NV_PRMCIO_SIZE, enable ? 0 : 0x20);
203 struct nvif_object *device = &nouveau_drm(dev)->client.device.object;
204 nvif_rd08(device, NV_PRMCIO_INP0__COLOR + head * NV_PRMCIO_SIZE);
205 return !(nvif_rd08(device, NV_PRMCIO_ARX + head * NV_PRMCIO_SIZE) & 0x20);
211 struct nvif_object *device = &nouveau_drm(dev)->client.device.object;
217 nvif_rd08(device, NV_PRMCIO_INP0__COLOR + head * NV_PRMCIO_SIZE);
218 nvif_wr08(device, NV_PRMCIO_ARX + head * NV_PRMCIO_SIZE, index);
219 nvif_wr08(device, NV_PRMCIO_AR__WRITE + head * NV_PRMCIO_SIZE, value);
225 struct nvif_object *device = &nouveau_drm(dev)->client.device.object;
232 nvif_rd08(device, NV_PRMCIO_INP0__COLOR + head * NV_PRMCIO_SIZE);
233 nvif_wr08(device, NV_PRMCIO_ARX + head * NV_PRMCIO_SIZE, index);
234 val = nvif_rd08(device, NV_PRMCIO_AR__READ + head * NV_PRMCIO_SIZE);
261 struct nvif_object *device = &nouveau_drm(dev)->client.device.object;
264 if (drm->client.device.info.chipset == 0x11)
265 return !!(nvif_rd32(device, NV_PBUS_DEBUG_1) & (1 << 28));
320 if (drm->client.device.info.chipset == 0x11 && !nv_heads_tied(dev))
337 return drm->client.device.info.family >= NV_DEVICE_INFO_V0_CELSIUS ? NV10_CURSOR_SIZE : NV04_CURSOR_SIZE;
359 if (drm->client.device.info.family == NV_DEVICE_INFO_V0_TNT) {
384 if (drm->client.device.info.family == NV_DEVICE_INFO_V0_CURIE)
400 if (drm->client.device.info.family == NV_DEVICE_INFO_V0_TNT)