Lines Matching refs:cmd

279 	struct cx24117_cmd *cmd)  in cx24117_writecmd()  argument
287 __func__, state->demod, cmd->len); in cx24117_writecmd()
290 memcpy(&buf[1], cmd->args, cmd->len); in cx24117_writecmd()
294 msg.len = cmd->len+1; in cx24117_writecmd()
300 KBUILD_MODNAME, state->demod, ret, cmd->len); in cx24117_writecmd()
495 struct cx24117_cmd *cmd) in cx24117_cmd_execute_nolock() argument
509 cx24117_writecmd(state, cmd); in cx24117_cmd_execute_nolock()
527 static int cx24117_cmd_execute(struct dvb_frontend *fe, struct cx24117_cmd *cmd) in cx24117_cmd_execute() argument
533 ret = cx24117_cmd_execute_nolock(fe, cmd); in cx24117_cmd_execute()
543 struct cx24117_cmd cmd; in cx24117_load_firmware() local
633 cmd.args[0] = CMD_DEMODINIT; in cx24117_load_firmware()
634 cmd.args[1] = 0x00; in cx24117_load_firmware()
635 cmd.args[2] = 0x01; in cx24117_load_firmware()
636 cmd.args[3] = 0x00; in cx24117_load_firmware()
637 cmd.len = 4; in cx24117_load_firmware()
638 ret = cx24117_cmd_execute_nolock(fe, &cmd); in cx24117_load_firmware()
643 cmd.args[0] = CMD_SET_VCOFREQ; in cx24117_load_firmware()
644 cmd.args[1] = 0x06; in cx24117_load_firmware()
645 cmd.args[2] = 0x2b; in cx24117_load_firmware()
646 cmd.args[3] = 0xd8; in cx24117_load_firmware()
647 cmd.args[4] = 0xa5; in cx24117_load_firmware()
648 cmd.args[5] = 0xee; in cx24117_load_firmware()
649 cmd.args[6] = 0x03; in cx24117_load_firmware()
650 cmd.args[7] = 0x9d; in cx24117_load_firmware()
651 cmd.args[8] = 0xfc; in cx24117_load_firmware()
652 cmd.args[9] = 0x06; in cx24117_load_firmware()
653 cmd.args[10] = 0x02; in cx24117_load_firmware()
654 cmd.args[11] = 0x9d; in cx24117_load_firmware()
655 cmd.args[12] = 0xfc; in cx24117_load_firmware()
656 cmd.len = 13; in cx24117_load_firmware()
657 ret = cx24117_cmd_execute_nolock(fe, &cmd); in cx24117_load_firmware()
662 cmd.args[0] = CMD_TUNERINIT; in cx24117_load_firmware()
663 cmd.args[1] = 0x00; in cx24117_load_firmware()
664 cmd.args[2] = 0x01; in cx24117_load_firmware()
665 cmd.args[3] = 0x00; in cx24117_load_firmware()
666 cmd.args[4] = 0x00; in cx24117_load_firmware()
667 cmd.args[5] = 0x01; in cx24117_load_firmware()
668 cmd.args[6] = 0x01; in cx24117_load_firmware()
669 cmd.args[7] = 0x01; in cx24117_load_firmware()
670 cmd.args[8] = 0x00; in cx24117_load_firmware()
671 cmd.args[9] = 0x05; in cx24117_load_firmware()
672 cmd.args[10] = 0x02; in cx24117_load_firmware()
673 cmd.args[11] = 0x02; in cx24117_load_firmware()
674 cmd.args[12] = 0x00; in cx24117_load_firmware()
675 cmd.len = 13; in cx24117_load_firmware()
676 ret = cx24117_cmd_execute_nolock(fe, &cmd); in cx24117_load_firmware()
681 cmd.args[0] = CMD_GLOBAL_MPEGCFG; in cx24117_load_firmware()
682 cmd.args[1] = 0x00; in cx24117_load_firmware()
683 cmd.args[2] = 0x00; in cx24117_load_firmware()
684 cmd.args[3] = 0x00; in cx24117_load_firmware()
685 cmd.args[4] = 0x01; in cx24117_load_firmware()
686 cmd.args[5] = 0x00; in cx24117_load_firmware()
687 cmd.len = 6; in cx24117_load_firmware()
688 ret = cx24117_cmd_execute_nolock(fe, &cmd); in cx24117_load_firmware()
694 cmd.args[0] = CMD_MPEGCFG; in cx24117_load_firmware()
695 cmd.args[1] = (u8) i; in cx24117_load_firmware()
696 cmd.args[2] = 0x00; in cx24117_load_firmware()
697 cmd.args[3] = 0x05; in cx24117_load_firmware()
698 cmd.args[4] = 0x00; in cx24117_load_firmware()
699 cmd.args[5] = 0x00; in cx24117_load_firmware()
700 cmd.args[6] = 0x55; in cx24117_load_firmware()
701 cmd.args[7] = 0x00; in cx24117_load_firmware()
702 cmd.len = 8; in cx24117_load_firmware()
703 ret = cx24117_cmd_execute_nolock(fe, &cmd); in cx24117_load_firmware()
713 cmd.args[0] = CMD_FWVERSION; in cx24117_load_firmware()
714 cmd.len = 2; in cx24117_load_firmware()
716 cmd.args[1] = i; in cx24117_load_firmware()
717 ret = cx24117_cmd_execute_nolock(fe, &cmd); in cx24117_load_firmware()
785 struct cx24117_cmd cmd; in cx24117_read_signal_strength() local
793 cmd.args[0] = CMD_GET_AGCACC; in cx24117_read_signal_strength()
794 cmd.args[1] = (u8) state->demod; in cx24117_read_signal_strength()
795 cmd.len = 2; in cx24117_read_signal_strength()
796 ret = cx24117_cmd_execute(fe, &cmd); in cx24117_read_signal_strength()
902 struct cx24117_cmd cmd; in cx24117_set_voltage() local
913 cmd.args[0] = CMD_SET_GPIOOUT; in cx24117_set_voltage()
914 cmd.args[2] = reg; /* mask */ in cx24117_set_voltage()
915 cmd.len = 3; in cx24117_set_voltage()
920 cmd.args[1] = reg; in cx24117_set_voltage()
921 ret = cx24117_cmd_execute(fe, &cmd); in cx24117_set_voltage()
933 cmd.args[0] = CMD_LNBDCLEVEL; in cx24117_set_voltage()
934 cmd.args[1] = state->demod ? 0 : 1; in cx24117_set_voltage()
935 cmd.args[2] = (voltage == SEC_VOLTAGE_18 ? 0x01 : 0x00); in cx24117_set_voltage()
936 cmd.len = 3; in cx24117_set_voltage()
937 ret = cx24117_cmd_execute(fe, &cmd); in cx24117_set_voltage()
943 cmd.args[1] = 0x00; in cx24117_set_voltage()
944 ret = cx24117_cmd_execute(fe, &cmd); in cx24117_set_voltage()
954 struct cx24117_cmd cmd; in cx24117_set_tone() local
974 cmd.args[0] = CMD_LNBPCBCONFIG; in cx24117_set_tone()
975 cmd.args[1] = (state->demod ? 0 : 1); in cx24117_set_tone()
976 cmd.args[2] = 0x00; in cx24117_set_tone()
977 cmd.args[3] = 0x00; in cx24117_set_tone()
978 cmd.len = 5; in cx24117_set_tone()
981 cmd.args[4] = 0x01; in cx24117_set_tone()
984 cmd.args[4] = 0x00; in cx24117_set_tone()
990 return cx24117_cmd_execute(fe, &cmd); in cx24117_set_tone()
1219 struct cx24117_cmd cmd; in cx24117_initfe() local
1228 cmd.args[0] = CMD_SET_SLEEPMODE; in cx24117_initfe()
1229 cmd.args[1] = (state->demod ? 1 : 0); in cx24117_initfe()
1230 cmd.args[2] = 0; in cx24117_initfe()
1231 cmd.len = 3; in cx24117_initfe()
1232 ret = cx24117_cmd_execute_nolock(fe, &cmd); in cx24117_initfe()
1241 cmd.args[0] = CMD_BERCTRL; in cx24117_initfe()
1242 cmd.args[1] = (state->demod ? 1 : 0); in cx24117_initfe()
1243 cmd.args[2] = 0x10; in cx24117_initfe()
1244 cmd.args[3] = 0x10; in cx24117_initfe()
1245 cmd.len = 4; in cx24117_initfe()
1246 ret = cx24117_cmd_execute_nolock(fe, &cmd); in cx24117_initfe()
1251 cmd.args[0] = CMD_ENABLERSCORR; in cx24117_initfe()
1252 cmd.args[1] = (state->demod ? 1 : 0); in cx24117_initfe()
1253 cmd.args[2] = CX24117_OCC; in cx24117_initfe()
1254 cmd.len = 3; in cx24117_initfe()
1255 ret = cx24117_cmd_execute_nolock(fe, &cmd); in cx24117_initfe()
1261 cmd.args[0] = CMD_SET_GPIODIR; in cx24117_initfe()
1262 cmd.args[1] = 0x30; in cx24117_initfe()
1263 cmd.args[2] = 0x30; in cx24117_initfe()
1264 cmd.len = 3; in cx24117_initfe()
1265 ret = cx24117_cmd_execute_nolock(fe, &cmd); in cx24117_initfe()
1279 struct cx24117_cmd cmd; in cx24117_sleep() local
1285 cmd.args[0] = CMD_SET_SLEEPMODE; in cx24117_sleep()
1286 cmd.args[1] = (state->demod ? 1 : 0); in cx24117_sleep()
1287 cmd.args[2] = 1; in cx24117_sleep()
1288 cmd.len = 3; in cx24117_sleep()
1289 return cx24117_cmd_execute(fe, &cmd); in cx24117_sleep()
1299 struct cx24117_cmd cmd; in cx24117_set_frontend() local
1435 cmd.args[0] = CMD_TUNEREQUEST; in cx24117_set_frontend()
1438 cmd.args[1] = state->demod; in cx24117_set_frontend()
1441 cmd.args[2] = (state->dcur.frequency & 0xff0000) >> 16; in cx24117_set_frontend()
1442 cmd.args[3] = (state->dcur.frequency & 0x00ff00) >> 8; in cx24117_set_frontend()
1443 cmd.args[4] = (state->dcur.frequency & 0x0000ff); in cx24117_set_frontend()
1446 cmd.args[5] = ((state->dcur.symbol_rate / 1000) & 0xff00) >> 8; in cx24117_set_frontend()
1447 cmd.args[6] = ((state->dcur.symbol_rate / 1000) & 0x00ff); in cx24117_set_frontend()
1450 cmd.args[7] = state->dcur.inversion_val; in cx24117_set_frontend()
1453 cmd.args[8] = state->dcur.fec_val | state->dcur.pilot_val; in cx24117_set_frontend()
1455 cmd.args[9] = CX24117_SEARCH_RANGE_KHZ >> 8; in cx24117_set_frontend()
1456 cmd.args[10] = CX24117_SEARCH_RANGE_KHZ & 0xff; in cx24117_set_frontend()
1458 cmd.args[11] = state->dcur.rolloff_val; in cx24117_set_frontend()
1459 cmd.args[12] = state->dcur.fec_mask; in cx24117_set_frontend()
1472 cmd.args[13] = reg_ratediv; in cx24117_set_frontend()
1473 cmd.args[14] = reg_clkdiv; in cx24117_set_frontend()
1480 cmd.args[15] = CX24117_PNE; in cx24117_set_frontend()
1481 cmd.len = 16; in cx24117_set_frontend()
1497 ret = cx24117_cmd_execute(fe, &cmd); in cx24117_set_frontend()
1524 cmd.args[11]--; in cx24117_set_frontend()
1556 struct cx24117_cmd cmd; in cx24117_get_frontend() local
1565 cmd.args[0] = CMD_GETCTLACC; in cx24117_get_frontend()
1566 cmd.args[1] = (u8) state->demod; in cx24117_get_frontend()
1567 cmd.len = 2; in cx24117_get_frontend()
1568 ret = cx24117_cmd_execute(fe, &cmd); in cx24117_get_frontend()