Lines Matching refs:ctrl
111 * ctrl->handler->lock is held when these ops are called, so no
115 int (*g_volatile_ctrl)(struct v4l2_ctrl *ctrl);
116 int (*try_ctrl)(struct v4l2_ctrl *ctrl);
117 int (*s_ctrl)(struct v4l2_ctrl *ctrl);
131 bool (*equal)(const struct v4l2_ctrl *ctrl, u32 idx,
134 void (*init)(const struct v4l2_ctrl *ctrl, u32 idx,
136 void (*log)(const struct v4l2_ctrl *ctrl);
137 int (*validate)(const struct v4l2_ctrl *ctrl, u32 idx,
145 * @ctrl: pointer to struct &v4l2_ctrl
151 typedef void (*v4l2_ctrl_notify_fnc)(struct v4l2_ctrl *ctrl, void *priv);
175 * uses ctrl->val).
296 * @ctrl: The actual control information.
298 * ``prepare_ext_ctrls`` function at ``v4l2-ctrl.c``.
299 * @from_other_dev: If true, then @ctrl was defined in another
322 struct v4l2_ctrl *ctrl;
535 * @ctrl: The control to lock.
537 static inline void v4l2_ctrl_lock(struct v4l2_ctrl *ctrl)
539 mutex_lock(ctrl->handler->lock);
545 * @ctrl: The control to unlock.
547 static inline void v4l2_ctrl_unlock(struct v4l2_ctrl *ctrl)
549 mutex_unlock(ctrl->handler->lock);
728 * @ctrl: pointer to struct &v4l2_ctrl.
731 typedef bool (*v4l2_ctrl_filter)(const struct v4l2_ctrl *ctrl);
758 * @ctrl: The control that is filtered.
766 bool v4l2_ctrl_radio_filter(const struct v4l2_ctrl *ctrl);
827 * @ctrl: The control to (de)activate.
831 * Does nothing if @ctrl == NULL.
837 void v4l2_ctrl_activate(struct v4l2_ctrl *ctrl, bool active);
842 * @ctrl: The control to (de)activate.
846 * Does nothing if @ctrl == NULL.
853 void __v4l2_ctrl_grab(struct v4l2_ctrl *ctrl, bool grabbed);
858 * @ctrl: The control to (de)activate.
862 * Does nothing if @ctrl == NULL.
870 static inline void v4l2_ctrl_grab(struct v4l2_ctrl *ctrl, bool grabbed)
872 if (!ctrl)
875 v4l2_ctrl_lock(ctrl);
876 __v4l2_ctrl_grab(ctrl, grabbed);
877 v4l2_ctrl_unlock(ctrl);
883 * @ctrl: The control to update.
899 int __v4l2_ctrl_modify_range(struct v4l2_ctrl *ctrl,
905 * @ctrl: The control to update.
921 static inline int v4l2_ctrl_modify_range(struct v4l2_ctrl *ctrl,
926 v4l2_ctrl_lock(ctrl);
927 rval = __v4l2_ctrl_modify_range(ctrl, min, max, step, def);
928 v4l2_ctrl_unlock(ctrl);
936 * @ctrl: The control.
940 * This function sets a callback function for the control. If @ctrl is NULL,
947 void v4l2_ctrl_notify(struct v4l2_ctrl *ctrl, v4l2_ctrl_notify_fnc notify,
985 * @ctrl: The control.
993 s32 v4l2_ctrl_g_ctrl(struct v4l2_ctrl *ctrl);
998 * @ctrl: The control.
1007 int __v4l2_ctrl_s_ctrl(struct v4l2_ctrl *ctrl, s32 val);
1012 * @ctrl: The control.
1021 static inline int v4l2_ctrl_s_ctrl(struct v4l2_ctrl *ctrl, s32 val)
1025 v4l2_ctrl_lock(ctrl);
1026 rval = __v4l2_ctrl_s_ctrl(ctrl, val);
1027 v4l2_ctrl_unlock(ctrl);
1036 * @ctrl: The control.
1044 s64 v4l2_ctrl_g_ctrl_int64(struct v4l2_ctrl *ctrl);
1049 * @ctrl: The control.
1058 int __v4l2_ctrl_s_ctrl_int64(struct v4l2_ctrl *ctrl, s64 val);
1064 * @ctrl: The control.
1073 static inline int v4l2_ctrl_s_ctrl_int64(struct v4l2_ctrl *ctrl, s64 val)
1077 v4l2_ctrl_lock(ctrl);
1078 rval = __v4l2_ctrl_s_ctrl_int64(ctrl, val);
1079 v4l2_ctrl_unlock(ctrl);
1087 * @ctrl: The control.
1096 int __v4l2_ctrl_s_ctrl_string(struct v4l2_ctrl *ctrl, const char *s);
1102 * @ctrl: The control.
1111 static inline int v4l2_ctrl_s_ctrl_string(struct v4l2_ctrl *ctrl, const char *s)
1115 v4l2_ctrl_lock(ctrl);
1116 rval = __v4l2_ctrl_s_ctrl_string(ctrl, s);
1117 v4l2_ctrl_unlock(ctrl);
1125 * @ctrl: The control.
1135 int __v4l2_ctrl_s_ctrl_compound(struct v4l2_ctrl *ctrl,
1142 * @ctrl: The control.
1152 static inline int v4l2_ctrl_s_ctrl_compound(struct v4l2_ctrl *ctrl,
1158 v4l2_ctrl_lock(ctrl);
1159 rval = __v4l2_ctrl_s_ctrl_compound(ctrl, type, p);
1160 v4l2_ctrl_unlock(ctrl);
1166 #define __v4l2_ctrl_s_ctrl_area(ctrl, area) \
1167 __v4l2_ctrl_s_ctrl_compound((ctrl), V4L2_CTRL_TYPE_AREA, (area))
1168 #define v4l2_ctrl_s_ctrl_area(ctrl, area) \
1169 v4l2_ctrl_s_ctrl_compound((ctrl), V4L2_CTRL_TYPE_AREA, (area))
1349 * @ctrl: pointer to &struct v4l2_control
1353 int v4l2_g_ctrl(struct v4l2_ctrl_handler *hdl, struct v4l2_control *ctrl);
1362 * @ctrl: pointer to &struct v4l2_control
1367 struct v4l2_control *ctrl);