Lines Matching defs:state
118 struct cs53l32a_state *state = to_state(sd);
122 v4l2_ctrl_handler_log_status(&state->hdl, sd->name);
165 struct cs53l32a_state *state;
179 state = kzalloc(sizeof(struct cs53l32a_state), GFP_KERNEL);
180 if (state == NULL)
182 sd = &state->sd;
191 v4l2_ctrl_handler_init(&state->hdl, 2);
192 v4l2_ctrl_new_std(&state->hdl, &cs53l32a_ctrl_ops,
194 v4l2_ctrl_new_std(&state->hdl, &cs53l32a_ctrl_ops,
196 sd->ctrl_handler = &state->hdl;
197 if (state->hdl.error) {
198 int err = state->hdl.error;
200 v4l2_ctrl_handler_free(&state->hdl);
201 kfree(state);
228 struct cs53l32a_state *state = to_state(sd);
231 v4l2_ctrl_handler_free(&state->hdl);
232 kfree(state);