Lines Matching refs:cmd
53 struct tda10071_cmd *cmd) in tda10071_cmd_execute() argument
67 ret = regmap_bulk_write(dev->regmap, 0x00, cmd->args, cmd->len); in tda10071_cmd_execute()
106 struct tda10071_cmd cmd; in tda10071_set_tone() local
130 cmd.args[0] = CMD_LNB_PCB_CONFIG; in tda10071_set_tone()
131 cmd.args[1] = 0; in tda10071_set_tone()
132 cmd.args[2] = 0x00; in tda10071_set_tone()
133 cmd.args[3] = 0x00; in tda10071_set_tone()
134 cmd.args[4] = tone; in tda10071_set_tone()
135 cmd.len = 5; in tda10071_set_tone()
136 ret = tda10071_cmd_execute(dev, &cmd); in tda10071_set_tone()
151 struct tda10071_cmd cmd; in tda10071_set_voltage() local
178 cmd.args[0] = CMD_LNB_SET_DC_LEVEL; in tda10071_set_voltage()
179 cmd.args[1] = 0; in tda10071_set_voltage()
180 cmd.args[2] = voltage; in tda10071_set_voltage()
181 cmd.len = 3; in tda10071_set_voltage()
182 ret = tda10071_cmd_execute(dev, &cmd); in tda10071_set_voltage()
197 struct tda10071_cmd cmd; in tda10071_diseqc_send_master_cmd() local
233 cmd.args[0] = CMD_LNB_SEND_DISEQC; in tda10071_diseqc_send_master_cmd()
234 cmd.args[1] = 0; in tda10071_diseqc_send_master_cmd()
235 cmd.args[2] = 0; in tda10071_diseqc_send_master_cmd()
236 cmd.args[3] = 0; in tda10071_diseqc_send_master_cmd()
237 cmd.args[4] = 2; in tda10071_diseqc_send_master_cmd()
238 cmd.args[5] = 0; in tda10071_diseqc_send_master_cmd()
239 cmd.args[6] = diseqc_cmd->msg_len; in tda10071_diseqc_send_master_cmd()
240 memcpy(&cmd.args[7], diseqc_cmd->msg, diseqc_cmd->msg_len); in tda10071_diseqc_send_master_cmd()
241 cmd.len = 7 + diseqc_cmd->msg_len; in tda10071_diseqc_send_master_cmd()
242 ret = tda10071_cmd_execute(dev, &cmd); in tda10071_diseqc_send_master_cmd()
257 struct tda10071_cmd cmd; in tda10071_diseqc_recv_slave_reply() local
294 cmd.args[0] = CMD_LNB_UPDATE_REPLY; in tda10071_diseqc_recv_slave_reply()
295 cmd.args[1] = 0; in tda10071_diseqc_recv_slave_reply()
296 cmd.len = 2; in tda10071_diseqc_recv_slave_reply()
297 ret = tda10071_cmd_execute(dev, &cmd); in tda10071_diseqc_recv_slave_reply()
301 ret = regmap_bulk_read(dev->regmap, cmd.len, reply->msg, in tda10071_diseqc_recv_slave_reply()
317 struct tda10071_cmd cmd; in tda10071_diseqc_send_burst() local
362 cmd.args[0] = CMD_LNB_SEND_TONEBURST; in tda10071_diseqc_send_burst()
363 cmd.args[1] = 0; in tda10071_diseqc_send_burst()
364 cmd.args[2] = burst; in tda10071_diseqc_send_burst()
365 cmd.len = 3; in tda10071_diseqc_send_burst()
366 ret = tda10071_cmd_execute(dev, &cmd); in tda10071_diseqc_send_burst()
381 struct tda10071_cmd cmd; in tda10071_read_status() local
409 cmd.args[0] = CMD_GET_AGCACC; in tda10071_read_status()
410 cmd.args[1] = 0; in tda10071_read_status()
411 cmd.len = 2; in tda10071_read_status()
412 ret = tda10071_cmd_execute(dev, &cmd); in tda10071_read_status()
473 cmd.args[0] = CMD_BER_UPDATE_COUNTERS; in tda10071_read_status()
474 cmd.args[1] = 0; in tda10071_read_status()
475 cmd.args[2] = delivery_system; in tda10071_read_status()
476 cmd.len = 3; in tda10071_read_status()
477 ret = tda10071_cmd_execute(dev, &cmd); in tda10071_read_status()
481 ret = regmap_bulk_read(dev->regmap, cmd.len, buf, len); in tda10071_read_status()
563 struct tda10071_cmd cmd; in tda10071_set_frontend() local
676 cmd.args[0] = CMD_CHANGE_CHANNEL; in tda10071_set_frontend()
677 cmd.args[1] = 0; in tda10071_set_frontend()
678 cmd.args[2] = mode; in tda10071_set_frontend()
679 cmd.args[3] = (c->frequency >> 16) & 0xff; in tda10071_set_frontend()
680 cmd.args[4] = (c->frequency >> 8) & 0xff; in tda10071_set_frontend()
681 cmd.args[5] = (c->frequency >> 0) & 0xff; in tda10071_set_frontend()
682 cmd.args[6] = ((c->symbol_rate / 1000) >> 8) & 0xff; in tda10071_set_frontend()
683 cmd.args[7] = ((c->symbol_rate / 1000) >> 0) & 0xff; in tda10071_set_frontend()
684 cmd.args[8] = (tda10071_ops.info.frequency_tolerance >> 8) & 0xff; in tda10071_set_frontend()
685 cmd.args[9] = (tda10071_ops.info.frequency_tolerance >> 0) & 0xff; in tda10071_set_frontend()
686 cmd.args[10] = rolloff; in tda10071_set_frontend()
687 cmd.args[11] = inversion; in tda10071_set_frontend()
688 cmd.args[12] = pilot; in tda10071_set_frontend()
689 cmd.args[13] = 0x00; in tda10071_set_frontend()
690 cmd.args[14] = 0x00; in tda10071_set_frontend()
691 cmd.len = 15; in tda10071_set_frontend()
692 ret = tda10071_cmd_execute(dev, &cmd); in tda10071_set_frontend()
767 struct tda10071_cmd cmd; in tda10071_init() local
841 cmd.args[0] = CMD_SET_SLEEP_MODE; in tda10071_init()
842 cmd.args[1] = 0; in tda10071_init()
843 cmd.args[2] = 0; in tda10071_init()
844 cmd.len = 3; in tda10071_init()
845 ret = tda10071_cmd_execute(dev, &cmd); in tda10071_init()
934 cmd.args[0] = CMD_GET_FW_VERSION; in tda10071_init()
935 cmd.len = 1; in tda10071_init()
936 ret = tda10071_cmd_execute(dev, &cmd); in tda10071_init()
940 ret = regmap_bulk_read(dev->regmap, cmd.len, buf, 4); in tda10071_init()
953 cmd.args[0] = CMD_DEMOD_INIT; in tda10071_init()
954 cmd.args[1] = ((dev->clk / 1000) >> 8) & 0xff; in tda10071_init()
955 cmd.args[2] = ((dev->clk / 1000) >> 0) & 0xff; in tda10071_init()
956 cmd.args[3] = buf[0]; in tda10071_init()
957 cmd.args[4] = buf[1]; in tda10071_init()
958 cmd.args[5] = dev->pll_multiplier; in tda10071_init()
959 cmd.args[6] = dev->spec_inv; in tda10071_init()
960 cmd.args[7] = 0x00; in tda10071_init()
961 cmd.len = 8; in tda10071_init()
962 ret = tda10071_cmd_execute(dev, &cmd); in tda10071_init()
971 cmd.args[0] = CMD_TUNER_INIT; in tda10071_init()
972 cmd.args[1] = 0x00; in tda10071_init()
973 cmd.args[2] = 0x00; in tda10071_init()
974 cmd.args[3] = 0x00; in tda10071_init()
975 cmd.args[4] = 0x00; in tda10071_init()
976 cmd.args[5] = tmp; in tda10071_init()
977 cmd.args[6] = 0x00; in tda10071_init()
978 cmd.args[7] = 0x03; in tda10071_init()
979 cmd.args[8] = 0x02; in tda10071_init()
980 cmd.args[9] = 0x02; in tda10071_init()
981 cmd.args[10] = 0x00; in tda10071_init()
982 cmd.args[11] = 0x00; in tda10071_init()
983 cmd.args[12] = 0x00; in tda10071_init()
984 cmd.args[13] = 0x00; in tda10071_init()
985 cmd.args[14] = 0x00; in tda10071_init()
986 cmd.len = 15; in tda10071_init()
987 ret = tda10071_cmd_execute(dev, &cmd); in tda10071_init()
991 cmd.args[0] = CMD_MPEG_CONFIG; in tda10071_init()
992 cmd.args[1] = 0; in tda10071_init()
993 cmd.args[2] = dev->ts_mode; in tda10071_init()
994 cmd.args[3] = 0x00; in tda10071_init()
995 cmd.args[4] = 0x04; in tda10071_init()
996 cmd.args[5] = 0x00; in tda10071_init()
997 cmd.len = 6; in tda10071_init()
998 ret = tda10071_cmd_execute(dev, &cmd); in tda10071_init()
1006 cmd.args[0] = CMD_LNB_CONFIG; in tda10071_init()
1007 cmd.args[1] = 0; in tda10071_init()
1008 cmd.args[2] = 150; in tda10071_init()
1009 cmd.args[3] = 3; in tda10071_init()
1010 cmd.args[4] = 22; in tda10071_init()
1011 cmd.args[5] = 1; in tda10071_init()
1012 cmd.args[6] = 1; in tda10071_init()
1013 cmd.args[7] = 30; in tda10071_init()
1014 cmd.args[8] = 30; in tda10071_init()
1015 cmd.args[9] = 30; in tda10071_init()
1016 cmd.args[10] = 30; in tda10071_init()
1017 cmd.len = 11; in tda10071_init()
1018 ret = tda10071_cmd_execute(dev, &cmd); in tda10071_init()
1022 cmd.args[0] = CMD_BER_CONTROL; in tda10071_init()
1023 cmd.args[1] = 0; in tda10071_init()
1024 cmd.args[2] = 14; in tda10071_init()
1025 cmd.args[3] = 14; in tda10071_init()
1026 cmd.len = 4; in tda10071_init()
1027 ret = tda10071_cmd_execute(dev, &cmd); in tda10071_init()
1054 struct tda10071_cmd cmd; in tda10071_sleep() local
1074 cmd.args[0] = CMD_SET_SLEEP_MODE; in tda10071_sleep()
1075 cmd.args[1] = 0; in tda10071_sleep()
1076 cmd.args[2] = 1; in tda10071_sleep()
1077 cmd.len = 3; in tda10071_sleep()
1078 ret = tda10071_cmd_execute(dev, &cmd); in tda10071_sleep()