Lines Matching defs:which
231 if (cs->which &&
232 cs->which != V4L2_CTRL_WHICH_DEF_VAL &&
233 cs->which != V4L2_CTRL_WHICH_REQUEST_VAL &&
234 V4L2_CTRL_ID2WHICH(id) != cs->which) {
236 "invalid which 0x%x or control id 0x%x\n",
237 cs->which, id);
270 if (cs->which == V4L2_CTRL_WHICH_REQUEST_VAL)
327 * The code below figures out in O(n) time which controls in the list
369 static int class_check(struct v4l2_ctrl_handler *hdl, u32 which)
371 if (which == 0 || which == V4L2_CTRL_WHICH_DEF_VAL ||
372 which == V4L2_CTRL_WHICH_REQUEST_VAL)
374 return find_ref_lock(hdl, which | 1) ? 0 : -EINVAL;
380 * Note that v4l2_g_ext_ctrls_common() with 'which' set to
394 is_default = (cs->which == V4L2_CTRL_WHICH_DEF_VAL);
395 is_request = (cs->which == V4L2_CTRL_WHICH_REQUEST_VAL);
398 cs->which = V4L2_CTRL_ID2WHICH(cs->which);
404 return class_check(hdl, cs->which);
488 if (cs->which == V4L2_CTRL_WHICH_REQUEST_VAL)
524 * This test is also done in try_set_control_cluster() which
568 if (cs->which == V4L2_CTRL_WHICH_DEF_VAL) {
574 cs->which = V4L2_CTRL_ID2WHICH(cs->which);
583 return class_check(hdl, cs->which);
616 * first since those will become the new manual values (which
698 if (cs->which == V4L2_CTRL_WHICH_REQUEST_VAL)