Lines Matching refs:state

42 static int adv748x_afe_read_ro_map(struct adv748x_state *state, u8 reg)
47 ret = sdp_write(state, ADV748X_SDP_MAP_SEL,
52 return sdp_read(state, reg);
58 struct adv748x_state *state = adv748x_afe_to_state(afe);
62 info = adv748x_afe_read_ro_map(state, ADV748X_SDP_RO_10);
150 static void adv748x_afe_set_video_standard(struct adv748x_state *state,
153 sdp_clrset(state, ADV748X_SDP_VID_SEL, ADV748X_SDP_VID_SEL_MASK,
159 struct adv748x_state *state = adv748x_afe_to_state(afe);
161 return sdp_write(state, ADV748X_SDP_INSEL, input);
196 struct adv748x_state *state = adv748x_afe_to_state(afe);
202 mutex_lock(&state->mutex);
204 adv748x_afe_set_video_standard(state, afe_std);
207 mutex_unlock(&state->mutex);
215 struct adv748x_state *state = adv748x_afe_to_state(afe);
219 mutex_lock(&state->mutex);
227 adv748x_afe_set_video_standard(state,
239 /* Restore original state */
240 adv748x_afe_set_video_standard(state, afe_std);
243 mutex_unlock(&state->mutex);
258 struct adv748x_state *state = adv748x_afe_to_state(afe);
261 mutex_lock(&state->mutex);
265 mutex_unlock(&state->mutex);
273 struct adv748x_state *state = adv748x_afe_to_state(afe);
277 mutex_lock(&state->mutex);
293 adv_dbg(state, "Detected SDP signal\n");
295 adv_dbg(state, "Couldn't detect SDP video signal\n");
298 mutex_unlock(&state->mutex);
418 struct adv748x_state *state = adv748x_afe_to_state(afe);
422 ret = sdp_write(state, 0x0e, 0x00);
428 ret = sdp_write(state, ADV748X_SDP_BRI, ctrl->val);
432 ret = sdp_write(state, ADV748X_SDP_HUE, -ctrl->val);
435 ret = sdp_write(state, ADV748X_SDP_CON, ctrl->val);
438 ret = sdp_write(state, ADV748X_SDP_SD_SAT_U, ctrl->val);
441 ret = sdp_write(state, ADV748X_SDP_SD_SAT_V, ctrl->val);
447 ret = sdp_clrset(state, ADV748X_SDP_DEF, ADV748X_SDP_DEF_VAL_EN,
451 ret = sdp_clrset(state, ADV748X_SDP_FRP, ADV748X_SDP_FRP_MASK,
467 struct adv748x_state *state = adv748x_afe_to_state(afe);
472 afe->ctrl_hdl.lock = &state->mutex;
503 struct adv748x_state *state = adv748x_afe_to_state(afe);
511 adv748x_subdev_init(&afe->sd, state, &adv748x_afe_ops,
517 if (state->endpoints[i]) {
525 adv_dbg(state, "AFE Default input set to %d\n", afe->input);