Home
last modified time | relevance | path

Searched refs:ctl (Results 1 – 25 of 109) sorted by relevance

12345

/illumos-gate/usr/src/cmd/zonestat/zonestatd/
H A Dzonestatd.c874 ctl->zsctl_nzones++; in zsd_allocate_zone()
1426 ctl->zsctl_npsets++; in zsd_allocate_pset()
1986 ctl->zsctl_pset_cache[num] = ctl->zsctl_pset_cache[0]; in zsd_refresh_psets()
3589 ctl->zsctl_hrtime_prev = ctl->zsctl_hrtime; in zsd_refresh_cpu_stats()
3660 elapsed = ctl->zsctl_hrtime - ctl->zsctl_hrtime_prev; in zsd_refresh_cpu_stats()
4063 if (ctl == NULL && (ctl = (zsd_ctl_t *)calloc(1, in zsd_open()
4095 if (ctl->zsctl_system == NULL && (ctl->zsctl_system = (zsd_system_t *) in zsd_open()
4113 if (ctl->zsctl_cpu_array == NULL && (ctl->zsctl_cpu_array = in zsd_open()
4216 return (ctl); in zsd_open()
4218 if (ctl) in zsd_open()
[all …]
/illumos-gate/usr/src/uts/common/syscall/
H A Dstrcalls.c90 if ((error = msgio(fdes, ctl, data, &rv, FREAD, &pri, in getmsg()
223 if ((ctl != NULL) && in msgio()
224 copyin(ctl, &msgctl, sizeof (struct strbuf))) { in msgio()
235 if (ctl == NULL) in msgio()
255 if (((ctl != NULL) && in msgio()
269 if (ctl == NULL) in msgio()
453 if (ctl != NULL) { in msgio32()
454 if (copyin(ctl, &msgctl32, sizeof (msgctl32))) { in msgio32()
473 if (ctl == NULL) in msgio32()
493 if (ctl != NULL) { in msgio32()
[all …]
/illumos-gate/usr/src/uts/intel/dtrace/
H A Dfbt.c303 fbt->fbtp_ctl = ctl; in fbt_provide_module()
383 fbt->fbtp_ctl = ctl; in fbt_provide_module()
413 if (ctl != NULL && ctl->mod_loadcnt == fbt->fbtp_loadcnt) { in fbt_destroy()
415 ctl->mod_loaded)) { in fbt_destroy()
454 ctl->mod_nenabled++; in fbt_enable()
456 if (!ctl->mod_loaded) { in fbt_enable()
495 ctl->mod_nenabled--; in fbt_disable()
497 if (!ctl->mod_loaded || (ctl->mod_loadcnt != fbt->fbtp_loadcnt)) in fbt_disable()
513 if (!ctl->mod_loaded || (ctl->mod_loadcnt != fbt->fbtp_loadcnt)) in fbt_suspend()
529 if (!ctl->mod_loaded || (ctl->mod_loadcnt != fbt->fbtp_loadcnt)) in fbt_resume()
[all …]
H A Dsdt.c102 struct module *mp = ctl->mod_mp; in sdt_provide_module()
103 char *modname = ctl->mod_modname; in sdt_provide_module()
152 sdp->sdp_ctl = ctl; in sdt_provide_module()
195 struct modctl *ctl = sdp->sdp_ctl; in sdt_destroy() local
198 if (ctl != NULL && ctl->mod_loadcnt == sdp->sdp_loadcnt) { in sdt_destroy()
200 ctl->mod_loaded)) { in sdt_destroy()
238 struct modctl *ctl = sdp->sdp_ctl; in sdt_enable() local
240 ctl->mod_nenabled++; in sdt_enable()
246 if (!ctl->mod_loaded) { in sdt_enable()
284 ctl->mod_nenabled--; in sdt_disable()
[all …]
/illumos-gate/usr/src/lib/cfgadm_plugins/sbd/common/
H A Dap_sbd.c53 ctl = (sbd_ioctl_arg_t *)a->ctl; in ap_getncm()
57 ctl->i_len = 0; in ap_getncm()
110 if (a->ctl == NULL && (a->ctl = calloc(1, sizeof (*ctl))) == NULL) { in ap_stat()
156 ctl = (sbd_ioctl_arg_t *)a->ctl; in ap_stat()
157 ctl->i_len = 0; in ap_stat()
533 if (a->ctl == NULL && (a->ctl = calloc(1, sizeof (*ctl))) == NULL) { in ap_ioctl()
540 ctl = (sbd_ioctl_arg_t *)a->ctl; in ap_ioctl()
583 ctl->i_len = strlen(ctl->i_opts) + 1; in ap_ioctl()
585 DBG("i_opts=%s\n", ctl->i_opts ? ctl->i_opts : "NULL"); in ap_ioctl()
652 sbd_ioctl_arg_t *ctl = (sbd_ioctl_arg_t *)a->ctl; in ap_sys_err() local
[all …]
/illumos-gate/usr/src/uts/common/io/chxge/com/
H A Dmv88e1xxx.c76 u32 ctl; in mv88e1xxx_reset() local
83 ctl &= BMCR_RESET; in mv88e1xxx_reset()
84 if (ctl) in mv88e1xxx_reset()
88 return ctl ? -1 : 0; in mv88e1xxx_reset()
155 u32 ctl; in mv88e1xxx_set_speed_duplex() local
161 ctl |= BMCR_SPEED100; in mv88e1xxx_set_speed_duplex()
168 ctl |= BMCR_FULLDPLX; in mv88e1xxx_set_speed_duplex()
171 ctl |= BMCR_ANENABLE; in mv88e1xxx_set_speed_duplex()
189 u32 ctl; in mv88e1xxx_autoneg_enable() local
202 u32 ctl; in mv88e1xxx_autoneg_disable() local
[all …]
/illumos-gate/usr/src/uts/common/io/
H A Dsysevent.c157 evchan_ctl_t *ctl; in sysevent_publish() local
160 if (ctl == NULL || ctl->chp == NULL) in sysevent_publish()
207 evchan_ctl_t *ctl; in sysevent_chan_open() local
212 if (ctl == NULL) { in sysevent_chan_open()
256 evchan_ctl_t *ctl; in sysevent_chan_control() local
260 if (ctl == NULL || ctl->chp == NULL) in sysevent_chan_control()
297 if (ctl == NULL || ctl->chp == NULL) in sysevent_subscribe()
359 if (ctl == NULL || ctl->chp == NULL) in sysevent_unsubscribe()
484 if (ctl == NULL || ctl->chp == NULL) in sysevent_setpropnvl()
531 if (ctl == NULL || ctl->chp == NULL) in sysevent_getpropnvl()
[all …]
/illumos-gate/usr/src/uts/sparc/dtrace/
H A Dsdt.c129 struct module *mp = ctl->mod_mp; in sdt_provide_module()
130 char *modname = ctl->mod_modname; in sdt_provide_module()
212 sdp->sdp_loadcnt = ctl->mod_loadcnt; in sdt_provide_module()
214 sdp->sdp_ctl = ctl; in sdt_provide_module()
257 struct modctl *ctl = sdp->sdp_ctl; in sdt_destroy() local
259 if (ctl != NULL && ctl->mod_loadcnt == sdp->sdp_loadcnt) { in sdt_destroy()
279 struct modctl *ctl = sdp->sdp_ctl; in sdt_enable() local
281 ctl->mod_nenabled++; in sdt_enable()
324 struct modctl *ctl = sdp->sdp_ctl; in sdt_disable() local
326 ASSERT(ctl->mod_nenabled > 0); in sdt_disable()
[all …]
H A Dfbt.c1000 struct module *mp = ctl->mod_mp; in fbt_provide_module()
1362 fbt->fbtp_ctl = ctl; in fbt_provide_module()
1408 fbt->fbtp_ctl = ctl; in fbt_provide_module()
1471 if (ctl != NULL && ctl->mod_loadcnt == fbt->fbtp_loadcnt) { in fbt_destroy()
1492 ctl->mod_nenabled++; in fbt_enable()
1552 ASSERT(ctl->mod_nenabled > 0); in fbt_disable()
1553 ctl->mod_nenabled--; in fbt_disable()
1581 ASSERT(ctl->mod_nenabled > 0); in fbt_suspend()
1600 ASSERT(ctl->mod_nenabled > 0); in fbt_resume()
1612 struct module *mp = ctl->mod_mp; in fbt_getargdesc()
[all …]
/illumos-gate/usr/src/lib/libc/i386/sys/
H A Dptrace.c151 } ctl; in ptrace() local
173 ctl.cmd = PCSTRACE; in ptrace()
178 ctl.cmd = PCSFAULT; in ptrace()
183 ctl.cmd = PCSENTRY; in ptrace()
188 ctl.cmd = PCSEXIT; in ptrace()
193 ctl.cmd = PCUNSET; in ptrace()
198 ctl.cmd = PCSET; in ptrace()
371 ctl.cmd = PCSSIG; in ptrace()
535 long ctl[2]; in GrabProc() local
554 ctl[0] = PCSET; in GrabProc()
[all …]
/illumos-gate/usr/src/lib/libc/sparc/sys/
H A Dptrace.c153 } ctl; in ptrace() local
175 ctl.cmd = PCSTRACE; in ptrace()
180 ctl.cmd = PCSFAULT; in ptrace()
185 ctl.cmd = PCSENTRY; in ptrace()
190 ctl.cmd = PCSEXIT; in ptrace()
195 ctl.cmd = PCUNSET; in ptrace()
200 ctl.cmd = PCSET; in ptrace()
381 ctl.cmd = PCSSIG; in ptrace()
545 long ctl[2]; in GrabProc() local
564 ctl[0] = PCSET; in GrabProc()
[all …]
/illumos-gate/usr/src/lib/libproc/common/
H A Dproc_set.c75 } ctl; in Psetzoneid() local
80 ctl.zoneid = zoneid; in Psetzoneid()
81 ctl.cmd = PCSZONE; in Psetzoneid()
83 if (write(Pctlfd(Pr), &ctl, sizeof (ctl)) < 0) in Psetzoneid()
H A DPcontrol.c1382 long *ctl; in Psetpriv() local
1407 free(ctl); in Psetpriv()
1840 long ctl[3]; in Pstopstatus() local
2237 if (write(ctlfd, &ctl, sizeof (ctl)) != sizeof (ctl)) in Pclearsig()
2249 if (write(ctlfd, &ctl, sizeof (ctl)) != sizeof (ctl)) in Pclearfault()
2353 long ctl[ in execute_bkpt() local
2495 if (write(P->ctlfd, ctl, sizeof (ctl)) != sizeof (ctl)) in Psetwapt()
2521 if (write(P->ctlfd, ctl, sizeof (ctl)) != sizeof (ctl)) in Pdelwapt()
2539 long ctl[ in execute_wapt() local
3696 if (write(ctlfd, &ctl, sizeof (ctl)) != sizeof (ctl)) in Lclearsig()
[all …]
/illumos-gate/usr/src/cmd/lp/lib/msgs/
H A Dmread.c69 struct strbuf ctl; local
90 ctl.buf = buff;
91 ctl.maxlen = sizeof (buff);
92 ctl.len = 0;
96 if (Getmsg(md, &ctl, &dat, &flag) < 0)
H A Dmwrite.c166 struct strbuf ctl; in _mwrite() local
180 ctl.buf = "xyzzy"; in _mwrite()
181 ctl.maxlen = ctl.len = strlen(ctl.buf)+1; in _mwrite()
187 if (Putmsg(md, &ctl, &dat, flag) == 0) in _mwrite()
/illumos-gate/usr/src/cmd/mdb/sun4u/modules/unix/
H A Dunix.c515 TRAP_TRACE_CTL *ctls, *ctl; in ttctl() local
531 for (ctl = &ctls[0], i = 0; i < ncpu; i++, ctl++) { in ttctl()
532 if (ctl->d.vaddr_base == 0) in ttctl()
673 TRAP_TRACE_CTL *ctls, *ctl; in ttrace_walk_init() local
700 ctl = &ctls[i]; in ttrace_walk_init()
714 ctl->d.vaddr_base); in ttrace_walk_init()
861 TRAP_TRACE_CTL *ctls, *ctl; in httctl() local
878 for (ctl = &ctls[0], i = 0; i < ncpu; i++, ctl++) { in httctl()
961 TRAP_TRACE_CTL *ctls, *ctl; in httrace_walk_init() local
989 ctl = &ctls[i]; in httrace_walk_init()
[all …]
/illumos-gate/usr/src/uts/common/inet/ipf/
H A Dip_proxy.c223 int appr_ctl(ctl, ifs) in appr_ctl() argument
224 ap_ctl_t *ctl; in appr_ctl()
230 a = appr_lookup(ctl->apc_p, ctl->apc_label, ifs);
234 ctl->apc_label, ctl->apc_p);
239 ctl->apc_label, ctl->apc_p);
307 ap_ctl_t ctl; local
316 error = BCOPYIN(data, &ctl, sizeof(ctl));
322 if (ctl.apc_dsize > 0) {
328 ctl.apc_dsize);
330 ctl.apc_data = ptr;
[all …]
/illumos-gate/usr/src/cmd/streams/log/
H A Dstrclean.c61 struct strbuf ctl, dat; in main() local
115 ctl.len = sizeof (struct log_ctl); in main()
116 ctl.maxlen = sizeof (struct log_ctl); in main()
117 ctl.buf = (caddr_t)&lctl; in main()
127 putmsg(fd, &ctl, &dat, 0); in main()
H A Dstrace.c181 struct strbuf ctl, dat; in main() local
189 ctl.buf = cbuf; in main()
190 ctl.maxlen = CTLSIZE; in main()
229 while (getmsg(log, &ctl, &dat, &flag) >= 0) { in main()
H A Dstrerr.c107 struct strbuf ctl; in main() local
116 ctl.buf = cbuf; in main()
117 ctl.maxlen = CTLSIZE; in main()
148 while (getmsg(fd, &ctl, &dat, &flag) >= 0) { in main()
/illumos-gate/usr/src/uts/common/io/arn/
H A Darn_regd.c434 uint8_t ctl, in ath9k_regd_add_channel() argument
594 chan->conformanceTestLimit[0] = ctl; in ath9k_regd_add_channel()
649 uint8_t ctl; in ath9k_regd_init_channels() local
791 ctl = rd->conformanceTestLimit; in ath9k_regd_init_channels()
866 maxChan, ctl, in ath9k_regd_init_channels()
999 uint32_t ctl = NO_CTL; in ath9k_regd_get_ctl() local
1004 ctl = SD_NO_CTL | CTL_11B; in ath9k_regd_get_ctl()
1006 ctl = SD_NO_CTL | CTL_11G; in ath9k_regd_get_ctl()
1008 ctl = SD_NO_CTL | CTL_11A; in ath9k_regd_get_ctl()
1021 ctl = (ctl & ~0xf) | CTL_11G; in ath9k_regd_get_ctl()
[all …]
/illumos-gate/usr/src/lib/librpcsvc/common/
H A Dbindresvport.c107 struct strbuf ctl[1], data[1]; local
112 ctl->maxlen = sizeof (ctlbuf);
113 ctl->buf = ctlbuf;
117 if (getmsg(fd, ctl, data, &flags) < 0)
/illumos-gate/usr/src/lib/watchmalloc/common/
H A Dmalloc.c1344 } ctl; in init_watch() local
1350 premptyset(&ctl.fltset); in init_watch()
1358 ctl.cmd = PCSFAULT; in init_watch()
1359 (void) write(ctlfd, &ctl, sizeof (ctl)); in init_watch()
1406 ctl_t ctl; in protect() local
1420 ctl.cmd = PCWATCH; in protect()
1423 ctl.prwatch.pr_wflags = wflags; in protect()
1424 (void) write(ctlfd, &ctl, sizeof (ctl)); in protect()
1430 ctl_t ctl; in unprotect() local
1437 ctl.cmd = PCWATCH; in unprotect()
[all …]
/illumos-gate/usr/src/cmd/bhyvectl/
H A Dbhyvectl.c1117 uint64_t ctl, addr; in get_misc_vmcb() local
1122 &ctl); in get_misc_vmcb()
1127 &ctl); in get_misc_vmcb()
1132 &ctl); in get_misc_vmcb()
1137 4, &ctl); in get_misc_vmcb()
1142 4, &ctl); in get_misc_vmcb()
1149 4, &ctl); in get_misc_vmcb()
1156 8, &ctl); in get_misc_vmcb()
1160 8, &ctl); in get_misc_vmcb()
1164 8, &ctl); in get_misc_vmcb()
[all …]
/illumos-gate/usr/src/boot/i386/libi386/
H A Dbiosmem.c101 v86.ctl = V86_FLAGS; in bios_getmem()
155 v86.ctl = 0; in bios_getmem()
168 v86.ctl = V86_FLAGS; in bios_getmem()
200 v86.ctl = 0; in bios_getmem()

12345