Lines Matching refs:state
53 struct m52790_state *state = to_state(sd); in m52790_write() local
56 u8 sw1 = (state->input | state->output) & 0xff; in m52790_write()
57 u8 sw2 = (state->input | state->output) >> 8; in m52790_write()
73 struct m52790_state *state = to_state(sd); in m52790_s_routing() local
75 state->input = input; in m52790_s_routing()
76 state->output = output; in m52790_s_routing()
84 struct m52790_state *state = to_state(sd); in m52790_g_register() local
89 reg->val = state->input | state->output; in m52790_g_register()
95 struct m52790_state *state = to_state(sd); in m52790_s_register() local
99 state->input = reg->val & 0x0303; in m52790_s_register()
100 state->output = reg->val & ~0x0303; in m52790_s_register()
108 struct m52790_state *state = to_state(sd); in m52790_log_status() local
111 (state->input | state->output) & 0xff); in m52790_log_status()
113 (state->input | state->output) >> 8); in m52790_log_status()
148 struct m52790_state *state; in m52790_probe() local
158 state = devm_kzalloc(&client->dev, sizeof(*state), GFP_KERNEL); in m52790_probe()
159 if (state == NULL) in m52790_probe()
162 sd = &state->sd; in m52790_probe()
164 state->input = M52790_IN_TUNER; in m52790_probe()
165 state->output = M52790_OUT_STEREO; in m52790_probe()