Lines Matching defs:state

142 	struct tw2804 *state = to_state(sd);
145 state->norm & V4L2_STD_525_60 ? "60 Hz" : "50 Hz");
146 v4l2_info(sd, "Channel: %d\n", state->channel);
147 v4l2_info(sd, "Input: %d\n", state->input);
166 struct tw2804 *state = to_state_from_ctrl(ctrl);
167 struct i2c_client *client = v4l2_get_subdevdata(&state->sd);
191 struct tw2804 *state = to_state_from_ctrl(ctrl);
192 struct i2c_client *client = v4l2_get_subdevdata(&state->sd);
199 reg = read_reg(client, addr, state->channel);
206 return write_reg(client, addr, reg, state->channel);
210 reg = read_reg(client, addr, state->channel);
214 return write_reg(client, addr, reg, state->channel);
230 ctrl->val, state->channel);
234 ctrl->val, state->channel);
238 ctrl->val, state->channel);
242 ctrl->val, state->channel);
350 struct tw2804 *state;
358 state = devm_kzalloc(&client->dev, sizeof(*state), GFP_KERNEL);
359 if (state == NULL)
361 sd = &state->sd;
363 state->channel = -1;
364 state->norm = V4L2_STD_NTSC;
366 v4l2_ctrl_handler_init(&state->hdl, 10);
367 v4l2_ctrl_new_std(&state->hdl, &tw2804_ctrl_ops,
369 v4l2_ctrl_new_std(&state->hdl, &tw2804_ctrl_ops,
371 v4l2_ctrl_new_std(&state->hdl, &tw2804_ctrl_ops,
373 v4l2_ctrl_new_std(&state->hdl, &tw2804_ctrl_ops,
375 v4l2_ctrl_new_std(&state->hdl, &tw2804_ctrl_ops,
377 v4l2_ctrl_new_std(&state->hdl, &tw2804_ctrl_ops,
379 ctrl = v4l2_ctrl_new_std(&state->hdl, &tw2804_ctrl_ops,
383 ctrl = v4l2_ctrl_new_std(&state->hdl, &tw2804_ctrl_ops,
387 ctrl = v4l2_ctrl_new_std(&state->hdl, &tw2804_ctrl_ops,
391 ctrl = v4l2_ctrl_new_std(&state->hdl, &tw2804_ctrl_ops,
395 sd->ctrl_handler = &state->hdl;
396 err = state->hdl.error;
398 v4l2_ctrl_handler_free(&state->hdl);
411 struct tw2804 *state = to_state(sd);
414 v4l2_ctrl_handler_free(&state->hdl);