Lines Matching refs:cmd

514 static int cx24116_cmd_execute(struct dvb_frontend *fe, struct cx24116_cmd *cmd)  in cx24116_cmd_execute()  argument
530 for (i = 0; i < cmd->len ; i++) { in cx24116_cmd_execute()
531 dprintk("%s: 0x%02x == 0x%02x\n", __func__, i, cmd->args[i]); in cx24116_cmd_execute()
532 cx24116_writereg(state, i, cmd->args[i]); in cx24116_cmd_execute()
554 struct cx24116_cmd cmd; in cx24116_load_firmware() local
613 cmd.args[0x00] = CMD_SET_VCO; in cx24116_load_firmware()
614 cmd.args[0x01] = 0x05; in cx24116_load_firmware()
615 cmd.args[0x02] = 0xdc; in cx24116_load_firmware()
616 cmd.args[0x03] = 0xda; in cx24116_load_firmware()
617 cmd.args[0x04] = 0xae; in cx24116_load_firmware()
618 cmd.args[0x05] = 0xaa; in cx24116_load_firmware()
619 cmd.args[0x06] = 0x04; in cx24116_load_firmware()
620 cmd.args[0x07] = 0x9d; in cx24116_load_firmware()
621 cmd.args[0x08] = 0xfc; in cx24116_load_firmware()
622 cmd.args[0x09] = 0x06; in cx24116_load_firmware()
623 cmd.len = 0x0a; in cx24116_load_firmware()
624 ret = cx24116_cmd_execute(fe, &cmd); in cx24116_load_firmware()
631 cmd.args[0x00] = CMD_TUNERINIT; in cx24116_load_firmware()
632 cmd.args[0x01] = 0x00; in cx24116_load_firmware()
633 cmd.args[0x02] = 0x00; in cx24116_load_firmware()
634 cmd.len = 0x03; in cx24116_load_firmware()
635 ret = cx24116_cmd_execute(fe, &cmd); in cx24116_load_firmware()
642 cmd.args[0x00] = CMD_MPEGCONFIG; in cx24116_load_firmware()
643 cmd.args[0x01] = 0x01; in cx24116_load_firmware()
644 cmd.args[0x02] = 0x75; in cx24116_load_firmware()
645 cmd.args[0x03] = 0x00; in cx24116_load_firmware()
647 cmd.args[0x04] = state->config->mpg_clk_pos_pol; in cx24116_load_firmware()
649 cmd.args[0x04] = 0x02; in cx24116_load_firmware()
650 cmd.args[0x05] = 0x00; in cx24116_load_firmware()
651 cmd.len = 0x06; in cx24116_load_firmware()
652 ret = cx24116_cmd_execute(fe, &cmd); in cx24116_load_firmware()
657 cmd.args[0x00] = CMD_UPDFWVERS; in cx24116_load_firmware()
658 cmd.len = 0x02; in cx24116_load_firmware()
660 cmd.args[0x01] = i; in cx24116_load_firmware()
661 ret = cx24116_cmd_execute(fe, &cmd); in cx24116_load_firmware()
714 struct cx24116_cmd cmd; in cx24116_read_signal_strength() local
721 cmd.args[0x00] = CMD_GETAGC; in cx24116_read_signal_strength()
722 cmd.len = 0x01; in cx24116_read_signal_strength()
723 ret = cx24116_cmd_execute(fe, &cmd); in cx24116_read_signal_strength()
835 struct cx24116_cmd cmd; in cx24116_set_voltage() local
850 cmd.args[0x00] = CMD_LNBDCLEVEL; in cx24116_set_voltage()
851 cmd.args[0x01] = (voltage == SEC_VOLTAGE_18 ? 0x01 : 0x00); in cx24116_set_voltage()
852 cmd.len = 0x02; in cx24116_set_voltage()
857 return cx24116_cmd_execute(fe, &cmd); in cx24116_set_voltage()
863 struct cx24116_cmd cmd; in cx24116_set_tone() local
881 cmd.args[0x00] = CMD_SET_TONE; in cx24116_set_tone()
882 cmd.args[0x01] = 0x00; in cx24116_set_tone()
883 cmd.args[0x02] = 0x00; in cx24116_set_tone()
888 cmd.args[0x03] = 0x01; in cx24116_set_tone()
892 cmd.args[0x03] = 0x00; in cx24116_set_tone()
895 cmd.len = 0x04; in cx24116_set_tone()
900 return cx24116_cmd_execute(fe, &cmd); in cx24116_set_tone()
907 struct cx24116_cmd cmd; in cx24116_diseqc_init() local
911 cmd.args[0x00] = CMD_LNBCONFIG; in cx24116_diseqc_init()
912 cmd.args[0x01] = 0x00; in cx24116_diseqc_init()
913 cmd.args[0x02] = 0x10; in cx24116_diseqc_init()
914 cmd.args[0x03] = 0x00; in cx24116_diseqc_init()
915 cmd.args[0x04] = 0x8f; in cx24116_diseqc_init()
916 cmd.args[0x05] = 0x28; in cx24116_diseqc_init()
917 cmd.args[0x06] = (toneburst == CX24116_DISEQC_TONEOFF) ? 0x00 : 0x01; in cx24116_diseqc_init()
918 cmd.args[0x07] = 0x01; in cx24116_diseqc_init()
919 cmd.len = 0x08; in cx24116_diseqc_init()
920 ret = cx24116_cmd_execute(fe, &cmd); in cx24116_diseqc_init()
1146 struct cx24116_cmd cmd; in cx24116_initfe() local
1157 cmd.args[0x00] = CMD_TUNERSLEEP; in cx24116_initfe()
1158 cmd.args[0x01] = 0; in cx24116_initfe()
1159 cmd.len = 0x02; in cx24116_initfe()
1160 ret = cx24116_cmd_execute(fe, &cmd); in cx24116_initfe()
1178 struct cx24116_cmd cmd; in cx24116_sleep() local
1184 cmd.args[0x00] = CMD_TUNERSLEEP; in cx24116_sleep()
1185 cmd.args[0x01] = 1; in cx24116_sleep()
1186 cmd.len = 0x02; in cx24116_sleep()
1187 ret = cx24116_cmd_execute(fe, &cmd); in cx24116_sleep()
1206 struct cx24116_cmd cmd; in cx24116_set_frontend() local
1330 cmd.args[0x00] = CMD_BANDWIDTH; in cx24116_set_frontend()
1331 cmd.args[0x01] = 0x01; in cx24116_set_frontend()
1332 cmd.len = 0x02; in cx24116_set_frontend()
1333 ret = cx24116_cmd_execute(fe, &cmd); in cx24116_set_frontend()
1338 cmd.args[0x00] = CMD_TUNEREQUEST; in cx24116_set_frontend()
1341 cmd.args[0x01] = (state->dcur.frequency & 0xff0000) >> 16; in cx24116_set_frontend()
1342 cmd.args[0x02] = (state->dcur.frequency & 0x00ff00) >> 8; in cx24116_set_frontend()
1343 cmd.args[0x03] = (state->dcur.frequency & 0x0000ff); in cx24116_set_frontend()
1346 cmd.args[0x04] = ((state->dcur.symbol_rate / 1000) & 0xff00) >> 8; in cx24116_set_frontend()
1347 cmd.args[0x05] = ((state->dcur.symbol_rate / 1000) & 0x00ff); in cx24116_set_frontend()
1350 cmd.args[0x06] = state->dcur.inversion_val; in cx24116_set_frontend()
1353 cmd.args[0x07] = state->dcur.fec_val | state->dcur.pilot_val; in cx24116_set_frontend()
1355 cmd.args[0x08] = CX24116_SEARCH_RANGE_KHZ >> 8; in cx24116_set_frontend()
1356 cmd.args[0x09] = CX24116_SEARCH_RANGE_KHZ & 0xff; in cx24116_set_frontend()
1357 cmd.args[0x0a] = 0x00; in cx24116_set_frontend()
1358 cmd.args[0x0b] = 0x00; in cx24116_set_frontend()
1359 cmd.args[0x0c] = state->dcur.rolloff_val; in cx24116_set_frontend()
1360 cmd.args[0x0d] = state->dcur.fec_mask; in cx24116_set_frontend()
1363 cmd.args[0x0e] = 0x04; in cx24116_set_frontend()
1364 cmd.args[0x0f] = 0x00; in cx24116_set_frontend()
1365 cmd.args[0x10] = 0x01; in cx24116_set_frontend()
1366 cmd.args[0x11] = 0x77; in cx24116_set_frontend()
1367 cmd.args[0x12] = 0x36; in cx24116_set_frontend()
1371 cmd.args[0x0e] = 0x06; in cx24116_set_frontend()
1372 cmd.args[0x0f] = 0x00; in cx24116_set_frontend()
1373 cmd.args[0x10] = 0x00; in cx24116_set_frontend()
1374 cmd.args[0x11] = 0xFA; in cx24116_set_frontend()
1375 cmd.args[0x12] = 0x24; in cx24116_set_frontend()
1380 cmd.len = 0x13; in cx24116_set_frontend()
1393 ret = cx24116_cmd_execute(fe, &cmd); in cx24116_set_frontend()
1417 cmd.args[0x07] ^= CX24116_PILOT_ON; in cx24116_set_frontend()
1421 cmd.args[0x00] = CMD_BANDWIDTH; in cx24116_set_frontend()
1422 cmd.args[0x01] = 0x00; in cx24116_set_frontend()
1423 cmd.len = 0x02; in cx24116_set_frontend()
1424 return cx24116_cmd_execute(fe, &cmd); in cx24116_set_frontend()