/linux/drivers/media/usb/gspca/ |
H A D | autogain_functions.c | 16 int avg_lum, in gspca_expo_autogain() argument 33 steps = abs(desired_avg_lum - avg_lum) / deadzone; in gspca_expo_autogain() 36 avg_lum, desired_avg_lum, steps); in gspca_expo_autogain() 39 if (avg_lum > desired_avg_lum) { in gspca_expo_autogain() 98 int avg_lum, in gspca_coarse_grained_expo_autogain() argument 118 steps = (desired_avg_lum - avg_lum) / deadzone; in gspca_coarse_grained_expo_autogain() 121 avg_lum, desired_avg_lum, steps); in gspca_coarse_grained_expo_autogain()
|
H A D | sn9c20x.c | 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() [all …]
|
H A D | pac7311.c | 72 atomic_t avg_lum; member 466 atomic_set(&sd->avg_lum, -1); in sd_start() 492 int avg_lum = atomic_read(&sd->avg_lum); in do_autogain() local 495 if (avg_lum == -1) in do_autogain() 503 else if (gspca_coarse_grained_expo_autogain(gspca_dev, avg_lum, in do_autogain() 598 atomic_set(&sd->avg_lum, data[-lum_offset] + in sd_pkt_scan() 601 atomic_set(&sd->avg_lum, -1); in sd_pkt_scan()
|
H A D | sn9c2028.c | 26 int avg_lum; member 833 sd->avg_lum = -1; in sd_start() 854 static void do_autogain(struct gspca_dev *gspca_dev, int avg_lum) in do_autogain() argument 859 if (avg_lum == -1) in do_autogain() 862 if (avg_lum < MIN_AVG_LUM) { in do_autogain() 868 if (avg_lum > MAX_AVG_LUM) { in do_autogain() 884 do_autogain(gspca_dev, sd->avg_lum); in sd_dqcallback()
|
H A D | pac207.c | 60 atomic_t avg_lum; member 321 atomic_set(&sd->avg_lum, -1); in sd_start() 343 int avg_lum = atomic_read(&sd->avg_lum); in pac207_do_auto_gain() local 345 if (avg_lum == -1) in pac207_do_auto_gain() 350 else if (gspca_coarse_grained_expo_autogain(gspca_dev, avg_lum, in pac207_do_auto_gain() 386 atomic_set(&sd->avg_lum, data[needed - 1]); in sd_pkt_scan()
|
H A D | sonixb.c | 53 atomic_t avg_lum; member 878 int deadzone, desired_avg_lum, avg_lum; in do_autogain() local 880 avg_lum = atomic_read(&sd->avg_lum); in do_autogain() 881 if (avg_lum == -1) in do_autogain() 904 if (gspca_coarse_grained_expo_autogain(gspca_dev, avg_lum, in do_autogain() 909 if (gspca_expo_autogain(gspca_dev, avg_lum, desired_avg_lum, in do_autogain() 1235 atomic_set(&sd->avg_lum, -1); in sd_start() 1367 atomic_set(&sd->avg_lum, lum); in sd_pkt_scan()
|
H A D | pac7302.c | 122 atomic_t avg_lum; member 698 atomic_set(&sd->avg_lum, 270 + sd->brightness->val); in sd_start() 727 int avg_lum = atomic_read(&sd->avg_lum); in do_autogain() local 739 if (gspca_expo_autogain(gspca_dev, avg_lum, desired_lum, in do_autogain() 814 atomic_set(&sd->avg_lum, data[-lum_offset] + in sd_pkt_scan()
|
H A D | gspca.h | 238 int gspca_expo_autogain(struct gspca_dev *gspca_dev, int avg_lum, 241 int avg_lum, int desired_avg_lum, int deadzone);
|
H A D | sn9c2028.h | 34 sd->avg_lum = (m[i] << 8) + sd->avg_lum_l; in sn9c2028_find_sof()
|
H A D | sonixj.c | 25 atomic_t avg_lum; member 2584 delta = atomic_read(&sd->avg_lum); in do_autogain() 2642 int avg_lum; in set_lum() local 2648 avg_lum = (data[27] << 8) + data[28] /* w3 */ in set_lum() 2657 avg_lum >>= 10; in set_lum() 2658 atomic_set(&sd->avg_lum, avg_lum); in set_lum()
|