• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/drivers/media/video/gspca/stv06xx/

Lines Matching refs:hdcs

128 struct hdcs {
175 struct hdcs *hdcs = sd->sensor_priv;
179 if (hdcs->state == state)
183 if (hdcs->state != HDCS_STATE_IDLE) {
189 hdcs->state = HDCS_STATE_IDLE;
211 hdcs->state = state;
218 struct hdcs *hdcs = sd->sensor_priv;
227 hdcs->state = HDCS_STATE_IDLE;
235 struct hdcs *hdcs = sd->sensor_priv;
237 *val = hdcs->exp_cache;
245 struct hdcs *hdcs = sd->sensor_priv;
261 hdcs->exp_cache = val;
265 ct = hdcs->exp.cto + hdcs->psmp + (HDCS_ADC_START_SIG_DUR + 2);
266 cp = hdcs->exp.cto + (hdcs->w * ct / 2);
269 rp = hdcs->exp.rs + cp;
279 srowexp = hdcs->w - (cycles + hdcs->exp.er + 13) / ct;
281 mnct = (hdcs->exp.er + 12 + ct - 1) / ct;
282 max_srowexp = hdcs->w - mnct;
285 srowexp = cp - hdcs->exp.er - 6 - cycles;
287 mnct = (hdcs->exp.er + 5 + ct - 1) / ct;
336 struct hdcs *hdcs = sd->sensor_priv;
340 hdcs->gain_cache = g;
358 struct hdcs *hdcs = sd->sensor_priv;
360 *val = hdcs->gain_cache;
375 struct hdcs *hdcs = sd->sensor_priv;
384 if (width > hdcs->array.width)
385 width = hdcs->array.width;
389 if (height + 2 * hdcs->array.border + HDCS_1020_BOTTOM_Y_SKIP
390 > hdcs->array.height)
391 height = hdcs->array.height - 2 * hdcs->array.border -
394 y = (hdcs->array.height - HDCS_1020_BOTTOM_Y_SKIP - height) / 2
395 + hdcs->array.top;
397 if (height > hdcs->array.height)
398 height = hdcs->array.height;
400 y = hdcs->array.top + (hdcs->array.height - height) / 2;
403 x = hdcs->array.left + (hdcs->array.width - width) / 2;
415 hdcs->w = width;
416 hdcs->h = height;
422 struct hdcs *hdcs;
437 hdcs = kmalloc(sizeof(struct hdcs), GFP_KERNEL);
438 if (!hdcs)
441 hdcs->array.left = 8;
442 hdcs->array.top = 8;
443 hdcs->array.width = HDCS_1X00_DEF_WIDTH;
444 hdcs->array.height = HDCS_1X00_DEF_HEIGHT;
445 hdcs->array.border = 4;
447 hdcs->exp.cto = 4;
448 hdcs->exp.cpo = 2;
449 hdcs->exp.rs = 186;
450 hdcs->exp.er = 100;
472 hdcs->psmp = (sd->bridge == BRIDGE_STV602) ? 20 : 5;
474 sd->sensor_priv = hdcs;
481 struct hdcs *hdcs;
496 hdcs = kmalloc(sizeof(struct hdcs), GFP_KERNEL);
497 if (!hdcs)
505 hdcs->array.left = 24;
506 hdcs->array.top = 4;
507 hdcs->array.width = HDCS_1020_DEF_WIDTH;
508 hdcs->array.height = 304;
509 hdcs->array.border = 4;
511 hdcs->psmp = 6;
513 hdcs->exp.cto = 3;
514 hdcs->exp.cpo = 3;
515 hdcs->exp.rs = 155;
516 hdcs->exp.er = 96;
518 sd->sensor_priv = hdcs;
545 struct hdcs *hdcs = sd->sensor_priv;
580 (HDCS_ADC_START_SIG_DUR << 6) | hdcs->psmp);
583 (HDCS_ADC_START_SIG_DUR << 5) | hdcs->psmp);
591 err = hdcs_set_size(sd, hdcs->array.width, hdcs->array.height);