Lines Matching refs:avg_lum
92 atomic_t avg_lum; member
2092 static void do_autoexposure(struct gspca_dev *gspca_dev, u16 avg_lum) in do_autoexposure() argument
2105 if (avg_lum < MIN_AVG_LUM) { in do_autoexposure()
2124 if (avg_lum > MAX_AVG_LUM) { in do_autoexposure()
2143 static void do_autogain(struct gspca_dev *gspca_dev, u16 avg_lum) in do_autogain() argument
2148 if (avg_lum < MIN_AVG_LUM && cur_gain < sd->gain->maximum) in do_autogain()
2150 if (avg_lum > MAX_AVG_LUM && cur_gain > sd->gain->minimum) in do_autogain()
2157 int avg_lum; in sd_dqcallback() local
2162 avg_lum = atomic_read(&sd->avg_lum); in sd_dqcallback()
2164 do_autogain(gspca_dev, avg_lum); in sd_dqcallback()
2166 do_autoexposure(gspca_dev, avg_lum); in sd_dqcallback()
2256 int avg_lum, is_jpeg; in sd_pkt_scan() local
2263 avg_lum = ((data[35] >> 2) & 3) | in sd_pkt_scan()
2266 avg_lum += ((data[35] >> 4) & 3) | in sd_pkt_scan()
2269 avg_lum += ((data[35] >> 6) & 3) | in sd_pkt_scan()
2272 avg_lum += (data[36] & 3) | in sd_pkt_scan()
2275 avg_lum += ((data[36] >> 2) & 3) | in sd_pkt_scan()
2278 avg_lum += ((data[36] >> 4) & 3) | in sd_pkt_scan()
2281 avg_lum += ((data[36] >> 6) & 3) | in sd_pkt_scan()
2284 avg_lum += ((data[44] >> 4) & 3) | in sd_pkt_scan()
2287 avg_lum >>= 9; in sd_pkt_scan()
2288 atomic_set(&sd->avg_lum, avg_lum); in sd_pkt_scan()