Lines Matching full:flip

57 	if (rotate == wpf->flip.rotate)  in vsp1_wpf_set_rotation()
85 wpf->flip.rotate = rotate; in vsp1_wpf_set_rotation()
99 u32 flip = 0; in vsp1_wpf_s_ctrl() local
103 rotation = wpf->flip.ctrls.rotate ? wpf->flip.ctrls.rotate->val : 0; in vsp1_wpf_s_ctrl()
109 * Compute the flip value resulting from all three controls, with in vsp1_wpf_s_ctrl()
111 * result in the pending flip field for the next frame that will be in vsp1_wpf_s_ctrl()
114 if (wpf->flip.ctrls.vflip->val) in vsp1_wpf_s_ctrl()
115 flip |= BIT(WPF_CTRL_VFLIP); in vsp1_wpf_s_ctrl()
117 if (wpf->flip.ctrls.hflip && wpf->flip.ctrls.hflip->val) in vsp1_wpf_s_ctrl()
118 flip |= BIT(WPF_CTRL_HFLIP); in vsp1_wpf_s_ctrl()
121 flip ^= BIT(WPF_CTRL_VFLIP) | BIT(WPF_CTRL_HFLIP); in vsp1_wpf_s_ctrl()
123 spin_lock_irq(&wpf->flip.lock); in vsp1_wpf_s_ctrl()
124 wpf->flip.pending = flip; in vsp1_wpf_s_ctrl()
125 spin_unlock_irq(&wpf->flip.lock); in vsp1_wpf_s_ctrl()
139 spin_lock_init(&wpf->flip.lock); in wpf_init_controls()
146 * When horizontal flip is supported the WPF implements three in wpf_init_controls()
147 * controls (horizontal flip, vertical flip and rotation). in wpf_init_controls()
152 * When only vertical flip is supported the WPF implements a in wpf_init_controls()
153 * single control (vertical flip). in wpf_init_controls()
164 wpf->flip.ctrls.vflip = in wpf_init_controls()
170 wpf->flip.ctrls.hflip = in wpf_init_controls()
173 wpf->flip.ctrls.rotate = in wpf_init_controls()
176 v4l2_ctrl_cluster(3, &wpf->flip.ctrls.vflip); in wpf_init_controls()
285 if (wpf->flip.rotate) in wpf_configure_stream()
376 spin_lock_irqsave(&wpf->flip.lock, flags); in wpf_configure_frame()
377 wpf->flip.active = (wpf->flip.active & ~mask) in wpf_configure_frame()
378 | (wpf->flip.pending & mask); in wpf_configure_frame()
379 spin_unlock_irqrestore(&wpf->flip.lock, flags); in wpf_configure_frame()
383 if (wpf->flip.active & BIT(WPF_CTRL_VFLIP)) in wpf_configure_frame()
385 if (wpf->flip.active & BIT(WPF_CTRL_HFLIP)) in wpf_configure_frame()
406 unsigned int flip; in wpf_configure_partition() local
455 flip = wpf->flip.active; in wpf_configure_partition()
457 if (flip & BIT(WPF_CTRL_HFLIP) && !wpf->flip.rotate) in wpf_configure_partition()
459 else if (flip & BIT(WPF_CTRL_VFLIP) && wpf->flip.rotate) in wpf_configure_partition()
468 if (wpf->flip.rotate) in wpf_configure_partition()
476 if (flip & BIT(WPF_CTRL_VFLIP)) { in wpf_configure_partition()
483 if (wpf->flip.rotate) in wpf_configure_partition()
499 if (wpf->flip.rotate && !(flip & BIT(WPF_CTRL_HFLIP))) { in wpf_configure_partition()
538 return wpf->flip.rotate ? 256 : wpf->max_width; in wpf_max_width()