Lines Matching full:mci
12 #include "ddbridge-mci.h"
36 struct mci mci; member
49 struct mci_base *mci_base = state->mci.base; in release()
67 cmd.demod = state->mci.demod; in get_info()
68 stat = ddb_mci_cmd(&state->mci, &cmd, &state->signal_info); in get_info()
108 cmd.demod = state->mci.demod; in read_status()
109 stat = ddb_mci_cmd(&state->mci, &cmd, &res); in read_status()
127 struct mci_base *mci_base = state->mci.base; in mci_set_tuner()
132 cmd.tuner = state->mci.tuner; in mci_set_tuner()
134 cmd.sx8_input_enable.flags = sx8_base->gain_mode[state->mci.tuner]; in mci_set_tuner()
135 return ddb_mci_cmd(&state->mci, &cmd, NULL); in mci_set_tuner()
141 struct mci_base *mci_base = state->mci.base; in stop()
144 u32 input = state->mci.tuner; in stop()
147 if (state->mci.demod != SX8_DEMOD_NONE) { in stop()
149 cmd.demod = state->mci.demod; in stop()
150 ddb_mci_cmd(&state->mci, &cmd, NULL); in stop()
153 cmd.demod = state->mci.demod; in stop()
155 ddb_mci_cmd(&state->mci, &cmd, NULL); in stop()
156 ddb_mci_config(&state->mci, SX8_TSCONFIG_MODE_NORMAL); in stop()
163 if (state->mci.demod < SX8_DEMOD_NUM) { in stop()
164 sx8_base->demod_in_use[state->mci.demod] = 0; in stop()
165 state->mci.demod = SX8_DEMOD_NONE; in stop()
167 sx8_base->used_ldpc_bitrate[state->mci.nr] = 0; in stop()
177 struct mci_base *mci_base = state->mci.base; in start()
183 u32 input = state->mci.tuner; in start()
210 if (state->mci.nr < 4) in start()
211 i = state->mci.nr; in start()
213 i = state->mci.nr; in start()
254 sx8_base->used_ldpc_bitrate[state->mci.nr] = p->symbol_rate in start()
256 state->mci.demod = i; in start()
270 cmd.demod = state->mci.demod; in start()
272 ddb_mci_cmd(&state->mci, &cmd, NULL); in start()
273 ddb_mci_config(&state->mci, ts_config); in start()
277 dev_dbg(mci_base->dev, "MCI-%d: tuner=%d demod=%d\n", in start()
278 state->mci.nr, state->mci.tuner, state->mci.demod); in start()
289 cmd.tuner = state->mci.tuner; in start()
290 cmd.demod = state->mci.demod; in start()
291 cmd.output = state->mci.nr; in start()
294 stat = ddb_mci_cmd(&state->mci, &cmd, NULL); in start()
304 struct mci_base *mci_base = state->mci.base; in start_iq()
309 u32 input = state->mci.tuner; in start_iq()
324 state->mci.demod = 0; in start_iq()
340 cmd.tuner = state->mci.tuner; in start_iq()
341 cmd.demod = state->mci.demod; in start_iq()
342 stat = ddb_mci_cmd(&state->mci, &cmd, NULL); in start_iq()
345 ddb_mci_config(&state->mci, ts_config); in start_iq()
432 struct mci_base *mci_base = state->mci.base; in set_input()
437 state->mci.tuner = input; in set_input()
438 dev_dbg(mci_base->dev, "MCI-%d: input=%d\n", state->mci.nr, input); in set_input()
445 .name = "Digital Devices MaxSX8 MCI DVB-S/S2/S2X",
462 static int init(struct mci *mci) in init() argument
464 struct sx8 *state = (struct sx8 *)mci; in init()
466 state->mci.demod = SX8_DEMOD_NONE; in init()