Lines Matching refs:params

550 				   struct put_image_params *params)
557 int uv_hscale = uv_hsubsampling(params->format);
558 int uv_vscale = uv_vsubsampling(params->format);
560 if (params->dst_w > 1)
561 xscale = ((params->src_scan_w - 1) << FP_SHIFT)
562 /(params->dst_w);
566 if (params->dst_h > 1)
567 yscale = ((params->src_scan_h - 1) << FP_SHIFT)
568 /(params->dst_h);
572 /*if (params->format & I915_OVERLAY_YUV_PLANAR) {*/
634 static u32 overlay_cmd_reg(struct put_image_params *params)
638 if (params->format & I915_OVERLAY_YUV_PLANAR) {
639 switch (params->format & I915_OVERLAY_DEPTH_MASK) {
652 switch (params->format & I915_OVERLAY_DEPTH_MASK) {
661 switch (params->format & I915_OVERLAY_SWAP_MASK) {
681 struct put_image_params *params)
732 regs->DWINPOS = (params->dst_y << 16) | params->dst_x;
733 regs->DWINSZ = (params->dst_h << 16) | params->dst_w;
735 if (params->format & I915_OVERLAY_YUV_PACKED)
736 tmp_width = packed_width_bytes(params->format, params->src_w);
738 tmp_width = params->src_w;
740 swidth = params->src_w;
741 swidthsw = calc_swidthsw(overlay->dev, params->offset_Y, tmp_width);
742 sheight = params->src_h;
743 regs->OBUF_0Y = new_bo->gtt_offset + params-> offset_Y;
744 ostride = params->stride_Y;
746 if (params->format & I915_OVERLAY_YUV_PLANAR) {
747 int uv_hscale = uv_hsubsampling(params->format);
748 int uv_vscale = uv_vsubsampling(params->format);
750 swidth |= (params->src_w/uv_hscale) << 16;
751 tmp_U = calc_swidthsw(overlay->dev, params->offset_U,
752 params->src_w/uv_hscale);
753 tmp_V = calc_swidthsw(overlay->dev, params->offset_V,
754 params->src_w/uv_hscale);
756 sheight |= (params->src_h/uv_vscale) << 16;
757 regs->OBUF_0U = new_bo->gtt_offset + params->offset_U;
758 regs->OBUF_0V = new_bo->gtt_offset + params->offset_V;
759 ostride |= params->stride_UV << 16;
766 scale_changed = update_scaling_factors(overlay, regs, params);
770 regs->OCMD = overlay_cmd_reg(params);
1036 struct put_image_params *params;
1058 params = kmalloc(sizeof(struct put_image_params), GFP_KERNEL);
1059 if (!params)
1117 params->dst_y = ((((u32)put_image_rec->dst_y) << 12) /
1120 params->dst_h = ((((u32)put_image_rec->dst_height) << 12) /
1123 params->dst_y = put_image_rec->dst_y;
1124 params->dst_h = put_image_rec->dst_height;
1126 params->dst_x = put_image_rec->dst_x;
1127 params->dst_w = put_image_rec->dst_width;
1129 params->src_w = put_image_rec->src_width;
1130 params->src_h = put_image_rec->src_height;
1131 params->src_scan_w = put_image_rec->src_scan_width;
1132 params->src_scan_h = put_image_rec->src_scan_height;
1133 if (params->src_scan_h > params->src_h ||
1134 params->src_scan_w > params->src_w) {
1142 params->format = put_image_rec->flags & ~I915_OVERLAY_FLAGS_MASK;
1143 params->stride_Y = put_image_rec->stride_Y;
1144 params->stride_UV = put_image_rec->stride_UV;
1145 params->offset_Y = put_image_rec->offset_Y;
1146 params->offset_U = put_image_rec->offset_U;
1147 params->offset_V = put_image_rec->offset_V;
1150 ret = check_overlay_scaling(params);
1154 ret = intel_overlay_do_put_image(overlay, new_bo, params);
1161 kfree(params, sizeof(*params));
1170 kfree(params, sizeof(*params));