Lines Matching refs:ret

213 	int ret;
218 ret = v4l2_subdev_call(ctx->phy->sensor, pad, get_fmt, NULL, &sd_fmt);
219 if (ret)
220 return ret;
235 int ret;
241 ret = v4l2_subdev_call(ctx->phy->sensor, pad, set_fmt, NULL, &sd_fmt);
242 if (ret)
243 return ret;
301 int ret, found;
316 ret = 0;
322 ret = v4l2_subdev_call(ctx->phy->sensor, pad, enum_frame_size,
324 if (ret)
361 int ret;
368 ret = cal_try_fmt_vid_cap(file, priv, f);
369 if (ret < 0)
370 return ret;
376 ret = __subdev_set_format(ctx, &mbus_fmt);
377 if (ret)
378 return ret;
405 int ret;
420 ret = v4l2_subdev_call(ctx->phy->sensor, pad, enum_frame_size, NULL,
422 if (ret)
423 return ret;
470 int ret;
477 ret = v4l2_subdev_call(ctx->phy->sensor, pad, enum_frame_interval,
479 if (ret)
480 return ret;
594 int ret;
621 ret = cal_camerarx_start(ctx->phy, ctx->fmt);
622 if (ret)
643 return ret;
726 int ret = 0;
733 for (j = 0, i = 0; ret != -EINVAL; ++j) {
738 ret = v4l2_subdev_call(ctx->phy->sensor, pad, enum_mbus_code,
740 if (ret)
767 ret = __subdev_get_format(ctx, &mbus_fmt);
768 if (ret)
769 return ret;
793 int ret;
795 ret = cal_ctx_v4l2_init_formats(ctx);
796 if (ret)
797 return ret;
799 ret = v4l2_ctrl_add_handler(hdl, ctx->phy->sensor->ctrl_handler, NULL,
801 if (ret < 0) {
803 return ret;
806 ret = video_register_device(vfd, VFL_TYPE_VIDEO, cal_video_nr);
807 if (ret < 0) {
809 return ret;
831 int ret;
849 ret = vb2_queue_init(q);
850 if (ret)
851 return ret;
862 ret = media_entity_pads_init(&vfd->entity, 1, &ctx->pad);
863 if (ret < 0)
864 return ret;
867 ret = v4l2_ctrl_handler_init(hdl, 11);
868 if (ret < 0) {
879 return ret;