• Home
  • Raw
  • Download

Lines Matching refs:tv_enc

318 	struct nv17_tv_encoder *tv_enc = to_tv_enc(encoder);  in tv_setup_filter()  local
321 uint32_t (*filters[])[4][7] = {&tv_enc->state.hfilter, in tv_setup_filter()
322 &tv_enc->state.vfilter}; in tv_setup_filter()
324 int32_t overscan = calc_overscan(tv_enc->overscan); in tv_setup_filter()
325 int64_t flicker = (tv_enc->flicker - 50) * (id3 / 100); in tv_setup_filter()
386 state->tv_enc[i] = nv_read_tv_enc(dev, i); in nv17_tv_state_save()
413 nv_write_tv_enc(dev, i, state->tv_enc[i]); in nv17_tv_state_load()
475 struct nv17_tv_encoder *tv_enc = to_tv_enc(encoder); in nv17_tv_update_properties() local
476 struct nv17_tv_state *regs = &tv_enc->state; in nv17_tv_update_properties()
478 int subconnector = tv_enc->select_subconnector ? in nv17_tv_update_properties()
479 tv_enc->select_subconnector : in nv17_tv_update_properties()
480 tv_enc->subconnector; in nv17_tv_update_properties()
488 if (tv_enc->pin_mask & 0x4) in nv17_tv_update_properties()
490 else if (tv_enc->pin_mask & 0x2) in nv17_tv_update_properties()
495 regs->tv_enc[0x7] = 0x10; in nv17_tv_update_properties()
500 regs->tv_enc[0x7] = 0x18; in nv17_tv_update_properties()
505 regs->tv_enc[0x7] = 0x14; in nv17_tv_update_properties()
510 regs->tv_enc[0x7] = 0x18; in nv17_tv_update_properties()
514 regs->tv_enc[0x20] = interpolate(0, tv_norm->tv_enc_mode.tv_enc[0x20], in nv17_tv_update_properties()
515 255, tv_enc->saturation); in nv17_tv_update_properties()
516 regs->tv_enc[0x22] = interpolate(0, tv_norm->tv_enc_mode.tv_enc[0x22], in nv17_tv_update_properties()
517 255, tv_enc->saturation); in nv17_tv_update_properties()
518 regs->tv_enc[0x25] = tv_enc->hue * 255 / 100; in nv17_tv_update_properties()
530 struct nv17_tv_encoder *tv_enc = to_tv_enc(encoder); in nv17_tv_update_rescaler() local
531 struct nv17_tv_state *regs = &tv_enc->state; in nv17_tv_update_rescaler()
533 regs->ptv_208 = 0x40 | (calc_overscan(tv_enc->overscan) << 8); in nv17_tv_update_rescaler()
546 struct nv17_tv_encoder *tv_enc = to_tv_enc(encoder); in nv17_ctv_update_rescaler() local
558 overscan = tv_enc->overscan; in nv17_ctv_update_rescaler()