Lines Matching refs:state

39 static int tda8261_read(struct tda8261_state *state, u8 *buf)  in tda8261_read()  argument
41 const struct tda8261_config *config = state->config; in tda8261_read()
45 if ((err = i2c_transfer(state->i2c, &msg, 1)) != 1) in tda8261_read()
51 static int tda8261_write(struct tda8261_state *state, u8 *buf) in tda8261_write() argument
53 const struct tda8261_config *config = state->config; in tda8261_write()
57 if ((err = i2c_transfer(state->i2c, &msg, 1)) != 1) in tda8261_write()
65 struct tda8261_state *state = fe->tuner_priv; in tda8261_get_status() local
71 if ((err = tda8261_read(state, &result)) < 0) { in tda8261_get_status()
90 struct tda8261_state *state = fe->tuner_priv; in tda8261_get_state() local
95 tstate->frequency = state->frequency; in tda8261_get_state()
113 struct tda8261_state *state = fe->tuner_priv; in tda8261_set_state() local
114 const struct tda8261_config *config = state->config; in tda8261_set_state()
146 if ((err = tda8261_write(state, buf)) < 0) { in tda8261_set_state()
160 state->frequency = frequency; /* cache successful state */ in tda8261_set_state()
174 struct tda8261_state *state = fe->tuner_priv; in tda8261_release() local
177 kfree(state); in tda8261_release()
201 struct tda8261_state *state = NULL; in tda8261_attach() local
203 if ((state = kzalloc(sizeof (struct tda8261_state), GFP_KERNEL)) == NULL) in tda8261_attach()
206 state->config = config; in tda8261_attach()
207 state->i2c = i2c; in tda8261_attach()
208 state->fe = fe; in tda8261_attach()
209 fe->tuner_priv = state; in tda8261_attach()
222 kfree(state); in tda8261_attach()