Home
last modified time | relevance | path

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

12

/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()
Dgl860.h55 u8 flip; member
/drivers/gpu/drm/exynos/
Dexynos_drm_gsc.c561 enum drm_exynos_flip flip, bool *swap) in gsc_src_set_transf() argument
567 DRM_DEBUG_KMS("degree[%d]flip[0x%x]\n", degree, flip); in gsc_src_set_transf()
574 if (flip & EXYNOS_DRM_FLIP_VERTICAL) in gsc_src_set_transf()
576 if (flip & EXYNOS_DRM_FLIP_HORIZONTAL) in gsc_src_set_transf()
580 if (flip & EXYNOS_DRM_FLIP_VERTICAL) in gsc_src_set_transf()
582 else if (flip & EXYNOS_DRM_FLIP_HORIZONTAL) in gsc_src_set_transf()
589 if (flip & EXYNOS_DRM_FLIP_VERTICAL) in gsc_src_set_transf()
591 if (flip & EXYNOS_DRM_FLIP_HORIZONTAL) in gsc_src_set_transf()
596 if (flip & EXYNOS_DRM_FLIP_VERTICAL) in gsc_src_set_transf()
598 if (flip & EXYNOS_DRM_FLIP_HORIZONTAL) in gsc_src_set_transf()
[all …]
Dexynos_drm_fimc.c534 enum drm_exynos_flip flip, bool *swap) in fimc_src_set_transf() argument
540 DRM_DEBUG_KMS("degree[%d]flip[0x%x]\n", degree, flip); in fimc_src_set_transf()
551 if (flip & EXYNOS_DRM_FLIP_VERTICAL) in fimc_src_set_transf()
553 if (flip & EXYNOS_DRM_FLIP_HORIZONTAL) in fimc_src_set_transf()
558 if (flip & EXYNOS_DRM_FLIP_VERTICAL) in fimc_src_set_transf()
560 if (flip & EXYNOS_DRM_FLIP_HORIZONTAL) in fimc_src_set_transf()
566 if (flip & EXYNOS_DRM_FLIP_VERTICAL) in fimc_src_set_transf()
568 if (flip & EXYNOS_DRM_FLIP_HORIZONTAL) in fimc_src_set_transf()
575 if (flip & EXYNOS_DRM_FLIP_VERTICAL) in fimc_src_set_transf()
577 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.c214 int flip; in lnet_accept() local
253 flip = (magic != LNET_PROTO_ACCEPTOR_MAGIC); in lnet_accept()
263 if (flip) in lnet_accept()
294 if (flip) in lnet_accept()
/drivers/xen/
Dgntdev.c538 static int gntdev_open(struct inode *inode, struct file *flip) in gntdev_open() argument
567 flip->private_data = priv; in gntdev_open()
573 static int gntdev_release(struct inode *inode, struct file *flip) in gntdev_release() argument
575 struct gntdev_priv *priv = flip->private_data; in gntdev_release()
760 static long gntdev_ioctl(struct file *flip, in gntdev_ioctl() argument
763 struct gntdev_priv *priv = flip->private_data; in gntdev_ioctl()
787 static int gntdev_mmap(struct file *flip, struct vm_area_struct *vma) in gntdev_mmap() argument
789 struct gntdev_priv *priv = flip->private_data; in gntdev_mmap()
/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/gpu/drm/nouveau/
Dnouveau_display.c383 nvif_notify_get(&drm->flip); in nouveau_display_init()
400 nvif_notify_put(&drm->flip); in nouveau_display_fini()
679 list_add_tail(&s->head, &fctx->flip); in nouveau_page_flip_emit()
836 if (list_empty(&fctx->flip)) { in nouveau_finish_page_flip()
842 s = list_first_entry(&fctx->flip, struct nouveau_page_flip_state, head); in nouveau_finish_page_flip()
870 struct nouveau_drm *drm = container_of(notify, typeof(*drm), flip); in nouveau_flip_complete()
Dnouveau_fence.h36 struct list_head flip; member
Dnouveau_drm.h152 struct nvif_notify flip; member
/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);
735 par->flip = 1; in w100fb_probe()
737 par->flip = 0; in w100fb_probe()
1427 if (par->flip) { in w100_set_dispregs()
[all …]
/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()
984 int flip; in keyspan_write_room() local
997 flip = p_priv->out_flip; in keyspan_write_room()
1000 this_urb = p_priv->out_urbs[flip]; in keyspan_write_room()
[all …]
/drivers/staging/lustre/lnet/klnds/o2iblnd/
Do2iblnd.c140 static int kiblnd_unpack_rd(kib_msg_t *msg, int flip) in kiblnd_unpack_rd() argument
154 if (flip) { in kiblnd_unpack_rd()
176 if (!flip) in kiblnd_unpack_rd()
217 int flip; in kiblnd_unpack_msg() local
226 flip = 0; in kiblnd_unpack_msg()
228 flip = 1; in kiblnd_unpack_msg()
234 version = flip ? __swab16(msg->ibm_version) : msg->ibm_version; in kiblnd_unpack_msg()
246 msg_nob = flip ? __swab32(msg->ibm_nob) : msg->ibm_nob; in kiblnd_unpack_msg()
254 msg_cksum = flip ? __swab32(msg->ibm_cksum) : msg->ibm_cksum; in kiblnd_unpack_msg()
264 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.h66 u32 flip; member

12