Lines Matching defs:state
37 static int tda665x_read(struct tda665x_state *state, u8 *buf)
39 const struct tda665x_config *config = state->config;
43 err = i2c_transfer(state->i2c, &msg, 1);
53 static int tda665x_write(struct tda665x_state *state, u8 *buf, u8 length)
55 const struct tda665x_config *config = state->config;
59 err = i2c_transfer(state->i2c, &msg, 1);
73 struct tda665x_state *state = fe->tuner_priv;
78 tstate->frequency = state->frequency;
93 struct tda665x_state *state = fe->tuner_priv;
99 err = tda665x_read(state, &result);
118 struct tda665x_state *state = fe->tuner_priv;
119 const struct tda665x_config *config = state->config;
177 err = tda665x_write(state, buf, 5);
191 state->frequency = frequency; /* cache successful state */
208 struct tda665x_state *state = fe->tuner_priv;
211 kfree(state);
227 struct tda665x_state *state = NULL;
230 state = kzalloc(sizeof(struct tda665x_state), GFP_KERNEL);
231 if (state == NULL)
234 state->config = config;
235 state->i2c = i2c;
236 state->fe = fe;
237 fe->tuner_priv = state;
251 kfree(state);