Lines Matching refs:supported_modes

280 static const struct sc430cs_mode supported_modes[] = {  variable
523 for (i = 0; i < ARRAY_SIZE(supported_modes); i++) { in sc430cs_find_best_fit()
524 dist = sc430cs_get_reso_dist(&supported_modes[i], framefmt); in sc430cs_find_best_fit()
531 return &supported_modes[cur_best_fit]; in sc430cs_find_best_fit()
622 if (fse->index >= ARRAY_SIZE(supported_modes)) in sc430cs_enum_frame_sizes()
625 if (fse->code != supported_modes[0].bus_fmt) in sc430cs_enum_frame_sizes()
628 fse->min_width = supported_modes[fse->index].width; in sc430cs_enum_frame_sizes()
629 fse->max_width = supported_modes[fse->index].width; in sc430cs_enum_frame_sizes()
630 fse->max_height = supported_modes[fse->index].height; in sc430cs_enum_frame_sizes()
631 fse->min_height = supported_modes[fse->index].height; in sc430cs_enum_frame_sizes()
718 for (i = 0; i < ARRAY_SIZE(supported_modes); i++) { in sc430cs_ioctl()
719 if (w == supported_modes[i].width && in sc430cs_ioctl()
720 h == supported_modes[i].height && in sc430cs_ioctl()
721 supported_modes[i].hdr_mode == hdr->hdr_mode) { in sc430cs_ioctl()
722 sc430cs->cur_mode = &supported_modes[i]; in sc430cs_ioctl()
726 if (i == ARRAY_SIZE(supported_modes)) { in sc430cs_ioctl()
1067 const struct sc430cs_mode *def_mode = &supported_modes[0]; in sc430cs_open()
1087 if (fie->index >= ARRAY_SIZE(supported_modes)) in sc430cs_enum_frame_interval()
1090 fie->code = supported_modes[fie->index].bus_fmt; in sc430cs_enum_frame_interval()
1091 fie->width = supported_modes[fie->index].width; in sc430cs_enum_frame_interval()
1092 fie->height = supported_modes[fie->index].height; in sc430cs_enum_frame_interval()
1093 fie->interval = supported_modes[fie->index].max_fps; in sc430cs_enum_frame_interval()
1094 fie->reserved[0] = supported_modes[fie->index].hdr_mode; in sc430cs_enum_frame_interval()
1376 for (i = 0; i < ARRAY_SIZE(supported_modes); i++) { in sc430cs_probe()
1377 if (hdr_mode == supported_modes[i].hdr_mode) { in sc430cs_probe()
1378 sc430cs->cur_mode = &supported_modes[i]; in sc430cs_probe()
1382 if (i == ARRAY_SIZE(supported_modes)) in sc430cs_probe()
1383 sc430cs->cur_mode = &supported_modes[0]; in sc430cs_probe()