Searched refs:avg_lum (Results 1 – 8 of 8) sorted by relevance
/drivers/media/usb/gspca/ |
D | autogain_functions.c | 29 int avg_lum, in gspca_expo_autogain() argument 46 steps = abs(desired_avg_lum - avg_lum) / deadzone; in gspca_expo_autogain() 49 avg_lum, desired_avg_lum, steps); in gspca_expo_autogain() 52 if (avg_lum > desired_avg_lum) { in gspca_expo_autogain() 111 int avg_lum, in gspca_coarse_grained_expo_autogain() argument 131 steps = (desired_avg_lum - avg_lum) / deadzone; in gspca_coarse_grained_expo_autogain() 134 avg_lum, desired_avg_lum, steps); in gspca_coarse_grained_expo_autogain()
|
D | sn9c20x.c | 104 atomic_t avg_lum; member 2081 static void do_autoexposure(struct gspca_dev *gspca_dev, u16 avg_lum) in do_autoexposure() argument 2094 if (avg_lum < MIN_AVG_LUM) { in do_autoexposure() 2113 if (avg_lum > MAX_AVG_LUM) { in do_autoexposure() 2132 static void do_autogain(struct gspca_dev *gspca_dev, u16 avg_lum) in do_autogain() argument 2137 if (avg_lum < MIN_AVG_LUM && cur_gain < sd->gain->maximum) in do_autogain() 2139 if (avg_lum > MAX_AVG_LUM && cur_gain > sd->gain->minimum) in do_autogain() 2146 int avg_lum; in sd_dqcallback() local 2151 avg_lum = atomic_read(&sd->avg_lum); in sd_dqcallback() 2153 do_autogain(gspca_dev, avg_lum); in sd_dqcallback() [all …]
|
D | pac7311.c | 85 atomic_t avg_lum; member 479 atomic_set(&sd->avg_lum, -1); in sd_start() 505 int avg_lum = atomic_read(&sd->avg_lum); in do_autogain() local 508 if (avg_lum == -1) in do_autogain() 516 else if (gspca_coarse_grained_expo_autogain(gspca_dev, avg_lum, in do_autogain() 611 atomic_set(&sd->avg_lum, data[-lum_offset] + in sd_pkt_scan() 614 atomic_set(&sd->avg_lum, -1); in sd_pkt_scan()
|
D | pac207.c | 74 atomic_t avg_lum; member 335 atomic_set(&sd->avg_lum, -1); in sd_start() 357 int avg_lum = atomic_read(&sd->avg_lum); in pac207_do_auto_gain() local 359 if (avg_lum == -1) in pac207_do_auto_gain() 364 else if (gspca_coarse_grained_expo_autogain(gspca_dev, avg_lum, in pac207_do_auto_gain() 400 atomic_set(&sd->avg_lum, data[needed - 1]); in sd_pkt_scan()
|
D | sonixb.c | 66 atomic_t avg_lum; member 886 int deadzone, desired_avg_lum, avg_lum; in do_autogain() local 888 avg_lum = atomic_read(&sd->avg_lum); in do_autogain() 889 if (avg_lum == -1) in do_autogain() 912 if (gspca_coarse_grained_expo_autogain(gspca_dev, avg_lum, in do_autogain() 917 if (gspca_expo_autogain(gspca_dev, avg_lum, desired_avg_lum, in do_autogain() 1243 atomic_set(&sd->avg_lum, -1); in sd_start() 1375 atomic_set(&sd->avg_lum, lum); in sd_pkt_scan()
|
D | pac7302.c | 136 atomic_t avg_lum; member 712 atomic_set(&sd->avg_lum, 270 + sd->brightness->val); in sd_start() 741 int avg_lum = atomic_read(&sd->avg_lum); in do_autogain() local 753 if (gspca_expo_autogain(gspca_dev, avg_lum, desired_lum, in do_autogain() 829 atomic_set(&sd->avg_lum, data[-lum_offset] + in sd_pkt_scan()
|
D | gspca.h | 235 int gspca_expo_autogain(struct gspca_dev *gspca_dev, int avg_lum, 238 int avg_lum, int desired_avg_lum, int deadzone);
|
D | sonixj.c | 38 atomic_t avg_lum; member 2595 delta = atomic_read(&sd->avg_lum); in do_autogain() 2653 int avg_lum; in set_lum() local 2659 avg_lum = (data[27] << 8) + data[28] /* w3 */ in set_lum() 2668 avg_lum >>= 10; in set_lum() 2669 atomic_set(&sd->avg_lum, avg_lum); in set_lum()
|