Home
last modified time | relevance | path

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

/NextBSD/sys/dev/rp/
HDrp_pci.c113 static void rp_pcireleaseresource(CONTROLLER_t *ctlp);
151 CONTROLLER_t *ctlp; in rp_pciattach() local
155 ctlp = device_get_softc(dev); in rp_pciattach()
156 bzero(ctlp, sizeof(*ctlp)); in rp_pciattach()
157 ctlp->dev = dev; in rp_pciattach()
159 ctlp->aiop2rid = rp_pci_aiop2rid; in rp_pciattach()
160 ctlp->aiop2off = rp_pci_aiop2off; in rp_pciattach()
161 ctlp->ctlmask = rp_pci_ctlmask; in rp_pciattach()
164 ctlp->io_num = 1; in rp_pciattach()
165 ctlp->io_rid = malloc(sizeof(*(ctlp->io_rid)) * ctlp->io_num, M_DEVBUF, M_NOWAIT | M_ZERO); in rp_pciattach()
[all …]
HDrp_isa.c71 #define ISACTL(ctlp) ((ISACONTROLLER_t *)((ctlp)->bus_ctlp)) argument
132 static void rp_isareleaseresource(CONTROLLER_t *ctlp);
149 CONTROLLER_t *ctlp; in rp_probe() local
170 ctlp = device_get_softc(dev); in rp_probe()
171 bzero(ctlp, sizeof(*ctlp)); in rp_probe()
172 ctlp->dev = dev; in rp_probe()
173 ctlp->aiop2rid = rp_isa_aiop2rid; in rp_probe()
174 ctlp->aiop2off = rp_isa_aiop2off; in rp_probe()
175 ctlp->ctlmask = rp_isa_ctlmask; in rp_probe()
178 ctlp->io_num = 1; in rp_probe()
[all …]
HDrpreg.h48 #define rp_readio(size, ctlp, rid, offset) \ argument
49 (bus_read_##size(ctlp->io[rid], offset))
50 #define rp_readmultiio(size, ctlp, rid, offset, addr, count) \ argument
51 (bus_read_multi_##size(ctlp->io[rid], offset, addr, count))
52 #define rp_writeio(size, ctlp, rid, offset, data) \ argument
53 (bus_write_##size(ctlp->io[rid], offset, data))
54 #define rp_writemultiio(size, ctlp, rid, offset, addr, count) \ argument
55 (bus_write_multi_##size(ctlp->io[rid], offset, addr, count))
57 #define rp_readio1(ctlp, rid, offset) rp_readio(1, ctlp, rid, offset) argument
58 #define rp_readio2(ctlp, rid, offset) rp_readio(2, ctlp, rid, offset) argument
[all …]
HDrp.c710 CONTROLLER_t *ctlp = rp->rp_ctlp; in rpfree() local
712 atomic_subtract_32(&ctlp->free, 1); in rpfree()
716 rp_attachcommon(CONTROLLER_T *ctlp, int num_aiops, int num_ports) in rp_attachcommon() argument
726 unit = device_get_unit(ctlp->dev); in rp_attachcommon()
731 ctlp->num_ports = num_ports; in rp_attachcommon()
732 ctlp->rp = rp = (struct rp_port *) in rp_attachcommon()
735 device_printf(ctlp->dev, "rp_attachcommon: Could not malloc rp_ports structures.\n"); in rp_attachcommon()
742 num_chan = sGetAiopNumChan(ctlp, aiop); in rp_attachcommon()
747 rp->rp_ctlp = ctlp; in rp_attachcommon()
757 if(sInitChan(ctlp, &rp->rp_channel, aiop, chan) == 0) { in rp_attachcommon()
[all …]
/NextBSD/cddl/contrib/opensolaris/common/ctf/
HDctf_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()
/NextBSD/contrib/ipfilter/ipsend/
HDdlcommon.c490 strgetmsg(fd, ctlp, datap, flagsp, caller) in strgetmsg() argument
492 struct strbuf *ctlp, *datap;
512 if ((rc = getmsg(fd, ctlp, datap, flagsp)) < 0) {
538 if (ctlp->len < sizeof (long))
539 err("getmsg: control portion length < sizeof (long): %d", ctlp->len);