Home
last modified time | relevance | path

Searched refs:ctlp (Results 1 – 6 of 6) sorted by relevance

/freebsd-12.1/sys/dev/rp/
H A Drp_pci.c153 CONTROLLER_t *ctlp; in rp_pciattach() local
158 bzero(ctlp, sizeof(*ctlp)); in rp_pciattach()
159 ctlp->dev = dev; in rp_pciattach()
166 ctlp->io_num = 1; in rp_pciattach()
167 ctlp->io_rid = malloc(sizeof(*(ctlp->io_rid)) * ctlp->io_num, M_DEVBUF, M_NOWAIT | M_ZERO); in rp_pciattach()
168 ctlp->io = malloc(sizeof(*(ctlp->io)) * ctlp->io_num, M_DEVBUF, M_NOWAIT | M_ZERO); in rp_pciattach()
169 if (ctlp->io_rid == NULL || ctlp->io == NULL) { in rp_pciattach()
220 CONTROLLER_t *ctlp; in rp_pcidetach() local
245 bus_release_resource(ctlp->dev, SYS_RES_IOPORT, ctlp->io_rid[0], ctlp->io[0]); in rp_pcireleaseresource()
247 ctlp->io = NULL; in rp_pcireleaseresource()
[all …]
H A Drp_isa.c73 #define ISACTL(ctlp) ((ISACONTROLLER_t *)((ctlp)->bus_ctlp)) argument
151 CONTROLLER_t *ctlp; in rp_probe() local
173 bzero(ctlp, sizeof(*ctlp)); in rp_probe()
174 ctlp->dev = dev; in rp_probe()
180 ctlp->io_num = 1; in rp_probe()
183 if (ctlp->io_rid == NULL || ctlp->io == NULL) { in rp_probe()
196 ctlp->io_rid[0] = 0; in rp_probe()
240 CONTROLLER_t *ctlp; in rp_attach() local
280 rp_releaseresource(ctlp); in rp_isareleaseresource()
284 if (ctlp->io != NULL) { in rp_isareleaseresource()
[all …]
H A Drpreg.h73 (rp_readio1((ctlp), (ctlp)->aiop2rid(aiop, offset), (ctlp)->aiop2off(aiop, offset)))
75 (rp_readio2((ctlp), (ctlp)->aiop2rid(aiop, offset), (ctlp)->aiop2off(aiop, offset)))
77 (rp_readio4((ctlp), (ctlp)->aiop2rid(aiop, offset), (ctlp)->aiop2off(aiop, offset)))
79 …(rp_readmultiio1((ctlp), (ctlp)->aiop2rid(aiop, offset), (ctlp)->aiop2off(aiop, offset), addr, cou…
81 …(rp_readmultiio2((ctlp), (ctlp)->aiop2rid(aiop, offset), (ctlp)->aiop2off(aiop, offset), addr, cou…
83 …(rp_readmultiio4((ctlp), (ctlp)->aiop2rid(aiop, offset), (ctlp)->aiop2off(aiop, offset), addr, cou…
85 (rp_writeio1((ctlp), (ctlp)->aiop2rid(aiop, offset), (ctlp)->aiop2off(aiop, offset), data))
87 (rp_writeio2((ctlp), (ctlp)->aiop2rid(aiop, offset), (ctlp)->aiop2off(aiop, offset), data))
89 (rp_writeio4((ctlp), (ctlp)->aiop2rid(aiop, offset), (ctlp)->aiop2off(aiop, offset), data))
91 …(rp_writemultiio1((ctlp), (ctlp)->aiop2rid(aiop, offset), (ctlp)->aiop2off(aiop, offset), addr, co…
[all …]
H A Drp.c731 ctlp->num_ports = num_ports; in rp_attachcommon()
747 rp->rp_ctlp = ctlp; in rp_attachcommon()
770 ctlp->hwmtx_init = 1; in rp_attachcommon()
774 rp_releaseresource(ctlp); in rp_attachcommon()
785 if (ctlp->rp != NULL) { in rp_releaseresource()
787 rp = ctlp->rp + i; in rp_releaseresource()
788 atomic_add_32(&ctlp->free, 1); in rp_releaseresource()
793 ctlp->rp = NULL; in rp_releaseresource()
796 while (ctlp->free != 0) { in rp_releaseresource()
800 if (ctlp->hwmtx_init) in rp_releaseresource()
[all …]
/freebsd-12.1/cddl/contrib/opensolaris/common/ctf/
H A Dctf_labels.c57 const ctf_lblent_t *ctlp; in ctf_label_topmost() local
61 if (extract_label_info(fp, &ctlp, &num_labels) == CTF_ERR) in ctf_label_topmost()
69 if ((s = ctf_strraw(fp, (ctlp + num_labels - 1)->ctl_label)) == NULL) in ctf_label_topmost()
82 const ctf_lblent_t *ctlp; in ctf_label_iter() local
88 if (extract_label_info(fp, &ctlp, &num_labels) == CTF_ERR) in ctf_label_iter()
94 for (i = 0; i < num_labels; i++, ctlp++) { in ctf_label_iter()
95 if ((lname = ctf_strraw(fp, ctlp->ctl_label)) == NULL) { in ctf_label_iter()
97 "typeidx %u\n", ctlp->ctl_label, ctlp->ctl_typeidx); in ctf_label_iter()
101 linfo.ctb_typeidx = ctlp->ctl_typeidx; in ctf_label_iter()
/freebsd-12.1/contrib/ipfilter/ipsend/
H A Ddlcommon.c486 strgetmsg(fd, ctlp, datap, flagsp, caller) in strgetmsg() argument
488 struct strbuf *ctlp, *datap;
508 if ((rc = getmsg(fd, ctlp, datap, flagsp)) < 0) {
534 if (ctlp->len < sizeof (long))
535 err("getmsg: control portion length < sizeof (long): %d", ctlp->len);