Lines Matching refs:supported_modes
608 static const struct sc200ai_mode supported_modes[] = { variable
986 for (i = 0; i < ARRAY_SIZE(supported_modes); i++) { in sc200ai_find_best_fit()
987 dist = sc200ai_get_reso_dist(&supported_modes[i], framefmt); in sc200ai_find_best_fit()
994 return &supported_modes[cur_best_fit]; in sc200ai_find_best_fit()
1085 if (fse->index >= ARRAY_SIZE(supported_modes)) in sc200ai_enum_frame_sizes()
1088 if (fse->code != supported_modes[0].bus_fmt) in sc200ai_enum_frame_sizes()
1091 fse->min_width = supported_modes[fse->index].width; in sc200ai_enum_frame_sizes()
1092 fse->max_width = supported_modes[fse->index].width; in sc200ai_enum_frame_sizes()
1093 fse->max_height = supported_modes[fse->index].height; in sc200ai_enum_frame_sizes()
1094 fse->min_height = supported_modes[fse->index].height; in sc200ai_enum_frame_sizes()
1193 for (i = 0; i < ARRAY_SIZE(supported_modes); i++) { in sc200ai_ioctl()
1194 if (w == supported_modes[i].width && in sc200ai_ioctl()
1195 h == supported_modes[i].height && in sc200ai_ioctl()
1196 supported_modes[i].hdr_mode == hdr->hdr_mode) { in sc200ai_ioctl()
1197 sc200ai->cur_mode = &supported_modes[i]; in sc200ai_ioctl()
1201 if (i == ARRAY_SIZE(supported_modes)) { in sc200ai_ioctl()
1605 const struct sc200ai_mode *def_mode = &supported_modes[0]; in sc200ai_open()
1625 if (fie->index >= ARRAY_SIZE(supported_modes)) in sc200ai_enum_frame_interval()
1628 fie->code = supported_modes[fie->index].bus_fmt; in sc200ai_enum_frame_interval()
1629 fie->width = supported_modes[fie->index].width; in sc200ai_enum_frame_interval()
1630 fie->height = supported_modes[fie->index].height; in sc200ai_enum_frame_interval()
1631 fie->interval = supported_modes[fie->index].max_fps; in sc200ai_enum_frame_interval()
1632 fie->reserved[0] = supported_modes[fie->index].hdr_mode; in sc200ai_enum_frame_interval()
1968 for (i = 0; i < ARRAY_SIZE(supported_modes); i++) { in find_terminal_resolution()
1969 mode = &supported_modes[i]; in find_terminal_resolution()
1995 sc200ai->cur_mode = &supported_modes[0]; in find_terminal_resolution()
2005 for (i = 0; i < ARRAY_SIZE(supported_modes); i++) { in find_terminal_resolution()
2006 if (hdr_mode == supported_modes[i].hdr_mode) { in find_terminal_resolution()
2007 sc200ai->cur_mode = &supported_modes[i]; in find_terminal_resolution()
2011 if (i == ARRAY_SIZE(supported_modes)) in find_terminal_resolution()
2012 sc200ai->cur_mode = &supported_modes[0]; in find_terminal_resolution()