Lines Matching refs:cmd
528 static int cx24116_cmd_execute(struct dvb_frontend *fe, struct cx24116_cmd *cmd) in cx24116_cmd_execute() argument
544 for (i = 0; i < cmd->len ; i++) { in cx24116_cmd_execute()
545 dprintk("%s: 0x%02x == 0x%02x\n", __func__, i, cmd->args[i]); in cx24116_cmd_execute()
546 cx24116_writereg(state, i, cmd->args[i]); in cx24116_cmd_execute()
568 struct cx24116_cmd cmd; in cx24116_load_firmware() local
627 cmd.args[0x00] = CMD_SET_VCO; in cx24116_load_firmware()
628 cmd.args[0x01] = 0x05; in cx24116_load_firmware()
629 cmd.args[0x02] = 0xdc; in cx24116_load_firmware()
630 cmd.args[0x03] = 0xda; in cx24116_load_firmware()
631 cmd.args[0x04] = 0xae; in cx24116_load_firmware()
632 cmd.args[0x05] = 0xaa; in cx24116_load_firmware()
633 cmd.args[0x06] = 0x04; in cx24116_load_firmware()
634 cmd.args[0x07] = 0x9d; in cx24116_load_firmware()
635 cmd.args[0x08] = 0xfc; in cx24116_load_firmware()
636 cmd.args[0x09] = 0x06; in cx24116_load_firmware()
637 cmd.len = 0x0a; in cx24116_load_firmware()
638 ret = cx24116_cmd_execute(fe, &cmd); in cx24116_load_firmware()
645 cmd.args[0x00] = CMD_TUNERINIT; in cx24116_load_firmware()
646 cmd.args[0x01] = 0x00; in cx24116_load_firmware()
647 cmd.args[0x02] = 0x00; in cx24116_load_firmware()
648 cmd.len = 0x03; in cx24116_load_firmware()
649 ret = cx24116_cmd_execute(fe, &cmd); in cx24116_load_firmware()
656 cmd.args[0x00] = CMD_MPEGCONFIG; in cx24116_load_firmware()
657 cmd.args[0x01] = 0x01; in cx24116_load_firmware()
658 cmd.args[0x02] = 0x75; in cx24116_load_firmware()
659 cmd.args[0x03] = 0x00; in cx24116_load_firmware()
661 cmd.args[0x04] = state->config->mpg_clk_pos_pol; in cx24116_load_firmware()
663 cmd.args[0x04] = 0x02; in cx24116_load_firmware()
664 cmd.args[0x05] = 0x00; in cx24116_load_firmware()
665 cmd.len = 0x06; in cx24116_load_firmware()
666 ret = cx24116_cmd_execute(fe, &cmd); in cx24116_load_firmware()
671 cmd.args[0x00] = CMD_UPDFWVERS; in cx24116_load_firmware()
672 cmd.len = 0x02; in cx24116_load_firmware()
674 cmd.args[0x01] = i; in cx24116_load_firmware()
675 ret = cx24116_cmd_execute(fe, &cmd); in cx24116_load_firmware()
728 struct cx24116_cmd cmd; in cx24116_read_signal_strength() local
735 cmd.args[0x00] = CMD_GETAGC; in cx24116_read_signal_strength()
736 cmd.len = 0x01; in cx24116_read_signal_strength()
737 ret = cx24116_cmd_execute(fe, &cmd); in cx24116_read_signal_strength()
849 struct cx24116_cmd cmd; in cx24116_set_voltage() local
864 cmd.args[0x00] = CMD_LNBDCLEVEL; in cx24116_set_voltage()
865 cmd.args[0x01] = (voltage == SEC_VOLTAGE_18 ? 0x01 : 0x00); in cx24116_set_voltage()
866 cmd.len = 0x02; in cx24116_set_voltage()
871 return cx24116_cmd_execute(fe, &cmd); in cx24116_set_voltage()
877 struct cx24116_cmd cmd; in cx24116_set_tone() local
895 cmd.args[0x00] = CMD_SET_TONE; in cx24116_set_tone()
896 cmd.args[0x01] = 0x00; in cx24116_set_tone()
897 cmd.args[0x02] = 0x00; in cx24116_set_tone()
902 cmd.args[0x03] = 0x01; in cx24116_set_tone()
906 cmd.args[0x03] = 0x00; in cx24116_set_tone()
909 cmd.len = 0x04; in cx24116_set_tone()
914 return cx24116_cmd_execute(fe, &cmd); in cx24116_set_tone()
921 struct cx24116_cmd cmd; in cx24116_diseqc_init() local
925 cmd.args[0x00] = CMD_LNBCONFIG; in cx24116_diseqc_init()
926 cmd.args[0x01] = 0x00; in cx24116_diseqc_init()
927 cmd.args[0x02] = 0x10; in cx24116_diseqc_init()
928 cmd.args[0x03] = 0x00; in cx24116_diseqc_init()
929 cmd.args[0x04] = 0x8f; in cx24116_diseqc_init()
930 cmd.args[0x05] = 0x28; in cx24116_diseqc_init()
931 cmd.args[0x06] = (toneburst == CX24116_DISEQC_TONEOFF) ? 0x00 : 0x01; in cx24116_diseqc_init()
932 cmd.args[0x07] = 0x01; in cx24116_diseqc_init()
933 cmd.len = 0x08; in cx24116_diseqc_init()
934 ret = cx24116_cmd_execute(fe, &cmd); in cx24116_diseqc_init()
1162 struct cx24116_cmd cmd; in cx24116_initfe() local
1173 cmd.args[0x00] = CMD_TUNERSLEEP; in cx24116_initfe()
1174 cmd.args[0x01] = 0; in cx24116_initfe()
1175 cmd.len = 0x02; in cx24116_initfe()
1176 ret = cx24116_cmd_execute(fe, &cmd); in cx24116_initfe()
1194 struct cx24116_cmd cmd; in cx24116_sleep() local
1200 cmd.args[0x00] = CMD_TUNERSLEEP; in cx24116_sleep()
1201 cmd.args[0x01] = 1; in cx24116_sleep()
1202 cmd.len = 0x02; in cx24116_sleep()
1203 ret = cx24116_cmd_execute(fe, &cmd); in cx24116_sleep()
1222 struct cx24116_cmd cmd; in cx24116_set_frontend() local
1346 cmd.args[0x00] = CMD_BANDWIDTH; in cx24116_set_frontend()
1347 cmd.args[0x01] = 0x01; in cx24116_set_frontend()
1348 cmd.len = 0x02; in cx24116_set_frontend()
1349 ret = cx24116_cmd_execute(fe, &cmd); in cx24116_set_frontend()
1354 cmd.args[0x00] = CMD_TUNEREQUEST; in cx24116_set_frontend()
1357 cmd.args[0x01] = (state->dcur.frequency & 0xff0000) >> 16; in cx24116_set_frontend()
1358 cmd.args[0x02] = (state->dcur.frequency & 0x00ff00) >> 8; in cx24116_set_frontend()
1359 cmd.args[0x03] = (state->dcur.frequency & 0x0000ff); in cx24116_set_frontend()
1362 cmd.args[0x04] = ((state->dcur.symbol_rate / 1000) & 0xff00) >> 8; in cx24116_set_frontend()
1363 cmd.args[0x05] = ((state->dcur.symbol_rate / 1000) & 0x00ff); in cx24116_set_frontend()
1366 cmd.args[0x06] = state->dcur.inversion_val; in cx24116_set_frontend()
1369 cmd.args[0x07] = state->dcur.fec_val | state->dcur.pilot_val; in cx24116_set_frontend()
1371 cmd.args[0x08] = CX24116_SEARCH_RANGE_KHZ >> 8; in cx24116_set_frontend()
1372 cmd.args[0x09] = CX24116_SEARCH_RANGE_KHZ & 0xff; in cx24116_set_frontend()
1373 cmd.args[0x0a] = 0x00; in cx24116_set_frontend()
1374 cmd.args[0x0b] = 0x00; in cx24116_set_frontend()
1375 cmd.args[0x0c] = state->dcur.rolloff_val; in cx24116_set_frontend()
1376 cmd.args[0x0d] = state->dcur.fec_mask; in cx24116_set_frontend()
1379 cmd.args[0x0e] = 0x04; in cx24116_set_frontend()
1380 cmd.args[0x0f] = 0x00; in cx24116_set_frontend()
1381 cmd.args[0x10] = 0x01; in cx24116_set_frontend()
1382 cmd.args[0x11] = 0x77; in cx24116_set_frontend()
1383 cmd.args[0x12] = 0x36; in cx24116_set_frontend()
1387 cmd.args[0x0e] = 0x06; in cx24116_set_frontend()
1388 cmd.args[0x0f] = 0x00; in cx24116_set_frontend()
1389 cmd.args[0x10] = 0x00; in cx24116_set_frontend()
1390 cmd.args[0x11] = 0xFA; in cx24116_set_frontend()
1391 cmd.args[0x12] = 0x24; in cx24116_set_frontend()
1396 cmd.len = 0x13; in cx24116_set_frontend()
1409 ret = cx24116_cmd_execute(fe, &cmd); in cx24116_set_frontend()
1433 cmd.args[0x07] ^= CX24116_PILOT_ON; in cx24116_set_frontend()
1437 cmd.args[0x00] = CMD_BANDWIDTH; in cx24116_set_frontend()
1438 cmd.args[0x01] = 0x00; in cx24116_set_frontend()
1439 cmd.len = 0x02; in cx24116_set_frontend()
1440 return cx24116_cmd_execute(fe, &cmd); in cx24116_set_frontend()