Lines Matching defs:state
141 struct cs5345_state *state;
151 state = devm_kzalloc(&client->dev, sizeof(*state), GFP_KERNEL);
152 if (state == NULL)
154 sd = &state->sd;
157 v4l2_ctrl_handler_init(&state->hdl, 2);
158 v4l2_ctrl_new_std(&state->hdl, &cs5345_ctrl_ops,
160 v4l2_ctrl_new_std(&state->hdl, &cs5345_ctrl_ops,
162 sd->ctrl_handler = &state->hdl;
163 if (state->hdl.error) {
164 int err = state->hdl.error;
166 v4l2_ctrl_handler_free(&state->hdl);
170 v4l2_ctrl_handler_setup(&state->hdl);
183 struct cs5345_state *state = to_state(sd);
186 v4l2_ctrl_handler_free(&state->hdl);