Lines Matching +full:0 +full:x01ffffff
71 * Note that this only works for the range [0, 180].
103 if (src_x != 0 || src_y != 0) { in verify_scaling()
109 return 0; in verify_scaling()
130 unsigned shift = drm->client.device.info.chipset >= 0x30 ? 1 : 3; in nv10_update_plane()
131 unsigned format = 0; in nv10_update_plane()
140 ret = verify_scaling(fb, shift, 0, 0, src_w, src_h, crtc_w, crtc_h); in nv10_update_plane()
144 nvbo = nouveau_gem_object(fb->obj[0]); in nv10_update_plane()
152 nvif_mask(dev, NV_PCRTC_ENGINE_CTRL + soff2, NV_CRTC_FSEL_OVERLAY, 0); in nv10_update_plane()
154 nvif_wr32(dev, NV_PVIDEO_BASE(flip), 0); in nv10_update_plane()
175 nvif_wr32(dev, NV_PVIDEO_UVPLANE_BASE(flip), 0); in nv10_update_plane()
179 nvif_wr32(dev, NV_PVIDEO_FORMAT(flip), format | fb->pitches[0]); in nv10_update_plane()
180 nvif_wr32(dev, NV_PVIDEO_STOP, 0); in nv10_update_plane()
182 nvif_wr32(dev, NV_PVIDEO_BUFFER, flip ? 0x10 : 0x1); in nv10_update_plane()
188 return 0; in nv10_update_plane()
205 return 0; in nv10_disable_plane()
221 u32 chroma = ((sin_mul(plane->hue, plane->saturation) & 0xffff) << 16) | in nv10_set_params()
222 (cos_mul(plane->hue, plane->saturation) & 0xffff); in nv10_set_params()
223 u32 format = 0; in nv10_set_params()
225 nvif_wr32(dev, NV_PVIDEO_LUMINANCE(0), luma); in nv10_set_params()
227 nvif_wr32(dev, NV_PVIDEO_CHROMINANCE(0), chroma); in nv10_set_params()
229 nvif_wr32(dev, NV_PVIDEO_COLOR_KEY, plane->colorkey & 0xffffff); in nv10_set_params()
268 return 0; in nv_set_property()
290 case 0x10: in nv10_overlay_init()
291 case 0x11: in nv10_overlay_init()
292 case 0x15: in nv10_overlay_init()
293 case 0x1a: in nv10_overlay_init()
294 case 0x20: in nv10_overlay_init()
308 device, 0, "colorkey", 0, 0x01ffffff); in nv10_overlay_init()
310 device, 0, "contrast", 0, 8192 - 1); in nv10_overlay_init()
312 device, 0, "brightness", 0, 1024); in nv10_overlay_init()
314 device, 0, "hue", 0, 359); in nv10_overlay_init()
316 device, 0, "saturation", 0, 8192 - 1); in nv10_overlay_init()
324 plane->colorkey = 0; in nv10_overlay_init()
328 plane->contrast = 0x1000; in nv10_overlay_init()
336 plane->hue = 0; in nv10_overlay_init()
340 plane->saturation = 0x1000; in nv10_overlay_init()
386 ret = verify_scaling(fb, 0, src_x, src_y, src_w, src_h, crtc_w, crtc_h); in nv04_update_plane()
390 nvbo = nouveau_gem_object(fb->obj[0]); in nv04_update_plane()
397 nvif_wr32(dev, NV_PVIDEO_OE_STATE, 0); in nv04_update_plane()
398 nvif_wr32(dev, NV_PVIDEO_SU_STATE, 0); in nv04_update_plane()
399 nvif_wr32(dev, NV_PVIDEO_RM_STATE, 0); in nv04_update_plane()
401 for (i = 0; i < 2; i++) { in nv04_update_plane()
405 fb->pitches[0]); in nv04_update_plane()
406 nvif_wr32(dev, NV_PVIDEO_BUFF0_OFFSET + 4 * i, 0); in nv04_update_plane()
414 nvif_wr32(dev, NV_PVIDEO_RED_CSC_OFFSET, 0x69 - brightness); in nv04_update_plane()
415 nvif_wr32(dev, NV_PVIDEO_GREEN_CSC_OFFSET, 0x3e + brightness); in nv04_update_plane()
416 nvif_wr32(dev, NV_PVIDEO_BLUE_CSC_OFFSET, 0x89 - brightness); in nv04_update_plane()
417 nvif_wr32(dev, NV_PVIDEO_CSC_ADJUST, 0); in nv04_update_plane()
419 nvif_wr32(dev, NV_PVIDEO_CONTROL_Y, 0x001); /* (BLUR_ON, LINE_HALF) */ in nv04_update_plane()
420 nvif_wr32(dev, NV_PVIDEO_CONTROL_X, 0x111); /* (WEIGHT_HEAVY, SHARPENING_ON, SMOOTHING_ON) */ in nv04_update_plane()
422 nvif_wr32(dev, NV_PVIDEO_FIFO_BURST_LENGTH, 0x03); in nv04_update_plane()
423 nvif_wr32(dev, NV_PVIDEO_FIFO_THRES_SIZE, 0x38); in nv04_update_plane()
428 overlay |= 0x10; in nv04_update_plane()
430 overlay |= 0x100; in nv04_update_plane()
439 return 0; in nv04_update_plane()
450 nvif_mask(dev, NV_PVIDEO_OVERLAY, 1, 0); in nv04_disable_plane()
451 nvif_wr32(dev, NV_PVIDEO_OE_STATE, 0); in nv04_disable_plane()
452 nvif_wr32(dev, NV_PVIDEO_SU_STATE, 0); in nv04_disable_plane()
453 nvif_wr32(dev, NV_PVIDEO_RM_STATE, 0); in nv04_disable_plane()
459 return 0; in nv04_disable_plane()
487 device, 0, "colorkey", 0, 0x01ffffff); in nv04_overlay_init()
489 device, 0, "brightness", 0, 1024); in nv04_overlay_init()
494 plane->colorkey = 0; in nv04_overlay_init()
515 if (dev->info.chipset < 0x10) in nouveau_overlay_init()
517 else if (dev->info.chipset <= 0x40) in nouveau_overlay_init()