startexp 1020 drivers/media/usb/gspca/cpia1.c int ret, startexp; startexp 1033 drivers/media/usb/gspca/cpia1.c startexp = (currentexp + ROUND_UP_EXP_FOR_FLICKER) / cj; startexp 1034 drivers/media/usb/gspca/cpia1.c if (startexp < 1) startexp 1035 drivers/media/usb/gspca/cpia1.c startexp = 1; startexp 1036 drivers/media/usb/gspca/cpia1.c startexp = (startexp * cj) - 1; startexp 1038 drivers/media/usb/gspca/cpia1.c while (startexp > MAX_EXP_102) startexp 1039 drivers/media/usb/gspca/cpia1.c startexp -= cj; startexp 1041 drivers/media/usb/gspca/cpia1.c while (startexp > MAX_EXP) startexp 1042 drivers/media/usb/gspca/cpia1.c startexp -= cj; startexp 1043 drivers/media/usb/gspca/cpia1.c sd->params.exposure.coarseExpLo = startexp & 0xff; startexp 1044 drivers/media/usb/gspca/cpia1.c sd->params.exposure.coarseExpHi = startexp >> 8; startexp 1045 drivers/media/usb/gspca/cpia1.c if (currentexp > startexp) { startexp 1046 drivers/media/usb/gspca/cpia1.c if (currentexp > (2 * startexp)) startexp 1047 drivers/media/usb/gspca/cpia1.c currentexp = 2 * startexp; startexp 1049 drivers/media/usb/gspca/cpia1.c COMPGAIN(COMP_RED, currentexp, startexp); startexp 1051 drivers/media/usb/gspca/cpia1.c COMPGAIN(COMP_GREEN1, currentexp, startexp); startexp 1053 drivers/media/usb/gspca/cpia1.c COMPGAIN(COMP_GREEN2, currentexp, startexp); startexp 1055 drivers/media/usb/gspca/cpia1.c COMPGAIN(COMP_BLUE, currentexp, startexp); startexp 1075 drivers/media/usb/gspca/cpia1.c startexp = EXP_FROM_COMP(COMP_RED, startexp 1077 drivers/media/usb/gspca/cpia1.c startexp += EXP_FROM_COMP(COMP_GREEN1, startexp 1079 drivers/media/usb/gspca/cpia1.c startexp += EXP_FROM_COMP(COMP_GREEN2, startexp 1081 drivers/media/usb/gspca/cpia1.c startexp += EXP_FROM_COMP(COMP_BLUE, startexp 1083 drivers/media/usb/gspca/cpia1.c startexp = startexp >> 2; startexp 1084 drivers/media/usb/gspca/cpia1.c while (startexp > MAX_EXP && sd->params.exposure.gain < startexp 1086 drivers/media/usb/gspca/cpia1.c startexp = startexp >> 1; startexp 1089 drivers/media/usb/gspca/cpia1.c if (FIRMWARE_VERSION(1, 2) && startexp > MAX_EXP_102) startexp 1090 drivers/media/usb/gspca/cpia1.c startexp = MAX_EXP_102; startexp 1091 drivers/media/usb/gspca/cpia1.c if (startexp > MAX_EXP) startexp 1092 drivers/media/usb/gspca/cpia1.c startexp = MAX_EXP; startexp 1093 drivers/media/usb/gspca/cpia1.c sd->params.exposure.coarseExpLo = startexp & 0xff; startexp 1094 drivers/media/usb/gspca/cpia1.c sd->params.exposure.coarseExpHi = startexp >> 8;