Lines Matching refs:ctrl

125 	int (*g_volatile_ctrl)(struct v4l2_ctrl *ctrl);
126 int (*try_ctrl)(struct v4l2_ctrl *ctrl);
127 int (*s_ctrl)(struct v4l2_ctrl *ctrl);
143 bool (*equal)(const struct v4l2_ctrl *ctrl,
145 void (*init)(const struct v4l2_ctrl *ctrl, u32 from_idx,
147 void (*minimum)(const struct v4l2_ctrl *ctrl, u32 idx,
149 void (*maximum)(const struct v4l2_ctrl *ctrl, u32 idx,
151 void (*log)(const struct v4l2_ctrl *ctrl);
152 int (*validate)(const struct v4l2_ctrl *ctrl, union v4l2_ctrl_ptr ptr);
165 typedef void (*v4l2_ctrl_notify_fnc)(struct v4l2_ctrl *ctrl, void *priv);
368 struct v4l2_ctrl *ctrl; member
590 static inline void v4l2_ctrl_lock(struct v4l2_ctrl *ctrl) in v4l2_ctrl_lock() argument
592 mutex_lock(ctrl->handler->lock); in v4l2_ctrl_lock()
600 static inline void v4l2_ctrl_unlock(struct v4l2_ctrl *ctrl) in v4l2_ctrl_unlock() argument
602 mutex_unlock(ctrl->handler->lock); in v4l2_ctrl_unlock()
792 typedef bool (*v4l2_ctrl_filter)(const struct v4l2_ctrl *ctrl);
827 bool v4l2_ctrl_radio_filter(const struct v4l2_ctrl *ctrl);
898 void v4l2_ctrl_activate(struct v4l2_ctrl *ctrl, bool active);
914 void __v4l2_ctrl_grab(struct v4l2_ctrl *ctrl, bool grabbed);
931 static inline void v4l2_ctrl_grab(struct v4l2_ctrl *ctrl, bool grabbed) in v4l2_ctrl_grab() argument
933 if (!ctrl) in v4l2_ctrl_grab()
936 v4l2_ctrl_lock(ctrl); in v4l2_ctrl_grab()
937 __v4l2_ctrl_grab(ctrl, grabbed); in v4l2_ctrl_grab()
938 v4l2_ctrl_unlock(ctrl); in v4l2_ctrl_grab()
960 int __v4l2_ctrl_modify_range(struct v4l2_ctrl *ctrl,
982 static inline int v4l2_ctrl_modify_range(struct v4l2_ctrl *ctrl, in v4l2_ctrl_modify_range() argument
987 v4l2_ctrl_lock(ctrl); in v4l2_ctrl_modify_range()
988 rval = __v4l2_ctrl_modify_range(ctrl, min, max, step, def); in v4l2_ctrl_modify_range()
989 v4l2_ctrl_unlock(ctrl); in v4l2_ctrl_modify_range()
1013 int __v4l2_ctrl_modify_dimensions(struct v4l2_ctrl *ctrl,
1035 static inline int v4l2_ctrl_modify_dimensions(struct v4l2_ctrl *ctrl, in v4l2_ctrl_modify_dimensions() argument
1040 v4l2_ctrl_lock(ctrl); in v4l2_ctrl_modify_dimensions()
1041 rval = __v4l2_ctrl_modify_dimensions(ctrl, dims); in v4l2_ctrl_modify_dimensions()
1042 v4l2_ctrl_unlock(ctrl); in v4l2_ctrl_modify_dimensions()
1061 void v4l2_ctrl_notify(struct v4l2_ctrl *ctrl, v4l2_ctrl_notify_fnc notify,
1107 s32 v4l2_ctrl_g_ctrl(struct v4l2_ctrl *ctrl);
1121 int __v4l2_ctrl_s_ctrl(struct v4l2_ctrl *ctrl, s32 val);
1135 static inline int v4l2_ctrl_s_ctrl(struct v4l2_ctrl *ctrl, s32 val) in v4l2_ctrl_s_ctrl() argument
1139 v4l2_ctrl_lock(ctrl); in v4l2_ctrl_s_ctrl()
1140 rval = __v4l2_ctrl_s_ctrl(ctrl, val); in v4l2_ctrl_s_ctrl()
1141 v4l2_ctrl_unlock(ctrl); in v4l2_ctrl_s_ctrl()
1158 s64 v4l2_ctrl_g_ctrl_int64(struct v4l2_ctrl *ctrl);
1172 int __v4l2_ctrl_s_ctrl_int64(struct v4l2_ctrl *ctrl, s64 val);
1187 static inline int v4l2_ctrl_s_ctrl_int64(struct v4l2_ctrl *ctrl, s64 val) in v4l2_ctrl_s_ctrl_int64() argument
1191 v4l2_ctrl_lock(ctrl); in v4l2_ctrl_s_ctrl_int64()
1192 rval = __v4l2_ctrl_s_ctrl_int64(ctrl, val); in v4l2_ctrl_s_ctrl_int64()
1193 v4l2_ctrl_unlock(ctrl); in v4l2_ctrl_s_ctrl_int64()
1210 int __v4l2_ctrl_s_ctrl_string(struct v4l2_ctrl *ctrl, const char *s);
1225 static inline int v4l2_ctrl_s_ctrl_string(struct v4l2_ctrl *ctrl, const char *s) in v4l2_ctrl_s_ctrl_string() argument
1229 v4l2_ctrl_lock(ctrl); in v4l2_ctrl_s_ctrl_string()
1230 rval = __v4l2_ctrl_s_ctrl_string(ctrl, s); in v4l2_ctrl_s_ctrl_string()
1231 v4l2_ctrl_unlock(ctrl); in v4l2_ctrl_s_ctrl_string()
1249 int __v4l2_ctrl_s_ctrl_compound(struct v4l2_ctrl *ctrl,
1266 static inline int v4l2_ctrl_s_ctrl_compound(struct v4l2_ctrl *ctrl, in v4l2_ctrl_s_ctrl_compound() argument
1272 v4l2_ctrl_lock(ctrl); in v4l2_ctrl_s_ctrl_compound()
1273 rval = __v4l2_ctrl_s_ctrl_compound(ctrl, type, p); in v4l2_ctrl_s_ctrl_compound()
1274 v4l2_ctrl_unlock(ctrl); in v4l2_ctrl_s_ctrl_compound()
1280 #define __v4l2_ctrl_s_ctrl_area(ctrl, area) \ argument
1281 __v4l2_ctrl_s_ctrl_compound((ctrl), V4L2_CTRL_TYPE_AREA, (area))
1282 #define v4l2_ctrl_s_ctrl_area(ctrl, area) \ argument
1283 v4l2_ctrl_s_ctrl_compound((ctrl), V4L2_CTRL_TYPE_AREA, (area))
1479 int v4l2_g_ctrl(struct v4l2_ctrl_handler *hdl, struct v4l2_control *ctrl);
1493 struct v4l2_control *ctrl);
1597 bool v4l2_ctrl_type_op_equal(const struct v4l2_ctrl *ctrl,
1609 void v4l2_ctrl_type_op_init(const struct v4l2_ctrl *ctrl, u32 from_idx,
1619 void v4l2_ctrl_type_op_log(const struct v4l2_ctrl *ctrl);
1629 int v4l2_ctrl_type_op_validate(const struct v4l2_ctrl *ctrl, union v4l2_ctrl_ptr ptr);