Lines Matching defs:state
95 struct cs53l32a_state *state = to_state(sd);
99 v4l2_ctrl_handler_log_status(&state->hdl, sd->name);
134 struct cs53l32a_state *state;
148 state = devm_kzalloc(&client->dev, sizeof(*state), GFP_KERNEL);
149 if (state == NULL)
151 sd = &state->sd;
160 v4l2_ctrl_handler_init(&state->hdl, 2);
161 v4l2_ctrl_new_std(&state->hdl, &cs53l32a_ctrl_ops,
163 v4l2_ctrl_new_std(&state->hdl, &cs53l32a_ctrl_ops,
165 sd->ctrl_handler = &state->hdl;
166 if (state->hdl.error) {
167 int err = state->hdl.error;
169 v4l2_ctrl_handler_free(&state->hdl);
196 struct cs53l32a_state *state = to_state(sd);
199 v4l2_ctrl_handler_free(&state->hdl);