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);
419 struct adv748x_state *state = adv748x_afe_to_state(afe);
423 ret = sdp_write(state, 0x0e, 0x00);
429 ret = sdp_write(state, ADV748X_SDP_BRI, ctrl->val);
433 ret = sdp_write(state, ADV748X_SDP_HUE, -ctrl->val);
436 ret = sdp_write(state, ADV748X_SDP_CON, ctrl->val);
439 ret = sdp_write(state, ADV748X_SDP_SD_SAT_U, ctrl->val);
442 ret = sdp_write(state, ADV748X_SDP_SD_SAT_V, ctrl->val);
448 ret = sdp_clrset(state, ADV748X_SDP_DEF, ADV748X_SDP_DEF_VAL_EN,
452 ret = sdp_clrset(state, ADV748X_SDP_FRP, ADV748X_SDP_FRP_MASK,
468 struct adv748x_state *state = adv748x_afe_to_state(afe);
473 afe->ctrl_hdl.lock = &state->mutex;
504 struct adv748x_state *state = adv748x_afe_to_state(afe);
512 adv748x_subdev_init(&afe->sd, state, &adv748x_afe_ops,
518 if (state->endpoints[i]) {
526 adv_dbg(state, "AFE Default input set to %d\n", afe->input);