• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/media/video/

Lines Matching defs:mt9m111

166 struct mt9m111 {
186 static struct mt9m111 *to_mt9m111(const struct i2c_client *client)
188 return container_of(i2c_get_clientdata(client), struct mt9m111, subdev);
273 struct mt9m111 *mt9m111 = to_mt9m111(client);
278 if (mt9m111->fmt->code == V4L2_MBUS_FMT_SBGGR8_1X8 ||
279 mt9m111->fmt->code == V4L2_MBUS_FMT_SBGGR10_2X8_PADHI_LE)
338 struct mt9m111 *mt9m111 = to_mt9m111(client);
341 if (mt9m111->swap_rgb_red_blue)
343 if (mt9m111->swap_rgb_even_odd)
352 struct mt9m111 *mt9m111 = to_mt9m111(client);
355 if (mt9m111->swap_rgb_red_blue)
357 if (mt9m111->swap_rgb_even_odd)
366 struct mt9m111 *mt9m111 = to_mt9m111(client);
369 if (mt9m111->swap_yuv_cb_cr)
371 if (mt9m111->swap_yuv_y_chromas)
379 struct mt9m111 *mt9m111 = to_mt9m111(client);
384 mt9m111->powered = 1;
420 struct mt9m111 *mt9m111 = to_mt9m111(client);
422 if (mt9m111->fmt->code == V4L2_MBUS_FMT_SBGGR8_1X8 ||
423 mt9m111->fmt->code == V4L2_MBUS_FMT_SBGGR10_2X8_PADHI_LE) {
443 struct mt9m111 *mt9m111 = to_mt9m111(client);
454 mt9m111->rect = rect;
461 struct mt9m111 *mt9m111 = to_mt9m111(client);
463 a->c = mt9m111->rect;
489 struct mt9m111 *mt9m111 = to_mt9m111(client);
491 mf->width = mt9m111->rect.width;
492 mf->height = mt9m111->rect.height;
493 mf->code = mt9m111->fmt->code;
494 mf->colorspace = mt9m111->fmt->colorspace;
503 struct mt9m111 *mt9m111 = to_mt9m111(client);
520 mt9m111->swap_yuv_y_chromas = 0;
521 mt9m111->swap_yuv_cb_cr = 0;
525 mt9m111->swap_yuv_y_chromas = 0;
526 mt9m111->swap_yuv_cb_cr = 1;
530 mt9m111->swap_yuv_y_chromas = 1;
531 mt9m111->swap_yuv_cb_cr = 0;
535 mt9m111->swap_yuv_y_chromas = 1;
536 mt9m111->swap_yuv_cb_cr = 1;
553 struct mt9m111 *mt9m111 = to_mt9m111(client);
555 .left = mt9m111->rect.left,
556 .top = mt9m111->rect.top,
575 mt9m111->rect = rect;
576 mt9m111->fmt = fmt;
587 struct mt9m111 *mt9m111 = to_mt9m111(client);
595 fmt = mt9m111->fmt;
627 struct mt9m111 *mt9m111 = to_mt9m111(client);
635 id->ident = mt9m111->model;
732 struct mt9m111 *mt9m111 = to_mt9m111(client);
735 if (mt9m111->context == HIGHPOWER) {
763 struct mt9m111 *mt9m111 = to_mt9m111(client);
769 mt9m111->gain = gain;
782 struct mt9m111 *mt9m111 = to_mt9m111(client);
791 mt9m111->autoexposure = on;
798 struct mt9m111 *mt9m111 = to_mt9m111(client);
807 mt9m111->autowhitebalance = on;
815 struct mt9m111 *mt9m111 = to_mt9m111(client);
820 if (mt9m111->context == HIGHPOWER)
830 if (mt9m111->context == HIGHPOWER)
846 ctrl->value = mt9m111->autoexposure;
849 ctrl->value = mt9m111->autowhitebalance;
858 struct mt9m111 *mt9m111 = to_mt9m111(client);
868 mt9m111->vflip = ctrl->value;
873 mt9m111->hflip = ctrl->value;
896 struct mt9m111 *mt9m111 = to_mt9m111(client);
898 mt9m111->gain = mt9m111_get_global_gain(client);
905 struct mt9m111 *mt9m111 = to_mt9m111(client);
907 mt9m111_set_context(client, mt9m111->context);
908 mt9m111_set_pixfmt(client, mt9m111->fmt->code);
909 mt9m111_setup_rect(client, &mt9m111->rect);
910 mt9m111_set_flip(client, mt9m111->hflip, MT9M111_RMB_MIRROR_COLS);
911 mt9m111_set_flip(client, mt9m111->vflip, MT9M111_RMB_MIRROR_ROWS);
912 mt9m111_set_global_gain(client, mt9m111->gain);
913 mt9m111_set_autoexposure(client, mt9m111->autoexposure);
914 mt9m111_set_autowhitebalance(client, mt9m111->autowhitebalance);
921 struct mt9m111 *mt9m111 = to_mt9m111(client);
924 if (mt9m111->powered) {
936 struct mt9m111 *mt9m111 = to_mt9m111(client);
939 mt9m111->context = HIGHPOWER;
944 ret = mt9m111_set_context(client, mt9m111->context);
946 ret = mt9m111_set_autoexposure(client, mt9m111->autoexposure);
948 dev_err(&client->dev, "mt9m111 init failed: %d\n", ret);
959 struct mt9m111 *mt9m111 = to_mt9m111(client);
971 mt9m111->autoexposure = 1;
972 mt9m111->autowhitebalance = 1;
974 mt9m111->swap_rgb_even_odd = 1;
975 mt9m111->swap_rgb_red_blue = 1;
981 mt9m111->model = V4L2_IDENT_MT9M111;
986 mt9m111->model = V4L2_IDENT_MT9M112;
1041 struct mt9m111 *mt9m111;
1048 dev_err(&client->dev, "mt9m111: soc-camera data missing!\n");
1054 dev_err(&client->dev, "mt9m111: driver needs platform data\n");
1064 mt9m111 = kzalloc(sizeof(struct mt9m111), GFP_KERNEL);
1065 if (!mt9m111)
1068 v4l2_i2c_subdev_init(&mt9m111->subdev, client, &mt9m111_subdev_ops);
1073 mt9m111->rect.left = MT9M111_MIN_DARK_COLS;
1074 mt9m111->rect.top = MT9M111_MIN_DARK_ROWS;
1075 mt9m111->rect.width = MT9M111_MAX_WIDTH;
1076 mt9m111->rect.height = MT9M111_MAX_HEIGHT;
1077 mt9m111->fmt = &mt9m111_colour_fmts[0];
1082 kfree(mt9m111);
1090 struct mt9m111 *mt9m111 = to_mt9m111(client);
1095 kfree(mt9m111);
1101 { "mt9m111", 0 },
1108 .name = "mt9m111",