Searched refs:vpbe_dev (Results 1 - 4 of 4) sorted by relevance

/linux-4.4.14/drivers/media/platform/davinci/
H A Dvpbe.c58 * @vpbe_dev - vpbe device ptr
63 vpbe_current_encoder_info(struct vpbe_device *vpbe_dev) vpbe_current_encoder_info() argument
65 struct vpbe_config *cfg = vpbe_dev->cfg; vpbe_current_encoder_info()
66 int index = vpbe_dev->current_sd_index; vpbe_current_encoder_info()
101 * @vpbe_dev - vpbe device ptr
107 static int vpbe_g_cropcap(struct vpbe_device *vpbe_dev, vpbe_g_cropcap() argument
114 cropcap->bounds.width = vpbe_dev->current_timings.xres; vpbe_g_cropcap()
115 cropcap->bounds.height = vpbe_dev->current_timings.yres; vpbe_g_cropcap()
123 * @vpbe_dev - vpbe device ptr
129 static int vpbe_enum_outputs(struct vpbe_device *vpbe_dev, vpbe_enum_outputs() argument
132 struct vpbe_config *cfg = vpbe_dev->cfg; vpbe_enum_outputs()
144 static int vpbe_get_mode_info(struct vpbe_device *vpbe_dev, char *mode, vpbe_get_mode_info() argument
147 struct vpbe_config *cfg = vpbe_dev->cfg; vpbe_get_mode_info()
158 vpbe_dev->current_timings = var; vpbe_get_mode_info()
166 static int vpbe_get_current_mode_info(struct vpbe_device *vpbe_dev, vpbe_get_current_mode_info() argument
172 *mode_info = vpbe_dev->current_timings; vpbe_get_current_mode_info()
178 static int vpbe_get_std_info(struct vpbe_device *vpbe_dev, vpbe_get_std_info() argument
181 struct vpbe_config *cfg = vpbe_dev->cfg; vpbe_get_std_info()
183 int curr_output = vpbe_dev->current_out_index; vpbe_get_std_info()
186 for (i = 0; i < vpbe_dev->cfg->outputs[curr_output].num_modes; i++) { vpbe_get_std_info()
190 vpbe_dev->current_timings = var; vpbe_get_std_info()
198 static int vpbe_get_std_info_by_name(struct vpbe_device *vpbe_dev, vpbe_get_std_info_by_name() argument
201 struct vpbe_config *cfg = vpbe_dev->cfg; vpbe_get_std_info_by_name()
203 int curr_output = vpbe_dev->current_out_index; vpbe_get_std_info_by_name()
206 for (i = 0; i < vpbe_dev->cfg->outputs[curr_output].num_modes; i++) { vpbe_get_std_info_by_name()
209 vpbe_dev->current_timings = var; vpbe_get_std_info_by_name()
219 * @vpbe_dev - vpbe device ptr
224 static int vpbe_set_output(struct vpbe_device *vpbe_dev, int index) vpbe_set_output() argument
227 vpbe_current_encoder_info(vpbe_dev); vpbe_set_output()
228 struct vpbe_config *cfg = vpbe_dev->cfg; vpbe_set_output()
229 struct venc_platform_data *venc_device = vpbe_dev->venc_device; vpbe_set_output()
238 mutex_lock(&vpbe_dev->lock); vpbe_set_output()
240 sd_index = vpbe_dev->current_sd_index; vpbe_set_output()
267 ret = v4l2_subdev_call(vpbe_dev->encoders[sd_index], video, vpbe_set_output()
280 ret = vpbe_get_mode_info(vpbe_dev, vpbe_set_output()
283 struct osd_state *osd_device = vpbe_dev->osd_device; vpbe_set_output()
286 vpbe_dev->current_timings.left_margin); vpbe_set_output()
288 vpbe_dev->current_timings.upper_margin); vpbe_set_output()
289 vpbe_dev->current_sd_index = sd_index; vpbe_set_output()
290 vpbe_dev->current_out_index = index; vpbe_set_output()
293 mutex_unlock(&vpbe_dev->lock); vpbe_set_output()
297 static int vpbe_set_default_output(struct vpbe_device *vpbe_dev) vpbe_set_default_output() argument
299 struct vpbe_config *cfg = vpbe_dev->cfg; vpbe_set_default_output()
306 ret = vpbe_set_output(vpbe_dev, i); vpbe_set_default_output()
308 vpbe_dev->current_out_index = i; vpbe_set_default_output()
317 * @vpbe_dev - vpbe device ptr
321 static unsigned int vpbe_get_output(struct vpbe_device *vpbe_dev) vpbe_get_output() argument
323 return vpbe_dev->current_out_index; vpbe_get_output()
332 static int vpbe_s_dv_timings(struct vpbe_device *vpbe_dev, vpbe_s_dv_timings() argument
335 struct vpbe_config *cfg = vpbe_dev->cfg; vpbe_s_dv_timings()
336 int out_index = vpbe_dev->current_out_index; vpbe_s_dv_timings()
338 int sd_index = vpbe_dev->current_sd_index; vpbe_s_dv_timings()
354 vpbe_dev->current_timings = output->modes[i]; vpbe_s_dv_timings()
355 mutex_lock(&vpbe_dev->lock); vpbe_s_dv_timings()
357 ret = v4l2_subdev_call(vpbe_dev->encoders[sd_index], video, vpbe_s_dv_timings()
359 if (!ret && (vpbe_dev->amp != NULL)) { vpbe_s_dv_timings()
361 ret = v4l2_subdev_call(vpbe_dev->amp, video, vpbe_s_dv_timings()
366 struct osd_state *osd_device = vpbe_dev->osd_device; vpbe_s_dv_timings()
369 vpbe_dev->current_timings.left_margin); vpbe_s_dv_timings()
371 vpbe_dev->current_timings.upper_margin); vpbe_s_dv_timings()
373 mutex_unlock(&vpbe_dev->lock); vpbe_s_dv_timings()
384 static int vpbe_g_dv_timings(struct vpbe_device *vpbe_dev, vpbe_g_dv_timings() argument
387 struct vpbe_config *cfg = vpbe_dev->cfg; vpbe_g_dv_timings()
388 int out_index = vpbe_dev->current_out_index; vpbe_g_dv_timings()
394 if (vpbe_dev->current_timings.timings_type & vpbe_g_dv_timings()
396 *dv_timings = vpbe_dev->current_timings.dv_timings; vpbe_g_dv_timings()
409 static int vpbe_enum_dv_timings(struct vpbe_device *vpbe_dev, vpbe_enum_dv_timings() argument
412 struct vpbe_config *cfg = vpbe_dev->cfg; vpbe_enum_dv_timings()
413 int out_index = vpbe_dev->current_out_index; vpbe_enum_dv_timings()
441 static int vpbe_s_std(struct vpbe_device *vpbe_dev, v4l2_std_id std_id) vpbe_s_std() argument
443 struct vpbe_config *cfg = vpbe_dev->cfg; vpbe_s_std()
444 int out_index = vpbe_dev->current_out_index; vpbe_s_std()
445 int sd_index = vpbe_dev->current_sd_index; vpbe_s_std()
452 ret = vpbe_get_std_info(vpbe_dev, std_id); vpbe_s_std()
456 mutex_lock(&vpbe_dev->lock); vpbe_s_std()
458 ret = v4l2_subdev_call(vpbe_dev->encoders[sd_index], video, vpbe_s_std()
462 struct osd_state *osd_device = vpbe_dev->osd_device; vpbe_s_std()
465 vpbe_dev->current_timings.left_margin); vpbe_s_std()
467 vpbe_dev->current_timings.upper_margin); vpbe_s_std()
469 mutex_unlock(&vpbe_dev->lock); vpbe_s_std()
480 static int vpbe_g_std(struct vpbe_device *vpbe_dev, v4l2_std_id *std_id) vpbe_g_std() argument
482 struct vpbe_enc_mode_info *cur_timings = &vpbe_dev->current_timings; vpbe_g_std()
483 struct vpbe_config *cfg = vpbe_dev->cfg; vpbe_g_std()
484 int out_index = vpbe_dev->current_out_index; vpbe_g_std()
504 static int vpbe_set_mode(struct vpbe_device *vpbe_dev, vpbe_set_mode() argument
508 struct vpbe_config *cfg = vpbe_dev->cfg; vpbe_set_mode()
511 int out_index = vpbe_dev->current_out_index; vpbe_set_mode()
527 return vpbe_s_std(vpbe_dev, vpbe_set_mode()
533 return vpbe_s_dv_timings(vpbe_dev, &dv_timings); vpbe_set_mode()
542 mutex_lock(&vpbe_dev->lock); vpbe_set_mode()
544 osd_device = vpbe_dev->osd_device; vpbe_set_mode()
545 vpbe_dev->current_timings = *preset_mode; vpbe_set_mode()
547 vpbe_dev->current_timings.left_margin); vpbe_set_mode()
549 vpbe_dev->current_timings.upper_margin); vpbe_set_mode()
551 mutex_unlock(&vpbe_dev->lock); vpbe_set_mode()
556 static int vpbe_set_default_mode(struct vpbe_device *vpbe_dev) vpbe_set_default_mode() argument
560 ret = vpbe_get_std_info_by_name(vpbe_dev, def_mode); vpbe_set_default_mode()
565 return vpbe_set_mode(vpbe_dev, &vpbe_dev->current_timings); vpbe_set_default_mode()
571 struct vpbe_device *vpbe_dev = data; platform_device_get() local
574 vpbe_dev->osd_device = platform_get_drvdata(pdev); platform_device_get()
576 vpbe_dev->venc_device = dev_get_platdata(&pdev->dev); platform_device_get()
583 * @vpbe_dev - vpbe device ptr
592 static int vpbe_initialize(struct device *dev, struct vpbe_device *vpbe_dev) vpbe_initialize() argument
605 * v4l2 abd FBDev frame buffer devices will get the vpbe_dev pointer vpbe_initialize()
609 if (NULL == vpbe_dev || NULL == dev) { vpbe_initialize()
614 if (vpbe_dev->initialized) vpbe_initialize()
617 mutex_lock(&vpbe_dev->lock); vpbe_initialize()
619 if (strcmp(vpbe_dev->cfg->module_name, "dm644x-vpbe-display") != 0) { vpbe_initialize()
621 vpbe_dev->dac_clk = clk_get(vpbe_dev->pdev, "vpss_dac"); vpbe_initialize()
622 if (IS_ERR(vpbe_dev->dac_clk)) { vpbe_initialize()
623 ret = PTR_ERR(vpbe_dev->dac_clk); vpbe_initialize()
626 if (clk_prepare_enable(vpbe_dev->dac_clk)) { vpbe_initialize()
628 clk_put(vpbe_dev->dac_clk); vpbe_initialize()
637 ret = v4l2_device_register(dev, &vpbe_dev->v4l2_dev); vpbe_initialize()
643 v4l2_info(&vpbe_dev->v4l2_dev, "vpbe v4l2 device registered\n"); vpbe_initialize()
645 err = bus_for_each_dev(&platform_bus_type, NULL, vpbe_dev, vpbe_initialize()
652 vpbe_dev->venc = venc_sub_dev_init(&vpbe_dev->v4l2_dev, vpbe_initialize()
653 vpbe_dev->cfg->venc.module_name); vpbe_initialize()
655 if (vpbe_dev->venc == NULL) { vpbe_initialize()
656 v4l2_err(&vpbe_dev->v4l2_dev, vpbe_initialize()
662 osd_device = vpbe_dev->osd_device; vpbe_initialize()
667 v4l2_err(&vpbe_dev->v4l2_dev, vpbe_initialize()
678 num_encoders = vpbe_dev->cfg->num_ext_encoders + 1; vpbe_initialize()
679 vpbe_dev->encoders = kmalloc( vpbe_initialize()
682 if (NULL == vpbe_dev->encoders) { vpbe_initialize()
683 v4l2_err(&vpbe_dev->v4l2_dev, vpbe_initialize()
689 i2c_adap = i2c_get_adapter(vpbe_dev->cfg->i2c_adapter_id); vpbe_initialize()
690 for (i = 0; i < (vpbe_dev->cfg->num_ext_encoders + 1); i++) { vpbe_initialize()
693 enc_subdev = &vpbe_dev->encoders[i]; vpbe_initialize()
694 *enc_subdev = vpbe_dev->venc; vpbe_initialize()
697 enc_info = &vpbe_dev->cfg->ext_encoders[i]; vpbe_initialize()
699 enc_subdev = &vpbe_dev->encoders[i]; vpbe_initialize()
701 &vpbe_dev->v4l2_dev, i2c_adap, vpbe_initialize()
704 v4l2_info(&vpbe_dev->v4l2_dev, vpbe_initialize()
708 v4l2_err(&vpbe_dev->v4l2_dev, "encoder %s" vpbe_initialize()
715 v4l2_warn(&vpbe_dev->v4l2_dev, "non-i2c encoders" vpbe_initialize()
719 if ((strcmp(vpbe_dev->cfg->module_name, "dm365-vpbe-display") == 0) && vpbe_initialize()
720 vpbe_dev->cfg->amp != NULL) { vpbe_initialize()
721 amp_info = vpbe_dev->cfg->amp; vpbe_initialize()
723 vpbe_dev->amp = v4l2_i2c_new_subdev_board( vpbe_initialize()
724 &vpbe_dev->v4l2_dev, i2c_adap, vpbe_initialize()
726 if (!vpbe_dev->amp) { vpbe_initialize()
727 v4l2_err(&vpbe_dev->v4l2_dev, vpbe_initialize()
733 v4l2_info(&vpbe_dev->v4l2_dev, vpbe_initialize()
737 vpbe_dev->amp = NULL; vpbe_initialize()
738 v4l2_warn(&vpbe_dev->v4l2_dev, "non-i2c amplifiers" vpbe_initialize()
742 vpbe_dev->amp = NULL; vpbe_initialize()
746 vpbe_dev->current_sd_index = 0; vpbe_initialize()
747 vpbe_dev->current_out_index = 0; vpbe_initialize()
749 mutex_unlock(&vpbe_dev->lock); vpbe_initialize()
752 ret = vpbe_set_default_output(vpbe_dev); vpbe_initialize()
754 v4l2_err(&vpbe_dev->v4l2_dev, "Failed to set default output %s", vpbe_initialize()
760 ret = vpbe_set_default_mode(vpbe_dev); vpbe_initialize()
762 v4l2_err(&vpbe_dev->v4l2_dev, "Failed to set default mode %s", vpbe_initialize()
766 vpbe_dev->initialized = 1; vpbe_initialize()
771 kfree(vpbe_dev->encoders); vpbe_initialize()
773 v4l2_device_unregister(&vpbe_dev->v4l2_dev); vpbe_initialize()
775 if (strcmp(vpbe_dev->cfg->module_name, "dm644x-vpbe-display") != 0) { vpbe_initialize()
776 clk_disable_unprepare(vpbe_dev->dac_clk); vpbe_initialize()
777 clk_put(vpbe_dev->dac_clk); vpbe_initialize()
780 mutex_unlock(&vpbe_dev->lock); vpbe_initialize()
792 static void vpbe_deinitialize(struct device *dev, struct vpbe_device *vpbe_dev) vpbe_deinitialize() argument
794 v4l2_device_unregister(&vpbe_dev->v4l2_dev); vpbe_deinitialize()
795 if (strcmp(vpbe_dev->cfg->module_name, "dm644x-vpbe-display") != 0) { vpbe_deinitialize()
796 clk_disable_unprepare(vpbe_dev->dac_clk); vpbe_deinitialize()
797 clk_put(vpbe_dev->dac_clk); vpbe_deinitialize()
800 kfree(vpbe_dev->amp); vpbe_deinitialize()
801 kfree(vpbe_dev->encoders); vpbe_deinitialize()
802 vpbe_dev->initialized = 0; vpbe_deinitialize()
825 struct vpbe_device *vpbe_dev; vpbe_probe() local
843 vpbe_dev = kzalloc(sizeof(*vpbe_dev), GFP_KERNEL); vpbe_probe()
844 if (vpbe_dev == NULL) { vpbe_probe()
849 vpbe_dev->cfg = cfg; vpbe_probe()
850 vpbe_dev->ops = vpbe_dev_ops; vpbe_probe()
851 vpbe_dev->pdev = &pdev->dev; vpbe_probe()
854 vpbe_dev->current_timings = vpbe_dev->cfg->outputs[0].modes[0]; vpbe_probe()
856 kfree(vpbe_dev); vpbe_probe()
861 platform_set_drvdata(pdev, vpbe_dev); vpbe_probe()
862 mutex_init(&vpbe_dev->lock); vpbe_probe()
869 struct vpbe_device *vpbe_dev = platform_get_drvdata(device); vpbe_remove() local
871 kfree(vpbe_dev); vpbe_remove()
H A Dvpbe_display.c55 struct vpbe_device *vpbe_dev = disp_dev->vpbe_dev; venc_is_second_field() local
59 ret = v4l2_subdev_call(vpbe_dev->venc, venc_is_second_field()
65 v4l2_err(&vpbe_dev->v4l2_dev, venc_is_second_field()
207 struct vpbe_device *vpbe_dev = layer->disp_dev->vpbe_dev; vpbe_buffer_prepare() local
210 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, vpbe_buffer_prepare()
219 v4l2_err(&vpbe_dev->v4l2_dev, vpbe_buffer_prepare()
239 struct vpbe_device *vpbe_dev = layer->disp_dev->vpbe_dev; vpbe_buffer_queue_setup() local
241 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, "vpbe_buffer_setup\n"); vpbe_buffer_queue_setup()
269 struct vpbe_device *vpbe_dev = layer->disp_dev->vpbe_dev; vpbe_buffer_queue() local
272 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, vpbe_buffer_queue()
388 struct vpbe_device *vpbe_dev = disp_dev->vpbe_dev; vpbe_set_osd_display_params() local
402 v4l2_err(&vpbe_dev->v4l2_dev, vpbe_set_osd_display_params()
416 v4l2_err(&vpbe_dev->v4l2_dev, vpbe_set_osd_display_params()
433 struct vpbe_device *vpbe_dev = disp_dev->vpbe_dev; vpbe_disp_calculate_scale_factor() local
440 v4l2_std_id standard_id = vpbe_dev->current_timings.std_id; vpbe_disp_calculate_scale_factor()
467 h_scale = vpbe_dev->current_timings.xres / pixfmt->width; vpbe_disp_calculate_scale_factor()
528 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, vpbe_disp_calculate_scale_factor()
538 struct vpbe_device *vpbe_dev = disp_dev->vpbe_dev; vpbe_disp_adj_position() local
541 vpbe_dev->current_timings.xres - cfg->xsize); vpbe_disp_adj_position()
543 vpbe_dev->current_timings.yres - cfg->ysize); vpbe_disp_adj_position()
545 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, vpbe_disp_adj_position()
553 struct vpbe_device *vpbe_dev = disp_dev->vpbe_dev; vpbe_disp_check_window_params() local
556 ((c->width + c->left) > vpbe_dev->current_timings.xres)) vpbe_disp_check_window_params()
557 c->width = vpbe_dev->current_timings.xres - c->left; vpbe_disp_check_window_params()
560 vpbe_dev->current_timings.yres)) vpbe_disp_check_window_params()
561 c->height = vpbe_dev->current_timings.yres - c->top; vpbe_disp_check_window_params()
564 if (vpbe_dev->current_timings.interlaced) vpbe_disp_check_window_params()
578 struct vpbe_device *vpbe_dev = disp_dev->vpbe_dev; vpbe_try_format() local
593 if (vpbe_dev->current_timings.interlaced) vpbe_try_format()
607 max_width = vpbe_dev->current_timings.xres; vpbe_try_format()
608 max_height = vpbe_dev->current_timings.yres; vpbe_try_format()
614 pixfmt->width = vpbe_dev->current_timings.xres; vpbe_try_format()
619 pixfmt->height = vpbe_dev->current_timings.yres; vpbe_try_format()
641 struct vpbe_device *vpbe_dev = layer->disp_dev->vpbe_dev; vpbe_display_querycap() local
646 dev_name(vpbe_dev->pdev)); vpbe_display_querycap()
648 dev_name(vpbe_dev->pdev)); vpbe_display_querycap()
649 strlcpy(cap->card, vpbe_dev->cfg->module_name, sizeof(cap->card)); vpbe_display_querycap()
659 struct vpbe_device *vpbe_dev = disp_dev->vpbe_dev; vpbe_display_s_crop() local
665 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, vpbe_display_s_crop()
669 v4l2_err(&vpbe_dev->v4l2_dev, "Invalid buf type\n"); vpbe_display_s_crop()
691 v4l2_err(&vpbe_dev->v4l2_dev, vpbe_display_s_crop()
705 v4l2_err(&vpbe_dev->v4l2_dev, vpbe_display_s_crop()
727 struct vpbe_device *vpbe_dev = layer->disp_dev->vpbe_dev; vpbe_display_g_crop() local
731 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, vpbe_display_g_crop()
736 v4l2_err(&vpbe_dev->v4l2_dev, "Invalid buf type\n"); vpbe_display_g_crop()
753 struct vpbe_device *vpbe_dev = layer->disp_dev->vpbe_dev; vpbe_display_cropcap() local
755 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, "VIDIOC_CROPCAP ioctl\n"); vpbe_display_cropcap()
760 cropcap->bounds.width = vpbe_dev->current_timings.xres; vpbe_display_cropcap()
761 cropcap->bounds.height = vpbe_dev->current_timings.yres; vpbe_display_cropcap()
762 cropcap->pixelaspect = vpbe_dev->current_timings.aspect; vpbe_display_cropcap()
771 struct vpbe_device *vpbe_dev = layer->disp_dev->vpbe_dev; vpbe_display_g_fmt() local
773 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, vpbe_display_g_fmt()
779 v4l2_err(&vpbe_dev->v4l2_dev, "invalid type\n"); vpbe_display_g_fmt()
792 struct vpbe_device *vpbe_dev = layer->disp_dev->vpbe_dev; vpbe_display_enum_fmt() local
795 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, vpbe_display_enum_fmt()
799 v4l2_err(&vpbe_dev->v4l2_dev, "Invalid format index\n"); vpbe_display_enum_fmt()
824 struct vpbe_device *vpbe_dev = disp_dev->vpbe_dev; vpbe_display_s_fmt() local
830 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, vpbe_display_s_fmt()
838 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, "invalid type\n"); vpbe_display_s_fmt()
860 v4l2_err(&vpbe_dev->v4l2_dev, vpbe_display_s_fmt()
875 cfg->interlaced = vpbe_dev->current_timings.interlaced; vpbe_display_s_fmt()
893 v4l2_err(&vpbe_dev->v4l2_dev, vpbe_display_s_fmt()
910 struct vpbe_device *vpbe_dev = layer->disp_dev->vpbe_dev; vpbe_display_try_fmt() local
913 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, "VIDIOC_TRY_FMT\n"); vpbe_display_try_fmt()
916 v4l2_err(&vpbe_dev->v4l2_dev, "invalid type\n"); vpbe_display_try_fmt()
935 struct vpbe_device *vpbe_dev = layer->disp_dev->vpbe_dev; vpbe_display_s_std() local
938 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, "VIDIOC_S_STD\n"); vpbe_display_s_std()
943 if (NULL != vpbe_dev->ops.s_std) { vpbe_display_s_std()
944 ret = vpbe_dev->ops.s_std(vpbe_dev, std_id); vpbe_display_s_std()
946 v4l2_err(&vpbe_dev->v4l2_dev, vpbe_display_s_std()
967 struct vpbe_device *vpbe_dev = layer->disp_dev->vpbe_dev; vpbe_display_g_std() local
969 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, "VIDIOC_G_STD\n"); vpbe_display_g_std()
972 if (vpbe_dev->current_timings.timings_type & VPBE_ENC_STD) { vpbe_display_g_std()
973 *std_id = vpbe_dev->current_timings.std_id; vpbe_display_g_std()
990 struct vpbe_device *vpbe_dev = layer->disp_dev->vpbe_dev; vpbe_display_enum_output() local
993 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, "VIDIOC_ENUM_OUTPUT\n"); vpbe_display_enum_output()
997 if (NULL == vpbe_dev->ops.enum_outputs) vpbe_display_enum_output()
1000 ret = vpbe_dev->ops.enum_outputs(vpbe_dev, output); vpbe_display_enum_output()
1002 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, vpbe_display_enum_output()
1018 struct vpbe_device *vpbe_dev = layer->disp_dev->vpbe_dev; vpbe_display_s_output() local
1021 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, "VIDIOC_S_OUTPUT\n"); vpbe_display_s_output()
1026 if (NULL == vpbe_dev->ops.set_output) vpbe_display_s_output()
1029 ret = vpbe_dev->ops.set_output(vpbe_dev, i); vpbe_display_s_output()
1031 v4l2_err(&vpbe_dev->v4l2_dev, vpbe_display_s_output()
1047 struct vpbe_device *vpbe_dev = layer->disp_dev->vpbe_dev; vpbe_display_g_output() local
1049 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, "VIDIOC_G_OUTPUT\n"); vpbe_display_g_output()
1051 *i = vpbe_dev->current_out_index; vpbe_display_g_output()
1067 struct vpbe_device *vpbe_dev = layer->disp_dev->vpbe_dev; vpbe_display_enum_dv_timings() local
1070 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, "VIDIOC_ENUM_DV_TIMINGS\n"); vpbe_display_enum_dv_timings()
1073 if (NULL == vpbe_dev->ops.enum_dv_timings) vpbe_display_enum_dv_timings()
1076 ret = vpbe_dev->ops.enum_dv_timings(vpbe_dev, timings); vpbe_display_enum_dv_timings()
1078 v4l2_err(&vpbe_dev->v4l2_dev, vpbe_display_enum_dv_timings()
1097 struct vpbe_device *vpbe_dev = layer->disp_dev->vpbe_dev; vpbe_display_s_dv_timings() local
1100 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, "VIDIOC_S_DV_TIMINGS\n"); vpbe_display_s_dv_timings()
1106 if (!vpbe_dev->ops.s_dv_timings) vpbe_display_s_dv_timings()
1109 ret = vpbe_dev->ops.s_dv_timings(vpbe_dev, timings); vpbe_display_s_dv_timings()
1111 v4l2_err(&vpbe_dev->v4l2_dev, vpbe_display_s_dv_timings()
1130 struct vpbe_device *vpbe_dev = layer->disp_dev->vpbe_dev; vpbe_display_g_dv_timings() local
1132 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, "VIDIOC_G_DV_TIMINGS\n"); vpbe_display_g_dv_timings()
1136 if (vpbe_dev->current_timings.timings_type & vpbe_display_g_dv_timings()
1138 *dv_timings = vpbe_dev->current_timings.dv_timings; vpbe_display_g_dv_timings()
1155 struct vpbe_device *vpbe_dev = disp_dev->vpbe_dev; vpbe_display_open() local
1162 v4l2_err(&vpbe_dev->v4l2_dev, "v4l2_fh_open failed\n"); vpbe_display_open()
1179 v4l2_err(&vpbe_dev->v4l2_dev, vpbe_display_open()
1187 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, vpbe_display_open()
1202 struct vpbe_device *vpbe_dev = disp_dev->vpbe_dev; vpbe_display_release() local
1205 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, "vpbe_display_release\n"); vpbe_display_release()
1286 vpbe_disp->vpbe_dev = platform_get_drvdata(pdev); vpbe_device_get()
1321 vbd->v4l2_dev = &disp_dev->vpbe_dev->v4l2_dev; init_vpbe_layer()
1325 if (disp_dev->vpbe_dev->current_timings.timings_type & init_vpbe_layer()
1350 v4l2_info(&disp_dev->vpbe_dev->v4l2_dev, register_device()
1352 v4l2_info(&disp_dev->vpbe_dev->v4l2_dev, register_device()
1401 * controller device and get the vpbe_dev object vpbe_display_probe()
1408 v4l2_dev = &disp_dev->vpbe_dev->v4l2_dev; vpbe_display_probe()
1410 if (NULL != disp_dev->vpbe_dev->ops.initialize) { vpbe_display_probe()
1411 err = disp_dev->vpbe_dev->ops.initialize(&pdev->dev, vpbe_display_probe()
1412 disp_dev->vpbe_dev); vpbe_display_probe()
1462 vb2_dma_contig_init_ctx(disp_dev->vpbe_dev->pdev); vpbe_display_probe()
1502 struct vpbe_device *vpbe_dev = disp_dev->vpbe_dev; vpbe_display_remove() local
1505 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, "vpbe_display_remove\n"); vpbe_display_remove()
1508 if (NULL != vpbe_dev->ops.deinitialize) vpbe_display_remove()
1509 vpbe_dev->ops.deinitialize(&pdev->dev, vpbe_dev); vpbe_display_remove()
/linux-4.4.14/include/media/davinci/
H A Dvpbe.h108 int (*g_cropcap)(struct vpbe_device *vpbe_dev,
112 int (*enum_outputs)(struct vpbe_device *vpbe_dev,
116 int (*set_output)(struct vpbe_device *vpbe_dev,
120 unsigned int (*get_output)(struct vpbe_device *vpbe_dev);
123 int (*s_dv_timings)(struct vpbe_device *vpbe_dev,
127 int (*g_dv_timings)(struct vpbe_device *vpbe_dev,
131 int (*enum_dv_timings)(struct vpbe_device *vpbe_dev,
135 int (*s_std)(struct vpbe_device *vpbe_dev, v4l2_std_id std_id);
138 int (*g_std)(struct vpbe_device *vpbe_dev, v4l2_std_id *std_id);
141 int (*initialize)(struct device *dev, struct vpbe_device *vpbe_dev);
144 void (*deinitialize)(struct device *dev, struct vpbe_device *vpbe_dev);
147 int (*get_mode_info)(struct vpbe_device *vpbe_dev,
154 int (*set_mode)(struct vpbe_device *vpbe_dev,
157 int (*suspend)(struct vpbe_device *vpbe_dev);
158 int (*resume)(struct vpbe_device *vpbe_dev);
H A Dvpbe_display.h121 struct vpbe_device *vpbe_dev; member in struct:vpbe_display

Completed in 154 milliseconds