Lines Matching refs:supported_modes

827 static const struct SC301IOT_mode supported_modes[] = {  variable
1143 for (i = 0; i < ARRAY_SIZE(supported_modes); i++) { in SC301IOT_find_best_fit()
1144 dist = SC301IOT_get_reso_dist(&supported_modes[i], framefmt); in SC301IOT_find_best_fit()
1151 return &supported_modes[cur_best_fit]; in SC301IOT_find_best_fit()
1241 if (fse->index >= ARRAY_SIZE(supported_modes)) in SC301IOT_enum_frame_sizes()
1244 if (fse->code != supported_modes[0].bus_fmt) in SC301IOT_enum_frame_sizes()
1247 fse->min_width = supported_modes[fse->index].width; in SC301IOT_enum_frame_sizes()
1248 fse->max_width = supported_modes[fse->index].width; in SC301IOT_enum_frame_sizes()
1249 fse->max_height = supported_modes[fse->index].height; in SC301IOT_enum_frame_sizes()
1250 fse->min_height = supported_modes[fse->index].height; in SC301IOT_enum_frame_sizes()
1351 for (i = 0; i < ARRAY_SIZE(supported_modes); i++) { in SC301IOT_ioctl()
1352 if (w == supported_modes[i].width && in SC301IOT_ioctl()
1353 h == supported_modes[i].height && in SC301IOT_ioctl()
1354 supported_modes[i].hdr_mode == hdr->hdr_mode) { in SC301IOT_ioctl()
1355 SC301IOT->cur_mode = &supported_modes[i]; in SC301IOT_ioctl()
1359 if (i == ARRAY_SIZE(supported_modes)) { in SC301IOT_ioctl()
1815 const struct SC301IOT_mode *def_mode = &supported_modes[0]; in SC301IOT_open()
1835 if (fie->index >= ARRAY_SIZE(supported_modes)) in SC301IOT_enum_frame_interval()
1838 fie->code = supported_modes[fie->index].bus_fmt; in SC301IOT_enum_frame_interval()
1839 fie->width = supported_modes[fie->index].width; in SC301IOT_enum_frame_interval()
1840 fie->height = supported_modes[fie->index].height; in SC301IOT_enum_frame_interval()
1841 fie->interval = supported_modes[fie->index].max_fps; in SC301IOT_enum_frame_interval()
1842 fie->reserved[0] = supported_modes[fie->index].hdr_mode; in SC301IOT_enum_frame_interval()
2158 for (i = 0; i < ARRAY_SIZE(supported_modes); i++) { in SC301IOT_probe()
2159 if (hdr_mode == supported_modes[i].hdr_mode) { in SC301IOT_probe()
2160 SC301IOT->cur_mode = &supported_modes[i]; in SC301IOT_probe()
2164 if (i == ARRAY_SIZE(supported_modes)) in SC301IOT_probe()
2165 SC301IOT->cur_mode = &supported_modes[0]; in SC301IOT_probe()