H A D | vpbe_display.c | 55 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()
|