Lines Matching +full:0 +full:x255
32 (0xffffffff >> (31 - ((1 ? field) - (0 ? field)))) << (0 ? field))
35 (((src) >> (srclowbit)) << (0 ? outfield)) & MASK(outfield))
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)
144 * 0x02 dcb entry's "or" value (or 00 for inactive)
145 * 0x03 bit0 set for dual link (LVDS, possibly elsewhere too)
146 * 0x08 or 0x09 pxclk in MHz
147 * 0x0f laptop panel info - low nibble for PEXTDEV_BOOT_0 strap
198 nvif_wr08(device, NV_PRMCIO_ARX + head * NV_PRMCIO_SIZE, enable ? 0 : 0x20); in NVSetEnablePalette()
205 return !(nvif_rd08(device, NV_PRMCIO_ARX + head * NV_PRMCIO_SIZE) & 0x20); in NVGetEnablePalette()
213 index &= ~0x20; in NVWriteVgaAttr()
215 index |= 0x20; in NVWriteVgaAttr()
228 index &= ~0x20; in NVReadVgaAttr()
230 index |= 0x20; in NVReadVgaAttr()
240 NVWriteVgaSeq(dev, head, NV_VIO_SR_RESET_INDEX, start ? 0x1 : 0x3); in NVVgaSeqReset()
249 NVWriteVgaSeq(dev, head, NV_VIO_SR_CLOCK_INDEX, seq1 | 0x20); in NVVgaProtect()
252 NVWriteVgaSeq(dev, head, NV_VIO_SR_CLOCK_INDEX, seq1 & ~0x20); /* reenable display */ in NVVgaProtect()
264 if (drm->client.device.info.chipset == 0x11) in nv_heads_tied()
267 return NVReadVgaCrtc(dev, 0, NV_CIO_CRE_44) & 0x4; in nv_heads_tied()
275 bool waslocked = cr11 & 0x80; in nv_lock_vga_crtc_base()
278 cr11 |= 0x80; in nv_lock_vga_crtc_base()
280 cr11 &= ~0x80; in nv_lock_vga_crtc_base()
289 /* shadow lock: connects 0x60?3d? regs to "real" 0x3d? regs in nv_lock_vga_crtc_shadow()
295 * bit2: same as bit 1 of 0x60?804 in nv_lock_vga_crtc_shadow()
296 * bit0: same as bit 0 of 0x60?804 in nv_lock_vga_crtc_shadow()
301 if (lock < 0) in nv_lock_vga_crtc_shadow()
302 /* 0xfa is generic "unlock all" mask */ in nv_lock_vga_crtc_shadow()
303 cr21 = NVReadVgaCrtc(dev, head, NV_CIO_CRE_21) | 0xfa; in nv_lock_vga_crtc_shadow()
315 bool waslocked = !NVReadVgaCrtc(dev, 0, NV_CIO_SR_LOCK_INDEX); in NVLockVgaCrtcs()
317 NVWriteVgaCrtc(dev, 0, NV_CIO_SR_LOCK_INDEX, in NVLockVgaCrtcs()
320 if (drm->client.device.info.chipset == 0x11 && !nv_heads_tied(dev)) in NVLockVgaCrtcs()
330 /* limit nv10 cursors to 64x64 (ARGB8) (we could go to 64x255) */
367 (cre_heb & ~0x40) | ((offset >> 18) & 0x40)); in nv_set_crtc_base()