Lines Matching refs:operand

82 	u8 operand[509];  member
89 u8 operand[509]; member
96 memset(&c->operand[from], 0, to - from + 1); in clear_operands()
269 r->operand[0] == SFE_VENDOR_DE_COMPANYID_0 && in is_register_rc()
270 r->operand[1] == SFE_VENDOR_DE_COMPANYID_1 && in is_register_rc()
271 r->operand[2] == SFE_VENDOR_DE_COMPANYID_2 && in is_register_rc()
272 r->operand[3] == SFE_VENDOR_OPCODE_REGISTER_REMOTE_CONTROL; in is_register_rc()
285 fdtv_handle_rc(fdtv, r->operand[4] << 8 | r->operand[5]); in avc_recv()
313 static int add_pid_filter(struct firedtv *fdtv, u8 *operand) in add_pid_filter() argument
319 operand[pos++] = 0x13; /* flowfunction relay */ in add_pid_filter()
320 operand[pos++] = 0x80; /* dsd_sel_spec_valid_flags -> PID */ in add_pid_filter()
321 operand[pos++] = (fdtv->channel_pid[i] >> 8) & 0x1f; in add_pid_filter()
322 operand[pos++] = fdtv->channel_pid[i] & 0xff; in add_pid_filter()
323 operand[pos++] = 0x00; /* tableID */ in add_pid_filter()
324 operand[pos++] = 0x00; /* filter_length */ in add_pid_filter()
328 operand[0] = n; in add_pid_filter()
344 c->operand[0] = SFE_VENDOR_DE_COMPANYID_0; in avc_tuner_tuneqpsk()
345 c->operand[1] = SFE_VENDOR_DE_COMPANYID_1; in avc_tuner_tuneqpsk()
346 c->operand[2] = SFE_VENDOR_DE_COMPANYID_2; in avc_tuner_tuneqpsk()
348 c->operand[3] = SFE_VENDOR_OPCODE_TUNE_QPSK2; in avc_tuner_tuneqpsk()
350 c->operand[3] = SFE_VENDOR_OPCODE_TUNE_QPSK; in avc_tuner_tuneqpsk()
352 c->operand[4] = (p->frequency >> 24) & 0xff; in avc_tuner_tuneqpsk()
353 c->operand[5] = (p->frequency >> 16) & 0xff; in avc_tuner_tuneqpsk()
354 c->operand[6] = (p->frequency >> 8) & 0xff; in avc_tuner_tuneqpsk()
355 c->operand[7] = p->frequency & 0xff; in avc_tuner_tuneqpsk()
357 c->operand[8] = ((p->symbol_rate / 1000) >> 8) & 0xff; in avc_tuner_tuneqpsk()
358 c->operand[9] = (p->symbol_rate / 1000) & 0xff; in avc_tuner_tuneqpsk()
361 case FEC_1_2: c->operand[10] = 0x1; break; in avc_tuner_tuneqpsk()
362 case FEC_2_3: c->operand[10] = 0x2; break; in avc_tuner_tuneqpsk()
363 case FEC_3_4: c->operand[10] = 0x3; break; in avc_tuner_tuneqpsk()
364 case FEC_5_6: c->operand[10] = 0x4; break; in avc_tuner_tuneqpsk()
365 case FEC_7_8: c->operand[10] = 0x5; break; in avc_tuner_tuneqpsk()
369 default: c->operand[10] = 0x0; in avc_tuner_tuneqpsk()
373 c->operand[11] = 0xff; in avc_tuner_tuneqpsk()
375 c->operand[11] = 0; in avc_tuner_tuneqpsk()
377 c->operand[11] = 1; in avc_tuner_tuneqpsk()
380 c->operand[12] = 0xff; in avc_tuner_tuneqpsk()
382 c->operand[12] = 1; in avc_tuner_tuneqpsk()
384 c->operand[12] = 0; in avc_tuner_tuneqpsk()
389 case QAM_16: c->operand[13] = 0x1; break; in avc_tuner_tuneqpsk()
390 case QPSK: c->operand[13] = 0x2; break; in avc_tuner_tuneqpsk()
391 case PSK_8: c->operand[13] = 0x3; break; in avc_tuner_tuneqpsk()
392 default: c->operand[13] = 0x2; break; in avc_tuner_tuneqpsk()
395 case ROLLOFF_35: c->operand[14] = 0x2; break; in avc_tuner_tuneqpsk()
396 case ROLLOFF_20: c->operand[14] = 0x0; break; in avc_tuner_tuneqpsk()
397 case ROLLOFF_25: c->operand[14] = 0x1; break; in avc_tuner_tuneqpsk()
399 default: c->operand[14] = 0x2; break; in avc_tuner_tuneqpsk()
403 case PILOT_AUTO: c->operand[15] = 0x0; break; in avc_tuner_tuneqpsk()
404 case PILOT_OFF: c->operand[15] = 0x0; break; in avc_tuner_tuneqpsk()
405 case PILOT_ON: c->operand[15] = 0x1; break; in avc_tuner_tuneqpsk()
408 c->operand[13] = 0x1; /* auto modulation */ in avc_tuner_tuneqpsk()
409 c->operand[14] = 0xff; /* disable rolloff */ in avc_tuner_tuneqpsk()
410 c->operand[15] = 0xff; /* disable pilot */ in avc_tuner_tuneqpsk()
425 c->operand[0] = 0; /* source plug */ in avc_tuner_dsd_dvb_c()
426 c->operand[1] = 0xd2; /* subfunction replace */ in avc_tuner_dsd_dvb_c()
427 c->operand[2] = 0x20; /* system id = DVB */ in avc_tuner_dsd_dvb_c()
428 c->operand[3] = 0x00; /* antenna number */ in avc_tuner_dsd_dvb_c()
429 c->operand[4] = 0x11; /* system_specific_multiplex selection_length */ in avc_tuner_dsd_dvb_c()
432 c->operand[5] = 0 << 7 /* reserved */ in avc_tuner_dsd_dvb_c()
442 c->operand[6] = 0 << 7 /* NetworkID */ in avc_tuner_dsd_dvb_c()
445 c->operand[7] = 0x00; in avc_tuner_dsd_dvb_c()
446 c->operand[8] = 0x00; in avc_tuner_dsd_dvb_c()
447 c->operand[9] = 0x00; in avc_tuner_dsd_dvb_c()
448 c->operand[10] = 0x00; in avc_tuner_dsd_dvb_c()
450 c->operand[11] = (((p->frequency / 4000) >> 16) & 0xff) | (2 << 6); in avc_tuner_dsd_dvb_c()
451 c->operand[12] = ((p->frequency / 4000) >> 8) & 0xff; in avc_tuner_dsd_dvb_c()
452 c->operand[13] = (p->frequency / 4000) & 0xff; in avc_tuner_dsd_dvb_c()
453 c->operand[14] = ((p->symbol_rate / 1000) >> 12) & 0xff; in avc_tuner_dsd_dvb_c()
454 c->operand[15] = ((p->symbol_rate / 1000) >> 4) & 0xff; in avc_tuner_dsd_dvb_c()
455 c->operand[16] = ((p->symbol_rate / 1000) << 4) & 0xf0; in avc_tuner_dsd_dvb_c()
456 c->operand[17] = 0x00; in avc_tuner_dsd_dvb_c()
459 case FEC_1_2: c->operand[18] = 0x1; break; in avc_tuner_dsd_dvb_c()
460 case FEC_2_3: c->operand[18] = 0x2; break; in avc_tuner_dsd_dvb_c()
461 case FEC_3_4: c->operand[18] = 0x3; break; in avc_tuner_dsd_dvb_c()
462 case FEC_5_6: c->operand[18] = 0x4; break; in avc_tuner_dsd_dvb_c()
463 case FEC_7_8: c->operand[18] = 0x5; break; in avc_tuner_dsd_dvb_c()
464 case FEC_8_9: c->operand[18] = 0x6; break; in avc_tuner_dsd_dvb_c()
465 case FEC_4_5: c->operand[18] = 0x8; break; in avc_tuner_dsd_dvb_c()
467 default: c->operand[18] = 0x0; in avc_tuner_dsd_dvb_c()
471 case QAM_16: c->operand[19] = 0x08; break; in avc_tuner_dsd_dvb_c()
472 case QAM_32: c->operand[19] = 0x10; break; in avc_tuner_dsd_dvb_c()
473 case QAM_64: c->operand[19] = 0x18; break; in avc_tuner_dsd_dvb_c()
474 case QAM_128: c->operand[19] = 0x20; break; in avc_tuner_dsd_dvb_c()
475 case QAM_256: c->operand[19] = 0x28; break; in avc_tuner_dsd_dvb_c()
477 default: c->operand[19] = 0x00; in avc_tuner_dsd_dvb_c()
480 c->operand[20] = 0x00; in avc_tuner_dsd_dvb_c()
481 c->operand[21] = 0x00; in avc_tuner_dsd_dvb_c()
483 return 22 + add_pid_filter(fdtv, &c->operand[22]); in avc_tuner_dsd_dvb_c()
493 c->operand[0] = 0; /* source plug */ in avc_tuner_dsd_dvb_t()
494 c->operand[1] = 0xd2; /* subfunction replace */ in avc_tuner_dsd_dvb_t()
495 c->operand[2] = 0x20; /* system id = DVB */ in avc_tuner_dsd_dvb_t()
496 c->operand[3] = 0x00; /* antenna number */ in avc_tuner_dsd_dvb_t()
497 c->operand[4] = 0x0c; /* system_specific_multiplex selection_length */ in avc_tuner_dsd_dvb_t()
500 c->operand[5] = in avc_tuner_dsd_dvb_t()
511 c->operand[6] = in avc_tuner_dsd_dvb_t()
517 c->operand[7] = 0x0; in avc_tuner_dsd_dvb_t()
518 c->operand[8] = (p->frequency / 10) >> 24; in avc_tuner_dsd_dvb_t()
519 c->operand[9] = ((p->frequency / 10) >> 16) & 0xff; in avc_tuner_dsd_dvb_t()
520 c->operand[10] = ((p->frequency / 10) >> 8) & 0xff; in avc_tuner_dsd_dvb_t()
521 c->operand[11] = (p->frequency / 10) & 0xff; in avc_tuner_dsd_dvb_t()
524 case 7000000: c->operand[12] = 0x20; break; in avc_tuner_dsd_dvb_t()
528 default: c->operand[12] = 0x00; in avc_tuner_dsd_dvb_t()
532 case QAM_16: c->operand[13] = 1 << 6; break; in avc_tuner_dsd_dvb_t()
533 case QAM_64: c->operand[13] = 2 << 6; break; in avc_tuner_dsd_dvb_t()
535 default: c->operand[13] = 0x00; in avc_tuner_dsd_dvb_t()
539 case HIERARCHY_1: c->operand[13] |= 1 << 3; break; in avc_tuner_dsd_dvb_t()
540 case HIERARCHY_2: c->operand[13] |= 2 << 3; break; in avc_tuner_dsd_dvb_t()
541 case HIERARCHY_4: c->operand[13] |= 3 << 3; break; in avc_tuner_dsd_dvb_t()
548 case FEC_2_3: c->operand[13] |= 1; break; in avc_tuner_dsd_dvb_t()
549 case FEC_3_4: c->operand[13] |= 2; break; in avc_tuner_dsd_dvb_t()
550 case FEC_5_6: c->operand[13] |= 3; break; in avc_tuner_dsd_dvb_t()
551 case FEC_7_8: c->operand[13] |= 4; break; in avc_tuner_dsd_dvb_t()
557 case FEC_2_3: c->operand[14] = 1 << 5; break; in avc_tuner_dsd_dvb_t()
558 case FEC_3_4: c->operand[14] = 2 << 5; break; in avc_tuner_dsd_dvb_t()
559 case FEC_5_6: c->operand[14] = 3 << 5; break; in avc_tuner_dsd_dvb_t()
560 case FEC_7_8: c->operand[14] = 4 << 5; break; in avc_tuner_dsd_dvb_t()
562 default: c->operand[14] = 0x00; break; in avc_tuner_dsd_dvb_t()
566 case GUARD_INTERVAL_1_16: c->operand[14] |= 1 << 3; break; in avc_tuner_dsd_dvb_t()
567 case GUARD_INTERVAL_1_8: c->operand[14] |= 2 << 3; break; in avc_tuner_dsd_dvb_t()
568 case GUARD_INTERVAL_1_4: c->operand[14] |= 3 << 3; break; in avc_tuner_dsd_dvb_t()
575 case TRANSMISSION_MODE_8K: c->operand[14] |= 1 << 1; break; in avc_tuner_dsd_dvb_t()
581 c->operand[15] = 0x00; /* network_ID[0] */ in avc_tuner_dsd_dvb_t()
582 c->operand[16] = 0x00; /* network_ID[1] */ in avc_tuner_dsd_dvb_t()
584 return 17 + add_pid_filter(fdtv, &c->operand[17]); in avc_tuner_dsd_dvb_t()
617 *status = r->operand[2]; in avc_tuner_dsd()
641 c->operand[0] = 0; /* source plug */ in avc_tuner_set_pids()
642 c->operand[1] = 0xd2; /* subfunction replace */ in avc_tuner_set_pids()
643 c->operand[2] = 0x20; /* system id = DVB */ in avc_tuner_set_pids()
644 c->operand[3] = 0x00; /* antenna number */ in avc_tuner_set_pids()
645 c->operand[4] = 0x00; /* system_specific_multiplex selection_length */ in avc_tuner_set_pids()
646 c->operand[5] = pidc; /* Nr_of_dsd_sel_specs */ in avc_tuner_set_pids()
651 c->operand[pos++] = 0x13; /* flowfunction relay */ in avc_tuner_set_pids()
652 c->operand[pos++] = 0x80; /* dsd_sel_spec_valid_flags -> PID */ in avc_tuner_set_pids()
653 c->operand[pos++] = (pid[k] >> 8) & 0x1f; in avc_tuner_set_pids()
654 c->operand[pos++] = pid[k] & 0xff; in avc_tuner_set_pids()
655 c->operand[pos++] = 0x00; /* tableID */ in avc_tuner_set_pids()
656 c->operand[pos++] = 0x00; /* filter_length */ in avc_tuner_set_pids()
686 c->operand[0] = 0; /* source plug */ in avc_tuner_get_ts()
687 c->operand[1] = 0xd2; /* subfunction replace */ in avc_tuner_get_ts()
688 c->operand[2] = 0xff; /* status */ in avc_tuner_get_ts()
689 c->operand[3] = 0x20; /* system id = DVB */ in avc_tuner_get_ts()
690 c->operand[4] = 0x00; /* antenna number */ in avc_tuner_get_ts()
691 c->operand[5] = 0x0; /* system_specific_search_flags */ in avc_tuner_get_ts()
692 c->operand[6] = sl; /* system_specific_multiplex selection_length */ in avc_tuner_get_ts()
725 c->operand[0] = DESCRIPTOR_SUBUNIT_IDENTIFIER; in avc_identify_subunit()
726 c->operand[1] = 0xff; in avc_identify_subunit()
727 c->operand[2] = 0x00; in avc_identify_subunit()
728 c->operand[3] = 0x00; /* length highbyte */ in avc_identify_subunit()
729 c->operand[4] = 0x08; /* length lowbyte */ in avc_identify_subunit()
730 c->operand[5] = 0x00; /* offset highbyte */ in avc_identify_subunit()
731 c->operand[6] = 0x0d; /* offset lowbyte */ in avc_identify_subunit()
741 (r->operand[3] << 8) + r->operand[4] != 8) { in avc_identify_subunit()
765 c->operand[0] = DESCRIPTOR_TUNER_STATUS; in avc_tuner_status()
766 c->operand[1] = 0xff; /* read_result_status */ in avc_tuner_status()
786 length = r->operand[9]; in avc_tuner_status()
787 if (r->operand[1] != 0x10 || length != SIZEOF_ANTENNA_INPUT_INFO) { in avc_tuner_status()
793 stat->active_system = r->operand[10]; in avc_tuner_status()
794 stat->searching = r->operand[11] >> 7 & 1; in avc_tuner_status()
795 stat->moving = r->operand[11] >> 6 & 1; in avc_tuner_status()
796 stat->no_rf = r->operand[11] >> 5 & 1; in avc_tuner_status()
797 stat->input = r->operand[12] >> 7 & 1; in avc_tuner_status()
798 stat->selected_antenna = r->operand[12] & 0x7f; in avc_tuner_status()
799 stat->ber = r->operand[13] << 24 | in avc_tuner_status()
800 r->operand[14] << 16 | in avc_tuner_status()
801 r->operand[15] << 8 | in avc_tuner_status()
802 r->operand[16]; in avc_tuner_status()
803 stat->signal_strength = r->operand[17]; in avc_tuner_status()
804 stat->raster_frequency = r->operand[18] >> 6 & 2; in avc_tuner_status()
805 stat->rf_frequency = (r->operand[18] & 0x3f) << 16 | in avc_tuner_status()
806 r->operand[19] << 8 | in avc_tuner_status()
807 r->operand[20]; in avc_tuner_status()
808 stat->man_dep_info_length = r->operand[21]; in avc_tuner_status()
809 stat->front_end_error = r->operand[22] >> 4 & 1; in avc_tuner_status()
810 stat->antenna_error = r->operand[22] >> 3 & 1; in avc_tuner_status()
811 stat->front_end_power_status = r->operand[22] >> 1 & 1; in avc_tuner_status()
812 stat->power_supply = r->operand[22] & 1; in avc_tuner_status()
813 stat->carrier_noise_ratio = r->operand[23] << 8 | in avc_tuner_status()
814 r->operand[24]; in avc_tuner_status()
815 stat->power_supply_voltage = r->operand[27]; in avc_tuner_status()
816 stat->antenna_voltage = r->operand[28]; in avc_tuner_status()
817 stat->firewire_bus_voltage = r->operand[29]; in avc_tuner_status()
818 stat->ca_mmi = r->operand[30] & 1; in avc_tuner_status()
819 stat->ca_pmt_reply = r->operand[31] >> 7 & 1; in avc_tuner_status()
820 stat->ca_date_time_request = r->operand[31] >> 6 & 1; in avc_tuner_status()
821 stat->ca_application_info = r->operand[31] >> 5 & 1; in avc_tuner_status()
822 stat->ca_module_present_status = r->operand[31] >> 4 & 1; in avc_tuner_status()
823 stat->ca_dvb_flag = r->operand[31] >> 3 & 1; in avc_tuner_status()
824 stat->ca_error_flag = r->operand[31] >> 2 & 1; in avc_tuner_status()
825 stat->ca_initialization_status = r->operand[31] >> 1 & 1; in avc_tuner_status()
846 c->operand[0] = SFE_VENDOR_DE_COMPANYID_0; in avc_lnb_control()
847 c->operand[1] = SFE_VENDOR_DE_COMPANYID_1; in avc_lnb_control()
848 c->operand[2] = SFE_VENDOR_DE_COMPANYID_2; in avc_lnb_control()
849 c->operand[3] = SFE_VENDOR_OPCODE_LNB_CONTROL; in avc_lnb_control()
850 c->operand[4] = voltage; in avc_lnb_control()
851 c->operand[5] = nrdiseq; in avc_lnb_control()
855 c->operand[pos++] = diseqcmd[j].msg_len; in avc_lnb_control()
858 c->operand[pos++] = diseqcmd[j].msg[k]; in avc_lnb_control()
860 c->operand[pos++] = burst; in avc_lnb_control()
861 c->operand[pos++] = conttone; in avc_lnb_control()
890 c->operand[0] = SFE_VENDOR_DE_COMPANYID_0; in avc_register_remote_control()
891 c->operand[1] = SFE_VENDOR_DE_COMPANYID_1; in avc_register_remote_control()
892 c->operand[2] = SFE_VENDOR_DE_COMPANYID_2; in avc_register_remote_control()
893 c->operand[3] = SFE_VENDOR_OPCODE_REGISTER_REMOTE_CONTROL; in avc_register_remote_control()
894 c->operand[4] = 0; /* padding */ in avc_register_remote_control()
927 c->operand[0] = SFE_VENDOR_DE_COMPANYID_0;
928 c->operand[1] = SFE_VENDOR_DE_COMPANYID_1;
929 c->operand[2] = SFE_VENDOR_DE_COMPANYID_2;
930 c->operand[3] = SFE_VENDOR_OPCODE_HOST2CA;
931 c->operand[4] = 0; /* slot */
932 c->operand[5] = SFE_VENDOR_TAG_CA_APPLICATION_INFO; /* ca tag */
951 if (r->operand[7] & 0x80) in get_ca_object_pos()
952 length = (r->operand[7] & 0x7f) + 1; in get_ca_object_pos()
962 if (r->operand[7] & 0x80) in get_ca_object_length()
963 for (i = 0; i < (r->operand[7] & 0x7f); i++) { in get_ca_object_length()
965 size += r->operand[8 + i]; in get_ca_object_length()
968 return r->operand[7]; in get_ca_object_length()
983 c->operand[0] = SFE_VENDOR_DE_COMPANYID_0; in avc_ca_app_info()
984 c->operand[1] = SFE_VENDOR_DE_COMPANYID_1; in avc_ca_app_info()
985 c->operand[2] = SFE_VENDOR_DE_COMPANYID_2; in avc_ca_app_info()
986 c->operand[3] = SFE_VENDOR_OPCODE_CA2HOST; in avc_ca_app_info()
987 c->operand[4] = 0; /* slot */ in avc_ca_app_info()
988 c->operand[5] = SFE_VENDOR_TAG_CA_APPLICATION_INFO; /* ca tag */ in avc_ca_app_info()
1002 app_info[3] = 6 + r->operand[pos + 4]; in avc_ca_app_info()
1004 memcpy(&app_info[5], &r->operand[pos], 5 + r->operand[pos + 4]); in avc_ca_app_info()
1024 c->operand[0] = SFE_VENDOR_DE_COMPANYID_0; in avc_ca_info()
1025 c->operand[1] = SFE_VENDOR_DE_COMPANYID_1; in avc_ca_info()
1026 c->operand[2] = SFE_VENDOR_DE_COMPANYID_2; in avc_ca_info()
1027 c->operand[3] = SFE_VENDOR_OPCODE_CA2HOST; in avc_ca_info()
1028 c->operand[4] = 0; /* slot */ in avc_ca_info()
1029 c->operand[5] = SFE_VENDOR_TAG_CA_APPLICATION_INFO; /* ca tag */ in avc_ca_info()
1045 app_info[4] = r->operand[pos + 0]; in avc_ca_info()
1046 app_info[5] = r->operand[pos + 1]; in avc_ca_info()
1073 c->operand[0] = SFE_VENDOR_DE_COMPANYID_0; in avc_ca_reset()
1074 c->operand[1] = SFE_VENDOR_DE_COMPANYID_1; in avc_ca_reset()
1075 c->operand[2] = SFE_VENDOR_DE_COMPANYID_2; in avc_ca_reset()
1076 c->operand[3] = SFE_VENDOR_OPCODE_HOST2CA; in avc_ca_reset()
1077 c->operand[4] = 0; /* slot */ in avc_ca_reset()
1078 c->operand[5] = SFE_VENDOR_TAG_CA_RESET; /* ca tag */ in avc_ca_reset()
1079 c->operand[6] = 0; /* more/last */ in avc_ca_reset()
1080 c->operand[7] = 1; /* length */ in avc_ca_reset()
1081 c->operand[8] = 0; /* force hardware reset */ in avc_ca_reset()
1126 c->operand[0] = SFE_VENDOR_DE_COMPANYID_0; in avc_ca_pmt()
1127 c->operand[1] = SFE_VENDOR_DE_COMPANYID_1; in avc_ca_pmt()
1128 c->operand[2] = SFE_VENDOR_DE_COMPANYID_2; in avc_ca_pmt()
1129 c->operand[3] = SFE_VENDOR_OPCODE_HOST2CA; in avc_ca_pmt()
1130 c->operand[4] = 0; /* slot */ in avc_ca_pmt()
1131 c->operand[5] = SFE_VENDOR_TAG_CA_PMT; /* ca tag */ in avc_ca_pmt()
1132 c->operand[6] = 0; /* more/last */ in avc_ca_pmt()
1134 c->operand[10] = list_management; in avc_ca_pmt()
1135 c->operand[11] = 0x01; /* pmt_cmd=OK_descramble */ in avc_ca_pmt()
1139 c->operand[12] = 0x02; /* Table id=2 */ in avc_ca_pmt()
1140 c->operand[13] = 0x80; /* Section syntax + length */ in avc_ca_pmt()
1142 c->operand[15] = msg[1]; /* Program number */ in avc_ca_pmt()
1143 c->operand[16] = msg[2]; in avc_ca_pmt()
1144 c->operand[17] = msg[3]; /* Version number and current/next */ in avc_ca_pmt()
1145 c->operand[18] = 0x00; /* Section number=0 */ in avc_ca_pmt()
1146 c->operand[19] = 0x00; /* Last section number=0 */ in avc_ca_pmt()
1147 c->operand[20] = 0x1f; /* PCR_PID=1FFF */ in avc_ca_pmt()
1148 c->operand[21] = 0xff; in avc_ca_pmt()
1149 c->operand[22] = (program_info_length >> 8); /* Program info length */ in avc_ca_pmt()
1150 c->operand[23] = (program_info_length & 0xff); in avc_ca_pmt()
1160 if (program_info_length > sizeof(c->operand) - 4 - write_pos) { in avc_ca_pmt()
1165 memcpy(&c->operand[write_pos], &msg[read_pos], in avc_ca_pmt()
1171 c->operand[write_pos++] = msg[read_pos++]; in avc_ca_pmt()
1172 c->operand[write_pos++] = msg[read_pos++]; in avc_ca_pmt()
1173 c->operand[write_pos++] = msg[read_pos++]; in avc_ca_pmt()
1179 c->operand[write_pos++] = es_info_length >> 8; in avc_ca_pmt()
1180 c->operand[write_pos++] = es_info_length & 0xff; in avc_ca_pmt()
1187 if (es_info_length > sizeof(c->operand) - 4 - in avc_ca_pmt()
1193 memcpy(&c->operand[write_pos], &msg[read_pos], in avc_ca_pmt()
1201 c->operand[7] = 0x82; in avc_ca_pmt()
1202 c->operand[8] = (write_pos - 10) >> 8; in avc_ca_pmt()
1203 c->operand[9] = (write_pos - 10) & 0xff; in avc_ca_pmt()
1204 c->operand[14] = write_pos - 15; in avc_ca_pmt()
1206 crc32_csum = crc32_be(0, &c->operand[10], c->operand[12] - 1); in avc_ca_pmt()
1207 c->operand[write_pos - 4] = (crc32_csum >> 24) & 0xff; in avc_ca_pmt()
1208 c->operand[write_pos - 3] = (crc32_csum >> 16) & 0xff; in avc_ca_pmt()
1209 c->operand[write_pos - 2] = (crc32_csum >> 8) & 0xff; in avc_ca_pmt()
1210 c->operand[write_pos - 1] = (crc32_csum >> 0) & 0xff; in avc_ca_pmt()
1241 c->operand[0] = SFE_VENDOR_DE_COMPANYID_0; in avc_ca_get_time_date()
1242 c->operand[1] = SFE_VENDOR_DE_COMPANYID_1; in avc_ca_get_time_date()
1243 c->operand[2] = SFE_VENDOR_DE_COMPANYID_2; in avc_ca_get_time_date()
1244 c->operand[3] = SFE_VENDOR_OPCODE_CA2HOST; in avc_ca_get_time_date()
1245 c->operand[4] = 0; /* slot */ in avc_ca_get_time_date()
1246 c->operand[5] = SFE_VENDOR_TAG_CA_DATE_TIME; /* ca tag */ in avc_ca_get_time_date()
1256 *interval = r->operand[get_ca_object_pos(r)]; in avc_ca_get_time_date()
1274 c->operand[0] = SFE_VENDOR_DE_COMPANYID_0; in avc_ca_enter_menu()
1275 c->operand[1] = SFE_VENDOR_DE_COMPANYID_1; in avc_ca_enter_menu()
1276 c->operand[2] = SFE_VENDOR_DE_COMPANYID_2; in avc_ca_enter_menu()
1277 c->operand[3] = SFE_VENDOR_OPCODE_HOST2CA; in avc_ca_enter_menu()
1278 c->operand[4] = 0; /* slot */ in avc_ca_enter_menu()
1279 c->operand[5] = SFE_VENDOR_TAG_CA_ENTER_MENU; in avc_ca_enter_menu()
1304 c->operand[0] = SFE_VENDOR_DE_COMPANYID_0; in avc_ca_get_mmi()
1305 c->operand[1] = SFE_VENDOR_DE_COMPANYID_1; in avc_ca_get_mmi()
1306 c->operand[2] = SFE_VENDOR_DE_COMPANYID_2; in avc_ca_get_mmi()
1307 c->operand[3] = SFE_VENDOR_OPCODE_CA2HOST; in avc_ca_get_mmi()
1308 c->operand[4] = 0; /* slot */ in avc_ca_get_mmi()
1309 c->operand[5] = SFE_VENDOR_TAG_CA_MMI; in avc_ca_get_mmi()
1320 memcpy(mmi_object, &r->operand[get_ca_object_pos(r)], *len); in avc_ca_get_mmi()