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
592 static inline void v4l2_ctrl_lock(struct v4l2_ctrl *ctrl) in v4l2_ctrl_lock() argument
594 mutex_lock(ctrl->handler->lock); in v4l2_ctrl_lock()
602 static inline void v4l2_ctrl_unlock(struct v4l2_ctrl *ctrl) in v4l2_ctrl_unlock() argument
604 mutex_unlock(ctrl->handler->lock); in v4l2_ctrl_unlock()
794 typedef bool (*v4l2_ctrl_filter)(const struct v4l2_ctrl *ctrl);
829 bool v4l2_ctrl_radio_filter(const struct v4l2_ctrl *ctrl);
900 void v4l2_ctrl_activate(struct v4l2_ctrl *ctrl, bool active);
916 void __v4l2_ctrl_grab(struct v4l2_ctrl *ctrl, bool grabbed);
933 static inline void v4l2_ctrl_grab(struct v4l2_ctrl *ctrl, bool grabbed) in v4l2_ctrl_grab() argument
935 if (!ctrl) in v4l2_ctrl_grab()
938 v4l2_ctrl_lock(ctrl); in v4l2_ctrl_grab()
939 __v4l2_ctrl_grab(ctrl, grabbed); in v4l2_ctrl_grab()
940 v4l2_ctrl_unlock(ctrl); in v4l2_ctrl_grab()
962 int __v4l2_ctrl_modify_range(struct v4l2_ctrl *ctrl,
984 static inline int v4l2_ctrl_modify_range(struct v4l2_ctrl *ctrl, in v4l2_ctrl_modify_range() argument
989 v4l2_ctrl_lock(ctrl); in v4l2_ctrl_modify_range()
990 rval = __v4l2_ctrl_modify_range(ctrl, min, max, step, def); in v4l2_ctrl_modify_range()
991 v4l2_ctrl_unlock(ctrl); in v4l2_ctrl_modify_range()
1015 int __v4l2_ctrl_modify_dimensions(struct v4l2_ctrl *ctrl,
1037 static inline int v4l2_ctrl_modify_dimensions(struct v4l2_ctrl *ctrl, in v4l2_ctrl_modify_dimensions() argument
1042 v4l2_ctrl_lock(ctrl); in v4l2_ctrl_modify_dimensions()
1043 rval = __v4l2_ctrl_modify_dimensions(ctrl, dims); in v4l2_ctrl_modify_dimensions()
1044 v4l2_ctrl_unlock(ctrl); in v4l2_ctrl_modify_dimensions()
1063 void v4l2_ctrl_notify(struct v4l2_ctrl *ctrl, v4l2_ctrl_notify_fnc notify,
1109 s32 v4l2_ctrl_g_ctrl(struct v4l2_ctrl *ctrl);
1123 int __v4l2_ctrl_s_ctrl(struct v4l2_ctrl *ctrl, s32 val);
1137 static inline int v4l2_ctrl_s_ctrl(struct v4l2_ctrl *ctrl, s32 val) in v4l2_ctrl_s_ctrl() argument
1141 v4l2_ctrl_lock(ctrl); in v4l2_ctrl_s_ctrl()
1142 rval = __v4l2_ctrl_s_ctrl(ctrl, val); in v4l2_ctrl_s_ctrl()
1143 v4l2_ctrl_unlock(ctrl); in v4l2_ctrl_s_ctrl()
1160 s64 v4l2_ctrl_g_ctrl_int64(struct v4l2_ctrl *ctrl);
1174 int __v4l2_ctrl_s_ctrl_int64(struct v4l2_ctrl *ctrl, s64 val);
1189 static inline int v4l2_ctrl_s_ctrl_int64(struct v4l2_ctrl *ctrl, s64 val) in v4l2_ctrl_s_ctrl_int64() argument
1193 v4l2_ctrl_lock(ctrl); in v4l2_ctrl_s_ctrl_int64()
1194 rval = __v4l2_ctrl_s_ctrl_int64(ctrl, val); in v4l2_ctrl_s_ctrl_int64()
1195 v4l2_ctrl_unlock(ctrl); in v4l2_ctrl_s_ctrl_int64()
1212 int __v4l2_ctrl_s_ctrl_string(struct v4l2_ctrl *ctrl, const char *s);
1227 static inline int v4l2_ctrl_s_ctrl_string(struct v4l2_ctrl *ctrl, const char *s) in v4l2_ctrl_s_ctrl_string() argument
1231 v4l2_ctrl_lock(ctrl); in v4l2_ctrl_s_ctrl_string()
1232 rval = __v4l2_ctrl_s_ctrl_string(ctrl, s); in v4l2_ctrl_s_ctrl_string()
1233 v4l2_ctrl_unlock(ctrl); in v4l2_ctrl_s_ctrl_string()
1251 int __v4l2_ctrl_s_ctrl_compound(struct v4l2_ctrl *ctrl,
1268 static inline int v4l2_ctrl_s_ctrl_compound(struct v4l2_ctrl *ctrl, in v4l2_ctrl_s_ctrl_compound() argument
1274 v4l2_ctrl_lock(ctrl); in v4l2_ctrl_s_ctrl_compound()
1275 rval = __v4l2_ctrl_s_ctrl_compound(ctrl, type, p); in v4l2_ctrl_s_ctrl_compound()
1276 v4l2_ctrl_unlock(ctrl); in v4l2_ctrl_s_ctrl_compound()
1282 #define __v4l2_ctrl_s_ctrl_area(ctrl, area) \ argument
1283 __v4l2_ctrl_s_ctrl_compound((ctrl), V4L2_CTRL_TYPE_AREA, (area))
1284 #define v4l2_ctrl_s_ctrl_area(ctrl, area) \ argument
1285 v4l2_ctrl_s_ctrl_compound((ctrl), V4L2_CTRL_TYPE_AREA, (area))
1481 int v4l2_g_ctrl(struct v4l2_ctrl_handler *hdl, struct v4l2_control *ctrl);
1495 struct v4l2_control *ctrl);
1599 bool v4l2_ctrl_type_op_equal(const struct v4l2_ctrl *ctrl,
1611 void v4l2_ctrl_type_op_init(const struct v4l2_ctrl *ctrl, u32 from_idx,
1621 void v4l2_ctrl_type_op_log(const struct v4l2_ctrl *ctrl);
1631 int v4l2_ctrl_type_op_validate(const struct v4l2_ctrl *ctrl, union v4l2_ctrl_ptr ptr);