Lines Matching refs:tv_enc
318 struct nv17_tv_encoder *tv_enc = to_tv_enc(encoder);
321 uint32_t (*filters[])[4][7] = {&tv_enc->state.hfilter,
322 &tv_enc->state.vfilter};
324 int32_t overscan = calc_overscan(tv_enc->overscan);
325 int64_t flicker = (tv_enc->flicker - 50) * (id3 / 100);
379 state->tv_enc[i] = nv_read_tv_enc(dev, i);
406 nv_write_tv_enc(dev, i, state->tv_enc[i]);
468 struct nv17_tv_encoder *tv_enc = to_tv_enc(encoder);
469 struct nv17_tv_state *regs = &tv_enc->state;
471 int subconnector = tv_enc->select_subconnector ?
472 tv_enc->select_subconnector :
473 tv_enc->subconnector;
481 if (tv_enc->pin_mask & 0x4)
483 else if (tv_enc->pin_mask & 0x2)
488 regs->tv_enc[0x7] = 0x10;
493 regs->tv_enc[0x7] = 0x18;
498 regs->tv_enc[0x7] = 0x14;
503 regs->tv_enc[0x7] = 0x18;
507 regs->tv_enc[0x20] = interpolate(0, tv_norm->tv_enc_mode.tv_enc[0x20], 255,
508 tv_enc->saturation);
509 regs->tv_enc[0x22] = interpolate(0, tv_norm->tv_enc_mode.tv_enc[0x22], 255,
510 tv_enc->saturation);
511 regs->tv_enc[0x25] = tv_enc->hue * 255 / 100;
523 struct nv17_tv_encoder *tv_enc = to_tv_enc(encoder);
524 struct nv17_tv_state *regs = &tv_enc->state;
526 regs->ptv_208 = 0x40 | (calc_overscan(tv_enc->overscan) << 8);
540 struct nv17_tv_encoder *tv_enc = to_tv_enc(encoder);
551 overscan = tv_enc->overscan;