Lines Matching refs:ctl
218 mix_ctl_t *ctl, *cp; in mixer_add_ctl() local
225 if ((ctl = calloc(1, sizeof(mix_ctl_t))) == NULL) in mixer_add_ctl()
227 ctl->parent_dev = parent_dev; in mixer_add_ctl()
228 ctl->id = id; in mixer_add_ctl()
230 (void)strlcpy(ctl->name, name, sizeof(ctl->name)); in mixer_add_ctl()
231 ctl->mod = mod; in mixer_add_ctl()
232 ctl->print = print; in mixer_add_ctl()
233 dp = ctl->parent_dev; in mixer_add_ctl()
241 TAILQ_INSERT_TAIL(&dp->ctls, ctl, ctls); in mixer_add_ctl()
251 mixer_add_ctl_s(mix_ctl_t *ctl) in mixer_add_ctl_s() argument
253 if (ctl == NULL) in mixer_add_ctl_s()
256 return (mixer_add_ctl(ctl->parent_dev, ctl->id, ctl->name, in mixer_add_ctl_s()
257 ctl->mod, ctl->print)); in mixer_add_ctl_s()
264 mixer_remove_ctl(mix_ctl_t *ctl) in mixer_remove_ctl() argument
268 if (ctl == NULL) { in mixer_remove_ctl()
272 p = ctl->parent_dev; in mixer_remove_ctl()
274 TAILQ_REMOVE(&p->ctls, ctl, ctls); in mixer_remove_ctl()
275 free(ctl); in mixer_remove_ctl()