Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/media/platform/intel/
Dpxa_camera.c655 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()
[all …]
/linux-6.12.1/drivers/media/platform/atmel/
Datmel-isi.c125 const struct isi_format **user_formats; member
551 fmt = isi->user_formats[i]; in find_format_by_fourcc()
602 isi_fmt = isi->user_formats[isi->num_user_formats - 1]; in isi_try_fmt()
683 f->pixelformat = isi->user_formats[f->index]->fourcc; in isi_enum_fmt_vid_cap()
979 .pixelformat = isi->user_formats[0]->fourcc, in isi_set_default_fmt()
987 isi->current_fmt = isi->user_formats[0]; in isi_set_default_fmt()
1077 isi->user_formats = devm_kcalloc(isi->dev, in isi_formats_init()
1080 if (!isi->user_formats) in isi_formats_init()
1083 memcpy(isi->user_formats, isi_fmts, in isi_formats_init()
1085 isi->current_fmt = isi->user_formats[0]; in isi_formats_init()
/linux-6.12.1/drivers/staging/media/deprecated/atmel/
Datmel-isc-base.c470 fmt = isc->user_formats[i]; in find_format_by_fourcc()
876 if (ISC_IS_FORMAT_RAW(isc->user_formats[i]->mbus_code)) { in isc_try_fmt()
877 sd_fmt = isc->user_formats[i]; in isc_try_fmt()
907 sd_fmt = isc->user_formats[isc->num_user_formats - 1]; in isc_try_fmt()
1107 if (isc->user_formats[i]->fourcc == fsize->pixel_format) in isc_enum_framesizes()
1805 isc->user_formats = devm_kcalloc(isc->dev, in isc_formats_init()
1806 num_fmts, sizeof(*isc->user_formats), in isc_formats_init()
1808 if (!isc->user_formats) in isc_formats_init()
1814 isc->user_formats[j++] = fmt; in isc_formats_init()
1829 .pixelformat = isc->user_formats[0]->fourcc, in isc_set_default_fmt()
Datmel-isc.h284 struct isc_format **user_formats; member