• 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:mt9t031

23  * mt9t031 i2c address 0x5d
28 /* mt9t031 selected register addresses */
65 struct mt9t031 {
77 static struct mt9t031 *to_mt9t031(const struct i2c_client *client)
79 return container_of(i2c_get_clientdata(client), struct mt9t031, subdev);
293 struct mt9t031 *mt9t031 = to_mt9t031(client);
342 if (yskip != mt9t031->yskip || xskip != mt9t031->xskip) {
366 rect->height + mt9t031->y_skip_top - 1);
367 if (ret >= 0 && mt9t031->autoexposure) {
368 unsigned int total_h = rect->height + mt9t031->y_skip_top + vblank;
374 mt9t031->exposure = (shutter_max / 2 + (total_h - 1) *
385 mt9t031->rect = *rect;
386 mt9t031->xskip = xskip;
387 mt9t031->yskip = yskip;
397 struct mt9t031 *mt9t031 = to_mt9t031(client);
408 return mt9t031_set_params(client, &rect, mt9t031->xskip, mt9t031->yskip);
414 struct mt9t031 *mt9t031 = to_mt9t031(client);
416 a->c = mt9t031->rect;
440 struct mt9t031 *mt9t031 = to_mt9t031(client);
442 mf->width = mt9t031->rect.width / mt9t031->xskip;
443 mf->height = mt9t031->rect.height / mt9t031->yskip;
455 struct mt9t031 *mt9t031 = to_mt9t031(client);
457 struct v4l2_rect rect = mt9t031->rect;
494 struct mt9t031 *mt9t031 = to_mt9t031(client);
502 id->ident = mt9t031->model;
549 struct mt9t031 *mt9t031 = to_mt9t031(client);
566 ctrl->value = mt9t031->autoexposure;
569 ctrl->value = mt9t031->gain;
572 ctrl->value = mt9t031->exposure;
581 struct mt9t031 *mt9t031 = to_mt9t031(client);
640 mt9t031->gain = ctrl->value;
644 /* mt9t031 has maximum == default */
658 mt9t031->exposure = ctrl->value;
659 mt9t031->autoexposure = 0;
666 unsigned int total_h = mt9t031->rect.height +
667 mt9t031->y_skip_top + vblank;
672 mt9t031->exposure = (shutter_max / 2 + (total_h - 1) *
675 mt9t031->autoexposure = 1;
677 mt9t031->autoexposure = 0;
707 struct mt9t031 *mt9t031 = to_mt9t031(client);
712 xbin = min(mt9t031->xskip, (u16)3);
713 ybin = min(mt9t031->yskip, (u16)3);
716 ((xbin - 1) << 4) | (mt9t031->xskip - 1));
721 ((ybin - 1) << 4) | (mt9t031->yskip - 1));
744 struct mt9t031 *mt9t031 = to_mt9t031(client);
758 mt9t031->model = V4L2_IDENT_MT9T031;
775 mt9t031->exposure = 255;
776 mt9t031->gain = 64;
784 struct mt9t031 *mt9t031 = to_mt9t031(client);
786 *lines = mt9t031->y_skip_top;
835 struct mt9t031 *mt9t031;
856 mt9t031 = kzalloc(sizeof(struct mt9t031), GFP_KERNEL);
857 if (!mt9t031)
860 v4l2_i2c_subdev_init(&mt9t031->subdev, client, &mt9t031_subdev_ops);
862 mt9t031->y_skip_top = 0;
863 mt9t031->rect.left = MT9T031_COLUMN_SKIP;
864 mt9t031->rect.top = MT9T031_ROW_SKIP;
865 mt9t031->rect.width = MT9T031_MAX_WIDTH;
866 mt9t031->rect.height = MT9T031_MAX_HEIGHT;
872 mt9t031->autoexposure = 1;
874 mt9t031->xskip = 1;
875 mt9t031->yskip = 1;
886 kfree(mt9t031);
894 struct mt9t031 *mt9t031 = to_mt9t031(client);
900 kfree(mt9t031);
906 { "mt9t031", 0 },
913 .name = "mt9t031",