Lines Matching refs:tv_enc
316 struct nv17_tv_encoder *tv_enc = to_tv_enc(encoder); in tv_setup_filter() local
319 uint32_t (*filters[])[4][7] = {&tv_enc->state.hfilter, in tv_setup_filter()
320 &tv_enc->state.vfilter}; in tv_setup_filter()
322 int32_t overscan = calc_overscan(tv_enc->overscan); in tv_setup_filter()
323 int64_t flicker = (tv_enc->flicker - 50) * (id3 / 100); in tv_setup_filter()
384 state->tv_enc[i] = nv_read_tv_enc(dev, i); in nv17_tv_state_save()
411 nv_write_tv_enc(dev, i, state->tv_enc[i]); in nv17_tv_state_load()
473 struct nv17_tv_encoder *tv_enc = to_tv_enc(encoder); in nv17_tv_update_properties() local
474 struct nv17_tv_state *regs = &tv_enc->state; in nv17_tv_update_properties()
476 int subconnector = tv_enc->select_subconnector ? in nv17_tv_update_properties()
477 tv_enc->select_subconnector : in nv17_tv_update_properties()
478 tv_enc->subconnector; in nv17_tv_update_properties()
486 if (tv_enc->pin_mask & 0x4) in nv17_tv_update_properties()
488 else if (tv_enc->pin_mask & 0x2) in nv17_tv_update_properties()
493 regs->tv_enc[0x7] = 0x10; in nv17_tv_update_properties()
498 regs->tv_enc[0x7] = 0x18; in nv17_tv_update_properties()
503 regs->tv_enc[0x7] = 0x14; in nv17_tv_update_properties()
508 regs->tv_enc[0x7] = 0x18; in nv17_tv_update_properties()
512 regs->tv_enc[0x20] = interpolate(0, tv_norm->tv_enc_mode.tv_enc[0x20], in nv17_tv_update_properties()
513 255, tv_enc->saturation); in nv17_tv_update_properties()
514 regs->tv_enc[0x22] = interpolate(0, tv_norm->tv_enc_mode.tv_enc[0x22], in nv17_tv_update_properties()
515 255, tv_enc->saturation); in nv17_tv_update_properties()
516 regs->tv_enc[0x25] = tv_enc->hue * 255 / 100; in nv17_tv_update_properties()
528 struct nv17_tv_encoder *tv_enc = to_tv_enc(encoder); in nv17_tv_update_rescaler() local
529 struct nv17_tv_state *regs = &tv_enc->state; in nv17_tv_update_rescaler()
531 regs->ptv_208 = 0x40 | (calc_overscan(tv_enc->overscan) << 8); in nv17_tv_update_rescaler()
544 struct nv17_tv_encoder *tv_enc = to_tv_enc(encoder); in nv17_ctv_update_rescaler() local
556 overscan = tv_enc->overscan; in nv17_ctv_update_rescaler()