Lines Matching refs:regs
200 struct overlay_registers *regs;
203 regs = (struct overlay_registers *)overlay->reg_bo->phys_obj->handle->vaddr;
205 regs = (struct overlay_registers *)(uintptr_t)overlay->reg_bo->page_list[0];
207 return regs;
211 struct overlay_registers *regs)
542 static void update_polyphase_filter(struct overlay_registers *regs)
544 memcpy(regs->Y_HCOEFS, y_static_hcoeffs, sizeof(y_static_hcoeffs));
545 memcpy(regs->UV_HCOEFS, uv_static_hcoeffs, sizeof(uv_static_hcoeffs));
549 struct overlay_registers *regs,
588 regs->YRGBSCALE = (((yscale & FRACT_MASK) << 20) |
592 regs->UVSCALE = (((yscale_UV & FRACT_MASK) << 20) |
596 regs->UVSCALEV = ((((yscale >> FP_SHIFT) << 16) |
600 update_polyphase_filter(regs);
606 struct overlay_registers *regs)
612 regs->DCLRKV = 0;
613 regs->DCLRKM = CLK_RGB8I_MASK | DST_KEY_ENABLE;
618 regs->DCLRKV = RGB15_TO_COLORKEY(key);
619 regs->DCLRKM = CLK_RGB15_MASK | DST_KEY_ENABLE;
621 regs->DCLRKV = RGB16_TO_COLORKEY(key);
622 regs->DCLRKM = CLK_RGB16_MASK | DST_KEY_ENABLE;
628 regs->DCLRKV = key;
629 regs->DCLRKM = CLK_RGB24_MASK | DST_KEY_ENABLE;
684 struct overlay_registers *regs;
708 regs = intel_overlay_map_regs(overlay);
709 if (!regs) {
718 regs->OCONFIG = oconfig;
719 intel_overlay_unmap_regs(overlay, regs);
726 regs = intel_overlay_map_regs(overlay);
727 if (!regs) {
732 regs->DWINPOS = (params->dst_y << 16) | params->dst_x;
733 regs->DWINSZ = (params->dst_h << 16) | params->dst_w;
743 regs->OBUF_0Y = new_bo->gtt_offset + params-> offset_Y;
757 regs->OBUF_0U = new_bo->gtt_offset + params->offset_U;
758 regs->OBUF_0V = new_bo->gtt_offset + params->offset_V;
762 regs->SWIDTH = swidth;
763 regs->SWIDTHSW = swidthsw;
764 regs->SHEIGHT = sheight;
765 regs->OSTRIDE = ostride;
766 scale_changed = update_scaling_factors(overlay, regs, params);
768 update_colorkey(overlay, regs);
770 regs->OCMD = overlay_cmd_reg(params);
772 intel_overlay_unmap_regs(overlay, regs);
792 struct overlay_registers *regs;
809 regs = intel_overlay_map_regs(overlay);
810 regs->OCMD = 0;
811 intel_overlay_unmap_regs(overlay, regs);
1176 struct overlay_registers *regs)
1178 regs->OCLRC0 = (overlay->contrast << 18) | (overlay->brightness & 0xff);
1179 regs->OCLRC1 = overlay->saturation;
1231 struct overlay_registers *regs;
1272 regs = intel_overlay_map_regs(overlay);
1273 if (!regs) {
1278 update_reg_attrs(overlay, regs);
1280 intel_overlay_unmap_regs(overlay, regs);
1317 struct overlay_registers *regs;
1347 DRM_ERROR("failed to attach phys overlay regs\n");
1372 regs = intel_overlay_map_regs(overlay);
1373 if (!regs)
1376 (void) memset(regs, 0, sizeof(struct overlay_registers));
1377 update_polyphase_filter(regs);
1378 update_reg_attrs(overlay, regs);
1380 intel_overlay_unmap_regs(overlay, regs);
1416 struct overlay_registers regs;
1426 struct overlay_registers *regs;
1429 regs = overlay->reg_bo->phys_obj->handle->vaddr;
1431 regs = io_mapping_map_atomic_wc(dev_priv->gtt.mappable,
1434 return regs;
1438 struct overlay_registers *regs)
1441 io_mapping_unmap_atomic(regs);
1451 struct overlay_registers __iomem *regs;
1467 regs = intel_overlay_map_regs_atomic(overlay);
1468 if (!regs)
1471 memcpy(&error->regs, regs, sizeof(struct overlay_registers));
1472 intel_overlay_unmap_regs_atomic(overlay, regs);
1489 #define P(x) DRM_ERROR(" " #x ": 0x%08x\n", error->regs.x)