/src/sys/arch/alpha/alpha/ |
dec_2100_a500.c | 122 struct ttwoga_config *tcp; local in function:dec_2100_a500_cons_init 128 tcp = ttwoga_init(0); 130 isa_iot = &tcp->tc_iot; 131 isa_memt = &tcp->tc_memt; 142 tcp = ttwoga_init(CTB_TURBOSLOT_HOSE(ctbslot)); 151 pci_consinit(&tcp->tc_pc, &tcp->tc_iot, &tcp->tc_memt,
|
/src/sys/arch/alpha/pci/ |
ttwoga_dma.c | 84 #define TTWOGA_TLB_INVALIDATE(tcp) \ 89 temp = T2GA((tcp), T2_IOCSR); \ 90 T2GA((tcp), T2_IOCSR) = temp | IOCSR_FTLB; \ 93 T2GA((tcp), T2_IOCSR) = temp; \ 99 ttwoga_dma_init(struct ttwoga_config *tcp) 106 t = &tcp->tc_dmat_direct; 107 t->_cookie = tcp; 132 t = &tcp->tc_dmat_sgmap; 133 t->_cookie = tcp; 138 t->_sgmap = &tcp->tc_sgmap 242 struct ttwoga_config *tcp = t->_cookie; local in function:ttwoga_dma_get_tag 276 struct ttwoga_config *tcp = t->_cookie; local in function:ttwoga_bus_dmamap_load_sgmap 294 struct ttwoga_config *tcp = t->_cookie; local in function:ttwoga_bus_dmamap_load_mbuf_sgmap 311 struct ttwoga_config *tcp = t->_cookie; local in function:ttwoga_bus_dmamap_load_uio_sgmap 328 struct ttwoga_config *tcp = t->_cookie; local in function:ttwoga_bus_dmamap_load_raw_sgmap 345 struct ttwoga_config *tcp = t->_cookie; local in function:ttwoga_bus_dmamap_unload_sgmap [all...] |
ttwoga_pci.c | 110 struct ttwoga_config *tcp = cpv; local in function:ttwoga_conf_read 119 pci_decompose_tag(&tcp->tc_pc, tag, &b, &d, &f); 126 old_hae3 = T2GA(tcp, T2_HAE0_3) & ~HAE0_3_PCA; 127 T2GA(tcp, T2_HAE0_3) = 133 (pcireg_t *)ALPHA_PHYS_TO_K0SEG(tcp->tc_sysmap->tsmap_conf_base | 142 T2GA(tcp, T2_HAE0_3) = old_hae3; 163 struct ttwoga_config *tcp = cpv; local in function:ttwoga_conf_write 172 pci_decompose_tag(&tcp->tc_pc, tag, &b, &d, &f); 179 old_hae3 = T2GA(tcp, T2_HAE0_3) & ~HAE0_3_PCA; 180 T2GA(tcp, T2_HAE0_3) [all...] |
ttwoga.c | 168 struct ttwoga_config *tcp; local in function:ttwoga_init 173 tcp = &ttwoga_configuration[hose]; 174 tcp->tc_hose = hose; 176 tcp->tc_sysmap = &ttwoga_sysmap[hose]; 186 tcp->tc_io_bus_start = (T2GA(tcp, T2_HAE0_2) & HAE0_2_PUA2) << 23; 187 tcp->tc_d_mem_bus_start = (T2GA(tcp, T2_HAE0_4) & HAE0_4_PUA1) << 30; 188 tcp->tc_s_mem_bus_start = (T2GA(tcp, T2_HAE0_1) & HAE0_1_PUA1) << 27 221 struct ttwoga_config *tcp; local in function:ttwopciattach [all...] |
pci_2100_a500.c | 190 struct ttwoga_config *tcp = core; local in function:pci_2100_a500_pickintr 208 pc->pc_vecbase = 0x800 + ((64 * 16) * tcp->tc_hose); 219 tcp->tc_hose == 0 ? dec_2100_a500_intr_deftype[i] 239 if (tcp->tc_rev < TRN_T3 && tcp->tc_hose == 0) { 241 tcp->tc_enable_intr = dec_2100_a500_pic_enable_intr; 242 tcp->tc_setlevel = dec_2100_a500_pic_setlevel; 243 tcp->tc_eoi = dec_2100_a500_pic_eoi; 244 dec_2100_a500_pic_init_intr(tcp); 247 tcp->tc_enable_intr = dec_2100_a500_icic_enable_intr 435 struct ttwoga_config *tcp = pc->pc_intr_v; local in function:dec_2100_a500_intr_establish 470 struct ttwoga_config *tcp = pc->pc_intr_v; local in function:dec_2100_a500_intr_disestablish 538 struct ttwoga_config *tcp = v; local in function:dec_2100_a500_eisa_intr_evcnt 552 struct ttwoga_config *tcp = v; local in function:dec_2100_a500_eisa_intr_establish 608 struct ttwoga_config *tcp = v; local in function:dec_2100_a500_eisa_intr_disestablish 665 struct ttwoga_config *tcp = arg; local in function:dec_2100_a500_iointr [all...] |
/src/usr.sbin/yppoll/ |
yppoll.c | 94 int c, r, tcp = 0; local in function:main 101 tcp = 1; 130 &order, &master, tcp); 149 int tcp) 154 if (tcp) 162 int *outorder, char **outname, int tcp) 185 client = mkclient(&rsrv_sin, YPPROG, YPVERS, tcp); 188 tcp ? "tcp" : "udp", server);
|
/src/sys/net/npf/ |
npf_socket.c | 33 #include <netinet/tcp.h> 127 struct tcphdr *tcp = npc->npc_l4.tcp; local in function:npf_ip_socket 133 sport = tcp->th_sport; 134 dport = tcp->th_dport; 190 struct tcphdr *tcp = npc->npc_l4.tcp; local in function:npf_ip6_socket 196 sport = tcp->th_sport; 197 dport = tcp->th_dport;
|
/src/sys/external/bsd/ipf/netinet/ |
ip_raudio_pxy.c | 72 rap->rap_mode = RAP_M_TCP; /* default is for TCP */ 84 tcphdr_t *tcp; local in function:ipf_p_raudio_out 99 tcp = (tcphdr_t *)fin->fin_dp; 100 off = (char *)tcp - (char *)fin->fin_ip; 101 off += (TCP_OFF(tcp) << 2) + fin->fin_ipoff; 186 tcphdr_t *tcp, tcph, *tcp2 = &tcph; local in function:ipf_p_raudio_in 205 * only proceed further if we're using UDP. If they want to use TCP 212 tcp = (tcphdr_t *)fin->fin_dp; 213 off = (char *)tcp - (char *)fin->fin_ip; 214 off += (TCP_OFF(tcp) << 2) + fin->fin_ipoff [all...] |
ip_rcmd_pxy.c | 72 tcphdr_t *tcp = (tcphdr_t *)fin->fin_dp; local in function:ipf_p_rcmd_new 83 aps->aps_sport = tcp->th_sport; 84 aps->aps_dport = tcp->th_dport; 135 tcphdr_t *tcp, tcph, *tcp2 = &tcph; local in function:ipf_p_rcmd_portmsg 152 tcp = (tcphdr_t *)fin->fin_dp; 156 tcpsz = TCP_OFF(tcp) << 2; 162 off = (char *)tcp - (char *)ip + tcpsz + fin->fin_ipoff; 170 (tcp->th_seq != rc->rcmd_portseq)) 196 rc->rcmd_portseq = tcp->th_seq; 250 ip6->ip6_plen = htons(sizeof(*tcp)); [all...] |
ip_irc_pxy.c | 254 tcphdr_t *tcp, tcph, *tcp2 = &tcph; local in function:ipf_p_irc_send 273 tcp = (tcphdr_t *)fin->fin_dp; 275 off = (char *)tcp - (char *)ip + (TCP_OFF(tcp) << 2) + fin->fin_ipoff;
|
ip_scan.c | 50 #include <netinet/tcp.h> 522 * to block packets and generate TCP RST's. 545 tcphdr_t *tcp; local in function:ipf_scan_packet 548 tcp = fin->fin_dp; 549 seq = ntohl(tcp->th_seq); 562 thoff = TCP_OFF(tcp) << 2;
|
ip_pptp_pxy.c | 159 * describe GRE but TCP instead. 276 * Try and build up the next PPTP message in the TCP stream and if we can 287 tcphdr_t *tcp; local in function:ipf_p_pptp_nextmessage 292 tcp = fin->fin_dp; 293 dlen = fin->fin_dlen - (TCP_OFF(tcp) << 2); 294 start = ntohl(tcp->th_seq); 296 off = (char *)tcp - (char *)fin->fin_ip + (TCP_OFF(tcp) << 2) + 319 msg = (char *)fin->fin_dp + (TCP_OFF(tcp) << 2); 513 tcphdr_t *tcp; local in function:ipf_p_pptp_inout [all...] |
ip_rpcb_pxy.c | 601 /* within only the context of TCP/UDP over IP networks. */ 612 /* Decode r_netid. Must be "tcp" or "udp". */ 974 /* Replies in max out at 2; TCP and/or UDP */ 1066 /* Must have 4 bytes for length & 4 bytes for "tcp" or "udp". */ 1079 if (!strncmp((char *)xp->xp_xsstr, "tcp\0", 4)) 1110 tcphdr_t tcp; local in function:ipf_p_rpcb_getnat 1128 bzero((char *)&tcp, sizeof(tcp)); 1129 tcp.th_dport = htons(port); 1132 tcp.th_win = htons(8192) [all...] |
ip_proxy.c | 76 #include <netinet/tcp.h> 673 /* tcp(I) - pointer to TCP/UDP header */ 682 ipf_proxy_ok(fr_info_t *fin, tcphdr_t *tcp, ipnat_t *np) 690 if ((tcp == NULL) && dport) 900 tcphdr_t *tcp = NULL; local in function:ipf_proxy_check 955 tcp = (tcphdr_t *)fin->fin_dp; 1014 * For TCP packets, we may need to adjust the sequence and 1018 * For both TCP and UDP, recalculate the layer 4 checksum, 1022 if (tcp != NULL) 1152 tcphdr_t *tcp; local in function:ipf_proxy_fixseqack [all...] |
ip_ftp_pxy.c | 289 tcphdr_t *tcp; local in function:ipf_p_ftp_port 296 tcp = (tcphdr_t *)fin->fin_dp; 297 off = (char *)tcp - (char *)ip + (TCP_OFF(tcp) << 2) + fin->fin_ipoff; 816 tcphdr_t *tcp, tcph, *tcp2; local in function:ipf_p_ftp_pasvreply 836 tcp = (tcphdr_t *)fin->fin_dp; 837 off = (char *)tcp - (char *)ip + (TCP_OFF(tcp) << 2) + fin->fin_ipoff; 877 fi.fin_plen = fi.fin_hlen + sizeof(*tcp); 1234 tcphdr_t *tcp; local in function:ipf_p_ftp_process 1678 tcphdr_t *tcp; local in function:ipf_p_ftp_eprt4 1893 tcphdr_t *tcp; local in function:ipf_p_ftp_eprt6 [all...] |
ip_fil_netbsd.c | 71 #include <netinet/tcp.h> 735 struct tcphdr *tcp, *tcp2; local in function:ipf_send_reset 743 tcp = fin->fin_dp; 744 if (tcp->th_flags & TH_RST) 750 tlen = fin->fin_dlen - (TCP_OFF(tcp) << 2) + 751 ((tcp->th_flags & TH_SYN) ? 1 : 0) + 752 ((tcp->th_flags & TH_FIN) ? 1 : 0); 787 tcp2->th_sport = tcp->th_dport; 788 tcp2->th_dport = tcp->th_sport; 790 if (tcp->th_flags & TH_ACK) [all...] |
ip_nat6.c | 86 #include <netinet/tcp.h> 1359 /* Check if the ICMP error message is related to an existing TCP, UDP or */ 1371 tcphdr_t *tcp = NULL; local in function:ipf_nat6_icmperrorlookup 1402 * outside the ICMP packet, leading to TCP deref's causing problems. 1478 tcp = (tcphdr_t *)(oip6 + 1); 1479 fin->fin_data[0] = ntohs(tcp->th_dport); 1480 fin->fin_data[1] = ntohs(tcp->th_sport); 1564 tcphdr_t *tcp; local in function:ipf_nat6_icmperror 1582 tcp = NULL; 1591 tcp = (tcphdr_t *)dp 2566 tcphdr_t *tcp = NULL; local in function:ipf_nat6_checkout 2766 tcphdr_t *tcp; local in function:ipf_nat6_out 2969 tcphdr_t *tcp; local in function:ipf_nat6_checkin 3168 tcphdr_t *tcp; local in function:ipf_nat6_in [all...] |
/src/sys/fs/nfs/client/ |
nfs_clcomsubs.c | 262 char *cp, *tcp; local in function:nfsm_uiombuf 311 tcp = (char *)uiop->uio_iov->iov_base; 312 tcp += uiosiz; 313 uiop->uio_iov->iov_base = (void *)tcp;
|
/src/usr.bin/ypwhich/ |
ypwhich.c | 75 * -T: use TCP instead of UDP 99 int inhibit = 0, force = 0, tcp = 0; local in function:main 134 tcp = 1; 155 "force=%d, tcp=%d\n", 156 targhost, ourdomain, inhibit, saw_m, targmap, force, tcp); 171 tcp, ypaliases); 173 inaddr = find_server(targhost, ourdomain, tcp); 199 int tcp) 204 if (tcp) 214 find_server(const char *host, const char *domain, int tcp) [all...] |
/src/usr.bin/ftp/ |
complete.c | 210 char *tcp; local in function:complete_local 212 tcp = ftp_strdup(dp->d_name); 213 ftp_sl_add(words, tcp); 311 char *tcp; local in function:complete_remote 319 tcp = strrchr(cp, '/'); 320 if (tcp) 321 tcp++; 323 tcp = cp; 324 tcp = ftp_strdup(tcp); [all...] |
/src/tests/usr.sbin/inetd/ |
t_inetd.c | 51 #define TCP 6 67 "uses UDP/TCP ports 5432-5439 with localhost."); 197 /* Run localhost tcp echo, return true if successful, false if timeout/disconnect */ 203 int tcp; local in function:run_tcp_client 206 tcp = create_socket("127.0.0.1", port, SOCK_STREAM, TCP, 1, &remote); 207 CHECK_ERROR(connect(tcp, (const struct sockaddr *)&remote, 209 CHECK_ERROR(send(tcp, buffer, sizeof(buffer), 0)); 210 count = recv(tcp, buffer, sizeof(buffer), 0);
|
/src/sys/dev/cardbus/ |
if_tlp_cardbus.c | 185 const struct tulip_cardbus_product *tcp; local in function:tlp_cardbus_lookup 187 for (tcp = tlp_cardbus_products; tcp->tcp_chip != TULIP_CHIP_INVALID; 188 tcp++) { 189 if (PCI_VENDOR(ca->ca_id) == tcp->tcp_vendor && 190 PCI_PRODUCT(ca->ca_id) == tcp->tcp_product) 191 return (tcp); 229 const struct tulip_cardbus_product *tcp; local in function:tlp_cardbus_attach 240 tcp = tlp_cardbus_lookup(ca); 241 if (tcp == NULL) [all...] |
/src/sys/external/bsd/common/linux/ |
linux_tasklet.c | 123 struct tasklet_cpu **tcp = ptr, *tc; local in function:tasklet_cpu_init 125 *tcp = tc = kmem_zalloc(sizeof(*tc), KM_SLEEP); 132 struct tasklet_cpu **tcp = ptr, *tc = *tcp; local in function:tasklet_cpu_fini 136 *tcp = NULL; /* paranoia */ 203 struct tasklet_cpu **tcp, *tc; local in function:tasklet_softintr 212 tcp = percpu_getref(tq->tq_percpu); 213 tc = *tcp; 309 struct tasklet_cpu **tcp, *tc; local in function:tasklet_queue_enqueue 319 tcp = percpu_getref(tq->tq_percpu) [all...] |
/src/sys/kern/ |
uipc_mbufdebug.c | 52 #include <netinet/tcp.h> 195 return("TCP"); 813 struct tcphdr tcp; local in function:m_examine_tcp 816 if (pktlen < sizeof(tcp)) { 818 pktlen, sizeof(tcp)); 822 if (m_peek_data(m, off, sizeof(tcp), (void *)(&tcp)) < 0) { 826 off += sizeof(tcp); 828 (*pr)("TCP: Src = %u\n", ntohs(tcp.th_sport)) [all...] |
/src/usr.bin/mail/ |
complete.c | 394 char *tcp; local in function:complete_filename 396 tcp = estrdup(dp->d_name); 397 mail_sl_add(words, tcp); 475 char *tcp; local in function:find_execs 476 tcp = estrdup(dp->d_name); 477 mail_sl_add(list, tcp);
|