Lines Matching defs:dec
127 struct wis_tw2804 *dec = i2c_get_clientdata(client);
137 dec->channel = *input;
139 "channel %d\n", dec->channel);
140 if (dec->channel == 0 &&
146 if (write_regs(client, channel_registers, dec->channel) < 0) {
148 "TW2804 channel %d\n", dec->channel);
154 if (dec->channel < 0) {
177 write_regs(client, regs, dec->channel);
178 dec->norm = *input;
232 dec->brightness = 255;
234 dec->brightness = 0;
236 dec->brightness = ctrl->value;
237 write_reg(client, 0x12, dec->brightness, dec->channel);
241 dec->contrast = 255;
243 dec->contrast = 0;
245 dec->contrast = ctrl->value;
246 write_reg(client, 0x11, dec->contrast, dec->channel);
250 dec->saturation = 255;
252 dec->saturation = 0;
254 dec->saturation = ctrl->value;
255 write_reg(client, 0x10, dec->saturation, dec->channel);
259 dec->hue = 255;
261 dec->hue = 0;
263 dec->hue = ctrl->value;
264 write_reg(client, 0x0f, dec->hue, dec->channel);
275 ctrl->value = dec->brightness;
278 ctrl->value = dec->contrast;
281 ctrl->value = dec->saturation;
284 ctrl->value = dec->hue;
299 struct wis_tw2804 *dec;
304 dec = kmalloc(sizeof(struct wis_tw2804), GFP_KERNEL);
305 if (dec == NULL)
308 dec->channel = -1;
309 dec->norm = V4L2_STD_NTSC;
310 dec->brightness = 128;
311 dec->contrast = 128;
312 dec->saturation = 128;
313 dec->hue = 128;
314 i2c_set_clientdata(client, dec);
324 struct wis_tw2804 *dec = i2c_get_clientdata(client);
326 kfree(dec);