Home
last modified time | relevance | path

Searched refs:supported_modes (Results 1 – 25 of 37) sorted by relevance

12

/drivers/gpu/drm/
Ddrm_blend.c573 unsigned int supported_modes) in drm_plane_create_blend_mode_property() argument
587 if (WARN_ON((supported_modes & ~valid_mode_mask) || in drm_plane_create_blend_mode_property()
588 ((supported_modes & BIT(DRM_MODE_BLEND_PREMULTI)) == 0))) in drm_plane_create_blend_mode_property()
593 hweight32(supported_modes)); in drm_plane_create_blend_mode_property()
600 if (!(BIT(props[i].type) & supported_modes)) in drm_plane_create_blend_mode_property()
/drivers/media/i2c/
Dov5695.c643 static const struct ov5695_mode supported_modes[] = { variable
797 for (i = 0; i < ARRAY_SIZE(supported_modes); i++) { in ov5695_find_best_fit()
798 dist = ov5695_get_reso_dist(&supported_modes[i], framefmt); in ov5695_find_best_fit()
805 return &supported_modes[cur_best_fit]; in ov5695_find_best_fit()
885 if (fse->index >= ARRAY_SIZE(supported_modes)) in ov5695_enum_frame_sizes()
891 fse->min_width = supported_modes[fse->index].width; in ov5695_enum_frame_sizes()
892 fse->max_width = supported_modes[fse->index].width; in ov5695_enum_frame_sizes()
893 fse->max_height = supported_modes[fse->index].height; in ov5695_enum_frame_sizes()
894 fse->min_height = supported_modes[fse->index].height; in ov5695_enum_frame_sizes()
1057 const struct ov5695_mode *def_mode = &supported_modes[0]; in ov5695_open()
[all …]
Dov2685.c233 static const struct ov2685_mode supported_modes[] = { variable
359 if (code->index >= ARRAY_SIZE(supported_modes)) in ov2685_enum_mbus_code()
373 if (index >= ARRAY_SIZE(supported_modes)) in ov2685_enum_frame_sizes()
378 fse->min_width = supported_modes[index].width; in ov2685_enum_frame_sizes()
379 fse->max_width = supported_modes[index].width; in ov2685_enum_frame_sizes()
380 fse->max_height = supported_modes[index].height; in ov2685_enum_frame_sizes()
381 fse->min_height = supported_modes[index].height; in ov2685_enum_frame_sizes()
498 ov2685_fill_fmt(&supported_modes[0], try_fmt); in ov2685_open()
722 ov2685->cur_mode = &supported_modes[0]; in ov2685_probe()
Dimx258.c567 static const struct imx258_mode supported_modes[] = { variable
716 try_fmt->width = supported_modes[0].width; in imx258_open()
717 try_fmt->height = supported_modes[0].height; in imx258_open()
839 if (fse->index >= ARRAY_SIZE(supported_modes)) in imx258_enum_frame_size()
845 fse->min_width = supported_modes[fse->index].width; in imx258_enum_frame_size()
847 fse->min_height = supported_modes[fse->index].height; in imx258_enum_frame_size()
908 mode = v4l2_find_nearest_size(supported_modes, in imx258_set_pad_format()
909 ARRAY_SIZE(supported_modes), width, height, in imx258_set_pad_format()
1301 imx258->cur_mode = &supported_modes[0]; in imx258_probe()
Dog01a1b.c405 static const struct og01a1b_mode supported_modes[] = { variable
810 mode = v4l2_find_nearest_size(supported_modes, in og01a1b_set_format()
811 ARRAY_SIZE(supported_modes), width, in og01a1b_set_format()
879 if (fse->index >= ARRAY_SIZE(supported_modes)) in og01a1b_enum_frame_size()
885 fse->min_width = supported_modes[fse->index].width; in og01a1b_enum_frame_size()
887 fse->min_height = supported_modes[fse->index].height; in og01a1b_enum_frame_size()
898 og01a1b_update_pad_format(&supported_modes[0], in og01a1b_open()
1054 og01a1b->cur_mode = &supported_modes[0]; in og01a1b_probe()
Dimx208.c245 static const struct imx208_mode supported_modes[] = { variable
404 try_fmt->width = supported_modes[0].width; in imx208_open()
405 try_fmt->height = supported_modes[0].height; in imx208_open()
525 if (fse->index >= ARRAY_SIZE(supported_modes)) in imx208_enum_frame_size()
531 fse->min_width = supported_modes[fse->index].width; in imx208_enum_frame_size()
533 fse->min_height = supported_modes[fse->index].height; in imx208_enum_frame_size()
592 mode = v4l2_find_nearest_size(supported_modes, in imx208_set_pad_format()
593 ARRAY_SIZE(supported_modes), width, height, in imx208_set_pad_format()
1010 imx208->cur_mode = &supported_modes[0]; in imx208_probe()
Dhi556.c451 static const struct hi556_mode supported_modes[] = { variable
917 mode = v4l2_find_nearest_size(supported_modes, in hi556_set_format()
918 ARRAY_SIZE(supported_modes), width, in hi556_set_format()
986 if (fse->index >= ARRAY_SIZE(supported_modes)) in hi556_enum_frame_size()
992 fse->min_width = supported_modes[fse->index].width; in hi556_enum_frame_size()
994 fse->min_height = supported_modes[fse->index].height; in hi556_enum_frame_size()
1005 hi556_assign_pad_format(&supported_modes[0], in hi556_open()
1145 hi556->cur_mode = &supported_modes[0]; in hi556_probe()
Dov9734.c308 static const struct ov9734_mode supported_modes[] = { variable
737 mode = v4l2_find_nearest_size(supported_modes, in ov9734_set_format()
738 ARRAY_SIZE(supported_modes), width, in ov9734_set_format()
805 if (fse->index >= ARRAY_SIZE(supported_modes)) in ov9734_enum_frame_size()
811 fse->min_width = supported_modes[fse->index].width; in ov9734_enum_frame_size()
813 fse->min_height = supported_modes[fse->index].height; in ov9734_enum_frame_size()
824 ov9734_update_pad_format(&supported_modes[0], in ov9734_open()
970 ov9734->cur_mode = &supported_modes[0]; in ov9734_probe()
Dimx219.c378 static const struct imx219_mode supported_modes[] = { variable
593 fmt->width = supported_modes[0].width; in imx219_set_default_format()
594 fmt->height = supported_modes[0].height; in imx219_set_default_format()
608 try_fmt->width = supported_modes[0].width; in imx219_open()
609 try_fmt->height = supported_modes[0].height; in imx219_open()
738 if (fse->index >= ARRAY_SIZE(supported_modes)) in imx219_enum_frame_size()
747 fse->min_width = supported_modes[fse->index].width; in imx219_enum_frame_size()
749 fse->min_height = supported_modes[fse->index].height; in imx219_enum_frame_size()
830 mode = v4l2_find_nearest_size(supported_modes, in imx219_set_pad_format()
831 ARRAY_SIZE(supported_modes), in imx219_set_pad_format()
[all …]
Disl7998x.c464 static const struct isl7998x_mode supported_modes[] = { variable
484 &supported_modes[1] },
487 &supported_modes[1] },
490 &supported_modes[0] },
493 &supported_modes[0] },
496 &supported_modes[1] },
499 &supported_modes[1] },
502 &supported_modes[0] },
505 &supported_modes[0] },
508 &supported_modes[1] },
[all …]
Dhi847.c2141 static const struct hi847_mode supported_modes[] = { variable
2698 mode = v4l2_find_nearest_size(supported_modes, in hi847_set_format()
2699 ARRAY_SIZE(supported_modes), width, in hi847_set_format()
2768 if (fse->index >= ARRAY_SIZE(supported_modes)) in hi847_enum_frame_size()
2774 fse->min_width = supported_modes[fse->index].width; in hi847_enum_frame_size()
2776 fse->min_height = supported_modes[fse->index].height; in hi847_enum_frame_size()
2787 hi847_assign_pad_format(&supported_modes[0], in hi847_open()
2942 hi847->cur_mode = &supported_modes[0]; in hi847_probe()
Dov5675.c456 static const struct ov5675_mode supported_modes[] = { variable
993 mode = v4l2_find_nearest_size(supported_modes, in ov5675_set_format()
994 ARRAY_SIZE(supported_modes), width, in ov5675_set_format()
1061 if (fse->index >= ARRAY_SIZE(supported_modes)) in ov5675_enum_frame_size()
1067 fse->min_width = supported_modes[fse->index].width; in ov5675_enum_frame_size()
1069 fse->min_height = supported_modes[fse->index].height; in ov5675_enum_frame_size()
1080 ov5675_update_pad_format(&supported_modes[0], in ov5675_open()
1221 ov5675->cur_mode = &supported_modes[0]; in ov5675_probe()
Dov5670.c1747 static const struct ov5670_mode supported_modes[] = { variable
2175 if (fse->index >= ARRAY_SIZE(supported_modes)) in ov5670_enum_frame_size()
2181 fse->min_width = supported_modes[fse->index].width; in ov5670_enum_frame_size()
2183 fse->min_height = supported_modes[fse->index].height; in ov5670_enum_frame_size()
2239 mode = v4l2_find_nearest_size(supported_modes, in ov5670_set_pad_format()
2240 ARRAY_SIZE(supported_modes), in ov5670_set_pad_format()
2506 ov5670->cur_mode = &supported_modes[0]; in ov5670_probe()
Dov02a10.c258 static const struct ov02a10_mode supported_modes[] = { variable
370 if (fse->index >= ARRAY_SIZE(supported_modes)) in ov02a10_enum_frame_sizes()
373 fse->min_width = supported_modes[fse->index].width; in ov02a10_enum_frame_sizes()
374 fse->max_width = supported_modes[fse->index].width; in ov02a10_enum_frame_sizes()
375 fse->max_height = supported_modes[fse->index].height; in ov02a10_enum_frame_sizes()
376 fse->min_height = supported_modes[fse->index].height; in ov02a10_enum_frame_sizes()
926 ov02a10->cur_mode = &supported_modes[0]; in ov02a10_probe()
Dov2740.c310 static const struct ov2740_mode supported_modes[] = { variable
875 mode = v4l2_find_nearest_size(supported_modes, in ov2740_set_format()
876 ARRAY_SIZE(supported_modes), width, in ov2740_set_format()
942 if (fse->index >= ARRAY_SIZE(supported_modes)) in ov2740_enum_frame_size()
948 fse->min_width = supported_modes[fse->index].width; in ov2740_enum_frame_size()
950 fse->min_height = supported_modes[fse->index].height; in ov2740_enum_frame_size()
961 ov2740_update_pad_format(&supported_modes[0], in ov2740_open()
1176 ov2740->cur_mode = &supported_modes[0]; in ov2740_probe()
Dov13b10.c514 static const struct ov13b10_mode supported_modes[] = { variable
696 const struct ov13b10_mode *default_mode = &supported_modes[0]; in ov13b10_open()
917 if (fse->index >= ARRAY_SIZE(supported_modes)) in ov13b10_enum_frame_size()
923 fse->min_width = supported_modes[fse->index].width; in ov13b10_enum_frame_size()
925 fse->min_height = supported_modes[fse->index].height; in ov13b10_enum_frame_size()
991 mode = v4l2_find_nearest_size(supported_modes, in ov13b10_set_pad_format()
992 ARRAY_SIZE(supported_modes), in ov13b10_set_pad_format()
1422 ov13b->cur_mode = &supported_modes[0]; in ov13b10_probe()
Dov13858.c983 static const struct ov13858_mode supported_modes[] = { variable
1295 if (fse->index >= ARRAY_SIZE(supported_modes)) in ov13858_enum_frame_size()
1301 fse->min_width = supported_modes[fse->index].width; in ov13858_enum_frame_size()
1303 fse->min_height = supported_modes[fse->index].height; in ov13858_enum_frame_size()
1369 mode = v4l2_find_nearest_size(supported_modes, in ov13858_set_pad_format()
1370 ARRAY_SIZE(supported_modes), in ov13858_set_pad_format()
1727 ov13858->cur_mode = &supported_modes[0]; in ov13858_probe()
Dimx319.c1665 static const struct imx319_mode supported_modes[] = { variable
1973 if (fse->index >= ARRAY_SIZE(supported_modes)) in imx319_enum_frame_size()
1983 fse->min_width = supported_modes[fse->index].width; in imx319_enum_frame_size()
1985 fse->min_height = supported_modes[fse->index].height; in imx319_enum_frame_size()
2054 mode = v4l2_find_nearest_size(supported_modes, in imx319_set_pad_format()
2055 ARRAY_SIZE(supported_modes), in imx319_set_pad_format()
2479 imx319->cur_mode = &supported_modes[0]; in imx319_probe()
Dimx355.c891 static const struct imx355_mode supported_modes[] = { variable
1272 if (fse->index >= ARRAY_SIZE(supported_modes)) in imx355_enum_frame_size()
1282 fse->min_width = supported_modes[fse->index].width; in imx355_enum_frame_size()
1284 fse->min_height = supported_modes[fse->index].height; in imx355_enum_frame_size()
1353 mode = v4l2_find_nearest_size(supported_modes, in imx355_set_pad_format()
1354 ARRAY_SIZE(supported_modes), in imx355_set_pad_format()
1764 imx355->cur_mode = &supported_modes[0]; in imx355_probe()
Dov8856.c1457 const struct ov8856_mode supported_modes[4]; member
1596 for (i = 0; i < ARRAY_SIZE(ov8856->priv_lane->supported_modes); i++) { in ov8856_modes_num()
1597 if (ov8856->priv_lane->supported_modes[i].width == 0) in ov8856_modes_num()
2171 mode = v4l2_find_nearest_size(ov8856->priv_lane->supported_modes, in ov8856_set_format()
2256 fse->min_width = ov8856->priv_lane->supported_modes[fse->index].width; in ov8856_enum_frame_size()
2258 fse->min_height = ov8856->priv_lane->supported_modes[fse->index].height; in ov8856_enum_frame_size()
2269 ov8856_update_pad_format(ov8856, &ov8856->priv_lane->supported_modes[0], in ov8856_open()
2452 ov8856->cur_mode = &ov8856->priv_lane->supported_modes[0]; in ov8856_probe()
Dhi846.c1060 static const struct hi846_mode supported_modes[] = { variable
1762 v4l2_find_nearest_size(supported_modes, in hi846_set_format()
1763 ARRAY_SIZE(supported_modes), in hi846_set_format()
1850 if (fse->pad || fse->index >= ARRAY_SIZE(supported_modes)) in hi846_enum_frame_size()
1858 fse->min_width = supported_modes[fse->index].width; in hi846_enum_frame_size()
1859 fse->max_width = supported_modes[fse->index].width; in hi846_enum_frame_size()
1860 fse->min_height = supported_modes[fse->index].height; in hi846_enum_frame_size()
1861 fse->max_height = supported_modes[fse->index].height; in hi846_enum_frame_size()
2112 hi846->cur_mode = &supported_modes[0]; in hi846_probe()
/drivers/video/fbdev/omap2/omapfb/dss/
Doverlay.c79 ovl->supported_modes = in dss_init_overlays()
119 if ((ovl->supported_modes & info->color_mode) == 0) { in dss_ovl_simple_check()
/drivers/video/fbdev/omap2/omapfb/
Domapfb-ioctl.c516 enum omap_color_mode supported_modes; in omapfb_get_ovl_colormode() local
523 supported_modes = ovl->supported_modes; in omapfb_get_ovl_colormode()
527 for (i = 0; i < sizeof(supported_modes) * 8; i++) { in omapfb_get_ovl_colormode()
528 if (!(supported_modes & (1 << i))) in omapfb_get_ovl_colormode()
543 if (i == sizeof(supported_modes) * 8) in omapfb_get_ovl_colormode()
/drivers/net/ethernet/marvell/octeon_ep/
Doctep_ethtool.c281 u32 advertised_modes, supported_modes; in octep_get_link_ksettings() local
289 supported_modes = oct->link_info.supported_modes; in octep_get_link_ksettings()
292 OCTEP_SET_ETHTOOL_LINK_MODES_BITMAP(supported_modes, cmd, supported); in octep_get_link_ksettings()
Doctep_ctrl_net.c168 oct->link_info.supported_modes = resp->link_info.supported_modes; in octep_get_link_info()

12