Home
last modified time | relevance | path

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

1234

/titanic_44/usr/src/cmd/zonestat/zonestatd/
H A Dzonestatd.c811 zsd_lookup_zone(zsd_ctl_t *ctl, char *zonename, zoneid_t zoneid) in zsd_lookup_zone() argument
815 for (zone = list_head(&ctl->zsctl_zones); zone != NULL; in zsd_lookup_zone()
816 zone = list_next(&ctl->zsctl_zones, zone)) { in zsd_lookup_zone()
827 zsd_lookup_zone_byid(zsd_ctl_t *ctl, zoneid_t zoneid) in zsd_lookup_zone_byid() argument
831 for (zone = list_head(&ctl->zsctl_zones); zone != NULL; in zsd_lookup_zone_byid()
832 zone = list_next(&ctl->zsctl_zones, zone)) { in zsd_lookup_zone_byid()
840 zsd_allocate_zone(zsd_ctl_t *ctl, char *zonename, zoneid_t zoneid) in zsd_allocate_zone() argument
874 ctl->zsctl_nzones++; in zsd_allocate_zone()
880 zsd_lookup_insert_zone(zsd_ctl_t *ctl, char *zonename, zoneid_t zoneid) in zsd_lookup_insert_zone() argument
884 if ((zone = zsd_lookup_zone(ctl, zonename, zoneid)) != NULL) in zsd_lookup_insert_zone()
[all …]
/titanic_44/usr/src/uts/common/syscall/
H A Dstrcalls.c53 int getmsg(int fdes, struct strbuf *ctl, struct strbuf *data, int *flagsp);
54 int putmsg(int fdes, struct strbuf *ctl, struct strbuf *data, int flags);
55 int getpmsg(int fdes, struct strbuf *ctl, struct strbuf *data, int *prip,
57 int putpmsg(int fdes, struct strbuf *ctl, struct strbuf *data, int pri,
60 static int msgio(int fdes, struct strbuf *ctl, struct strbuf *data, int *rval,
64 getmsg(int fdes, struct strbuf *ctl, struct strbuf *data, int *flagsp) in getmsg() argument
90 if ((error = msgio(fdes, ctl, data, &rv, FREAD, &pri, in getmsg()
108 putmsg(int fdes, struct strbuf *ctl, struct strbuf *data, int flags) in putmsg() argument
132 error = msgio(fdes, ctl, data, &rv, FWRITE, &pri, &realflags); in putmsg()
140 getpmsg(int fdes, struct strbuf *ctl, struct strbuf *data, int *prip, in getpmsg() argument
[all …]
/titanic_44/usr/src/uts/common/io/
H A Dsysevent.c157 evchan_ctl_t *ctl; in sysevent_publish() local
159 ctl = ddi_get_soft_state(evchan_ctlp, getminor(dev)); in sysevent_publish()
160 if (ctl == NULL || ctl->chp == NULL) in sysevent_publish()
193 return (evch_usrpostevent(ctl->chp, ev, uargs.flags)); in sysevent_publish()
207 evchan_ctl_t *ctl; in sysevent_chan_open() local
211 ctl = ddi_get_soft_state(evchan_ctlp, getminor(dev)); in sysevent_chan_open()
212 if (ctl == NULL) { in sysevent_chan_open()
239 ctl->chp = evch_usrchanopen((const char *)chan_name, in sysevent_chan_open()
256 evchan_ctl_t *ctl; in sysevent_chan_control() local
259 ctl = ddi_get_soft_state(evchan_ctlp, getminor(dev)); in sysevent_chan_control()
[all …]
/titanic_44/usr/src/uts/common/io/chxge/com/
H A Dmv88e1xxx.c76 u32 ctl; in mv88e1xxx_reset() local
82 (void) simple_mdio_read(cphy, MII_BMCR, &ctl); in mv88e1xxx_reset()
83 ctl &= BMCR_RESET; in mv88e1xxx_reset()
84 if (ctl) in mv88e1xxx_reset()
86 } while (ctl && --time_out); in mv88e1xxx_reset()
88 return ctl ? -1 : 0; in mv88e1xxx_reset()
155 u32 ctl; in mv88e1xxx_set_speed_duplex() local
157 (void) simple_mdio_read(phy, MII_BMCR, &ctl); in mv88e1xxx_set_speed_duplex()
159 ctl &= ~(BMCR_SPEED100 | BMCR_SPEED1000 | BMCR_ANENABLE); in mv88e1xxx_set_speed_duplex()
161 ctl |= BMCR_SPEED100; in mv88e1xxx_set_speed_duplex()
[all …]
/titanic_44/usr/src/uts/intel/dtrace/
H A Dfbt.c149 fbt_provide_module(void *arg, struct modctl *ctl) in fbt_provide_module() argument
151 struct module *mp = ctl->mod_mp; in fbt_provide_module()
155 char *modname = ctl->mod_modname; in fbt_provide_module()
168 if (ctl->mod_requisites != NULL) { in fbt_provide_module()
171 list = (struct modctl_list *)ctl->mod_requisites; in fbt_provide_module()
322 fbt->fbtp_ctl = ctl; in fbt_provide_module()
323 fbt->fbtp_loadcnt = ctl->mod_loadcnt; in fbt_provide_module()
412 fbt->fbtp_ctl = ctl; in fbt_provide_module()
413 fbt->fbtp_loadcnt = ctl->mod_loadcnt; in fbt_provide_module()
450 struct modctl *ctl = fbt->fbtp_ctl; in fbt_destroy() local
[all …]
H A Dsdt.c102 sdt_provide_module(void *arg, struct modctl *ctl) in sdt_provide_module() argument
104 struct module *mp = ctl->mod_mp; in sdt_provide_module()
105 char *modname = ctl->mod_modname; in sdt_provide_module()
153 sdp->sdp_loadcnt = ctl->mod_loadcnt; in sdt_provide_module()
154 sdp->sdp_ctl = ctl; in sdt_provide_module()
197 struct modctl *ctl = sdp->sdp_ctl; in sdt_destroy() local
200 if (ctl != NULL && ctl->mod_loadcnt == sdp->sdp_loadcnt) { in sdt_destroy()
201 if ((ctl->mod_loadcnt == sdp->sdp_loadcnt && in sdt_destroy()
202 ctl->mod_loaded)) { in sdt_destroy()
203 ((struct module *)(ctl->mod_mp))->sdt_nprobes--; in sdt_destroy()
[all …]
/titanic_44/usr/src/lib/cfgadm_plugins/sbd/common/
H A Dap_sbd.c47 sbd_ioctl_arg_t *ctl; in ap_getncm() local
50 if (a->fd == -1 || a->ctl == NULL) in ap_getncm()
53 ctl = (sbd_ioctl_arg_t *)a->ctl; in ap_getncm()
54 ctl->ic_type = type; in ap_getncm()
55 ctl->ic_name[0] = '\0'; in ap_getncm()
56 ctl->ic_unit = 0; in ap_getncm()
57 ctl->i_len = 0; in ap_getncm()
58 ctl->i_opts = NULL; in ap_getncm()
60 DBG("ioctl(%d SBD_CMD_GETNCM, 0x%p)\n", a->fd, (void *)ctl); in ap_getncm()
62 if (ioctl(a->fd, SBD_CMD_GETNCM, ctl) == -1) { in ap_getncm()
[all …]
/titanic_44/usr/src/uts/sparc/dtrace/
H A Dsdt.c127 sdt_provide_module(void *arg, struct modctl *ctl) in sdt_provide_module() argument
129 struct module *mp = ctl->mod_mp; in sdt_provide_module()
130 char *modname = ctl->mod_modname; in sdt_provide_module()
155 primary = vmem_contains(heap_arena, (void *)ctl, 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()
260 if ((ctl->mod_loadcnt == sdp->sdp_loadcnt && in sdt_destroy()
261 ctl->mod_loaded) || sdp->sdp_primary) { in sdt_destroy()
[all …]
H A Dfbt.c998 fbt_provide_module(void *arg, struct modctl *ctl) in fbt_provide_module() argument
1000 struct module *mp = ctl->mod_mp; in fbt_provide_module()
1001 char *modname = ctl->mod_modname; in fbt_provide_module()
1025 if (ctl->mod_requisites != NULL) { in fbt_provide_module()
1028 list = (struct modctl_list *)ctl->mod_requisites; in fbt_provide_module()
1067 primary = vmem_contains(heap_arena, (void *)ctl, in fbt_provide_module()
1362 fbt->fbtp_ctl = ctl; in fbt_provide_module()
1380 fbt->fbtp_loadcnt = ctl->mod_loadcnt; in fbt_provide_module()
1408 fbt->fbtp_ctl = ctl; in fbt_provide_module()
1431 fbt->fbtp_loadcnt = ctl->mod_loadcnt; in fbt_provide_module()
[all …]
/titanic_44/usr/src/lib/libc/sparc/sys/
H A Dptrace.c153 } ctl; in ptrace() local
175 ctl.cmd = PCSTRACE; in ptrace()
176 prfillset(&ctl.arg.signals); in ptrace()
177 if (write(fd, (char *)&ctl, sizeof (long)+sizeof (sigset_t)) in ptrace()
180 ctl.cmd = PCSFAULT; in ptrace()
181 premptyset(&ctl.arg.faults); in ptrace()
182 if (write(fd, (char *)&ctl, sizeof (long)+sizeof (fltset_t)) in ptrace()
185 ctl.cmd = PCSENTRY; in ptrace()
186 premptyset(&ctl.arg.syscalls); in ptrace()
187 if (write(fd, (char *)&ctl, sizeof (long)+sizeof (sysset_t)) in ptrace()
[all …]
/titanic_44/usr/src/lib/libc/i386/sys/
H A Dptrace.c153 } ctl; in ptrace() local
175 ctl.cmd = PCSTRACE; in ptrace()
176 prfillset(&ctl.arg.signals); in ptrace()
177 if (write(fd, (char *)&ctl, sizeof (long)+sizeof (sigset_t)) in ptrace()
180 ctl.cmd = PCSFAULT; in ptrace()
181 premptyset(&ctl.arg.faults); in ptrace()
182 if (write(fd, (char *)&ctl, sizeof (long)+sizeof (fltset_t)) in ptrace()
185 ctl.cmd = PCSENTRY; in ptrace()
186 premptyset(&ctl.arg.syscalls); in ptrace()
187 if (write(fd, (char *)&ctl, sizeof (long)+sizeof (sysset_t)) in ptrace()
[all …]
/titanic_44/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.c1336 long *ctl; in Psetpriv() local
1348 ctl = malloc(sz); in Psetpriv()
1349 if (ctl == NULL) in Psetpriv()
1352 ctl[0] = PCSPRIV; in Psetpriv()
1354 (void) memcpy(&ctl[1], pprv, PRIV_PRPRIV_SIZE(pprv)); in Psetpriv()
1356 if (write(P->ctlfd, ctl, sz) != sz) in Psetpriv()
1361 free(ctl); in Psetpriv()
1794 long ctl[3]; in Pstopstatus() local
1826 ctl[0] = PCDSTOP; in Pstopstatus()
1827 ctl[1] = PCTWSTOP; in Pstopstatus()
[all …]
/titanic_44/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()
/titanic_44/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()
537 mdb_printf(" vaddr_base = 0x%lx\n", (long)ctl->d.vaddr_base); in ttctl()
538 mdb_printf(" last_offset = 0x%x\n", ctl->d.last_offset); in ttctl()
539 mdb_printf(" offset = 0x%x\n", ctl->d.offset); in ttctl()
540 mdb_printf(" limit = 0x%x\n", ctl->d.limit); in ttctl()
541 mdb_printf(" paddr_base = 0x%llx\n", ctl->d.paddr_base); in ttctl()
542 mdb_printf(" asi = 0x%02x\n}\n", ctl->d.asi); in ttctl()
673 TRAP_TRACE_CTL *ctls, *ctl; in ttrace_walk_init() local
[all …]
/titanic_44/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()
/titanic_44/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);
242 error = (*a->apr_ctl)(a, ctl, a->apr_private);
307 ap_ctl_t ctl; local
316 error = BCOPYIN(data, &ctl, sizeof(ctl));
322 if (ctl.apc_dsize > 0) {
323 KMALLOCS(ptr, caddr_t, ctl.apc_dsize);
[all …]
/titanic_44/usr/src/lib/libbc/libc/sys/common/
H A Dsend.c84 struct strbuf ctl; local
128 ctl.maxlen = sizeof (struct log_ctl);
129 ctl.len = sizeof (struct log_ctl);
130 ctl.buf = (caddr_t)&hdr;
140 if (_putmsg(s, &ctl, &dat, 0) == 0)
/titanic_44/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()
596 chan->conformanceTestLimit[1] = ctl; in ath9k_regd_add_channel()
598 chan->conformanceTestLimit[2] = 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()
797 ctl = rd->conformanceTestLimit | CTL_11B; in ath9k_regd_init_channels()
806 ctl = rd->conformanceTestLimit | CTL_11G; 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
[all …]
/titanic_44/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)
/titanic_44/usr/src/lib/watchmalloc/common/
H A Dmalloc.c1344 } ctl; in init_watch() local
1350 premptyset(&ctl.fltset); in init_watch()
1354 ctl.fltset = pstatus.pr_flttrace; in init_watch()
1357 praddset(&ctl.fltset, FLTWATCH); 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()
1421 ctl.prwatch.pr_vaddr = (uintptr_t)tp; in protect()
1422 ctl.prwatch.pr_size = size + WORDSIZE; in protect()
[all …]
/titanic_44/usr/src/lib/libast/common/sfio/
H A D_sfopen.c79 int ctl = sysfcntlf(f->file, F_GETFL, 0); local
80 ctl = (ctl & ~(O_TEXT|O_BINARY|O_APPEND)) | oflags;
81 sysfcntlf(f->file, F_SETFL, ctl);

1234