/drivers/media/usb/gspca/ |
D | autogain_functions.c | 35 s32 gain, orig_gain, exposure, orig_exposure; in gspca_expo_autogain() local 42 orig_exposure = exposure = v4l2_ctrl_g_ctrl(gspca_dev->exposure); in gspca_expo_autogain() 55 else if (exposure > exposure_knee) in gspca_expo_autogain() 56 exposure--; in gspca_expo_autogain() 59 else if (exposure > gspca_dev->exposure->minimum) in gspca_expo_autogain() 60 exposure--; in gspca_expo_autogain() 68 else if (exposure < exposure_knee) in gspca_expo_autogain() 69 exposure++; in gspca_expo_autogain() 72 else if (exposure < gspca_dev->exposure->maximum) in gspca_expo_autogain() 73 exposure++; in gspca_expo_autogain() [all …]
|
D | cpia1.c | 289 } exposure; member 529 sd->params.exposure.gain = gspca_dev->usb_buf[0]; in do_command() 530 sd->params.exposure.fineExp = gspca_dev->usb_buf[1]; in do_command() 531 sd->params.exposure.coarseExpLo = gspca_dev->usb_buf[2]; in do_command() 532 sd->params.exposure.coarseExpHi = gspca_dev->usb_buf[3]; in do_command() 533 sd->params.exposure.redComp = gspca_dev->usb_buf[4]; in do_command() 534 sd->params.exposure.green1Comp = gspca_dev->usb_buf[5]; in do_command() 535 sd->params.exposure.green2Comp = gspca_dev->usb_buf[6]; in do_command() 536 sd->params.exposure.blueComp = gspca_dev->usb_buf[7]; in do_command() 635 params->exposure.gainMode = 4; in reset_camera_params() [all …]
|
D | mr97310a.c | 89 struct v4l2_ctrl *exposure; member 825 int exposure = MR97310A_EXPOSURE_DEFAULT; in setexposure() local 831 exposure = (expo * 9267) / 10000 + 300; in setexposure() 832 sensor_write1(gspca_dev, 3, exposure >> 4); in setexposure() 833 sensor_write1(gspca_dev, 4, exposure & 0x0f); in setexposure() 835 exposure = expo; in setexposure() 836 exposure >>= 3; in setexposure() 837 sensor_write1(gspca_dev, 3, exposure >> 8); in setexposure() 838 sensor_write1(gspca_dev, 4, exposure & 0xff); in setexposure() 860 exposure = (60 * 511 * expo) / (8000 * clockdiv); in setexposure() [all …]
|
D | sonixb.c | 695 u16 reg = gspca_dev->exposure->val; in setexposure() 707 u8 reg = gspca_dev->exposure->val; in setexposure() 744 reg11 = (15 * gspca_dev->exposure->val + 999) / 1000; in setexposure() 759 reg10 = (gspca_dev->exposure->val * 15 * reg10_max) in setexposure() 804 if (gspca_dev->exposure->val < 200) { in setexposure() 805 i2cpexpo[3] = 255 - (gspca_dev->exposure->val * 255) in setexposure() 812 framerate_ctrl = (gspca_dev->exposure->val - 200) in setexposure() 834 if (gspca_dev->exposure->val < 150) { in setexposure() 835 i2cpexpo[3] = 150 - gspca_dev->exposure->val; in setexposure() 841 framerate_ctrl = (gspca_dev->exposure->val - 150) in setexposure() [all …]
|
D | pac7302.c | 503 u16 exposure; in setexposure() local 510 clockdiv = (90 * gspca_dev->exposure->val + 1999) / 2000; in setexposure() 535 exposure = (gspca_dev->exposure->val * 45 * 448) / (1000 * clockdiv); in setexposure() 537 exposure = 448 - exposure; in setexposure() 541 reg_w(gspca_dev, 0x0e, exposure & 0xff); in setexposure() 542 reg_w(gspca_dev, 0x0f, exposure >> 8); in setexposure() 598 gspca_dev->exposure->val = PAC7302_EXPOSURE_DEFAULT; in sd_s_ctrl() 623 if (gspca_dev->exposure->is_new || (ctrl->is_new && ctrl->val)) in sd_s_ctrl() 676 gspca_dev->exposure = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
|
D | dtcs033.c | 193 struct v4l2_ctrl *exposure; member 217 sd->exposure->val, ctrl->val); in sd_s_ctrl() 235 sd->exposure = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in dtcs033_init_controls() 247 v4l2_ctrl_cluster(2, &sd->exposure); in dtcs033_init_controls()
|
D | sonixj.c | 54 u32 exposure; member 1659 gspca_dev->exposure = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls() 1822 sd->exposure = expo_adjust(gspca_dev, expo); in setbrightness() 1827 sd->exposure = expo_adjust(gspca_dev, expo); in setbrightness() 1831 sd->exposure = expo_adjust(gspca_dev, expo); in setbrightness() 1835 sd->exposure = expo_adjust(gspca_dev, expo); in setbrightness() 1839 sd->exposure = expo_adjust(gspca_dev, expo); in setbrightness() 1843 sd->exposure = expo_adjust(gspca_dev, expo); in setbrightness() 1960 rexpo[3] = gspca_dev->exposure->val >> 8; in setexposure() 1964 rexpo[3] = gspca_dev->exposure->val; in setexposure() [all …]
|
D | topro.c | 3995 setexposure(gspca_dev, gspca_dev->exposure->val, in sd_setgain() 3999 setexposure(gspca_dev, gspca_dev->exposure->val, in sd_setgain() 4250 setexposure(gspca_dev, v4l2_ctrl_g_ctrl(gspca_dev->exposure), in cx0342_6800_start() 4255 setexposure(gspca_dev, v4l2_ctrl_g_ctrl(gspca_dev->exposure), in cx0342_6800_start() 4470 setexposure(gspca_dev, v4l2_ctrl_g_ctrl(gspca_dev->exposure), in soi763a_6800_start() 4475 setexposure(gspca_dev, v4l2_ctrl_g_ctrl(gspca_dev->exposure), in soi763a_6800_start() 4509 setexposure(gspca_dev, v4l2_ctrl_g_ctrl(gspca_dev->exposure), in soi763a_6810_start() 4514 setexposure(gspca_dev, v4l2_ctrl_g_ctrl(gspca_dev->exposure), in soi763a_6810_start() 4546 setexposure(gspca_dev, v4l2_ctrl_g_ctrl(gspca_dev->exposure), in soi763a_6810_start() 4551 setexposure(gspca_dev, v4l2_ctrl_g_ctrl(gspca_dev->exposure), in soi763a_6810_start() [all …]
|
D | pac207.c | 228 gspca_dev->exposure->val = PAC207_EXPOSURE_DEFAULT; in sd_s_ctrl() 241 if (gspca_dev->exposure->is_new || (ctrl->is_new && ctrl->val)) in sd_s_ctrl() 243 gspca_dev->exposure->val); in sd_s_ctrl() 273 gspca_dev->exposure = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls() 313 v4l2_ctrl_g_ctrl(gspca_dev->exposure)); /* PXCK = 12MHz /n */ in sd_start()
|
D | pac7311.c | 382 gspca_dev->exposure->val = PAC7311_EXPOSURE_DEFAULT; in sd_s_ctrl() 395 if (gspca_dev->exposure->is_new || (ctrl->is_new && ctrl->val)) in sd_s_ctrl() 396 setexposure(gspca_dev, gspca_dev->exposure->val); in sd_s_ctrl() 426 gspca_dev->exposure = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls() 455 setexposure(gspca_dev, v4l2_ctrl_g_ctrl(gspca_dev->exposure)); in sd_start()
|
D | nw80x.c | 1987 if (gspca_dev->exposure->is_new) in sd_s_ctrl() 1989 gspca_dev->exposure->val); in sd_s_ctrl() 1995 setexposure(gspca_dev, gspca_dev->exposure->val); in sd_s_ctrl() 2020 gspca_dev->exposure = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls() 2032 gspca_dev->exposure = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
|
D | ov534.c | 76 struct v4l2_ctrl *exposure; member 1084 if (ctrl->val == V4L2_EXPOSURE_AUTO && sd->exposure && in ov534_g_volatile_ctrl() 1086 sd->exposure->val = getexposure(gspca_dev); in ov534_g_volatile_ctrl() 1127 sd->exposure) in ov534_s_ctrl() 1128 setexposure(gspca_dev, sd->exposure->val); in ov534_s_ctrl() 1225 sd->exposure = v4l2_ctrl_new_std(hdl, &ov534_ctrl_ops, in sd_init_controls() 1364 setexposure(gspca_dev, v4l2_ctrl_g_ctrl(sd->exposure)); in sd_start()
|
D | ov534_9.c | 1318 static void setexposure(struct gspca_dev *gspca_dev, s32 exposure) in setexposure() argument 1323 sccb_write(gspca_dev, 0x10, expo[exposure]); /* aec[9:2] */ in setexposure() 1740 if (!ctrl->val && gspca_dev->exposure->is_new) in sd_s_ctrl() 1741 setexposure(gspca_dev, gspca_dev->exposure->val); in sd_s_ctrl() 1777 gspca_dev->exposure = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
|
D | sn9c20x.c | 89 struct v4l2_ctrl *exposure; member 1699 set_exposure(gspca_dev, sd->exposure->val); in sd_s_ctrl() 1749 sd->exposure = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls() 2040 if (sd->exposure) in sd_start() 2041 set_exposure(gspca_dev, v4l2_ctrl_g_ctrl(sd->exposure)); in sd_start() 2078 s32 cur_exp = v4l2_ctrl_g_ctrl(sd->exposure); in do_autoexposure() 2079 s32 max = sd->exposure->maximum - sd->exposure_step; in do_autoexposure() 2080 s32 min = sd->exposure->minimum + sd->exposure_step; in do_autoexposure() 2097 v4l2_ctrl_s_ctrl(sd->exposure, new_exp); in do_autoexposure() 2115 v4l2_ctrl_s_ctrl(sd->exposure, new_exp); in do_autoexposure()
|
D | vicam.c | 118 s32 expo = v4l2_ctrl_g_ctrl(gspca_dev->exposure); in vicam_read_frame() 307 gspca_dev->exposure = v4l2_ctrl_new_std(hdl, NULL, in sd_init_controls()
|
D | sq930x.c | 40 struct v4l2_ctrl *exposure; member 1046 setexposure(gspca_dev, v4l2_ctrl_g_ctrl(sd->exposure), in sd_dq_callback() 1101 sd->exposure = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls() 1110 v4l2_ctrl_cluster(2, &sd->exposure); in sd_init_controls()
|
D | se401.c | 59 struct v4l2_ctrl *exposure; member 666 sd->exposure = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls() 676 v4l2_ctrl_cluster(2, &sd->exposure); in sd_init_controls()
|
/drivers/media/i2c/ |
D | ov9650.c | 206 struct v4l2_ctrl *exposure; member 566 struct v4l2_ctrl *ctrl = ov965x->ctrls.exposure; in ov965x_update_exposure_ctrl() 782 if (!auto_exposure && ctrls->exposure->is_new) { in ov965x_set_exposure() 783 unsigned int exposure = (ctrls->exposure->val * 100) in ov965x_set_exposure() local 789 ret = ov965x_write(client, REG_COM1, exposure & 0x3); in ov965x_set_exposure() 792 (exposure >> 2) & 0xff); in ov965x_set_exposure() 795 (exposure >> 10) & 0x3f); in ov965x_set_exposure() 797 ctrls->exposure->val = ((exposure * ov965x->exp_row_interval) in ov965x_set_exposure() 861 unsigned int exposure, gain, m; in __g_volatile_ctrl() local 893 exposure = ((reg2 & 0x3f) << 10) | (reg1 << 2) | in __g_volatile_ctrl() [all …]
|
D | mt9v011.c | 62 u16 global_gain, exposure; member 180 u16 exposure; in set_balance() local 183 exposure = core->exposure; in set_balance() 199 mt9v011_write(sd, R09_MT9V011_SHUTTER_WIDTH, exposure); in set_balance() 436 core->exposure = ctrl->val; in mt9v011_s_ctrl() 557 core->exposure = 0x01fc; in mt9v011_probe()
|
/drivers/media/i2c/m5mols/ |
D | m5mols_controls.c | 241 static int m5mols_set_exposure(struct m5mols_info *info, int exposure) in m5mols_set_exposure() argument 246 if (exposure == V4L2_EXPOSURE_AUTO) { in m5mols_set_exposure() 263 if (exposure == V4L2_EXPOSURE_MANUAL) { in m5mols_set_exposure() 267 info->exposure->val); in m5mols_set_exposure() 270 info->exposure->val); in m5mols_set_exposure() 273 __func__, info->exposure->val); in m5mols_set_exposure() 564 info->exposure = v4l2_ctrl_new_std(&info->handle, in m5mols_init_controls()
|
/drivers/media/usb/pwc/ |
D | pwc-v4l.c | 271 pdev->exposure = v4l2_ctrl_new_std(hdl, &pwc_ctrl_ops, in pwc_init_controls() 283 pdev->exposure = v4l2_ctrl_new_std(hdl, &pwc_ctrl_ops, in pwc_init_controls() 288 pdev->autogain_expo_cluster[2] = pdev->exposure; in pwc_init_controls() 577 pdev->exposure->val = pdev->last_exposure; in pwc_g_volatile_ctrl() 582 &pdev->exposure->val); in pwc_g_volatile_ctrl() 585 pdev->last_exposure = pdev->exposure->val; in pwc_g_volatile_ctrl() 692 if (pdev->exposure->is_new) { in pwc_set_exposure_auto() 695 pdev->exposure->val); in pwc_set_exposure_auto() 731 if (pdev->exposure->is_new) { in pwc_set_autogain_expo() 734 pdev->exposure->val); in pwc_set_autogain_expo()
|
/drivers/media/i2c/soc_camera/ |
D | mt9m001.c | 94 struct v4l2_ctrl *exposure; member 393 min = mt9m001->exposure->minimum; in mt9m001_g_volatile_ctrl() 394 max = mt9m001->exposure->maximum; in mt9m001_g_volatile_ctrl() 395 mt9m001->exposure->val = in mt9m001_g_volatile_ctrl() 408 struct v4l2_ctrl *exp = mt9m001->exposure; in mt9m001_s_ctrl() 687 mt9m001->exposure = v4l2_ctrl_new_std(&mt9m001->hdl, &mt9m001_ctrl_ops, in mt9m001_probe()
|
D | mt9t031.c | 76 struct v4l2_ctrl *exposure; member 451 min = mt9t031->exposure->minimum; in mt9t031_g_volatile_ctrl() 452 max = mt9t031->exposure->maximum; in mt9t031_g_volatile_ctrl() 453 mt9t031->exposure->val = in mt9t031_g_volatile_ctrl() 467 struct v4l2_ctrl *exp = mt9t031->exposure; in mt9t031_s_ctrl() 793 mt9t031->exposure = v4l2_ctrl_new_std(&mt9t031->hdl, &mt9t031_ctrl_ops, in mt9t031_probe()
|
/drivers/media/usb/gspca/stv06xx/ |
D | stv06xx_pb0100.c | 55 struct v4l2_ctrl *exposure; member 106 err = pb0100_set_exposure(gspca_dev, ctrls->exposure->val); in pb0100_s_ctrl() 149 ctrls->exposure = v4l2_ctrl_new_std(hdl, &pb0100_ctrl_ops, in pb0100_init_controls()
|
/drivers/media/platform/exynos4-is/ |
D | fimc-isp.h | 93 struct v4l2_ctrl *exposure; member
|