Lines Matching refs:pI830
335 #define I830OVERLAYREG(pI830) ((I830OverlayRegPtr)\
336 ((pI830)->FbBase + \
337 (pI830)->overlay_regs->offset))
340 CompareOverlay(I830Ptr pI830, uint32_t * overlay, int size)
365 I830Ptr pI830 = I830PTR(pScrn);
371 if ((!IS_I965G(pI830) && (INREG(pipeconf_reg) & PIPEACONF_DOUBLE_WIDE))
423 I830Ptr pI830 = I830PTR(pScrn);
424 I830OverlayRegPtr overlay = I830OVERLAYREG(pI830);
425 I830PortPrivPtr pPriv = pI830->adaptor->pPortPrivates[0].ptr;
428 if (pI830->overlayOn)
444 if (OVERLAY_NOPHYSICAL(pI830))
445 OUT_BATCH(pI830->overlay_regs->offset | OFC_UPDATE);
447 OUT_BATCH(pI830->overlay_regs->bus_addr | OFC_UPDATE);
462 pI830->overlayOn = TRUE;
470 I830Ptr pI830 = I830PTR(pScrn);
472 I830OverlayRegPtr overlay = I830OVERLAYREG(pI830);
474 if (!pI830->overlayOn)
477 if (OVERLAY_NOPHYSICAL(pI830))
478 flip_addr = pI830->overlay_regs->offset;
480 flip_addr = pI830->overlay_regs->bus_addr;
497 I830Ptr pI830 = I830PTR(pScrn);
498 I830OverlayRegPtr overlay = I830OVERLAYREG(pI830);
500 if (!pI830->overlayOn)
529 if (OVERLAY_NOPHYSICAL(pI830))
530 OUT_BATCH(pI830->overlay_regs->offset);
532 OUT_BATCH(pI830->overlay_regs->bus_addr);
538 pI830->overlayOn = FALSE;
546 I830Ptr pI830 = I830PTR(pScrn);
588 if (pScrn->bitsPerPixel >= 16 && (IS_I9XX(pI830) || IS_I965G(pI830)) &&
589 !(!IS_I965G(pI830) && pScrn->displayWidth > 2048))
601 if (!OVERLAY_NOEXIST(pI830) && pScrn->bitsPerPixel != 8 &&
602 !pI830->use_drm_mode && pI830->overlay_regs != NULL)
614 if (overlayAdaptor && pI830->XvPreferOverlay)
620 if (overlayAdaptor && !pI830->XvPreferOverlay)
635 pI830->XvEnabled = FALSE;
648 I830Ptr pI830 = I830PTR(pScrn);
649 I830PortPrivPtr pPriv = pI830->adaptor->pPortPrivates[0].ptr;
650 I830OverlayRegPtr overlay = I830OVERLAYREG(pI830);
653 pI830->FbBase, pI830->overlay_regs->offset, overlay);
702 if (IS_I965GM(pI830))
737 I830Ptr pI830 = I830PTR(pScrn);
738 I830PortPrivPtr pPriv = pI830->adaptor->pPortPrivates[0].ptr;
799 I830Ptr pI830 = I830PTR(pScrn);
800 I830PortPrivPtr pPriv = pI830->adaptor->pPortPrivates[0].ptr;
835 I830Ptr pI830 = I830PTR(pScrn);
852 if (IS_845G(pI830) || IS_I830(pI830)) {
866 if (IS_I9XX(pI830))
875 if (IS_I9XX(pI830)) {
893 pPriv->colorKey = pI830->colorKey & ((1 << pScrn->depth) - 1);
915 pI830->adaptor = adapt;
939 if (IS_I9XX(pI830)) {
1095 I830Ptr pI830 = I830PTR(pScrn);
1098 overlay = I830OVERLAYREG(pI830);
1131 } else if (attribute == xvGamma0 && (IS_I9XX(pI830))) {
1133 } else if (attribute == xvGamma1 && (IS_I9XX(pI830))) {
1135 } else if (attribute == xvGamma2 && (IS_I9XX(pI830))) {
1137 } else if (attribute == xvGamma3 && (IS_I9XX(pI830))) {
1139 } else if (attribute == xvGamma4 && (IS_I9XX(pI830))) {
1141 } else if (attribute == xvGamma5 && (IS_I9XX(pI830))) {
1163 if(!pI830->overlayOn)
1174 attribute == xvGamma5) && (IS_I9XX(pI830))) {
1186 I830Ptr pI830 = I830PTR(pScrn);
1204 } else if (attribute == xvGamma0 && (IS_I9XX(pI830))) {
1206 } else if (attribute == xvGamma1 && (IS_I9XX(pI830))) {
1208 } else if (attribute == xvGamma2 && (IS_I9XX(pI830))) {
1210 } else if (attribute == xvGamma3 && (IS_I9XX(pI830))) {
1212 } else if (attribute == xvGamma4 && (IS_I9XX(pI830))) {
1214 } else if (attribute == xvGamma5 && (IS_I9XX(pI830))) {
1250 I830Ptr pI830 = I830PTR(pScrn);
1268 dst_base = pI830->FbBase;
1358 I830Ptr pI830 = I830PTR(pScrn);
1383 dst_base = pI830->FbBase;
1774 i830_swidth (I830Ptr pI830, unsigned int offset,
1778 if (IS_I9XX(pI830))
1981 I830Ptr pI830 = I830PTR(pScrn);
1982 I830PortPrivPtr pPriv = pI830->adaptor->pPortPrivates[0].ptr;
1983 I830OverlayRegPtr overlay = I830OVERLAYREG(pI830);
1994 CompareOverlay(pI830, (uint32_t *) overlay, 0x100);
2042 if (IS_I9XX(pI830)) {
2062 swidthy = i830_swidth (pI830, offsety, width, mask, shift);
2063 swidthuv = i830_swidth (pI830, offsetu, width/2, mask, shift);
2074 if (IS_I9XX(pI830))
2083 i830_swidth (pI830, offsety, width << 1,
2231 I830Ptr pI830 = I830PTR(pScrn);
2248 overlay = I830OVERLAYREG(pI830);
2323 if ((id == FOURCC_XVMC) && IS_I915(pI830))
2327 if (IS_I965G(pI830))
2397 pPriv->buf = drm_intel_bo_alloc(pI830->bufmgr,
2415 if (id == FOURCC_XVMC && IS_I915(pI830)) {
2449 if (!pPriv->textured && pI830->overlayOn && pPriv->doubleBuffer)
2539 if (IS_I965G(pI830)) {
2542 pPriv->YBuf0offset = buf - pI830->FbBase;
2571 I830Ptr pI830 = I830PTR(pScrn);
2578 if (IS_845G(pI830) || IS_I830(pI830)) {
2655 I830Ptr pI830 = I830PTR(pScrn);
2659 if (pI830->adaptor == NULL)
2708 I830Ptr pI830 = I830PTR(pScrn);
2712 if (IS_845G(pI830) || IS_I830(pI830)) {
2734 fbpitch = pI830->cpp * pScrn->displayWidth;
2801 I830Ptr pI830 = I830PTR(pScrn);
2829 if (!pI830Priv->textured && pI830->overlayOn && pI830Priv->doubleBuffer)
2855 I830Ptr pI830 = I830PTR(pScrn);
2861 pI830->offscreenImages = offscreenImages;
2871 if (IS_845G(pI830) || IS_I830(pI830)) {
2888 I830Ptr pI830 = I830PTR(pScrn);
2892 if (pI830->adaptor == NULL)