Lines Matching refs:ctl
189 union monotonic_ctl_add ctl; in mt_ctl_add() local
193 error = copyin(uptr, &ctl, sizeof(ctl.in)); in mt_ctl_add()
198 error = dev->mtd_add(&ctl.in.config, &ctr); in mt_ctl_add()
203 ctl.out.ctr = ctr; in mt_ctl_add()
205 error = copyout(&ctl, uptr, sizeof(ctl.out)); in mt_ctl_add()
217 union monotonic_ctl_counts ctl; in mt_ctl_counts() local
221 error = copyin(uptr, &ctl, sizeof(ctl.in)); in mt_ctl_counts()
226 if (ctl.in.ctr_mask == 0) { in mt_ctl_counts()
234 error = dev->mtd_read(ctl.in.ctr_mask, (uint64_t *)counts); in mt_ctl_counts()
252 union monotonic_ctl_enable ctl; in mt_ctl_enable() local
256 error = copyin(uptr, &ctl, sizeof(ctl)); in mt_ctl_enable()
261 dev->mtd_enable(ctl.in.enable); in mt_ctl_enable()