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);
58 extern int wf_register_control(struct wf_control *ct);
59 extern void wf_unregister_control(struct wf_control *ct);
61 extern int wf_get_control(struct wf_control *ct);
62 extern void wf_put_control(struct wf_control *ct);
64 static inline int wf_control_set_max(struct wf_control *ct) in wf_control_set_max() argument
66 s32 vmax = ct->ops->get_max(ct); in wf_control_set_max()
67 return ct->ops->set_value(ct, vmax); in wf_control_set_max()
70 static inline int wf_control_set_min(struct wf_control *ct) in wf_control_set_min() argument
72 s32 vmin = ct->ops->get_min(ct); in wf_control_set_min()
73 return ct->ops->set_value(ct, vmin); in wf_control_set_min()
76 static inline int wf_control_set(struct wf_control *ct, s32 val) in wf_control_set() argument
78 return ct->ops->set_value(ct, val); in wf_control_set()
81 static inline int wf_control_get(struct wf_control *ct, s32 *val) in wf_control_get() argument
83 return ct->ops->get_value(ct, val); in wf_control_get()
86 static inline s32 wf_control_get_min(struct wf_control *ct) in wf_control_get_min() argument
88 return ct->ops->get_min(ct); in wf_control_get_min()
91 static inline s32 wf_control_get_max(struct wf_control *ct) in wf_control_get_max() argument
93 return ct->ops->get_max(ct); in wf_control_get_max()