Lines Matching refs:vi
97 struct vbi_info *vi = &itv->vbi; in ivtv_write_vbi() local
123 if (memcmp(&vps, &vi->vps_payload, sizeof(vps))) { in ivtv_write_vbi()
124 vi->vps_payload = vps; in ivtv_write_vbi()
131 if (vi->wss_payload != wss) { in ivtv_write_vbi()
132 vi->wss_payload = wss; in ivtv_write_vbi()
137 if (found_cc && vi->cc_payload_idx < sizeof(vi->cc_payload)) { in ivtv_write_vbi()
138 vi->cc_payload[vi->cc_payload_idx++] = cc; in ivtv_write_vbi()
431 struct vbi_info *vi = &itv->vbi; in ivtv_vbi_work_handler() local
443 vi->wss_missing_cnt = 0; in ivtv_vbi_work_handler()
444 } else if (vi->wss_missing_cnt == 4) { in ivtv_vbi_work_handler()
447 vi->wss_missing_cnt++; in ivtv_vbi_work_handler()
467 vi->cc_missing_cnt = 0; in ivtv_vbi_work_handler()
469 } else if (vi->cc_missing_cnt == 4) { in ivtv_vbi_work_handler()
472 vi->cc_missing_cnt++; in ivtv_vbi_work_handler()
479 ivtv_set_wss(itv, 1, vi->wss_payload & 0xf); in ivtv_vbi_work_handler()
483 if (vi->cc_payload_idx == 0) { in ivtv_vbi_work_handler()
487 while (vi->cc_payload_idx) { in ivtv_vbi_work_handler()
488 cc = vi->cc_payload[0]; in ivtv_vbi_work_handler()
490 memcpy(vi->cc_payload, vi->cc_payload + 1, in ivtv_vbi_work_handler()
491 sizeof(vi->cc_payload) - sizeof(vi->cc_payload[0])); in ivtv_vbi_work_handler()
492 vi->cc_payload_idx--; in ivtv_vbi_work_handler()
493 if (vi->cc_payload_idx && cc.odd[0] == 0x80 && cc.odd[1] == 0x80) in ivtv_vbi_work_handler()