Lines Matching refs:ct
29 int (*set_value)(struct wf_control *ct, s32 val);
30 int (*get_value)(struct wf_control *ct, s32 *val);
31 s32 (*get_min)(struct wf_control *ct);
32 s32 (*get_max)(struct wf_control *ct);
33 void (*release)(struct wf_control *ct);
57 extern int wf_register_control(struct wf_control *ct);
58 extern void wf_unregister_control(struct wf_control *ct);
59 extern int wf_get_control(struct wf_control *ct);
60 extern void wf_put_control(struct wf_control *ct);
62 static inline int wf_control_set_max(struct wf_control *ct) in wf_control_set_max() argument
64 s32 vmax = ct->ops->get_max(ct); in wf_control_set_max()
65 return ct->ops->set_value(ct, vmax); in wf_control_set_max()
68 static inline int wf_control_set_min(struct wf_control *ct) in wf_control_set_min() argument
70 s32 vmin = ct->ops->get_min(ct); in wf_control_set_min()
71 return ct->ops->set_value(ct, vmin); in wf_control_set_min()
74 static inline int wf_control_set(struct wf_control *ct, s32 val) in wf_control_set() argument
76 return ct->ops->set_value(ct, val); in wf_control_set()
79 static inline int wf_control_get(struct wf_control *ct, s32 *val) in wf_control_get() argument
81 return ct->ops->get_value(ct, val); in wf_control_get()
84 static inline s32 wf_control_get_min(struct wf_control *ct) in wf_control_get_min() argument
86 return ct->ops->get_min(ct); in wf_control_get_min()
89 static inline s32 wf_control_get_max(struct wf_control *ct) in wf_control_get_max() argument
91 return ct->ops->get_max(ct); in wf_control_get_max()