Lines Matching refs:venc
66 struct venc_state *venc = to_state(sd); in venc_read() local
68 return readl(venc->venc_base + offset); in venc_read()
73 struct venc_state *venc = to_state(sd); in venc_write() local
75 writel(val, (venc->venc_base + offset)); in venc_write()
92 struct venc_state *venc = to_state(sd); in vdaccfg_write() local
94 writel(val, venc->vdaccfg_reg); in vdaccfg_write()
96 val = readl(venc->vdaccfg_reg); in vdaccfg_write()
129 struct venc_state *venc = to_state(sd); in venc_enabledigitaloutput() local
130 struct venc_platform_data *pdata = venc->pdata; in venc_enabledigitaloutput()
194 struct venc_state *venc = to_state(sd); in venc_set_ntsc() local
195 struct venc_platform_data *pdata = venc->pdata; in venc_set_ntsc()
240 struct venc_state *venc = to_state(sd); in venc_set_pal() local
241 struct venc_platform_data *pdata = venc->pdata; in venc_set_pal()
247 if (venc->pdata->setup_clock(VPBE_ENC_STD, V4L2_STD_625_50) < 0) in venc_set_pal()
292 struct venc_state *venc = to_state(sd); in venc_set_480p59_94() local
293 struct venc_platform_data *pdata = venc->pdata; in venc_set_480p59_94()
339 struct venc_state *venc = to_state(sd); in venc_set_576p50() local
340 struct venc_platform_data *pdata = venc->pdata; in venc_set_576p50()
385 struct venc_state *venc = to_state(sd); in venc_set_720p60_internal() local
386 struct venc_platform_data *pdata = venc->pdata; in venc_set_720p60_internal()
413 struct venc_state *venc = to_state(sd); in venc_set_1080i30_internal() local
414 struct venc_platform_data *pdata = venc->pdata; in venc_set_1080i30_internal()
452 struct venc_state *venc = to_state(sd); in venc_s_dv_preset() local
462 (venc->pdata->venc_type == VPBE_VERSION_2)) { in venc_s_dv_preset()
469 (venc->pdata->venc_type == VPBE_VERSION_2)) { in venc_s_dv_preset()
482 struct venc_state *venc = to_state(sd); in venc_s_routing() local
489 venc->output = output; in venc_s_routing()
531 struct venc_state *venc = to_state(sd); in venc_initialize() local
535 venc->output = 0; in venc_initialize()
536 venc->std = V4L2_STD_525_60; in venc_initialize()
538 ret = venc_s_routing(sd, 0, venc->output, 0); in venc_initialize()
544 ret = venc_s_std_output(sd, venc->std); in venc_initialize()
556 struct venc_state **venc = data; in venc_device_get() local
559 *venc = platform_get_drvdata(pdev); in venc_device_get()
567 struct venc_state *venc; in venc_sub_dev_init() local
570 err = bus_for_each_dev(&platform_bus_type, NULL, &venc, in venc_sub_dev_init()
572 if (venc == NULL) in venc_sub_dev_init()
575 v4l2_subdev_init(&venc->sd, &venc_ops); in venc_sub_dev_init()
577 strcpy(venc->sd.name, venc_name); in venc_sub_dev_init()
578 if (v4l2_device_register_subdev(v4l2_dev, &venc->sd) < 0) { in venc_sub_dev_init()
583 if (venc_initialize(&venc->sd)) { in venc_sub_dev_init()
589 return &venc->sd; in venc_sub_dev_init()
595 struct venc_state *venc; in venc_probe() local
599 venc = kzalloc(sizeof(struct venc_state), GFP_KERNEL); in venc_probe()
600 if (venc == NULL) in venc_probe()
603 venc->pdev = &pdev->dev; in venc_probe()
604 venc->pdata = pdev->dev.platform_data; in venc_probe()
605 if (NULL == venc->pdata) { in venc_probe()
606 dev_err(venc->pdev, "Unable to get platform data for" in venc_probe()
613 dev_err(venc->pdev, in venc_probe()
620 dev_err(venc->pdev, "Unable to reserve VENC MMIO region\n"); in venc_probe()
625 venc->venc_base = ioremap_nocache(res->start, resource_size(res)); in venc_probe()
626 if (!venc->venc_base) { in venc_probe()
627 dev_err(venc->pdev, "Unable to map VENC IO space\n"); in venc_probe()
632 if (venc->pdata->venc_type != VPBE_VERSION_1) { in venc_probe()
635 dev_err(venc->pdev, in venc_probe()
643 dev_err(venc->pdev, in venc_probe()
649 venc->vdaccfg_reg = ioremap_nocache(res->start, in venc_probe()
651 if (!venc->vdaccfg_reg) { in venc_probe()
652 dev_err(venc->pdev, in venc_probe()
658 spin_lock_init(&venc->lock); in venc_probe()
659 platform_set_drvdata(pdev, venc); in venc_probe()
660 dev_notice(venc->pdev, "VENC sub device probe success\n"); in venc_probe()
666 iounmap(venc->venc_base); in venc_probe()
671 kfree(venc); in venc_probe()
677 struct venc_state *venc = platform_get_drvdata(pdev); in venc_remove() local
681 iounmap((void *)venc->venc_base); in venc_remove()
683 if (venc->pdata->venc_type != VPBE_VERSION_1) { in venc_remove()
685 iounmap((void *)venc->vdaccfg_reg); in venc_remove()
688 kfree(venc); in venc_remove()