Lines Matching refs:supported_modes

541 static const struct sc230ai_mode supported_modes[] = {  variable
750 for (i = 0; i < ARRAY_SIZE(supported_modes); i++) { in sc230ai_find_best_fit()
751 dist = sc230ai_get_reso_dist(&supported_modes[i], framefmt); in sc230ai_find_best_fit()
758 return &supported_modes[cur_best_fit]; in sc230ai_find_best_fit()
854 if (fse->index >= ARRAY_SIZE(supported_modes)) in sc230ai_enum_frame_sizes()
857 if (fse->code != supported_modes[fse->index].bus_fmt) in sc230ai_enum_frame_sizes()
860 fse->min_width = supported_modes[fse->index].width; in sc230ai_enum_frame_sizes()
861 fse->max_width = supported_modes[fse->index].width; in sc230ai_enum_frame_sizes()
862 fse->max_height = supported_modes[fse->index].height; in sc230ai_enum_frame_sizes()
863 fse->min_height = supported_modes[fse->index].height; in sc230ai_enum_frame_sizes()
950 for (i = 0; i < ARRAY_SIZE(supported_modes); i++) { in sc230ai_ioctl()
951 if (w == supported_modes[i].width && in sc230ai_ioctl()
952 h == supported_modes[i].height && in sc230ai_ioctl()
953 supported_modes[i].hdr_mode == hdr->hdr_mode) { in sc230ai_ioctl()
954 sc230ai->cur_mode = &supported_modes[i]; in sc230ai_ioctl()
958 if (i == ARRAY_SIZE(supported_modes)) { in sc230ai_ioctl()
1316 const struct sc230ai_mode *def_mode = &supported_modes[0]; in sc230ai_open()
1336 if (fie->index >= ARRAY_SIZE(supported_modes)) in sc230ai_enum_frame_interval()
1339 fie->code = supported_modes[fie->index].bus_fmt; in sc230ai_enum_frame_interval()
1340 fie->width = supported_modes[fie->index].width; in sc230ai_enum_frame_interval()
1341 fie->height = supported_modes[fie->index].height; in sc230ai_enum_frame_interval()
1342 fie->interval = supported_modes[fie->index].max_fps; in sc230ai_enum_frame_interval()
1343 fie->reserved[0] = supported_modes[fie->index].hdr_mode; in sc230ai_enum_frame_interval()
1656 for (i = 0; i < ARRAY_SIZE(supported_modes); i++) { in sc230ai_probe()
1657 if (hdr_mode == supported_modes[i].hdr_mode) { in sc230ai_probe()
1658 sc230ai->cur_mode = &supported_modes[i]; in sc230ai_probe()
1662 if (i == ARRAY_SIZE(supported_modes)) in sc230ai_probe()
1663 sc230ai->cur_mode = &supported_modes[0]; in sc230ai_probe()