| /xsrc/external/mit/xf86-video-nouveau/dist/src/ |
| nouveau_copy.c | 31 NVPtr pNv = NVPTR(pScrn); 32 nouveau_object_del(&pNv->NvCopy); 33 nouveau_pushbuf_del(&pNv->ce_pushbuf); 34 nouveau_object_del(&pNv->ce_channel); 55 NVPtr pNv = NVPTR(pScrn); 58 if (pNv->AccelMethod == NONE) { 64 switch (pNv->Architecture) { 66 if (pNv->dev->chipset < 0xa3 || 67 pNv->dev->chipset == 0xaa || 68 pNv->dev->chipset == 0xac [all...] |
| nv04_xv_ovl.c | 47 NVPtr pNv = NVPTR(pScrn); 48 NVPortPrivPtr pPriv = GET_OVERLAY_PRIVATE(pNv); 71 nvWriteVIDEO(pNv, NV_PVIDEO_OE_STATE, 0); 72 nvWriteVIDEO(pNv, NV_PVIDEO_SU_STATE, 0); 73 nvWriteVIDEO(pNv, NV_PVIDEO_RM_STATE, 0); 75 nvWriteVIDEO(pNv, NV_PVIDEO_BUFF0_START_ADDRESS, 77 nvWriteVIDEO(pNv, NV_PVIDEO_BUFF0_START_ADDRESS + 4, 79 nvWriteVIDEO(pNv, NV_PVIDEO_BUFF0_PITCH_LENGTH, dstPitch); 80 nvWriteVIDEO(pNv, NV_PVIDEO_BUFF0_PITCH_LENGTH + 4, dstPitch); 81 nvWriteVIDEO(pNv, NV_PVIDEO_BUFF0_OFFSET, 0) [all...] |
| nouveau_sync.c | 42 NVPtr pNv = NVPTR(scrn); \ 43 pNv->sync; \ 51 NVPtr pNv = NVPTR(scrn); 54 if (pNv->Flush) 55 pNv->Flush(scrn); 83 NVPtr pNv = NVPTR(scrn); 87 pNv->sync = NULL; 95 NVPtr pNv = NVPTR(scrn); 99 priv = pNv->sync = calloc(1, sizeof(*priv));
|
| nv10_xv_ovl.c | 70 NVPtr pNv = NVPTR(pScrn); 71 NVPortPrivPtr pPriv = GET_OVERLAY_PRIVATE(pNv); 97 nvWriteVIDEO(pNv, NV_PVIDEO_BASE(buffer) , 0); 98 nvWriteVIDEO(pNv, NV_PVIDEO_OFFSET_BUFF(buffer), 100 nvWriteVIDEO(pNv, NV_PVIDEO_SIZE_IN(buffer) , (height << 16) | width); 101 nvWriteVIDEO(pNv, NV_PVIDEO_POINT_IN(buffer) , 103 nvWriteVIDEO(pNv, NV_PVIDEO_DS_DX(buffer) , (src_w << 20) / drw_w); 104 nvWriteVIDEO(pNv, NV_PVIDEO_DT_DY(buffer) , (src_h << 20) / drw_h); 105 nvWriteVIDEO(pNv, NV_PVIDEO_POINT_OUT(buffer), 107 nvWriteVIDEO(pNv, NV_PVIDEO_SIZE_OUT(buffer) [all...] |
| nv50_accel.c | 34 NVPtr pNv = NVPTR(pScrn); 35 struct nouveau_pushbuf *push = pNv->pushbuf; 54 PUSH_DATA (push, pNv->vblank_sem->handle); 68 NVPtr pNv = NVPTR(pScrn); 69 struct nouveau_pushbuf *push = pNv->pushbuf; 70 struct nv04_fifo *fifo = pNv->channel->data; 72 if (nouveau_object_new(pNv->channel, NvMemFormat, NV50_M2MF_CLASS, 73 NULL, 0, &pNv->NvMemFormat)) 80 PUSH_DATA (push, pNv->NvMemFormat->handle); 82 PUSH_DATA (push, pNv->notify0->handle) [all...] |
| nv_shadow.c | 34 NVPtr pNv = NVPTR(pScrn); 41 nouveau_bo_map(pNv->scanout, NOUVEAU_BO_WR, pNv->client); 51 src = pNv->ShadowPtr + (y1 * pNv->ShadowPitch) + (x1 * cpp); 52 dst = pNv->scanout->map + (y1 * FBPitch) + (x1 * cpp); 57 src += pNv->ShadowPitch;
|
| nvc0_accel.c | 66 #define NVC0PushProgram(pNv,addr,code) do { \ 68 PUSH_DATAu((pNv)->pushbuf, (pNv)->scratch, (addr), size); \ 69 PUSH_DATAp((pNv)->pushbuf, (code), size); \ 76 NVPtr pNv = NVPTR(pScrn); 77 struct nouveau_pushbuf *push = pNv->pushbuf; 81 if (!pNv->NvSW || !nouveau_exa_pixmap_is_onscreen(ppix)) 96 PUSH_DATA (push, pNv->NvSW->handle); 98 PUSH_DATA (push, (pNv->scratch->offset + SEMA_OFFSET) >> 32); 99 PUSH_DATA (push, (pNv->scratch->offset + SEMA_OFFSET)) [all...] |
| nv04_xv_blit.c | 44 #define VSYNC_POSSIBLE (pNv->dev->chipset >= 0x11) 57 NVPtr pNv = NVPTR(pScrn); 58 NVPortPrivPtr pPriv = GET_BLIT_PRIVATE(pNv); 64 struct nouveau_pushbuf *push = pNv->pushbuf; 66 struct nv04_fifo *fifo = pNv->channel->data; 110 PUSH_DATA (push, pNv->NvScaledImage->handle); 115 if (pNv->dev->chipset >= 0x05) { 124 nouveau_pushbuf_bufctx(push, pNv->bufctx); 167 pNv->VideoTimerCallback = NVVideoTimerCallback; 192 NVPtr pNv = NVPTR(pScrn) [all...] |
| nvc0_xv.c | 70 NVPtr pNv = NVPTR(pScrn); 73 { pNv->scratch, NOUVEAU_BO_VRAM | NOUVEAU_BO_RDWR }, 77 struct nouveau_pushbuf *push = pNv->pushbuf; 107 PUSH_DATAu(push, pNv->scratch, TIC_OFFSET, 16); 154 PUSH_DATAu(push, pNv->scratch, TSC_OFFSET, 16); 190 PUSH_DATAu(push, pNv->scratch, PVP_DATA, 11); 229 if (pNv->dev->chipset >= 0x110) { 232 PUSH_DATA (push, (pNv->scratch->offset + PVP_DATA) >> 32); 233 PUSH_DATA (push, (pNv->scratch->offset + PVP_DATA)); 271 if (pNv->dev->chipset < 0x110) [all...] |
| nouveau_exa.c | 46 NVAccelM2MF(NVPtr pNv, int w, int h, int cpp, uint32_t srcoff, uint32_t dstoff, 50 if (pNv->ce_rect && pNv->ce_enabled) 51 return pNv->ce_rect(pNv->ce_pushbuf, pNv->NvCopy, w, h, cpp, 55 if (pNv->Architecture >= NV_KEPLER) 56 return NVE0EXARectCopy(pNv, w, h, cpp, 60 if (pNv->Architecture >= NV_FERMI) 61 return NVC0EXARectM2MF(pNv, w, h, cpp [all...] |
| nouveau_present.c | 44 NVPtr pNv = NVPTR(crtc->scrn); 53 ret = drmWaitVBlank(pNv->dev->fd, &args); 85 NVPtr pNv = NVPTR(crtc->scrn); 103 while ((ret = drmWaitVBlank(pNv->dev->fd, &args)) != 0) { 133 NVPtr pNv = NVPTR(scrn); 134 if (pNv->Flush) 135 pNv->Flush(scrn); 149 NVPtr pNv = NVPTR(scrn); 161 pNv->exa_force_cp = TRUE; 163 pNv->exa_force_cp = FALSE [all...] |
| nv04_exa.c | 32 NV04EXASetPattern(NVPtr pNv, CARD32 clr0, CARD32 clr1, CARD32 pat0, CARD32 pat1) 34 struct nouveau_pushbuf *push = pNv->pushbuf; 37 PUSH_DATA (push, pNv->NvImagePattern->handle); 49 NVPtr pNv = NVPTR(pScrn); 50 struct nouveau_pushbuf *push = pNv->pushbuf; 58 NV04EXASetPattern(pNv, 0, planemask, ~0, ~0); 59 if (pNv->currentRop != (alu + 32)) { 61 PUSH_DATA (push, pNv->NvRop->handle); 64 pNv->currentRop = alu + 32; 67 if (pNv->currentRop != alu) [all...] |
| nv30_xv_tex.c | 62 NVPtr pNv = NVPTR(pScrn); 64 struct nouveau_pushbuf *push = pNv->pushbuf; 185 NVPtr pNv = NVPTR(pScrn); 186 struct nouveau_pushbuf *push = pNv->pushbuf; 223 if (pNv->dev->chipset == 0x30) { 243 if (!NV30VideoTexture(pScrn, pNv->scratch, XV_TABLE, XV_TABLE_SIZE, 265 PUSH_MTHD (push, NV30_3D(FP_ACTIVE_PROGRAM), pNv->scratch, 278 nouveau_pushbuf_bufctx(push, pNv->bufctx); 324 if (pNv->dev->chipset == 0x30) {
|
| nv40_xv_tex.c | 61 NVPtr pNv = NVPTR(pScrn); 63 struct nouveau_pushbuf *push = pNv->pushbuf; 185 NVPtr pNv = NVPTR(pScrn); 186 struct nouveau_pushbuf *push = pNv->pushbuf; 221 if (!NV40VideoTexture(pScrn, pNv->scratch, XV_TABLE, XV_TABLE_SIZE, 242 PUSH_MTHD (push, NV30_3D(FP_ACTIVE_PROGRAM), pNv->scratch, 280 nouveau_pushbuf_bufctx(push, pNv->bufctx);
|
| nv10_exa.c | 69 get_tex_format(NVPtr pNv, PicturePtr pict) 77 pNv->Architecture == NV_ARCH_20 ? nv20_tex_format_rect : 145 check_texture(NVPtr pNv, PicturePtr pict) 160 if (!get_tex_format(pNv, pict)) 341 NVPtr pNv = NVPTR(pScrn); 353 if (!check_texture(pNv, src)) { 359 if (!check_texture(pNv, mask)) { 378 setup_texture(NVPtr pNv, int unit, PicturePtr pict, PixmapPtr pixmap) 380 struct nouveau_pushbuf *push = pNv->pushbuf; 391 get_tex_format(pNv, pict) [all...] |
| nv40_exa.c | 138 NVPtr pNv = NVPTR(pScrn); 139 struct nouveau_pushbuf *push = pNv->pushbuf; 184 NV40EXAPictSolid(NVPtr pNv, PicturePtr pPict, int unit) 186 struct nouveau_pushbuf *push = pNv->pushbuf; 188 PUSH_DATAu(push, pNv->scratch, SOLID(unit), 2); 192 PUSH_MTHDl(push, NV30_3D(TEX_OFFSET(unit)), pNv->scratch, SOLID(unit), 234 NV40EXAPictGradient(NVPtr pNv, PicturePtr pPict, int unit) 240 NV40EXAPictTexture(NVPtr pNv, PixmapPtr pPix, PicturePtr pPict, int unit) 243 struct nouveau_pushbuf *push = pNv->pushbuf; 337 NV40EXAPicture(NVPtr pNv, PixmapPtr ppix, PicturePtr ppict, int unit [all...] |
| /xsrc/external/mit/xf86-video-nv/dist/src/ |
| g80_cursor.c | 36 #define CURSOR_PTR ((CARD32*)pNv->mem + pNv->videoRam * 256 - 0x1000) 40 G80Ptr pNv = G80PTR(crtc->scrn); 45 pNv->reg[(0x00647084 + headOff)/4] = y << 16 | x; 46 pNv->reg[(0x00647080 + headOff)/4] = 0; 51 G80Ptr pNv = G80PTR(crtc->scrn); 60 G80Ptr pNv = G80PTR(pScrn); 64 if(!pNv->HWCursor) return TRUE; 70 pNv->reg[(0x00610270+headOff)/4] = 0x2000; 71 while(pNv->reg[(0x00610270+headOff)/4] & 0x30000) [all...] |
| g80_dac.c | 46 G80Ptr pNv = G80PTR(output->scrn); 50 pNv->reg[(0x00614280+orOff)/4] = 0; 56 G80Ptr pNv = G80PTR(output->scrn); 67 while(pNv->reg[(0x0061A004+off)/4] & 0x80000000); 69 tmp = pNv->reg[(0x0061A004+off)/4]; 82 pNv->reg[(0x0061A004+off)/4] = tmp; 139 G80Ptr pNv = G80PTR(pScrn); 149 pNv->reg[(0x0061A010+dacOff)/4] = 0x00000001; 150 tmp = pNv->reg[(0x0061A004+dacOff)/4]; 151 pNv->reg[(0x0061A004+dacOff)/4] = 0x80150000 [all...] |
| g80_exa.c | 41 setSrc(G80Ptr pNv, PixmapPtr pSrc) 54 G80DmaStart(pNv, 0x230, 2); 55 G80DmaNext (pNv, depth); 56 G80DmaNext (pNv, 0x00000001); 57 G80DmaStart(pNv, 0x244, 5); 58 G80DmaNext (pNv, exaGetPixmapPitch(pSrc)); 59 G80DmaNext (pNv, pSrc->drawable.width); 60 G80DmaNext (pNv, pSrc->drawable.height); 61 G80DmaNext (pNv, 0x00000000); 62 G80DmaNext (pNv, exaGetPixmapOffset(pSrc)) [all...] |
| nv_dga.c | 61 NVPtr pNv = NVPTR(pScrn); 75 (size <= pNv->ScratchBufferStart)) { 92 if(!pNv->NoAccel) 112 mode->address = pNv->FbStart; 115 mode->imageHeight = pNv->ScratchBufferStart / 142 NVPtr pNv = NVPTR(pScrn); 170 pNv->numDGAModes = num; 171 pNv->DGAModes = modes; 197 NVPtr pNv = NVPTR(pScrn); 200 if(pNv->DGAactive [all...] |
| nv_shadow.c | 31 NVPtr pNv = NVPTR(pScrn); 41 src = pNv->ShadowPtr + (pbox->y1 * pNv->ShadowPitch) + 43 dst = pNv->FbStart + (pbox->y1 * FBPitch) + (pbox->x1 * Bpp); 48 src += pNv->ShadowPitch; 59 NVPtr pNv = NVPTR(pScrn); 62 if(pNv->Rotate == 1) { 70 (*pNv->PointerMoved)(arg, newX, newY); 76 NVPtr pNv = NVPTR(pScrn); 81 if(!pNv->Rotate) [all...] |
| g80_xaa.c | 37 G80Ptr pNv = G80PTR(pScrn); 38 volatile CARD16 *pSync = (volatile CARD16*)&pNv->reg[0x00711008/4] + 1; 40 G80DmaStart(pNv, 0x104, 1); 41 G80DmaNext (pNv, 0); 42 G80DmaStart(pNv, 0x100, 1); 43 G80DmaNext (pNv, 0); 46 G80DmaKickoff(pNv); 53 G80Ptr pNv = G80PTR(pScrn); 55 G80DmaKickoff(pNv); 56 pNv->DMAKickoffCallback = NULL [all...] |
| nv_cursor.c | 52 ConvertCursor1555(NVPtr pNv, CARD32 *src, CARD16 *dst) 63 *dst = ( b & 0x80000000) ? pNv->curFg : pNv->curBg; 70 *dst = ( b & 1) ? pNv->curFg : pNv->curBg; 83 ConvertCursor8888(NVPtr pNv, CARD32 *src, CARD32 *dst) 94 *dst = ( b & 0x80000000) ? pNv->curFg : pNv->curBg; 101 *dst = ( b & 1) ? pNv->curFg : pNv->curBg [all...] |
| nv_dac.c | 31 NVDACPanelTweaks(NVPtr pNv, NVRegPtr state) 35 if(pNv->usePanelTweak) { 36 tweak = pNv->PanelTweak; 44 if(((pNv->Chipset & 0xffff) == 0x0328) && (state->bpp == 32)) { 46 if (((pNv->PciInfo->subvendor_id & 0xffff) == 0x1179) && 47 ((pNv->PciInfo->subdevice_id & 0xffff) == 0x0020)) 49 if (((pNv->PciInfo->subsysVendor & 0xffff) == 0x1179) && 50 ((pNv->PciInfo->subsysCard & 0xffff) == 0x0020)) 62 if((pNv->Chipset & 0xfff0) == 0x0310) { 88 NVPtr pNv = NVPTR(pScrn) [all...] |
| nv_exa.c | 67 NVPtr pNv = NVPTR(pScrn); 73 planemask |= ~0 << pNv->CurrentLayout.depth; 82 NVDmaStart(pNv, SURFACE_FORMAT, 4); 83 NVDmaNext (pNv, pNv->surfaceFormat); 84 NVDmaNext (pNv, srcpitch | (dstpitch << 16)); 85 NVDmaNext (pNv, srcoff); 86 NVDmaNext (pNv, dstoff); 88 pNv->DMAKickoffCallback = NVDMAKickoffCallback; 107 NVPtr pNv = NVPTR(pScrn) [all...] |