Lines Matching defs:state
125 struct ths8200_state *state = to_state(sd);
129 v4l2_info(sd, "version: %u\n", state->chip_version);
140 &state->dv_timings, true);
147 struct ths8200_state *state = to_state(sd);
151 state->power_on = on;
153 /* Power up/down - leave in reset state until input video is present */
174 struct ths8200_state *state = to_state(sd);
176 if (enable && !state->power_on)
364 struct ths8200_state *state = to_state(sd);
381 state->dv_timings = *timings;
391 struct ths8200_state *state = to_state(sd);
395 *timings = state->dv_timings;
441 struct ths8200_state *state;
449 state = devm_kzalloc(&client->dev, sizeof(*state), GFP_KERNEL);
450 if (!state)
453 sd = &state->sd;
456 state->chip_version = ths8200_read(sd, THS8200_VERSION);
457 v4l2_dbg(1, debug, sd, "chip version 0x%x\n", state->chip_version);
461 error = v4l2_async_register_subdev(&state->sd);