Lines Matching refs:args
193 u8 args[CX24117_ARGLEN]; member
302 memcpy(&buf[1], cmd->args, cmd->len); in cx24117_writecmd()
641 cmd.args[0] = CMD_DEMODINIT; in cx24117_load_firmware()
642 cmd.args[1] = 0x00; in cx24117_load_firmware()
643 cmd.args[2] = 0x01; in cx24117_load_firmware()
644 cmd.args[3] = 0x00; in cx24117_load_firmware()
651 cmd.args[0] = CMD_SET_VCOFREQ; in cx24117_load_firmware()
652 cmd.args[1] = 0x06; in cx24117_load_firmware()
653 cmd.args[2] = 0x2b; in cx24117_load_firmware()
654 cmd.args[3] = 0xd8; in cx24117_load_firmware()
655 cmd.args[4] = 0xa5; in cx24117_load_firmware()
656 cmd.args[5] = 0xee; in cx24117_load_firmware()
657 cmd.args[6] = 0x03; in cx24117_load_firmware()
658 cmd.args[7] = 0x9d; in cx24117_load_firmware()
659 cmd.args[8] = 0xfc; in cx24117_load_firmware()
660 cmd.args[9] = 0x06; in cx24117_load_firmware()
661 cmd.args[10] = 0x02; in cx24117_load_firmware()
662 cmd.args[11] = 0x9d; in cx24117_load_firmware()
663 cmd.args[12] = 0xfc; in cx24117_load_firmware()
670 cmd.args[0] = CMD_TUNERINIT; in cx24117_load_firmware()
671 cmd.args[1] = 0x00; in cx24117_load_firmware()
672 cmd.args[2] = 0x01; in cx24117_load_firmware()
673 cmd.args[3] = 0x00; in cx24117_load_firmware()
674 cmd.args[4] = 0x00; in cx24117_load_firmware()
675 cmd.args[5] = 0x01; in cx24117_load_firmware()
676 cmd.args[6] = 0x01; in cx24117_load_firmware()
677 cmd.args[7] = 0x01; in cx24117_load_firmware()
678 cmd.args[8] = 0x00; in cx24117_load_firmware()
679 cmd.args[9] = 0x05; in cx24117_load_firmware()
680 cmd.args[10] = 0x02; in cx24117_load_firmware()
681 cmd.args[11] = 0x02; in cx24117_load_firmware()
682 cmd.args[12] = 0x00; in cx24117_load_firmware()
689 cmd.args[0] = CMD_GLOBAL_MPEGCFG; in cx24117_load_firmware()
690 cmd.args[1] = 0x00; in cx24117_load_firmware()
691 cmd.args[2] = 0x00; in cx24117_load_firmware()
692 cmd.args[3] = 0x00; in cx24117_load_firmware()
693 cmd.args[4] = 0x01; in cx24117_load_firmware()
694 cmd.args[5] = 0x00; in cx24117_load_firmware()
702 cmd.args[0] = CMD_MPEGCFG; in cx24117_load_firmware()
703 cmd.args[1] = (u8) i; in cx24117_load_firmware()
704 cmd.args[2] = 0x00; in cx24117_load_firmware()
705 cmd.args[3] = 0x05; in cx24117_load_firmware()
706 cmd.args[4] = 0x00; in cx24117_load_firmware()
707 cmd.args[5] = 0x00; in cx24117_load_firmware()
708 cmd.args[6] = 0x55; in cx24117_load_firmware()
709 cmd.args[7] = 0x00; in cx24117_load_firmware()
721 cmd.args[0] = CMD_FWVERSION; in cx24117_load_firmware()
724 cmd.args[1] = i; in cx24117_load_firmware()
801 cmd.args[0] = CMD_GET_AGCACC; in cx24117_read_signal_strength()
802 cmd.args[1] = (u8) state->demod; in cx24117_read_signal_strength()
921 cmd.args[0] = CMD_SET_GPIOOUT; in cx24117_set_voltage()
922 cmd.args[2] = reg; /* mask */ in cx24117_set_voltage()
928 cmd.args[1] = reg; in cx24117_set_voltage()
941 cmd.args[0] = CMD_LNBDCLEVEL; in cx24117_set_voltage()
942 cmd.args[1] = state->demod ? 0 : 1; in cx24117_set_voltage()
943 cmd.args[2] = (voltage == SEC_VOLTAGE_18 ? 0x01 : 0x00); in cx24117_set_voltage()
951 cmd.args[1] = 0x00; in cx24117_set_voltage()
982 cmd.args[0] = CMD_LNBPCBCONFIG; in cx24117_set_tone()
983 cmd.args[1] = (state->demod ? 0 : 1); in cx24117_set_tone()
984 cmd.args[2] = 0x00; in cx24117_set_tone()
985 cmd.args[3] = 0x00; in cx24117_set_tone()
989 cmd.args[4] = 0x01; in cx24117_set_tone()
992 cmd.args[4] = 0x00; in cx24117_set_tone()
1007 state->dsec_cmd.args[0] = CMD_LNBSEND; in cx24117_diseqc_init()
1010 state->dsec_cmd.args[CX24117_DISEQC_DEMOD] = state->demod ? 0 : 1; in cx24117_diseqc_init()
1013 state->dsec_cmd.args[CX24117_DISEQC_BURST] = CX24117_DISEQC_MINI_A; in cx24117_diseqc_init()
1016 state->dsec_cmd.args[CX24117_DISEQC_ARG3_2] = 0x02; in cx24117_diseqc_init()
1017 state->dsec_cmd.args[CX24117_DISEQC_ARG4_0] = 0x00; in cx24117_diseqc_init()
1020 state->dsec_cmd.args[CX24117_DISEQC_ARG5_0] = 0x00; in cx24117_diseqc_init()
1023 state->dsec_cmd.args[CX24117_DISEQC_MSGLEN] = 0x00; in cx24117_diseqc_init()
1051 state->dsec_cmd.args[CX24117_DISEQC_MSGOFS + i] = d->msg[i]; in cx24117_send_diseqc_msg()
1054 state->dsec_cmd.args[CX24117_DISEQC_MSGLEN] = d->msg_len; in cx24117_send_diseqc_msg()
1058 state->dsec_cmd.args[CX24117_DISEQC_MSGLEN]; in cx24117_send_diseqc_msg()
1079 state->dsec_cmd.args[CX24117_DISEQC_BURST] = in cx24117_send_diseqc_msg()
1084 state->dsec_cmd.args[CX24117_DISEQC_BURST]); in cx24117_send_diseqc_msg()
1108 msleep((state->dsec_cmd.args[CX24117_DISEQC_MSGLEN] << 4) + 60); in cx24117_send_diseqc_msg()
1124 state->dsec_cmd.args[CX24117_DISEQC_BURST] = in cx24117_diseqc_send_burst()
1127 state->dsec_cmd.args[CX24117_DISEQC_BURST] = in cx24117_diseqc_send_burst()
1237 cmd.args[0] = CMD_SET_SLEEPMODE; in cx24117_initfe()
1238 cmd.args[1] = (state->demod ? 1 : 0); in cx24117_initfe()
1239 cmd.args[2] = 0; in cx24117_initfe()
1250 cmd.args[0] = CMD_BERCTRL; in cx24117_initfe()
1251 cmd.args[1] = (state->demod ? 1 : 0); in cx24117_initfe()
1252 cmd.args[2] = 0x10; in cx24117_initfe()
1253 cmd.args[3] = 0x10; in cx24117_initfe()
1260 cmd.args[0] = CMD_ENABLERSCORR; in cx24117_initfe()
1261 cmd.args[1] = (state->demod ? 1 : 0); in cx24117_initfe()
1262 cmd.args[2] = CX24117_OCC; in cx24117_initfe()
1270 cmd.args[0] = CMD_SET_GPIODIR; in cx24117_initfe()
1271 cmd.args[1] = 0x30; in cx24117_initfe()
1272 cmd.args[2] = 0x30; in cx24117_initfe()
1294 cmd.args[0] = CMD_SET_SLEEPMODE; in cx24117_sleep()
1295 cmd.args[1] = (state->demod ? 1 : 0); in cx24117_sleep()
1296 cmd.args[2] = 1; in cx24117_sleep()
1444 cmd.args[0] = CMD_TUNEREQUEST; in cx24117_set_frontend()
1447 cmd.args[1] = state->demod; in cx24117_set_frontend()
1450 cmd.args[2] = (state->dcur.frequency & 0xff0000) >> 16; in cx24117_set_frontend()
1451 cmd.args[3] = (state->dcur.frequency & 0x00ff00) >> 8; in cx24117_set_frontend()
1452 cmd.args[4] = (state->dcur.frequency & 0x0000ff); in cx24117_set_frontend()
1455 cmd.args[5] = ((state->dcur.symbol_rate / 1000) & 0xff00) >> 8; in cx24117_set_frontend()
1456 cmd.args[6] = ((state->dcur.symbol_rate / 1000) & 0x00ff); in cx24117_set_frontend()
1459 cmd.args[7] = state->dcur.inversion_val; in cx24117_set_frontend()
1462 cmd.args[8] = state->dcur.fec_val | state->dcur.pilot_val; in cx24117_set_frontend()
1464 cmd.args[9] = CX24117_SEARCH_RANGE_KHZ >> 8; in cx24117_set_frontend()
1465 cmd.args[10] = CX24117_SEARCH_RANGE_KHZ & 0xff; in cx24117_set_frontend()
1467 cmd.args[11] = state->dcur.rolloff_val; in cx24117_set_frontend()
1468 cmd.args[12] = state->dcur.fec_mask; in cx24117_set_frontend()
1481 cmd.args[13] = reg_ratediv; in cx24117_set_frontend()
1482 cmd.args[14] = reg_clkdiv; in cx24117_set_frontend()
1489 cmd.args[15] = CX24117_PNE; in cx24117_set_frontend()
1533 cmd.args[11]--; in cx24117_set_frontend()
1574 cmd.args[0] = CMD_GETCTLACC; in cx24117_get_frontend()
1575 cmd.args[1] = (u8) state->demod; in cx24117_get_frontend()