Home
last modified time | relevance | path

Searched refs:flip (Results 1 – 25 of 48) sorted by relevance

12

/drivers/media/platform/vsp1/
Dvsp1_wpf.c54 u32 flip = 0; in vsp1_wpf_s_ctrl() local
60 if (wpf->flip.ctrls[i]) in vsp1_wpf_s_ctrl()
61 flip |= wpf->flip.ctrls[i]->val ? BIT(i) : 0; in vsp1_wpf_s_ctrl()
64 spin_lock_irq(&wpf->flip.lock); in vsp1_wpf_s_ctrl()
65 wpf->flip.pending = flip; in vsp1_wpf_s_ctrl()
66 spin_unlock_irq(&wpf->flip.lock); in vsp1_wpf_s_ctrl()
85 spin_lock_init(&wpf->flip.lock); in wpf_init_controls()
108 wpf->flip.ctrls[WPF_CTRL_VFLIP] = in wpf_init_controls()
114 wpf->flip.ctrls[WPF_CTRL_HFLIP] = in wpf_init_controls()
118 v4l2_ctrl_cluster(2, wpf->flip.ctrls); in wpf_init_controls()
[all …]
Dvsp1_rwpf.h62 } flip; member
/drivers/gpu/drm/atmel-hlcdc/
Datmel_hlcdc_layer.c28 struct atmel_hlcdc_layer_fb_flip *flip = val; in atmel_hlcdc_layer_fb_flip_release() local
30 if (flip->fb) in atmel_hlcdc_layer_fb_flip_release()
31 drm_framebuffer_unreference(flip->fb); in atmel_hlcdc_layer_fb_flip_release()
32 kfree(flip); in atmel_hlcdc_layer_fb_flip_release()
36 atmel_hlcdc_layer_fb_flip_destroy(struct atmel_hlcdc_layer_fb_flip *flip) in atmel_hlcdc_layer_fb_flip_destroy() argument
38 if (flip->fb) in atmel_hlcdc_layer_fb_flip_destroy()
39 drm_framebuffer_unreference(flip->fb); in atmel_hlcdc_layer_fb_flip_destroy()
40 kfree(flip->task); in atmel_hlcdc_layer_fb_flip_destroy()
41 kfree(flip); in atmel_hlcdc_layer_fb_flip_destroy()
46 struct atmel_hlcdc_layer_fb_flip *flip) in atmel_hlcdc_layer_fb_flip_release_queue() argument
[all …]
/drivers/gpu/drm/nouveau/dispnv04/
Doverlay.c40 bool flip; member
106 bool flip = nv_plane->flip; in nv10_update_plane() local
139 nvif_wr32(dev, NV_PVIDEO_BASE(flip), 0); in nv10_update_plane()
140 nvif_wr32(dev, NV_PVIDEO_OFFSET_BUFF(flip), nv_fb->nvbo->bo.offset); in nv10_update_plane()
141 nvif_wr32(dev, NV_PVIDEO_SIZE_IN(flip), src_h << 16 | src_w); in nv10_update_plane()
142 nvif_wr32(dev, NV_PVIDEO_POINT_IN(flip), src_y << 16 | src_x); in nv10_update_plane()
143 nvif_wr32(dev, NV_PVIDEO_DS_DX(flip), (src_w << 20) / crtc_w); in nv10_update_plane()
144 nvif_wr32(dev, NV_PVIDEO_DT_DY(flip), (src_h << 20) / crtc_h); in nv10_update_plane()
145 nvif_wr32(dev, NV_PVIDEO_POINT_OUT(flip), crtc_y << 16 | crtc_x); in nv10_update_plane()
146 nvif_wr32(dev, NV_PVIDEO_SIZE_OUT(flip), crtc_h << 16 | crtc_w); in nv10_update_plane()
[all …]
/drivers/media/usb/gspca/gl860/
Dgl860-mi2020.c376 sd->vcur.flip = 0; in mi2020_init_settings()
388 sd->vmax.flip = 1; in mi2020_init_settings()
457 s32 flip = (((sd->vcur.flip > 0) ^ sd->mirrorMask) > 0); in mi2020_init_post_alt() local
486 dat_hvflip2[2] = 0x6c + 2 * (1 - flip) + (1 - mirror); in mi2020_init_post_alt()
487 dat_hvflip4[2] = 0x24 + 2 * (1 - flip) + (1 - mirror); in mi2020_init_post_alt()
606 sd->vold.flip = flip; in mi2020_init_post_alt()
645 s32 flip = (((sd->vcur.flip > 0) ^ sd->mirrorMask) > 0); in mi2020_camera_settings() local
703 if (mirror != sd->vold.mirror || flip != sd->vold.flip) { in mi2020_camera_settings()
705 sd->vold.flip = flip; in mi2020_camera_settings()
707 dat_hvflip2[2] = 0x6c + 2 * (1 - flip) + (1 - mirror); in mi2020_camera_settings()
[all …]
Dgl860-ov2640.c196 sd->vcur.flip = 0; in ov2640_init_settings()
207 sd->vmax.flip = 1; in ov2640_init_settings()
260 sd->vold.flip = -1; in ov2640_init_pre_alt()
360 s32 flip = (((sd->vcur.flip > 0) ^ sd->mirrorMask) == 0); in ov2640_camera_settings() local
450 if (mirror != sd->vold.mirror || flip != sd->vold.flip) { in ov2640_camera_settings()
452 sd->vold.flip = flip; in ov2640_camera_settings()
460 flip = 0x50 * flip + mirror; in ov2640_camera_settings()
464 ctrl_out(gspca_dev, 0x40, 1, 0x6028 + flip, 0x0004, 0, NULL); in ov2640_camera_settings()
Dgl860-mi1320.c198 sd->vcur.flip = 0; in mi1320_init_settings()
210 sd->vmax.flip = 1; in mi1320_init_settings()
275 sd->vold.flip = -1; in mi1320_init_pre_alt()
361 s32 flip = (((sd->vcur.flip > 0) ^ sd->mirrorMask) > 0); in mi1320_camera_settings() local
492 if (mirror != sd->vold.mirror || flip != sd->vold.flip) { in mi1320_camera_settings()
495 sd->vold.flip = flip; in mi1320_camera_settings()
497 dat_hvflip2[3] = flip + 2 * mirror; in mi1320_camera_settings()
Dgl860.c87 sd->vcur.flip = ctrl->val; in sd_s_ctrl()
150 if (sd->vmax.flip) in sd_init_controls()
152 0, sd->vmax.flip, 1, sd->vcur.flip); in sd_init_controls()
/drivers/gpu/drm/exynos/
Dexynos_drm_gsc.c563 enum drm_exynos_flip flip, bool *swap) in gsc_src_set_transf() argument
569 DRM_DEBUG_KMS("degree[%d]flip[0x%x]\n", degree, flip); in gsc_src_set_transf()
576 if (flip & EXYNOS_DRM_FLIP_VERTICAL) in gsc_src_set_transf()
578 if (flip & EXYNOS_DRM_FLIP_HORIZONTAL) in gsc_src_set_transf()
582 if (flip & EXYNOS_DRM_FLIP_VERTICAL) in gsc_src_set_transf()
584 else if (flip & EXYNOS_DRM_FLIP_HORIZONTAL) in gsc_src_set_transf()
591 if (flip & EXYNOS_DRM_FLIP_VERTICAL) in gsc_src_set_transf()
593 if (flip & EXYNOS_DRM_FLIP_HORIZONTAL) in gsc_src_set_transf()
598 if (flip & EXYNOS_DRM_FLIP_VERTICAL) in gsc_src_set_transf()
600 if (flip & EXYNOS_DRM_FLIP_HORIZONTAL) in gsc_src_set_transf()
[all …]
Dexynos_drm_fimc.c507 enum drm_exynos_flip flip, bool *swap) in fimc_src_set_transf() argument
513 DRM_DEBUG_KMS("degree[%d]flip[0x%x]\n", degree, flip); in fimc_src_set_transf()
524 if (flip & EXYNOS_DRM_FLIP_VERTICAL) in fimc_src_set_transf()
526 if (flip & EXYNOS_DRM_FLIP_HORIZONTAL) in fimc_src_set_transf()
531 if (flip & EXYNOS_DRM_FLIP_VERTICAL) in fimc_src_set_transf()
533 if (flip & EXYNOS_DRM_FLIP_HORIZONTAL) in fimc_src_set_transf()
539 if (flip & EXYNOS_DRM_FLIP_VERTICAL) in fimc_src_set_transf()
541 if (flip & EXYNOS_DRM_FLIP_HORIZONTAL) in fimc_src_set_transf()
548 if (flip & EXYNOS_DRM_FLIP_VERTICAL) in fimc_src_set_transf()
550 if (flip & EXYNOS_DRM_FLIP_HORIZONTAL) in fimc_src_set_transf()
[all …]
Dexynos_drm_rotator.c324 enum drm_exynos_flip flip, bool *swap) in rotator_dst_set_transf() argument
333 switch (flip) { in rotator_dst_set_transf()
475 prop_list->flip = (1 << EXYNOS_DRM_FLIP_VERTICAL) | in rotator_init_prop_list()
500 static inline bool rotator_check_drm_flip(enum drm_exynos_flip flip) in rotator_check_drm_flip() argument
502 switch (flip) { in rotator_check_drm_flip()
557 if (src_config->flip != EXYNOS_DRM_FLIP_NONE) { in rotator_ippdrv_check_property()
562 if (!rotator_check_drm_flip(dst_config->flip)) { in rotator_ippdrv_check_property()
/drivers/media/platform/exynos4-is/
Dfimc-reg.c46 u32 flip = FIMC_REG_MSCTRL_FLIP_NORMAL; in fimc_hw_get_in_flip() local
49 flip = FIMC_REG_MSCTRL_FLIP_Y_MIRROR; in fimc_hw_get_in_flip()
51 flip = FIMC_REG_MSCTRL_FLIP_X_MIRROR; in fimc_hw_get_in_flip()
54 return flip; in fimc_hw_get_in_flip()
56 return (flip ^ FIMC_REG_MSCTRL_FLIP_180) & FIMC_REG_MSCTRL_FLIP_180; in fimc_hw_get_in_flip()
61 u32 flip = FIMC_REG_CITRGFMT_FLIP_NORMAL; in fimc_hw_get_target_flip() local
64 flip |= FIMC_REG_CITRGFMT_FLIP_Y_MIRROR; in fimc_hw_get_target_flip()
66 flip |= FIMC_REG_CITRGFMT_FLIP_X_MIRROR; in fimc_hw_get_target_flip()
69 return flip; in fimc_hw_get_target_flip()
71 return (flip ^ FIMC_REG_CITRGFMT_FLIP_180) & FIMC_REG_CITRGFMT_FLIP_180; in fimc_hw_get_target_flip()
[all …]
/drivers/pcmcia/
Dpxa2xx_balloon3.c60 int flip; in balloon3_pcmcia_socket_state() local
64 flip = (status ^ balloon3_pcmcia_status[skt->nr]) in balloon3_pcmcia_socket_state()
71 if (flip) { in balloon3_pcmcia_socket_state()
Dpxa2xx_mainstone.c60 unsigned long status, flip; in mst_pcmcia_socket_state() local
63 flip = (status ^ mst_pcmcia_status[skt->nr]) & MST_PCMCIA_nSTSCHG_BVD1; in mst_pcmcia_socket_state()
70 if (flip) { in mst_pcmcia_socket_state()
Di82365.c292 #define flip(v,b,f) (v = ((f)<0) ? v : ((f) ? ((v)|(b)) : ((v)&(~b)))) macro
328 flip(p->misc2, PD67_MC2_IRQ15_RI, has_ring); in cirrus_set_opts()
329 flip(p->misc2, PD67_MC2_DYNAMIC_MODE, dynamic_mode); in cirrus_set_opts()
330 flip(p->misc2, PD67_MC2_FREQ_BYPASS, freq_bypass); in cirrus_set_opts()
398 flip(p->ctl, VG468_CTL_ASYNC, async_clock); in vg46x_set_opts()
399 flip(p->ema, VG469_MODE_CABLE, cable_mode); in vg46x_set_opts()
/drivers/staging/lustre/lnet/lnet/
Dacceptor.c213 int flip; in lnet_accept() local
252 flip = (magic != LNET_PROTO_ACCEPTOR_MAGIC); in lnet_accept()
262 if (flip) in lnet_accept()
295 if (flip) in lnet_accept()
/drivers/media/usb/stkwebcam/
Dstk-sensor.c508 int flip; in stk_sensor_configure() local
559 flip = (dev->vsettings.vflip?MVFP_FLIP:0) in stk_sensor_configure()
561 stk_sensor_outb(dev, REG_MVFP, flip); in stk_sensor_configure()
/drivers/xen/
Dgntdev.c527 static int gntdev_open(struct inode *inode, struct file *flip) in gntdev_open() argument
556 flip->private_data = priv; in gntdev_open()
562 static int gntdev_release(struct inode *inode, struct file *flip) in gntdev_release() argument
564 struct gntdev_priv *priv = flip->private_data; in gntdev_release()
949 static long gntdev_ioctl(struct file *flip, in gntdev_ioctl() argument
952 struct gntdev_priv *priv = flip->private_data; in gntdev_ioctl()
979 static int gntdev_mmap(struct file *flip, struct vm_area_struct *vma) in gntdev_mmap() argument
981 struct gntdev_priv *priv = flip->private_data; in gntdev_mmap()
/drivers/video/fbdev/
Dw100fb.c88 return sprintf(buf, "%d\n",par->flip); in flip_show()
93 unsigned int flip; in flip_store() local
97 flip = simple_strtoul(buf, NULL, 10); in flip_store()
99 if (flip > 0) in flip_store()
100 par->flip = 1; in flip_store()
102 par->flip = 0; in flip_store()
113 static DEVICE_ATTR(flip, 0644, flip_show, flip_store);
733 par->flip = 1; in w100fb_probe()
735 par->flip = 0; in w100fb_probe()
1425 if (par->flip) { in w100_set_dispregs()
[all …]
/drivers/gpu/drm/nouveau/
Dnouveau_display.c432 nvif_notify_get(&drm->flip); in nouveau_display_init()
449 nvif_notify_put(&drm->flip); in nouveau_display_fini()
740 list_add_tail(&s->head, &fctx->flip); in nouveau_page_flip_emit()
896 if (list_empty(&fctx->flip)) { in nouveau_finish_page_flip()
902 s = list_first_entry(&fctx->flip, struct nouveau_page_flip_state, head); in nouveau_finish_page_flip()
930 struct nouveau_drm *drm = container_of(notify, typeof(*drm), flip); in nouveau_flip_complete()
/drivers/usb/serial/
Dkeyspan.c224 int flip; in keyspan_write() local
248 flip = p_priv->out_flip; in keyspan_write()
251 this_urb = p_priv->out_urbs[flip]; in keyspan_write()
259 __func__, usb_pipeendpoint(this_urb->pipe), flip); in keyspan_write()
263 p_priv->tx_start_time[flip] + 10 * HZ)) in keyspan_write()
282 p_priv->tx_start_time[flip] = jiffies; in keyspan_write()
286 p_priv->out_flip = (flip + 1) & d_details->outdat_endp_flip; in keyspan_write()
986 int flip; in keyspan_write_room() local
999 flip = p_priv->out_flip; in keyspan_write_room()
1002 this_urb = p_priv->out_urbs[flip]; in keyspan_write_room()
[all …]
/drivers/phy/
Dphy-rockchip-typec.c286 bool flip; member
516 if (!tcphy->flip) in tcphy_dp_aux_calibration()
557 property_enable(tcphy, &cfg->typec_conn_dir, tcphy->flip); in tcphy_phy_init()
570 if (tcphy->flip) { in tcphy_phy_init()
661 tcphy->flip = property.intval ? 1 : 0; in tcphy_get_mode()
/drivers/staging/lustre/lnet/klnds/o2iblnd/
Do2iblnd.c128 static int kiblnd_unpack_rd(struct kib_msg *msg, int flip) in kiblnd_unpack_rd() argument
143 if (flip) { in kiblnd_unpack_rd()
166 if (!flip) in kiblnd_unpack_rd()
209 int flip; in kiblnd_unpack_msg() local
218 flip = 0; in kiblnd_unpack_msg()
220 flip = 1; in kiblnd_unpack_msg()
226 version = flip ? __swab16(msg->ibm_version) : msg->ibm_version; in kiblnd_unpack_msg()
238 msg_nob = flip ? __swab32(msg->ibm_nob) : msg->ibm_nob; in kiblnd_unpack_msg()
248 msg_cksum = flip ? __swab32(msg->ibm_cksum) : msg->ibm_cksum; in kiblnd_unpack_msg()
258 if (flip) { in kiblnd_unpack_msg()
[all …]
/drivers/media/usb/gspca/
Dstk1135.c500 bool flip; in sd_pkt_scan() local
511 flip = !(le16_to_cpu(hdr->gpio) & (1 << 8)); in sd_pkt_scan()
513 if (sd->flip_status != flip) in sd_pkt_scan()
/drivers/media/platform/s5p-g2d/
Dg2d.h65 u32 flip; member

12