Searched refs:icp (Results 1 - 25 of 31) sorted by relevance

12

/netbsd-6-1-5-RELEASE/sys/dev/ic/
H A Dicp.c108 void icp_ccb_submit(struct icp_softc *icp, struct icp_ccb *ic);
126 icp_init(struct icp_softc *icp, const char *intrstr) argument
138 aprint_normal_dev(&icp->icp_dv, "interrupting at %s\n",
141 SIMPLEQ_INIT(&icp->icp_ccb_queue);
142 SIMPLEQ_INIT(&icp->icp_ccb_freelist);
143 SIMPLEQ_INIT(&icp->icp_ucmd_queue);
144 callout_init(&icp->icp_wdog_callout, 0);
149 if (bus_dmamap_create(icp->icp_dmat, ICP_SCRATCH_SIZE, 1,
151 &icp->icp_scr_dmamap) != 0) {
152 aprint_error_dev(&icp
427 icp_register_servicecb(struct icp_softc *icp, int unit, const struct icp_servicecb *cb) argument
435 icp_rescan(struct icp_softc *icp, int unit) argument
522 icp_rescan_all(struct icp_softc *icp) argument
563 icp_recompute_openings(struct icp_softc *icp) argument
592 struct icp_softc *icp; local
628 icp_async_event(struct icp_softc *icp, int service) argument
667 struct icp_softc *icp; local
758 struct icp_softc *icp = (void *) ic->ic_dv; local
784 icp_cmd(struct icp_softc *icp, u_int8_t service, u_int16_t opcode, u_int32_t arg1, u_int32_t arg2, u_int32_t arg3) argument
852 icp_ucmd(struct icp_softc *icp, gdt_ucmd_t *ucmd) argument
965 icp_ccb_alloc(struct icp_softc *icp) argument
984 icp_ccb_alloc_wait(struct icp_softc *icp) argument
1002 icp_ccb_free(struct icp_softc *icp, struct icp_ccb *ic) argument
1018 icp_ccb_enqueue(struct icp_softc *icp, struct icp_ccb *ic) argument
1076 icp_ccb_map(struct icp_softc *icp, struct icp_ccb *ic, void *data, int size, int dir) argument
1115 icp_ccb_unmap(struct icp_softc *icp, struct icp_ccb *ic) argument
1129 icp_ccb_poll(struct icp_softc *icp, struct icp_ccb *ic, int timo) argument
1188 icp_ccb_wait(struct icp_softc *icp, struct icp_ccb *ic, int timo) argument
1214 icp_ccb_wait_user(struct icp_softc *icp, struct icp_ccb *ic, int timo) argument
1236 icp_ccb_submit(struct icp_softc *icp, struct icp_ccb *ic) argument
1254 icp_freeze(struct icp_softc *icp) argument
1277 icp_unfreeze(struct icp_softc *icp) argument
1294 icp_store_event(struct icp_softc *icp, u_int16_t source, u_int16_t idx, gdt_evt_data *evt) argument
1335 icp_read_event(struct icp_softc *icp, int handle, gdt_evt_str *estr) argument
1371 icp_readapp_event(struct icp_softc *icp, u_int8_t application, gdt_evt_str *estr) argument
1404 icp_clear_events(struct icp_softc *icp) argument
[all...]
H A Dicp_ioctl.c125 struct icp_softc *icp; local
133 icp = device_lookup_private(&icp_cd, ucmd->io_node);
134 if (icp == NULL) {
139 error = icp_ucmd(icp, ucmd);
150 struct icp_softc *icp; local
153 icp = device_lookup_private(&icp_cd, ctrt->io_node);
154 if (icp == NULL) {
162 ctrt->info = (icp->icp_pci_bus << 8) | (icp->icp_pci_device << 3);
163 ctrt->ext_type = 0x6000 | icp
205 struct icp_softc *icp; local
265 struct icp_softc *icp; local
[all...]
H A Dld_icp.c97 struct icp_softc *icp = device_private(parent); local
98 struct icp_cachedrv *cd = &icp->icp_cdr[icpa->icpa_unit];
105 icp_register_servicecb(icp, icpa->icpa_unit, &ld_icp_servicecb);
115 ld->sc_maxqueuecnt = icp->icp_openings;
117 if (!icp_cmd(icp, ICP_CACHESERVICE, ICP_IOCTL, ICP_CACHE_DRV_INFO,
123 cdi = (struct icp_cdevinfo *)icp->icp_scr;
183 struct icp_softc *icp; local
186 icp = device_private(device_parent(sc->sc_ld.sc_dv));
191 if (__predict_false((ic = icp_ccb_alloc(icp)) == NULL))
201 rv = icp_ccb_map(icp, i
260 struct icp_softc *icp; local
292 struct icp_softc *icp; local
[all...]
H A Dicpsp.c97 struct icp_softc *icp; local
101 icp = (struct icp_softc *)parent;
104 sc->sc_openings = icp->icp_openings;
107 icp_register_servicecb(icp, icpa->icpa_unit, &icpsp_servicecb);
111 sc->sc_adapter.adapt_openings = icp->icp_openings;
112 sc->sc_adapter.adapt_max_periph = icp->icp_openings;
119 sc->sc_channel.chan_ntargets = ((icp->icp_class & ICP_FC) != 0 ?
122 sc->sc_channel.chan_id = icp->icp_bus_id[sc->sc_busno];
136 struct icp_softc *icp; local
141 icp
274 struct icp_softc *icp; local
[all...]
H A Dicpvar.h185 #define ICP_HAS_WORK(icp) \
186 (! SIMPLEQ_EMPTY(&(icp)->icp_ccb_queue) || \
187 ! SIMPLEQ_EMPTY(&(icp)->icp_ucmd_queue))
189 #define ICP_STAT_INCR(icp, x) \
197 #define ICP_STAT_SET(icp, x, v) \
205 #define ICP_STAT_DECR(icp, x) \
218 #define ICP_CLASS(icp) ((icp)->icp_class & ICP_CLASS_MASK)
/netbsd-6-1-5-RELEASE/sys/arch/alpha/pci/
H A Dirongate.c78 irongate_init(struct irongate_config *icp, int mallocsafe) argument
83 icp->ic_mallocsafe = mallocsafe;
89 irongate_pci_init(&icp->ic_pc, icp);
90 alpha_pci_chipset = &icp->ic_pc;
92 tag = pci_make_tag(&icp->ic_pc, 0, IRONGATE_PCIHOST_DEV, 0);
95 reg = irongate_conf_read0(icp, tag, PCI_CLASS_REG);
96 icp->ic_rev = PCI_REVISION(reg);
98 if (icp->ic_initted == 0) {
100 irongate_bus_io_init(&icp
132 struct irongate_config *icp; local
209 struct irongate_config *icp = &irongate_configuration; local
[all...]
H A Dirongate_dma.c70 irongate_dma_init(struct irongate_config *icp) argument
77 t = &icp->ic_dmat_pci;
78 t->_cookie = icp;
103 t = &icp->ic_dmat_isa;
104 t->_cookie = icp;
141 struct irongate_config *icp = t->_cookie; local
149 return (&icp->ic_dmat_pci);
155 return (&icp->ic_dmat_isa);
H A Dpci_up1000.c74 pci_up1000_pickintr(struct irongate_config *icp) argument
77 bus_space_tag_t iot = &icp->ic_iot;
78 pci_chipset_tag_t pc = &icp->ic_pc;
80 pc->pc_intr_v = icp;
146 struct irongate_config *icp = icv;
156 struct irongate_config *icp = icv;
167 struct irongate_config *icp = icv;
178 struct irongate_config *icp = icv;
/netbsd-6-1-5-RELEASE/sys/dev/pci/
H A Dicp_pci.c239 struct icp_softc *icp; local
256 icp = device_private(self);
257 icp->icp_class = icp_pci_find_class(pa);
264 icp->icp_class |= ICP_FC;
267 ICP_CLASS(icp) == ICP_PCINEW ? ICP_PCINEW_DPMEM : ICP_PCI_DPMEM,
271 ICP_CLASS(icp) == ICP_PCINEW ? ICP_PCINEW_DPMEM :
280 icp->icp_dpmemt = dpmemt;
281 icp->icp_dpmemh = dpmemh;
282 icp->icp_dpmembase = dpmembase;
283 icp
592 icp_pci_enable_intr(struct icp_softc *icp) argument
626 icp_pci_copy_cmd(struct icp_softc *icp, struct icp_ccb *ccb) argument
633 icp_pci_get_status(struct icp_softc *icp) argument
641 icp_pci_intr(struct icp_softc *icp, struct icp_intr_ctx *ctx) argument
648 icp_pci_release_event(struct icp_softc *icp, struct icp_ccb *ccb) argument
656 icp_pci_set_sema0(struct icp_softc *icp) argument
663 icp_pci_test_busy(struct icp_softc *icp) argument
675 icp_pcinew_copy_cmd(struct icp_softc *icp, struct icp_ccb *ccb) argument
683 icp_pcinew_get_status(struct icp_softc *icp) argument
691 icp_pcinew_intr(struct icp_softc *icp, struct icp_intr_ctx *ctx) argument
699 icp_pcinew_release_event(struct icp_softc *icp, struct icp_ccb *ccb) argument
707 icp_pcinew_set_sema0(struct icp_softc *icp) argument
714 icp_pcinew_test_busy(struct icp_softc *icp) argument
726 icp_mpr_copy_cmd(struct icp_softc *icp, struct icp_ccb *ic) argument
741 icp_mpr_get_status(struct icp_softc *icp) argument
749 icp_mpr_intr(struct icp_softc *icp, struct icp_intr_ctx *ctx) argument
791 icp_mpr_release_event(struct icp_softc *icp, struct icp_ccb *ic) argument
798 icp_mpr_set_sema0(struct icp_softc *icp) argument
805 icp_mpr_test_busy(struct icp_softc *icp) argument
[all...]
/netbsd-6-1-5-RELEASE/sys/arch/acorn32/podulebus/
H A Dicside.c181 struct icside_channel *icp; local
265 icp = &sc->sc_chan[channel];
266 sc->sc_wdcdev.sc_atac.atac_channels[channel] = &icp->ic_channel;
267 cp = &icp->ic_channel;
272 cp->ch_queue = &icp->ic_chqueue;
293 icp->ic_irqiot = iot;
295 IRQ_REGISTER_SPACE, 0, &icp->ic_irqioh))
298 (void)bus_space_read_1(iot, icp->ic_irqioh, 0);
301 icp->ic_irqaddr = pa->pa_podule->irq_addr;
302 icp
340 struct icside_channel *icp = arg; local
[all...]
/netbsd-6-1-5-RELEASE/sbin/ping/
H A Dping.c980 struct icmp *icp; local
990 ntohs((u_int16_t)icp->icmp_seq), \
1008 icp = (struct icmp *)(buf + hlen);
1009 if (icp->icmp_type == ICMP_ECHOREPLY
1010 && icp->icmp_id == ident) {
1013 if (icp->icmp_seq == htons((u_int16_t)(ntransmitted-1)))
1022 (void) memcpy(&tv32, icp->icmp_data, sizeof(tv32));
1026 (void) memcpy(&tv, icp->icmp_data, sizeof(tv));
1038 if (TST(ntohs((u_int16_t)icp->icmp_seq))) {
1042 SET(ntohs((u_int16_t)icp
1414 ck_pr_icmph(struct icmp *icp, struct sockaddr_in *from, int cc, int override) argument
1461 pr_icmph(struct icmp *icp, struct sockaddr_in *from, int cc) argument
1669 pr_iph(struct icmp *icp, int cc) argument
1740 pr_retip(struct icmp *icp, int cc) argument
[all...]
/netbsd-6-1-5-RELEASE/usr.sbin/timed/timed/
H A Dmeasure.c83 struct icmp icp; local
203 memset(&icp, 0, sizeof(icp));
204 memcpy(&icp, &packet[ip.ip_hl << 2],
205 MIN((size_t)ret, sizeof(icp)));
207 if (icp.icmp_type != ICMP_TSTAMPREPLY
208 || icp.icmp_id != oicp.icmp_id
209 || icp.icmp_seq < seqno
210 || icp.icmp_seq >= oicp.icmp_seq)
213 sendtime = ntohl(icp
[all...]
/netbsd-6-1-5-RELEASE/sys/netinet/
H A Dip_icmp.c230 struct icmp *icp; local
314 icp = mtod(m, struct icmp *);
318 icp->icmp_type = type;
320 icp->icmp_gwaddr.s_addr = dest;
322 icp->icmp_void = 0;
328 icp->icmp_pptr = code;
332 icp->icmp_nextmtu = htons(destmtu);
335 icp->icmp_code = code;
336 m_copydata(n, 0, icmplen, (void *)&icp->icmp_ip);
396 struct icmp *icp; local
896 struct icmp *icp; local
1093 icmp_mtudisc(struct icmp *icp, struct in_addr faddr) argument
[all...]
/netbsd-6-1-5-RELEASE/sys/arch/alpha/alpha/
H A Dapi_up1000.c112 struct irongate_config *icp; local
115 icp = &irongate_configuration;
116 irongate_init(icp, 0);
132 if(comcnattach(&icp->ic_iot, 0x3f8, comcnrate,
144 (void) pckbc_cnattach(&icp->ic_iot, IO_KBD, KBCMDP,
149 isa_display_console(&icp->ic_iot, &icp->ic_memt);
151 pci_display_console(&icp->ic_iot, &icp->ic_memt,
152 &icp
[all...]
/netbsd-6-1-5-RELEASE/sys/netmpls/
H A Dmpls_ttl.c178 struct icmp *icp; local
272 icp = mtod(m, struct icmp *);
276 icp->icmp_type = type;
278 icp->icmp_gwaddr.s_addr = dest;
280 icp->icmp_void = 0;
286 icp->icmp_pptr = code;
290 icp->icmp_nextmtu = htons(destmtu);
293 icp->icmp_code = code;
295 memset(&icp->icmp_ip, 0, ICMP_EXT_OFFSET);
296 m_copydata(n, 0, icmplen, (char *)&icp
[all...]
/netbsd-6-1-5-RELEASE/dist/ipf/ipsend/
H A Diptests.c590 struct icmp *icp; local
600 ip->ip_len = sizeof(*ip) + sizeof(*icp);
601 icp = (struct icmp *)((char *)ip + (IP_HL(ip) << 2));
611 bzero((char *)icp, sizeof(*icp));
613 icp->icmp_type = i;
618 icp->icmp_type = 255;
629 icp->icmp_type = 3;
631 icp->icmp_code = i;
642 icp
[all...]
/netbsd-6-1-5-RELEASE/sbin/ping6/
H A Dping6.c1190 struct icmp6_hdr *icp; local
1199 icp = (struct icmp6_hdr *)outpack;
1201 memset(icp, 0, sizeof(*icp));
1202 icp->icmp6_cksum = 0;
1208 icp->icmp6_code = ICMP6_NI_SUBJ_IPV6;
1217 icp->icmp6_code = 0; /* code field is always 0 */
1223 icp->icmp6_code = ICMP6_NI_SUBJ_IPV6;
1231 icp->icmp6_code = ICMP6_NI_SUBJ_FQDN; /*empty*/
1241 icp
1290 myechoreply(const struct icmp6_hdr *icp) argument
1381 struct icmp6_hdr *icp; local
2133 pr_icmph(struct icmp6_hdr *icp, u_char *end) argument
[all...]
/netbsd-6-1-5-RELEASE/usr.sbin/rtsold/
H A Drtsol.c236 struct icmp6_hdr *icp; local
277 icp = (struct icmp6_hdr *)rcvmhdr.msg_iov[0].iov_base;
279 if (icp->icmp6_type != ND_ROUTER_ADVERT) {
281 "invalid icmp type(%d) from %s on %s", icp->icmp6_type,
288 if (icp->icmp6_code != 0) {
290 "invalid icmp code(%d) from %s on %s", icp->icmp6_code,
/netbsd-6-1-5-RELEASE/usr.sbin/traceroute6/
H A Dtraceroute6.c942 struct icmp6_hdr *icp = (struct icmp6_hdr *)outpacket; local
944 icp->icmp6_type = ICMP6_ECHO_REQUEST;
945 icp->icmp6_code = 0;
946 icp->icmp6_cksum = 0;
947 icp->icmp6_id = ident;
948 icp->icmp6_seq = htons(seq);
1060 struct icmp6_hdr *icp; local
1087 icp = (struct icmp6_hdr *)(buf + hlen);
1099 icp = (struct icmp6_hdr *)buf;
1128 type = icp
[all...]
/netbsd-6-1-5-RELEASE/external/bsd/dhcpcd/dist/
H A Dipv6ns.c247 struct icmp6_hdr *icp; local
293 icp = (struct icmp6_hdr *)rcvhdr.msg_iov[0].iov_base;
294 if (icp->icmp6_type != ND_NEIGHBOR_ADVERT ||
295 icp->icmp6_code != 0)
311 nd_na = (struct nd_neighbor_advert *)icp;
H A Dipv6rs.c356 struct icmp6_hdr *icp; local
415 icp = (struct icmp6_hdr *)rcvhdr.msg_iov[0].iov_base;
416 if (icp->icmp6_type != ND_ROUTER_ADVERT ||
417 icp->icmp6_code != 0)
445 memcmp(rap->data, (unsigned char *)icp, rap->data_len) != 0))
471 memcpy(rap->data, icp, len);
476 nd_ra = (struct nd_router_advert *)icp;
489 p = ((uint8_t *)icp) + sizeof(struct nd_router_advert);
/netbsd-6-1-5-RELEASE/usr.sbin/traceroute/
H A Dtraceroute.c1434 struct icmp *icp; local
1449 icp = (struct icmp *)(buf + hlen);
1451 icp = (struct icmp *)buf;
1453 type = icp->icmp_type;
1454 code = icp->icmp_code;
1460 pmtu = ntohs(icp->icmp_nextmtu);
1462 pmtu = ntohs(((struct my_pmtu *)&icp->icmp_void)->ipm_nextmtu);
1471 hip = &icp->icmp_ip;
1474 nextmtu = ntohs(icp->icmp_nextmtu); /* for frag_err() */
1479 icp
[all...]
/netbsd-6-1-5-RELEASE/sys/netipsec/
H A Dipsec_netbsd.c93 struct icmp *icp; local
122 icp = (struct icmp *)((char *)ip -
124 icmp_mtudisc(icp, ip->ip_dst);
141 struct icmp *icp; local
171 icp = (struct icmp *)((char *)ip -
173 icmp_mtudisc(icp, ip->ip_dst);
/netbsd-6-1-5-RELEASE/usr.sbin/rtadvd/
H A Drtadvd.c568 struct icmp6_hdr *icp; local
634 icp = (struct icmp6_hdr *)(ip + 1); /* XXX: ext. hdr? */
643 icp = (struct icmp6_hdr *)rcvmhdr.msg_iov[0].iov_base;
646 switch (icp->icmp6_type) {
663 if (icp->icmp6_code) {
667 __func__, icp->icmp6_code,
683 rs_input(i, (struct nd_router_solicit *)icp, pi, &rcvfrom);
700 if (icp->icmp6_code) {
704 __func__, icp->icmp6_code,
720 ra_input(i, (struct nd_router_advert *)icp, p
[all...]
/netbsd-6-1-5-RELEASE/external/bsd/tcpdump/dist/
H A Dprint-icmp6.c202 static int icmp6_cksum(const struct ip6_hdr *ip6, const struct icmp6_hdr *icp, argument
230 sp = (const u_int16_t *)icp;
855 struct icmp6_hdr *icp = (struct icmp6_hdr *) bp; local
865 TCHECK(icp->icmp6_data16[1]);
866 ngroups = EXTRACT_16BITS(&icp->icmp6_data16[1]);
913 struct icmp6_hdr *icp = (struct icmp6_hdr *) bp; local
924 TCHECK(icp->icmp6_data16[0]);
925 mrc = EXTRACT_16BITS(&icp->icmp6_data16[0]);

Completed in 292 milliseconds

12