| /src/sys/dev/ic/ |
| icp.c | 1 /* $NetBSD: icp.c,v 1.38 2025/11/25 13:52:33 nia Exp $ */ 60 * from both ICP-Vortex and �ko.neT. I want to thank them for their support. 65 * Support for the ICP-Vortex management tools added by 74 __KERNEL_RCSID(0, "$NetBSD: icp.c,v 1.38 2025/11/25 13:52:33 nia Exp $"); 103 void icp_ccb_submit(struct icp_softc *icp, struct icp_ccb *ic); 121 icp_init(struct icp_softc *icp, const char *intrstr) 133 aprint_normal_dev(icp->icp_dv, "interrupting at %s\n", 136 SIMPLEQ_INIT(&icp->icp_ccb_queue); 137 SIMPLEQ_INIT(&icp->icp_ccb_freelist); 138 SIMPLEQ_INIT(&icp->icp_ucmd_queue) 588 struct icp_softc *icp; local 663 struct icp_softc *icp; local 754 struct icp_softc *icp = device_private(ic->ic_dv); local [all...] |
| icp_ioctl.c | 62 * icp_ioctl.c: Ioctl interface for the ICP-Vortex management tools. 64 * Based on ICP's FreeBSD "iir" driver ioctl interface, written by 90 /* These are simply the same as ICP's "iir" driver for FreeBSD. */ 135 struct icp_softc *icp; local 143 icp = device_lookup_private(&icp_cd, ucmd->io_node); 144 if (icp == NULL) { 149 error = icp_ucmd(icp, ucmd); 160 struct icp_softc *icp; local 163 icp = device_lookup_private(&icp_cd, ctrt->io_node); 164 if (icp == NULL) 215 struct icp_softc *icp; local 275 struct icp_softc *icp; local [all...] |
| ld_icp.c | 33 * ICP-Vortex "GDT" front-end for ld(4) driver. 99 struct icp_softc *icp = device_private(parent); local 100 struct icp_cachedrv *cd = &icp->icp_cdr[icpa->icpa_unit]; 107 icp_register_servicecb(icp, icpa->icpa_unit, &ld_icp_servicecb); 117 ld->sc_maxqueuecnt = icp->icp_openings; 119 if (!icp_cmd(icp, ICP_CACHESERVICE, ICP_IOCTL, ICP_CACHE_DRV_INFO, 125 cdi = (struct icp_cdevinfo *)icp->icp_scr; 186 struct icp_softc *icp; local 189 icp = device_private(device_parent(sc->sc_ld.sc_dv)); 194 if (__predict_false((ic = icp_ccb_alloc(icp)) == NULL) 268 struct icp_softc *icp; local 318 struct icp_softc *icp; local [all...] |
| icpsp.c | 97 struct icp_softc *icp; local 101 icp = device_private(parent); 105 sc->sc_openings = icp->icp_openings; 108 icp_register_servicecb(icp, icpa->icpa_unit, &icpsp_servicecb); 112 sc->sc_adapter.adapt_openings = icp->icp_openings; 113 sc->sc_adapter.adapt_max_periph = icp->icp_openings; 120 sc->sc_channel.chan_ntargets = ((icp->icp_class & ICP_FC) != 0 ? 123 sc->sc_channel.chan_id = icp->icp_bus_id[sc->sc_busno]; 137 struct icp_softc *icp; local 142 icp = device_private(device_parent(sc->sc_dv)) 274 struct icp_softc *icp; local [all...] |
| icpvar.h | 169 * support the ICP configuration tools. 185 #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)
|
| /src/sys/arch/alpha/pci/ |
| irongate.c | 72 irongate_init(struct irongate_config *icp) 81 irongate_pci_init(&icp->ic_pc, icp); 82 alpha_pci_chipset = &icp->ic_pc; 84 tag = pci_make_tag(&icp->ic_pc, 0, IRONGATE_PCIHOST_DEV, 0); 87 reg = irongate_conf_read0(icp, tag, PCI_CLASS_REG); 88 icp->ic_rev = PCI_REVISION(reg); 90 if (icp->ic_initted == 0) { 92 irongate_bus_io_init(&icp->ic_iot, icp); 124 struct irongate_config *icp; local 194 struct irongate_config *icp = &irongate_configuration; local [all...] |
| irongate_dma.c | 84 irongate_dma_init(struct irongate_config *icp) 91 t = &icp->ic_dmat_pci; 92 t->_cookie = icp; 117 t = &icp->ic_dmat_isa; 118 t->_cookie = icp; 148 struct irongate_config *icp = t->_cookie; local 156 return (&icp->ic_dmat_pci); 162 return (&icp->ic_dmat_isa);
|
| irongate_pci.c | 80 struct irongate_config * const icp = ipv; local 89 pci_decompose_tag(&icp->ic_pc, tag, &b, &d, NULL);
|
| /src/sys/arch/alpha/alpha/ |
| api_up1000.c | 75 struct irongate_config *icp; local 78 icp = &irongate_configuration; 79 irongate_init(icp); 81 pci_consinit(&icp->ic_pc, &icp->ic_iot, &icp->ic_memt, 82 &icp->ic_iot, &icp->ic_memt);
|
| /src/sys/dev/pci/ |
| icp_pci.c | 60 * from both ICP-Vortex and �ko.neT. I want to thank them for their support. 209 * ICP-Vortex only make RAID controllers, so we employ a heuristic 235 struct icp_softc *icp; local 253 icp = device_private(self); 254 icp->icp_dv = self; 255 icp->icp_class = icp_pci_find_class(pa); 262 icp->icp_class |= ICP_FC; 265 ICP_CLASS(icp) == ICP_PCINEW ? ICP_PCINEW_DPMEM : ICP_PCI_DPMEM, 269 ICP_CLASS(icp) == ICP_PCINEW ? ICP_PCINEW_DPMEM : 278 icp->icp_dpmemt = dpmemt [all...] |
| /src/sys/arch/acorn32/podulebus/ |
| icside.c | 179 struct icside_channel *icp; local 264 icp = &sc->sc_chan[channel]; 265 sc->sc_wdcdev.sc_atac.atac_channels[channel] = &icp->ic_channel; 266 cp = &icp->ic_channel; 290 icp->ic_irqiot = iot; 292 IRQ_REGISTER_SPACE, 0, &icp->ic_irqioh)) 295 (void)bus_space_read_1(iot, icp->ic_irqioh, 0); 298 icp->ic_irqaddr = pa->pa_podule->irq_addr; 299 icp->ic_irqmask = pa->pa_podule->irq_mask; 300 evcnt_attach_dynamic(&icp->ic_intrcnt, EVCNT_TYPE_INTR, NULL 337 struct icside_channel *icp = arg; local [all...] |
| /src/sbin/ping/ |
| ping.c | 1067 struct icmp *icp; local 1077 ntohs((u_int16_t)icp->icmp_seq), \ 1095 icp = (struct icmp *)(buf + hlen); 1096 if (icp->icmp_type == ICMP_ECHOREPLY 1097 && icp->icmp_id == ident) { 1099 if (icp->icmp_seq == htons((u_int16_t)(ntransmitted-1))) 1111 (void)memcpy(&tv32, icp->icmp_data, sizeof(tv32)); 1115 (void)memcpy(&tv, icp->icmp_data, sizeof(tv)); 1128 if (TST(ntohs((u_int16_t)icp->icmp_seq))) { 1132 SET(ntohs((u_int16_t)icp->icmp_seq)) [all...] |
| /src/usr.sbin/timed/timed/ |
| measure.c | 86 struct icmp icp; local 206 memset(&icp, 0, sizeof(icp)); 207 memcpy(&icp, &packet[ip.ip_hl << 2], 208 MIN((size_t)ret, sizeof(icp))); 210 if (icp.icmp_type != ICMP_TSTAMPREPLY 211 || icp.icmp_id != oicp.icmp_id 212 || icp.icmp_seq < seqno 213 || icp.icmp_seq >= oicp.icmp_seq) 216 sendtime = ntohl(icp.icmp_otime) [all...] |
| /src/sys/netinet/ |
| ip_icmp.c | 257 struct icmp *icp; local 347 icp = (struct icmp *)(nip + 1); 353 icp->icmp_type = type; 355 icp->icmp_gwaddr.s_addr = dest; 357 icp->icmp_void = 0; 363 icp->icmp_pptr = code; 367 icp->icmp_nextmtu = htons(destmtu); 369 icp->icmp_code = code; 370 m_copydata(n, 0, datalen, (void *)&icp->icmp_ip); 410 struct icmp *icp; local 945 struct icmp *icp; local [all...] |
| tcp_subr.c | 1383 struct icmp *icp; local 1440 icp = (struct icmp *)((char *)ip - 1453 mtu = (u_int)ntohs(icp->icmp_nextmtu); 1462 icmp_mtudisc(icp, ip->ip_dst); 1477 tp->t_pmtud_nextmtu = icp->icmp_nextmtu; 1478 tp->t_pmtud_ip_len = icp->icmp_ip.ip_len; 1479 tp->t_pmtud_ip_hl = icp->icmp_ip.ip_hl;
|
| /src/sys/netmpls/ |
| mpls_ttl.c | 164 struct icmp *icp; local 257 icp = mtod(m, struct icmp *); 261 icp->icmp_type = type; 263 icp->icmp_gwaddr.s_addr = dest; 265 icp->icmp_void = 0; 271 icp->icmp_pptr = code; 275 icp->icmp_nextmtu = htons(destmtu); 278 icp->icmp_code = code; 280 memset(&icp->icmp_ip, 0, ICMP_EXT_OFFSET); 281 m_copydata(n, 0, icmplen, (char *)&icp->icmp_ip) [all...] |
| /src/external/bsd/ipf/dist/ipsend/ |
| iptests.c | 589 struct icmp *icp; local 599 ip->ip_len = sizeof(*ip) + sizeof(*icp); 600 icp = (struct icmp *)((char *)ip + (IP_HL(ip) << 2)); 610 bzero((char *)icp, sizeof(*icp)); 612 icp->icmp_type = i; 617 icp->icmp_type = 255; 628 icp->icmp_type = 3; 630 icp->icmp_code = i; 641 icp->icmp_type = 4 [all...] |
| /src/external/bsd/libpcap/dist/ |
| gencode.h | 392 #define isMarked(icp, p) ((p)->mark == (icp)->cur_mark) 393 #define unMarkAll(icp) (icp)->cur_mark += 1 394 #define Mark(icp, p) ((p)->mark = (icp)->cur_mark)
|
| /src/sbin/ping6/ |
| ping6.c | 1085 struct icmp6_hdr *icp; local 1094 icp = (struct icmp6_hdr *)outpack; 1096 memset(icp, 0, sizeof(*icp)); 1097 icp->icmp6_cksum = 0; 1104 icp->icmp6_code = ICMP6_NI_SUBJ_IPV6; 1113 icp->icmp6_code = 0; /* code field is always 0 */ 1119 icp->icmp6_code = ICMP6_NI_SUBJ_IPV6; 1127 icp->icmp6_code = ICMP6_NI_SUBJ_FQDN; /*empty*/ 1137 icp->icmp6_type = ICMP6_NI_QUERY 1292 struct icmp6_hdr *icp; local [all...] |
| /src/usr.sbin/traceroute6/ |
| traceroute6.c | 824 struct icmp6_hdr *icp = (struct icmp6_hdr *)outpacket; local 826 icp->icmp6_type = ICMP6_ECHO_REQUEST; 827 icp->icmp6_code = 0; 828 icp->icmp6_cksum = 0; 829 icp->icmp6_id = ident; 830 icp->icmp6_seq = htons(seq); 924 struct icmp6_hdr *icp; local 942 icp = (struct icmp6_hdr *)buf; 971 type = icp->icmp6_type; 972 code = icp->icmp6_code [all...] |
| /src/usr.sbin/traceroute/ |
| traceroute.c | 1414 struct icmp *icp; local 1429 icp = (struct icmp *)(buf + hlen); 1431 icp = (struct icmp *)buf; 1433 type = icp->icmp_type; 1434 code = icp->icmp_code; 1440 pmtu = ntohs(icp->icmp_nextmtu); 1442 pmtu = ntohs(((struct my_pmtu *)&icp->icmp_void)->ipm_nextmtu); 1451 hip = &icp->icmp_ip; 1454 nextmtu = ntohs(icp->icmp_nextmtu); /* for frag_err() */ 1459 icp->icmp_id == htons(ident) & [all...] |
| /src/sys/netipsec/ |
| ipsec_netbsd.c | 92 struct icmp *icp; local 119 icp = (struct icmp *)((char *)ip - 121 icmp_mtudisc(icp, ip->ip_dst); 135 struct icmp *icp; local 162 icp = (struct icmp *)((char *)ip - 164 icmp_mtudisc(icp, ip->ip_dst);
|
| /src/usr.sbin/rtadvd/ |
| rtadvd.c | 726 struct icmp6_hdr *icp; local 803 icp = (struct icmp6_hdr *)rcvmhdr.msg_iov[0].iov_base; 805 switch (icp->icmp6_type) { 822 if (icp->icmp6_code) { 826 __func__, icp->icmp6_code, 842 rs_input(i, (struct nd_router_solicit *)icp, pi, &rcvfrom); 859 if (icp->icmp6_code) { 863 __func__, icp->icmp6_code, 879 ra_input(i, (struct nd_router_advert *)icp, pi, &rcvfrom); 889 __func__, icp->icmp6_type) [all...] |
| /src/external/bsd/dhcpcd/dist/src/ |
| ipv6nd.c | 953 struct interface *ifp, struct icmp6_hdr *icp, size_t len, int hoplimit) 1046 nd_ra = (struct nd_router_advert *)icp; 1051 memcmp(rap->data, (unsigned char *)icp, rap->data_len) != 0)) 1083 memcpy(rap->data, icp, len); 1130 p = ((uint8_t *)icp) + sizeof(struct nd_router_advert); 1907 struct icmp6_hdr *icp; local 1928 icp = (struct icmp6_hdr *)msg->msg_iov[0].iov_base; 1929 if (icp->icmp6_code == 0) { 1930 switch(icp->icmp6_type) { 1933 ifp, icp, (size_t)len, hoplimit) [all...] |
| /src/external/bsd/tcpdump/dist/ |
| print-icmp6.c | 776 const struct icmp6_hdr *icp, u_int len) 778 return nextproto6_cksum(ndo, ip6, (const uint8_t *)(const void *)icp, len, len, 1563 const struct icmp6_hdr *icp = (const struct icmp6_hdr *) bp; local 1573 ngroups = GET_BE_U_2(icp->icmp6_data16[1]); 1614 const struct icmp6_hdr *icp = (const struct icmp6_hdr *) bp; local 1625 mrc = GET_BE_U_2(icp->icmp6_data16[0]);
|