Lines Matching defs:state

39 	struct ttusbdecfe_state* state = fe->demodulator_priv;
47 ret=state->config->send_command(fe, 0x73, sizeof(b), b, &len, result);
79 struct ttusbdecfe_state* state = (struct ttusbdecfe_state*) fe->demodulator_priv;
88 state->config->send_command(fe, 0x71, sizeof(b), b, NULL, NULL);
106 struct ttusbdecfe_state* state = (struct ttusbdecfe_state*) fe->demodulator_priv;
124 (state->hi_band ? LOF_HI : LOF_LO));
128 band = htonl(state->hi_band ? LOF_HI : LOF_LO);
130 lnb_voltage = htonl(state->voltage);
133 state->config->send_command(fe, 0x71, sizeof(b), b, NULL, NULL);
140 struct ttusbdecfe_state* state = (struct ttusbdecfe_state*) fe->demodulator_priv;
150 state->config->send_command(fe, 0x72,
161 struct ttusbdecfe_state* state = (struct ttusbdecfe_state*) fe->demodulator_priv;
163 state->hi_band = (SEC_TONE_ON == tone);
172 struct ttusbdecfe_state* state = (struct ttusbdecfe_state*) fe->demodulator_priv;
176 state->voltage = 13;
179 state->voltage = 18;
190 struct ttusbdecfe_state* state = (struct ttusbdecfe_state*) fe->demodulator_priv;
191 kfree(state);
198 struct ttusbdecfe_state* state = NULL;
200 /* allocate memory for the internal state */
201 state = kmalloc(sizeof(struct ttusbdecfe_state), GFP_KERNEL);
202 if (state == NULL)
205 /* setup the state */
206 state->config = config;
209 memcpy(&state->frontend.ops, &ttusbdecfe_dvbt_ops, sizeof(struct dvb_frontend_ops));
210 state->frontend.demodulator_priv = state;
211 return &state->frontend;
218 struct ttusbdecfe_state* state = NULL;
220 /* allocate memory for the internal state */
221 state = kmalloc(sizeof(struct ttusbdecfe_state), GFP_KERNEL);
222 if (state == NULL)
225 /* setup the state */
226 state->config = config;
227 state->voltage = 0;
228 state->hi_band = 0;
231 memcpy(&state->frontend.ops, &ttusbdecfe_dvbs_ops, sizeof(struct dvb_frontend_ops));
232 state->frontend.demodulator_priv = state;
233 return &state->frontend;