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