Lines Matching defs:index
37 void NVWriteVgaSeq(struct drm_device *, int head, uint8_t index, uint8_t value);
38 uint8_t NVReadVgaSeq(struct drm_device *, int head, uint8_t index);
39 void NVWriteVgaGr(struct drm_device *, int head, uint8_t index, uint8_t value);
40 uint8_t NVReadVgaGr(struct drm_device *, int head, uint8_t index);
120 int head, uint8_t index, uint8_t value)
123 nvif_wr08(device, NV_PRMCIO_CRX__COLOR + head * NV_PRMCIO_SIZE, index);
128 int head, uint8_t index)
132 nvif_wr08(device, NV_PRMCIO_CRX__COLOR + head * NV_PRMCIO_SIZE, index);
137 /* CR57 and CR58 are a fun pair of regs. CR57 provides an index (0-0xf) for CR58
143 * 0x00 index to the appropriate dcb entry (or 7f for inactive)
152 NVWriteVgaCrtc5758(struct drm_device *dev, int head, uint8_t index, uint8_t value)
154 NVWriteVgaCrtc(dev, head, NV_CIO_CRE_57, index);
158 static inline uint8_t NVReadVgaCrtc5758(struct drm_device *dev, int head, uint8_t index)
160 NVWriteVgaCrtc(dev, head, NV_CIO_CRE_57, index);
209 int head, uint8_t index, uint8_t value)
213 index &= ~0x20;
215 index |= 0x20;
218 nvif_wr08(device, NV_PRMCIO_ARX + head * NV_PRMCIO_SIZE, index);
223 int head, uint8_t index)
228 index &= ~0x20;
230 index |= 0x20;
233 nvif_wr08(device, NV_PRMCIO_ARX + head * NV_PRMCIO_SIZE, index);