Lines Matching refs:cmd

40 	struct tda10071_cmd *cmd)  in tda10071_cmd_execute()  argument
54 ret = regmap_bulk_write(dev->regmap, 0x00, cmd->args, cmd->len); in tda10071_cmd_execute()
93 struct tda10071_cmd cmd; in tda10071_set_tone() local
117 cmd.args[0] = CMD_LNB_PCB_CONFIG; in tda10071_set_tone()
118 cmd.args[1] = 0; in tda10071_set_tone()
119 cmd.args[2] = 0x00; in tda10071_set_tone()
120 cmd.args[3] = 0x00; in tda10071_set_tone()
121 cmd.args[4] = tone; in tda10071_set_tone()
122 cmd.len = 5; in tda10071_set_tone()
123 ret = tda10071_cmd_execute(dev, &cmd); in tda10071_set_tone()
138 struct tda10071_cmd cmd; in tda10071_set_voltage() local
165 cmd.args[0] = CMD_LNB_SET_DC_LEVEL; in tda10071_set_voltage()
166 cmd.args[1] = 0; in tda10071_set_voltage()
167 cmd.args[2] = voltage; in tda10071_set_voltage()
168 cmd.len = 3; in tda10071_set_voltage()
169 ret = tda10071_cmd_execute(dev, &cmd); in tda10071_set_voltage()
184 struct tda10071_cmd cmd; in tda10071_diseqc_send_master_cmd() local
220 cmd.args[0] = CMD_LNB_SEND_DISEQC; in tda10071_diseqc_send_master_cmd()
221 cmd.args[1] = 0; in tda10071_diseqc_send_master_cmd()
222 cmd.args[2] = 0; in tda10071_diseqc_send_master_cmd()
223 cmd.args[3] = 0; in tda10071_diseqc_send_master_cmd()
224 cmd.args[4] = 2; in tda10071_diseqc_send_master_cmd()
225 cmd.args[5] = 0; in tda10071_diseqc_send_master_cmd()
226 cmd.args[6] = diseqc_cmd->msg_len; in tda10071_diseqc_send_master_cmd()
227 memcpy(&cmd.args[7], diseqc_cmd->msg, diseqc_cmd->msg_len); in tda10071_diseqc_send_master_cmd()
228 cmd.len = 7 + diseqc_cmd->msg_len; in tda10071_diseqc_send_master_cmd()
229 ret = tda10071_cmd_execute(dev, &cmd); in tda10071_diseqc_send_master_cmd()
244 struct tda10071_cmd cmd; in tda10071_diseqc_recv_slave_reply() local
281 cmd.args[0] = CMD_LNB_UPDATE_REPLY; in tda10071_diseqc_recv_slave_reply()
282 cmd.args[1] = 0; in tda10071_diseqc_recv_slave_reply()
283 cmd.len = 2; in tda10071_diseqc_recv_slave_reply()
284 ret = tda10071_cmd_execute(dev, &cmd); in tda10071_diseqc_recv_slave_reply()
288 ret = regmap_bulk_read(dev->regmap, cmd.len, reply->msg, in tda10071_diseqc_recv_slave_reply()
304 struct tda10071_cmd cmd; in tda10071_diseqc_send_burst() local
349 cmd.args[0] = CMD_LNB_SEND_TONEBURST; in tda10071_diseqc_send_burst()
350 cmd.args[1] = 0; in tda10071_diseqc_send_burst()
351 cmd.args[2] = burst; in tda10071_diseqc_send_burst()
352 cmd.len = 3; in tda10071_diseqc_send_burst()
353 ret = tda10071_cmd_execute(dev, &cmd); in tda10071_diseqc_send_burst()
368 struct tda10071_cmd cmd; in tda10071_read_status() local
396 cmd.args[0] = CMD_GET_AGCACC; in tda10071_read_status()
397 cmd.args[1] = 0; in tda10071_read_status()
398 cmd.len = 2; in tda10071_read_status()
399 ret = tda10071_cmd_execute(dev, &cmd); in tda10071_read_status()
460 cmd.args[0] = CMD_BER_UPDATE_COUNTERS; in tda10071_read_status()
461 cmd.args[1] = 0; in tda10071_read_status()
462 cmd.args[2] = delivery_system; in tda10071_read_status()
463 cmd.len = 3; in tda10071_read_status()
464 ret = tda10071_cmd_execute(dev, &cmd); in tda10071_read_status()
468 ret = regmap_bulk_read(dev->regmap, cmd.len, buf, len); in tda10071_read_status()
551 struct tda10071_cmd cmd; in tda10071_set_frontend() local
664 cmd.args[0] = CMD_CHANGE_CHANNEL; in tda10071_set_frontend()
665 cmd.args[1] = 0; in tda10071_set_frontend()
666 cmd.args[2] = mode; in tda10071_set_frontend()
667 cmd.args[3] = (c->frequency >> 16) & 0xff; in tda10071_set_frontend()
668 cmd.args[4] = (c->frequency >> 8) & 0xff; in tda10071_set_frontend()
669 cmd.args[5] = (c->frequency >> 0) & 0xff; in tda10071_set_frontend()
670 cmd.args[6] = ((c->symbol_rate / 1000) >> 8) & 0xff; in tda10071_set_frontend()
671 cmd.args[7] = ((c->symbol_rate / 1000) >> 0) & 0xff; in tda10071_set_frontend()
672 cmd.args[8] = ((tda10071_ops.info.frequency_tolerance_hz / 1000) >> 8) & 0xff; in tda10071_set_frontend()
673 cmd.args[9] = ((tda10071_ops.info.frequency_tolerance_hz / 1000) >> 0) & 0xff; in tda10071_set_frontend()
674 cmd.args[10] = rolloff; in tda10071_set_frontend()
675 cmd.args[11] = inversion; in tda10071_set_frontend()
676 cmd.args[12] = pilot; in tda10071_set_frontend()
677 cmd.args[13] = 0x00; in tda10071_set_frontend()
678 cmd.args[14] = 0x00; in tda10071_set_frontend()
679 cmd.len = 15; in tda10071_set_frontend()
680 ret = tda10071_cmd_execute(dev, &cmd); in tda10071_set_frontend()
755 struct tda10071_cmd cmd; in tda10071_init() local
829 cmd.args[0] = CMD_SET_SLEEP_MODE; in tda10071_init()
830 cmd.args[1] = 0; in tda10071_init()
831 cmd.args[2] = 0; in tda10071_init()
832 cmd.len = 3; in tda10071_init()
833 ret = tda10071_cmd_execute(dev, &cmd); in tda10071_init()
922 cmd.args[0] = CMD_GET_FW_VERSION; in tda10071_init()
923 cmd.len = 1; in tda10071_init()
924 ret = tda10071_cmd_execute(dev, &cmd); in tda10071_init()
928 ret = regmap_bulk_read(dev->regmap, cmd.len, buf, 4); in tda10071_init()
941 cmd.args[0] = CMD_DEMOD_INIT; in tda10071_init()
942 cmd.args[1] = ((dev->clk / 1000) >> 8) & 0xff; in tda10071_init()
943 cmd.args[2] = ((dev->clk / 1000) >> 0) & 0xff; in tda10071_init()
944 cmd.args[3] = buf[0]; in tda10071_init()
945 cmd.args[4] = buf[1]; in tda10071_init()
946 cmd.args[5] = dev->pll_multiplier; in tda10071_init()
947 cmd.args[6] = dev->spec_inv; in tda10071_init()
948 cmd.args[7] = 0x00; in tda10071_init()
949 cmd.len = 8; in tda10071_init()
950 ret = tda10071_cmd_execute(dev, &cmd); in tda10071_init()
959 cmd.args[0] = CMD_TUNER_INIT; in tda10071_init()
960 cmd.args[1] = 0x00; in tda10071_init()
961 cmd.args[2] = 0x00; in tda10071_init()
962 cmd.args[3] = 0x00; in tda10071_init()
963 cmd.args[4] = 0x00; in tda10071_init()
964 cmd.args[5] = tmp; in tda10071_init()
965 cmd.args[6] = 0x00; in tda10071_init()
966 cmd.args[7] = 0x03; in tda10071_init()
967 cmd.args[8] = 0x02; in tda10071_init()
968 cmd.args[9] = 0x02; in tda10071_init()
969 cmd.args[10] = 0x00; in tda10071_init()
970 cmd.args[11] = 0x00; in tda10071_init()
971 cmd.args[12] = 0x00; in tda10071_init()
972 cmd.args[13] = 0x00; in tda10071_init()
973 cmd.args[14] = 0x00; in tda10071_init()
974 cmd.len = 15; in tda10071_init()
975 ret = tda10071_cmd_execute(dev, &cmd); in tda10071_init()
979 cmd.args[0] = CMD_MPEG_CONFIG; in tda10071_init()
980 cmd.args[1] = 0; in tda10071_init()
981 cmd.args[2] = dev->ts_mode; in tda10071_init()
982 cmd.args[3] = 0x00; in tda10071_init()
983 cmd.args[4] = 0x04; in tda10071_init()
984 cmd.args[5] = 0x00; in tda10071_init()
985 cmd.len = 6; in tda10071_init()
986 ret = tda10071_cmd_execute(dev, &cmd); in tda10071_init()
994 cmd.args[0] = CMD_LNB_CONFIG; in tda10071_init()
995 cmd.args[1] = 0; in tda10071_init()
996 cmd.args[2] = 150; in tda10071_init()
997 cmd.args[3] = 3; in tda10071_init()
998 cmd.args[4] = 22; in tda10071_init()
999 cmd.args[5] = 1; in tda10071_init()
1000 cmd.args[6] = 1; in tda10071_init()
1001 cmd.args[7] = 30; in tda10071_init()
1002 cmd.args[8] = 30; in tda10071_init()
1003 cmd.args[9] = 30; in tda10071_init()
1004 cmd.args[10] = 30; in tda10071_init()
1005 cmd.len = 11; in tda10071_init()
1006 ret = tda10071_cmd_execute(dev, &cmd); in tda10071_init()
1010 cmd.args[0] = CMD_BER_CONTROL; in tda10071_init()
1011 cmd.args[1] = 0; in tda10071_init()
1012 cmd.args[2] = 14; in tda10071_init()
1013 cmd.args[3] = 14; in tda10071_init()
1014 cmd.len = 4; in tda10071_init()
1015 ret = tda10071_cmd_execute(dev, &cmd); in tda10071_init()
1042 struct tda10071_cmd cmd; in tda10071_sleep() local
1062 cmd.args[0] = CMD_SET_SLEEP_MODE; in tda10071_sleep()
1063 cmd.args[1] = 0; in tda10071_sleep()
1064 cmd.args[2] = 1; in tda10071_sleep()
1065 cmd.len = 3; in tda10071_sleep()
1066 ret = tda10071_cmd_execute(dev, &cmd); in tda10071_sleep()