Lines Matching refs:user_formats
655 struct pxa_camera_format_xlate *user_formats; member
702 *pxa_mbus_xlate_by_fourcc(struct pxa_camera_format_xlate *user_formats, in pxa_mbus_xlate_by_fourcc() argument
707 for (i = 0; user_formats[i].code; i++) in pxa_mbus_xlate_by_fourcc()
708 if (user_formats[i].host_fmt->fourcc == fourcc) in pxa_mbus_xlate_by_fourcc()
709 return user_formats + i; in pxa_mbus_xlate_by_fourcc()
723 struct pxa_camera_format_xlate *user_formats; in pxa_mbus_build_fmts_xlate() local
744 user_formats = kcalloc(fmts + 1, sizeof(*user_formats), GFP_KERNEL); in pxa_mbus_build_fmts_xlate()
745 if (!user_formats) in pxa_mbus_build_fmts_xlate()
751 ret = get_formats(v4l2_dev, i, user_formats + fmts); in pxa_mbus_build_fmts_xlate()
756 user_formats[fmts].code = 0; in pxa_mbus_build_fmts_xlate()
758 return user_formats; in pxa_mbus_build_fmts_xlate()
760 kfree(user_formats); in pxa_mbus_build_fmts_xlate()
1712 pcdev->user_formats = xlate; in pxa_camera_build_formats()
1718 kfree(pcdev->user_formats); in pxa_camera_destroy_formats()
1763 for (idx = 0; pcdev->user_formats[idx].code; idx++); in pxac_vidioc_enum_fmt_vid_cap()
1767 format = pcdev->user_formats[f->index].host_fmt; in pxac_vidioc_enum_fmt_vid_cap()
1807 xlate = pxa_mbus_xlate_by_fourcc(pcdev->user_formats, pixfmt); in pxac_vidioc_try_fmt_vid_cap()
1884 xlate = pxa_mbus_xlate_by_fourcc(pcdev->user_formats, in pxac_vidioc_s_fmt_vid_cap()
2079 pcdev->current_fmt = pcdev->user_formats; in pxa_camera_sensor_bound()