Home
last modified time | relevance | path

Searched refs:user_formats (Results 1 – 3 of 3) sorted by relevance

/drivers/media/platform/
Dpxa_camera.c666 struct soc_camera_format_xlate *user_formats; member
717 *pxa_mbus_xlate_by_fourcc(struct soc_camera_format_xlate *user_formats, in pxa_mbus_xlate_by_fourcc() argument
722 for (i = 0; user_formats[i].code; i++) in pxa_mbus_xlate_by_fourcc()
723 if (user_formats[i].host_fmt->fourcc == fourcc) in pxa_mbus_xlate_by_fourcc()
724 return user_formats + i; in pxa_mbus_xlate_by_fourcc()
738 struct soc_camera_format_xlate *user_formats; in pxa_mbus_build_fmts_xlate() local
759 user_formats = kcalloc(fmts + 1, sizeof(*user_formats), GFP_KERNEL); in pxa_mbus_build_fmts_xlate()
760 if (!user_formats) in pxa_mbus_build_fmts_xlate()
766 ret = get_formats(v4l2_dev, i, user_formats + fmts); in pxa_mbus_build_fmts_xlate()
771 user_formats[fmts].code = 0; in pxa_mbus_build_fmts_xlate()
[all …]
/drivers/media/platform/atmel/
Datmel-isc.c131 struct isc_format **user_formats; member
656 f->pixelformat = isc->user_formats[index]->fourcc; in isc_enum_fmt_vid_cap()
679 fmt = isc->user_formats[i]; in find_format_by_fourcc()
704 isc_fmt = isc->user_formats[isc->num_user_formats - 1]; in isc_try_fmt()
1097 isc->user_formats = devm_kcalloc(isc->dev, in isc_formats_init()
1100 if (!isc->user_formats) { in isc_formats_init()
1108 isc->user_formats[j++] = fmt; in isc_formats_init()
1124 .pixelformat = isc->user_formats[0]->fourcc, in isc_set_default_fmt()
1133 isc->current_fmt = isc->user_formats[0]; in isc_set_default_fmt()
/drivers/media/platform/soc_camera/
Dsoc_camera.c210 if (icd->user_formats[i].host_fmt->fourcc == fourcc) in soc_camera_xlate_by_fourcc()
211 return icd->user_formats + i; in soc_camera_xlate_by_fourcc()
525 icd->user_formats = in soc_camera_init_user_formats()
527 if (!icd->user_formats) in soc_camera_init_user_formats()
538 icd->user_formats[fmts].host_fmt = in soc_camera_init_user_formats()
540 if (icd->user_formats[fmts].host_fmt) in soc_camera_init_user_formats()
541 icd->user_formats[fmts++].code = code.code; in soc_camera_init_user_formats()
544 &icd->user_formats[fmts]); in soc_camera_init_user_formats()
551 icd->current_fmt = &icd->user_formats[0]; in soc_camera_init_user_formats()
556 vfree(icd->user_formats); in soc_camera_init_user_formats()
[all …]