Lines Matching refs:flip
57 if (rotate == wpf->flip.rotate) in vsp1_wpf_set_rotation()
83 wpf->flip.rotate = rotate; in vsp1_wpf_set_rotation()
97 u32 flip = 0; in vsp1_wpf_s_ctrl() local
101 rotation = wpf->flip.ctrls.rotate ? wpf->flip.ctrls.rotate->val : 0; in vsp1_wpf_s_ctrl()
112 if (wpf->flip.ctrls.vflip->val) in vsp1_wpf_s_ctrl()
113 flip |= BIT(WPF_CTRL_VFLIP); in vsp1_wpf_s_ctrl()
115 if (wpf->flip.ctrls.hflip && wpf->flip.ctrls.hflip->val) in vsp1_wpf_s_ctrl()
116 flip |= BIT(WPF_CTRL_HFLIP); in vsp1_wpf_s_ctrl()
119 flip ^= BIT(WPF_CTRL_VFLIP) | BIT(WPF_CTRL_HFLIP); in vsp1_wpf_s_ctrl()
121 spin_lock_irq(&wpf->flip.lock); in vsp1_wpf_s_ctrl()
122 wpf->flip.pending = flip; in vsp1_wpf_s_ctrl()
123 spin_unlock_irq(&wpf->flip.lock); in vsp1_wpf_s_ctrl()
137 spin_lock_init(&wpf->flip.lock); in wpf_init_controls()
162 wpf->flip.ctrls.vflip = in wpf_init_controls()
168 wpf->flip.ctrls.hflip = in wpf_init_controls()
171 wpf->flip.ctrls.rotate = in wpf_init_controls()
174 v4l2_ctrl_cluster(3, &wpf->flip.ctrls.vflip); in wpf_init_controls()
257 if (wpf->flip.rotate) in wpf_configure_stream()
348 spin_lock_irqsave(&wpf->flip.lock, flags); in wpf_configure_frame()
349 wpf->flip.active = (wpf->flip.active & ~mask) in wpf_configure_frame()
350 | (wpf->flip.pending & mask); in wpf_configure_frame()
351 spin_unlock_irqrestore(&wpf->flip.lock, flags); in wpf_configure_frame()
355 if (wpf->flip.active & BIT(WPF_CTRL_VFLIP)) in wpf_configure_frame()
357 if (wpf->flip.active & BIT(WPF_CTRL_HFLIP)) in wpf_configure_frame()
378 unsigned int flip; in wpf_configure_partition() local
419 flip = wpf->flip.active; in wpf_configure_partition()
421 if (flip & BIT(WPF_CTRL_HFLIP) && !wpf->flip.rotate) in wpf_configure_partition()
423 else if (flip & BIT(WPF_CTRL_VFLIP) && wpf->flip.rotate) in wpf_configure_partition()
432 if (wpf->flip.rotate) in wpf_configure_partition()
440 if (flip & BIT(WPF_CTRL_VFLIP)) { in wpf_configure_partition()
447 if (wpf->flip.rotate) in wpf_configure_partition()
463 if (wpf->flip.rotate && !(flip & BIT(WPF_CTRL_HFLIP))) { in wpf_configure_partition()
503 return wpf->flip.rotate ? 256 : wpf->max_width; in wpf_max_width()