Lines Matching refs:fourccs
798 static bool is_listed_fourcc(const uint32_t *fourccs, size_t nfourccs, uint32_t fourcc) in is_listed_fourcc() argument
800 const uint32_t *fourccs_end = fourccs + nfourccs; in is_listed_fourcc()
802 while (fourccs < fourccs_end) { in is_listed_fourcc()
803 if (*fourccs == fourcc) in is_listed_fourcc()
805 ++fourccs; in is_listed_fourcc()
874 u32 *fourccs = fourccs_out; in drm_fb_build_fourcc_list() local
886 if (is_listed_fourcc(fourccs_out, fourccs - fourccs_out, fourcc)) { in drm_fb_build_fourcc_list()
888 } else if (fourccs == fourccs_end) { in drm_fb_build_fourcc_list()
903 *fourccs = fourcc; in drm_fb_build_fourcc_list()
904 ++fourccs; in drm_fb_build_fourcc_list()
911 for (i = 0; (i < driver_nfourccs) && (fourccs < fourccs_end); ++i) { in drm_fb_build_fourcc_list()
914 if (is_listed_fourcc(fourccs_out, fourccs - fourccs_out, fourcc)) { in drm_fb_build_fourcc_list()
916 } else if (fourccs == fourccs_end) { in drm_fb_build_fourcc_list()
926 *fourccs = fourcc; in drm_fb_build_fourcc_list()
927 ++fourccs; in drm_fb_build_fourcc_list()
930 return fourccs - fourccs_out; in drm_fb_build_fourcc_list()