Lines Matching refs:state
25 static int tda665x_read(struct tda665x_state *state, u8 *buf)
27 const struct tda665x_config *config = state->config;
31 err = i2c_transfer(state->i2c, &msg, 1);
41 static int tda665x_write(struct tda665x_state *state, u8 *buf, u8 length)
43 const struct tda665x_config *config = state->config;
47 err = i2c_transfer(state->i2c, &msg, 1);
59 struct tda665x_state *state = fe->tuner_priv;
61 *frequency = state->frequency;
68 struct tda665x_state *state = fe->tuner_priv;
74 err = tda665x_read(state, &result);
92 struct tda665x_state *state = fe->tuner_priv;
93 const struct tda665x_config *config = state->config;
152 err = tda665x_write(state, buf, 5);
167 state->frequency = frequency; /* cache successful state */
190 struct tda665x_state *state = fe->tuner_priv;
193 kfree(state);
207 struct tda665x_state *state = NULL;
210 state = kzalloc(sizeof(struct tda665x_state), GFP_KERNEL);
211 if (!state)
214 state->config = config;
215 state->i2c = i2c;
216 state->fe = fe;
217 fe->tuner_priv = state;