tag | line | file | source code |
ntohs | 36 | arch/alpha/lib/checksum.c | ((unsigned long) ntohs(len) << 16) + |
ntohs | 1745 | drivers/block/ide-cd.c | toc->hdr.toc_length = ntohs (toc->hdr.toc_length); |
ntohs | 2119 | drivers/block/ide.c | *pp = ntohs(*pp); |
ntohs | 548 | drivers/isdn/isdn_net.c | proto = ntohs(*(unsigned short *)&buf[0]); |
ntohs | 552 | drivers/isdn/isdn_net.c | proto = ntohs(*(unsigned short *)&buf[12]); |
ntohs | 556 | drivers/isdn/isdn_net.c | proto = ntohs(*(unsigned short *)&buf[2]); |
ntohs | 591 | drivers/isdn/isdn_net.c | sprintf(addinfo, " TCP, port: %d -> %d", ntohs(ipp->source), |
ntohs | 592 | drivers/isdn/isdn_net.c | ntohs(ipp->dest)); |
ntohs | 602 | drivers/isdn/isdn_net.c | sprintf(addinfo, " UDP, port: %d -> %d", ntohs(ipp->source), |
ntohs | 603 | drivers/isdn/isdn_net.c | ntohs(ipp->dest)); |
ntohs | 903 | drivers/isdn/isdn_net.c | if (ntohs(eth->h_proto) >= 1536) |
ntohs | 219 | drivers/net/at1700.c | ((unsigned short *)dev->dev_addr)[i] = ntohs(eeprom_val); |
ntohs | 276 | drivers/net/atp.c | ntohs(eeprom_op(ioaddr, EE_READ(sa_offset + i))); |
ntohs | 477 | drivers/net/eth16i.c | ((unsigned short *)dev->dev_addr)[i] = ntohs(node_val); |
ntohs | 659 | drivers/net/ibmtr.c | check_reason=ti->mmio + ntohs(readw(ti->mmio + ACA_OFFSET + ACA_RW +WWCR_EVEN)); |
ntohs | 725 | drivers/net/ibmtr.c | ti->srb=ti->sram+ntohs(readw(ti->init_srb +offsetof(struct srb_open_response, srb_addr))); |
ntohs | 726 | drivers/net/ibmtr.c | ti->ssb=ti->sram+ntohs(readw(ti->init_srb +offsetof(struct srb_open_response, ssb_addr))); |
ntohs | 727 | drivers/net/ibmtr.c | ti->arb=ti->sram+ntohs(readw(ti->init_srb +offsetof(struct srb_open_response, arb_addr))); |
ntohs | 728 | drivers/net/ibmtr.c | ti->asb=ti->sram+ntohs(readw(ti->init_srb +offsetof(struct srb_open_response, asb_addr))); |
ntohs | 880 | drivers/net/ibmtr.c | ntohs(readw(ti->arb + offsetof(struct arb_dlc_status, status))), |
ntohs | 881 | drivers/net/ibmtr.c | ntohs(readw(ti->arb |
ntohs | 892 | drivers/net/ibmtr.c | ring_status=ntohs(readw(ti->arb |
ntohs | 1005 | drivers/net/ibmtr.c | +ntohs((unsigned short)readw(ti->mmio+ ACA_OFFSET + WRBR_EVEN)); |
ntohs | 1006 | drivers/net/ibmtr.c | SET_PAGE(ntohs((unsigned short)readw(ti->mmio+ACA_OFFSET + WRBR_EVEN))); |
ntohs | 1023 | drivers/net/ibmtr.c | ntohs(hw_encoded_addr)); |
ntohs | 1026 | drivers/net/ibmtr.c | encoded_addr=(ti->sram + ntohs(hw_encoded_addr)); |
ntohs | 1030 | drivers/net/ibmtr.c | ntohs(hw_encoded_addr), encoded_addr); |
ntohs | 1172 | drivers/net/ibmtr.c | +ntohs(readw(ti->arb + offsetof(struct arb_xmit_req, dhb_address))); |
ntohs | 1219 | drivers/net/ibmtr.c | } else hdr_len=((ntohs(trhdr->rcf) & TR_RCF_LEN_MASK)>>8) |
ntohs | 1257 | drivers/net/ibmtr.c | +ntohs(readw(ti->arb + offsetof(struct arb_rec_req, rec_buf_addr)))); |
ntohs | 1277 | drivers/net/ibmtr.c | ntohs(readw(ti->arb + offsetof(struct arb_rec_req, rec_buf_addr))), |
ntohs | 1333 | drivers/net/ibmtr.c | arb_frame_len=ntohs(readw(ti->arb+offsetof(struct arb_rec_req, frame_len))); |
ntohs | 1358 | drivers/net/ibmtr.c | rbuffer_len=ntohs(readw(rbuffer + offsetof(struct rec_buf, buf_len))) |
ntohs | 1377 | drivers/net/ibmtr.c | +ntohs(readw(rbuffer + offsetof(struct rec_buf, buf_ptr)))-2); |
ntohs | 1378 | drivers/net/ibmtr.c | rbuffer_len=ntohs(readw(rbuffer + offsetof(struct rec_buf, buf_len))); |
ntohs | 1385 | drivers/net/ibmtr.c | ntohs((rbuffer + offsetof(struct rec_buf, buf_ptr))), data); |
ntohs | 118 | drivers/net/new_tunnel.c | printk("--- total packet len: %d\n", ntohs(ip->tot_len)); |
ntohs | 657 | drivers/net/pi2.c | skb->protocol=ntohs(ETH_P_AX25); |
ntohs | 2857 | drivers/net/ppp.c | len = ntohs (len); |
ntohs | 3087 | drivers/net/ppp.c | switch (ntohs (skb->protocol)) { |
ntohs | 1410 | drivers/net/pt.c | skb->protocol = ntohs(ETH_P_AX25); |
ntohs | 490 | drivers/net/seeq8005.c | next_packet = ntohs(inw(SEEQ_BUFFER)); |
ntohs | 257 | drivers/net/slhc.c | if(ip->protocol != IPPROTO_TCP || (ntohs(ip->frag_off) & 0x1fff) || |
ntohs | 369 | drivers/net/slhc.c | deltaS = ntohs(th->urg_ptr); |
ntohs | 379 | drivers/net/slhc.c | if((deltaS = ntohs(th->window) - ntohs(oth->window)) != 0){ |
ntohs | 405 | drivers/net/slhc.c | ntohs(cs->cs_ip.tot_len) == hlen) |
ntohs | 417 | drivers/net/slhc.c | deltaS == ntohs(cs->cs_ip.tot_len) - hlen){ |
ntohs | 424 | drivers/net/slhc.c | if(deltaS == ntohs(cs->cs_ip.tot_len) - hlen){ |
ntohs | 431 | drivers/net/slhc.c | deltaS = ntohs(ip->id) - ntohs(cs->cs_ip.id); |
ntohs | 441 | drivers/net/slhc.c | deltaA = ntohs(th->check); |
ntohs | 550 | drivers/net/slhc.c | i = ntohs(ip->tot_len) - hdrlen; |
ntohs | 558 | drivers/net/slhc.c | ntohs(ip->tot_len) - hdrlen); |
ntohs | 574 | drivers/net/slhc.c | thp->window = htons( ntohs(thp->window) + x); |
ntohs | 594 | drivers/net/slhc.c | ip->id = htons (ntohs (ip->id) + x); |
ntohs | 596 | drivers/net/slhc.c | ip->id = htons (ntohs (ip->id) + 1); |
ntohs | 1635 | drivers/net/wavelan.c | printk("%s: ntohs(length/type)=0x%04x\n", dev->name, ntohs(ltype)); |
ntohs | 495 | drivers/scsi/eata.c | sh[j]->sg_tablesize = (ushort) ntohs(info.scatt_size); |
ntohs | 497 | drivers/scsi/eata.c | sh[j]->can_queue = (ushort) ntohs(info.queue_size); |
ntohs | 425 | drivers/scsi/eata_dma.c | x = ntohs(*sho)/2; |
ntohs | 836 | drivers/scsi/eata_dma.c | gc->scsi_id[1], ntohs(gc->queuesiz), ntohs(gc->SGsiz), gc->SECOND); |
ntohs | 940 | drivers/scsi/eata_dma.c | if(ntohs(gc->queuesiz) == 0) { |
ntohs | 941 | drivers/scsi/eata_dma.c | gc->queuesiz = ntohs(64); |
ntohs | 947 | drivers/scsi/eata_dma.c | * ntohs(gc->queuesiz)); |
ntohs | 967 | drivers/scsi/eata_dma.c | memset(hd->ccb, 0, sizeof(struct eata_ccb) * ntohs(gc->queuesiz)); |
ntohs | 1043 | drivers/scsi/eata_dma.c | sh->can_queue = ntohs(gc->queuesiz); |
ntohs | 1063 | drivers/scsi/eata_dma.c | if (gc->SG_64K == TRUE && ntohs(gc->SGsiz) == 64 && hd->bustype != IS_ISA){ |
ntohs | 1067 | drivers/scsi/eata_dma.c | sh->sg_tablesize = ntohs(gc->SGsiz); |
ntohs | 1071 | drivers/scsi/eata_dma.c | if (ntohs(gc->SGsiz) == 0) |
ntohs | 11 | drivers/scsi/eata_dma_proc.c | h_sp = *sp = ntohs(*sp); |
ntohs | 16 | drivers/scsi/eata_dma_proc.c | *sp = ntohs(*sp); |
ntohs | 642 | drivers/scsi/eata_pio.c | gc->scsi_id[1], ntohs(gc->queuesiz), ntohs(gc->SGsiz), gc->SECOND); |
ntohs | 729 | drivers/scsi/eata_pio.c | size = sizeof(hostdata) + (sizeof(struct eata_ccb) * ntohs(gc->queuesiz)); |
ntohs | 734 | drivers/scsi/eata_pio.c | memset(hd->ccb, 0, (sizeof(struct eata_ccb) * ntohs(gc->queuesiz))); |
ntohs | 147 | fs/ncpfs/ncplib_kernel.c | *target =min(ntohs(ncp_reply_word(server, 0)), size); |
ntohs | 578 | fs/ncpfs/ncplib_kernel.c | *bytes_read = ntohs(ncp_reply_word(server, 0)); |
ntohs | 109 | fs/ncpfs/sock.c | ntohs(sender.sipx_port), |
ntohs | 257 | fs/ncpfs/sock.c | ntohs(sender.sipx_port), |
ntohs | 382 | fs/ncpfs/sock.c | ntohs(server->m.serv_addr.sipx_port)); |
ntohs | 278 | fs/nfs/nfsroot.c | if (rarp->ar_hln != dev->addr_len || dev->type != ntohs(rarp->ar_hrd)) { |
ntohs | 18 | include/asm-alpha/byteorder.h | extern unsigned short int ntohs(unsigned short int); |
ntohs | 23 | include/asm-i386/byteorder.h | extern unsigned short int ntohs(unsigned short int); |
ntohs | 98 | include/asm-i386/checksum.h | : "0" (daddr), "1"(saddr), "r"((ntohs(len)<<16)+proto*256), "r"(sum)); |
ntohs | 23 | include/asm-mips/byteorder.h | extern unsigned short int ntohs(unsigned short int); |
ntohs | 131 | include/asm-mips/checksum.h | : "0" (daddr), "r"(saddr), "r"((ntohs(len)<<16)+proto*256), "r"(sum) |
ntohs | 19 | include/asm-ppc/byteorder.h | extern unsigned short int ntohs(unsigned short int); |
ntohs | 144 | net/802/tr.c | if((ntohs(entry->rcf) & TR_RCF_LEN_MASK) >> 8) { |
ntohs | 669 | net/appletalk/aarp.c | ea->function=ntohs(ea->function); |
ntohs | 259 | net/appletalk/ddp.c | ntohs(s->protinfo.af_at.src_net), |
ntohs | 263 | net/appletalk/ddp.c | ntohs(s->protinfo.af_at.dest_net), |
ntohs | 353 | net/appletalk/ddp.c | int netrange=ntohs(atif->nets.nr_lastnet)-ntohs(atif->nets.nr_firstnet)+1; |
ntohs | 354 | net/appletalk/ddp.c | int probe_net=ntohs(atif->address.s_net); |
ntohs | 398 | net/appletalk/ddp.c | probe_net=ntohs(atif->nets.nr_firstnet); |
ntohs | 400 | net/appletalk/ddp.c | probe_net=ntohs(atif->nets.nr_firstnet) + (jiffies%netrange); |
ntohs | 444 | net/appletalk/ddp.c | if(probe_net>ntohs(atif->nets.nr_lastnet)) |
ntohs | 445 | net/appletalk/ddp.c | probe_net=ntohs(atif->nets.nr_firstnet); |
ntohs | 622 | net/appletalk/ddp.c | if ( riface == NULL && ntohs( ga->sat_addr.s_net ) >= ntohs( iface->nets.nr_firstnet ) && |
ntohs | 623 | net/appletalk/ddp.c | ntohs( ga->sat_addr.s_net ) <= ntohs( iface->nets.nr_lastnet )) |
ntohs | 830 | net/appletalk/ddp.c | limit=ntohs(nr->nr_lastnet); |
ntohs | 831 | net/appletalk/ddp.c | if(limit-ntohs(nr->nr_firstnet) > 256) |
ntohs | 836 | net/appletalk/ddp.c | for(ct=ntohs(nr->nr_firstnet);ct<=limit;ct++) |
ntohs | 903 | net/appletalk/ddp.c | ntohs(iface->address.s_net),iface->address.s_node, |
ntohs | 904 | net/appletalk/ddp.c | ntohs(iface->nets.nr_firstnet),ntohs(iface->nets.nr_lastnet), |
ntohs | 936 | net/appletalk/ddp.c | ntohs(rt->gateway.s_net), rt->gateway.s_node, rt->flags, |
ntohs | 942 | net/appletalk/ddp.c | ntohs(rt->target.s_net),rt->target.s_node, |
ntohs | 943 | net/appletalk/ddp.c | ntohs(rt->gateway.s_net), rt->gateway.s_node, rt->flags, |
ntohs | 1439 | net/appletalk/ddp.c | *((__u16 *)ddp)=ntohs(*((__u16 *)ddp)); |
ntohs | 1542 | net/appletalk/ddp.c | *((__u16 *)ddp)=ntohs(*((__u16 *)ddp)); /* Mend the byte order */ |
ntohs | 1749 | net/appletalk/ddp.c | *((__u16 *)ddp)=ntohs(*((__u16 *)ddp)); |
ntohs | 157 | net/core/dev.c | hash=ntohs(pt->type)&15; |
ntohs | 177 | net/core/dev.c | pt1=&ptype_base[ntohs(pt->type)&15]; |
ntohs | 619 | net/core/dev.c | for (ptype = ptype_base[ntohs(type)&15]; ptype != NULL; ptype = ptype->next) |
ntohs | 201 | net/ethernet/eth.c | if (ntohs(eth->h_proto) >= 1536) |
ntohs | 291 | net/ethernet/eth.c | ip_length = ntohs(iph->tot_len) - sizeof(struct iphdr); |
ntohs | 503 | net/ipv4/af_inet.c | sk->dummy_th.source = ntohs(sk->num); |
ntohs | 713 | net/ipv4/af_inet.c | sk->dummy_th.source = ntohs(sk->num); |
ntohs | 811 | net/ipv4/af_inet.c | snum = ntohs(addr->sin_port); |
ntohs | 911 | net/ipv4/af_inet.c | sk->dummy_th.source = ntohs(sk->num); |
ntohs | 1311 | net/ipv4/af_inet.c | hnum = ntohs(num); |
ntohs | 1403 | net/ipv4/af_inet.c | hnum = ntohs(num); |
ntohs | 986 | net/ipv4/arp.c | dev->type != ntohs(arp->ar_hrd) || |
ntohs | 1098 | net/ipv4/arp.c | if (dev->type != ntohs(arp->ar_hrd) || dev->flags & IFF_NOARP) |
ntohs | 372 | net/ipv4/icmp.c | unsigned short old_mtu = ntohs(iph->tot_len); |
ntohs | 373 | net/ipv4/icmp.c | unsigned short new_mtu = ntohs(icmph->un.echo.sequence); |
ntohs | 148 | net/ipv4/ip_forward.c | iph->check = ntohs(iph->check) + 0x0100; |
ntohs | 255 | net/ipv4/ip_forward.c | if (skb->len+encap > dev2->mtu && (ntohs(iph->frag_off) & IP_DF)) |
ntohs | 422 | net/ipv4/ip_fragment.c | offset = ntohs(iph->frag_off); |
ntohs | 475 | net/ipv4/ip_fragment.c | end = offset + ntohs(iph->tot_len) - ihl; |
ntohs | 632 | net/ipv4/ip_fragment.c | left = ntohs(iph->tot_len) - hlen; /* Space per frame */ |
ntohs | 641 | net/ipv4/ip_fragment.c | if (ntohs(iph->frag_off) & IP_DF) |
ntohs | 672 | net/ipv4/ip_fragment.c | offset = (ntohs(iph->frag_off) & IP_OFFSET) << 3; |
ntohs | 237 | net/ipv4/ip_fw.c | offset = ntohs(ip->frag_off) & IP_OFFSET; |
ntohs | 257 | net/ipv4/ip_fw.c | if(ip->protocol==IPPROTO_TCP && (ip->ihl<<2)+16 > ntohs(ip->tot_len)) |
ntohs | 264 | net/ipv4/ip_fw.c | else if(ntohs(ip->tot_len)<8+(ip->ihl<<2)) |
ntohs | 285 | net/ipv4/ip_fw.c | src_port=ntohs(tcp->source); |
ntohs | 286 | net/ipv4/ip_fw.c | dst_port=ntohs(tcp->dest); |
ntohs | 300 | net/ipv4/ip_fw.c | src_port=ntohs(udp->source); |
ntohs | 301 | net/ipv4/ip_fw.c | dst_port=ntohs(udp->dest); |
ntohs | 480 | net/ipv4/ip_fw.c | f->fw_bcnt+=ntohs(ip->tot_len); |
ntohs | 251 | net/ipv4/ip_input.c | || skb->len < ntohs(iph->tot_len)) |
ntohs | 264 | net/ipv4/ip_input.c | skb_trim(skb,ntohs(iph->tot_len)); |
ntohs | 552 | net/ipv4/ip_input.c | (ntohs(iph->tot_len) - (iph->ihl * 4)), |
ntohs | 93 | net/ipv4/ip_masq.c | return (proto^ntohl(addr)^ntohs(port)) & (IP_MASQ_TAB_SIZE-1); |
ntohs | 267 | net/ipv4/ip_masq.c | ntohl(ms->src),ntohs(ms->sport)); |
ntohs | 421 | net/ipv4/ip_masq.c | ntohl(iph->saddr), ntohs(portptr[0]), |
ntohs | 422 | net/ipv4/ip_masq.c | ntohl(iph->daddr), ntohs(portptr[1])); |
ntohs | 500 | net/ipv4/ip_masq.c | printk("O-routed from %lX:%X over %s\n",ntohl(ms->maddr),ntohs(ms->mport),dev->name); |
ntohs | 524 | net/ipv4/ip_masq.c | if (ntohs(portptr[1]) < PORT_MASQ_BEGIN || |
ntohs | 525 | net/ipv4/ip_masq.c | ntohs(portptr[1]) > PORT_MASQ_END) |
ntohs | 531 | net/ipv4/ip_masq.c | ntohl(iph->saddr), ntohs(portptr[0]), |
ntohs | 532 | net/ipv4/ip_masq.c | ntohl(iph->daddr), ntohs(portptr[1])); |
ntohs | 553 | net/ipv4/ip_masq.c | ntohs(ms->dport)); |
ntohs | 561 | net/ipv4/ip_masq.c | ntohs(ms->daddr)); |
ntohs | 598 | net/ipv4/ip_masq.c | printk("I-routed to %lX:%X\n",ntohl(iph->daddr),ntohs(portptr[1])); |
ntohs | 633 | net/ipv4/ip_masq.c | ntohl(ms->saddr),ntohs(ms->sport), |
ntohs | 634 | net/ipv4/ip_masq.c | ntohl(ms->daddr),ntohs(ms->dport), |
ntohs | 635 | net/ipv4/ip_masq.c | ntohs(ms->mport), |
ntohs | 142 | net/ipv4/ip_masq_app.c | port = ntohs(port); |
ntohs | 121 | net/ipv4/ip_masq_ftp.c | port = ntohs(n_ms->mport); |
ntohs | 183 | net/ipv4/ip_masq_irc.c | ntohl(n_ms->maddr),ntohs(n_ms->mport)); |
ntohs | 70 | net/ipv4/ip_output.c | int len=ntohs(skb->ip_hdr->tot_len); |
ntohs | 388 | net/ipv4/ip_output.c | if(ntohs(iph->tot_len)> dev->mtu) |
ntohs | 94 | net/ipv4/proc.c | destp = ntohs(destp); |
ntohs | 95 | net/ipv4/proc.c | srcp = ntohs(srcp); |
ntohs | 209 | net/ipv4/rarp.c | if (rarp->ar_hln != dev->addr_len || dev->type != ntohs(rarp->ar_hrd) |
ntohs | 123 | net/ipv4/raw.c | skb_trim(skb,ntohs(skb->ip_hdr->tot_len)); |
ntohs | 137 | net/ipv4/raw.c | skb->ip_hdr->tot_len=ntohs(skb->ip_hdr->tot_len-4*skb->ip_hdr->ihl); |
ntohs | 556 | net/ipv4/tcp.c | unsigned short new_mtu = ntohs(iph->id); |
ntohs | 1126 | net/ipv4/tcp.c | skb->h.th->urg_ptr = ntohs(copy); |
ntohs | 285 | net/ipv4/tcp_input.c | sk->mtu=min(sk->mtu,ntohs(*(unsigned short *)ptr)); |
ntohs | 635 | net/ipv4/tcp_input.c | window_seq = ntohs(th->window); |
ntohs | 1446 | net/ipv4/tcp_input.c | u32 ptr = ntohs(th->urg_ptr); |
ntohs | 364 | net/ipv4/tcp_output.c | size = ntohs(iph->tot_len) - (iph->ihl<<2); |
ntohs | 384 | net/ipv4/tcp_output.c | if (rt && ntohs(iph->tot_len) > rt->rt_mtu) |
ntohs | 434 | net/ipv4/tcp_output.c | th->window = ntohs(tcp_select_window(sk)); |
ntohs | 718 | net/ipv4/tcp_output.c | t1->window = ntohs(tcp_select_window(newsk)); |
ntohs | 820 | net/ipv4/tcp_output.c | t1->window = ntohs(sk->window); |
ntohs | 979 | net/ipv4/tcp_output.c | if(th->urg && ntohs(th->urg_ptr) < win_size) |
ntohs | 256 | net/ipv4/udp.c | ntohs(ufh->uh.len), |
ntohs | 615 | net/ipv4/udp.c | ulen = ntohs(uh->len); |
ntohs | 646 | net/ipv4/udp.c | ntohl(saddr),ntohs(uh->source), |
ntohs | 647 | net/ipv4/udp.c | ntohl(daddr),ntohs(uh->dest), |
ntohs | 664 | net/ipv4/udp.c | sk=get_sock_mcast(udp_prot.sock_array[ntohs(uh->dest)&(SOCK_ARRAY_SIZE-1)], uh->dest, |
ntohs | 465 | net/ipx/af_ipx.c | switch (ntohs(ipx->ipx_dest.sock)) |
ntohs | 1228 | net/ipx/af_ipx.c | if ((err = ntohs(sk->protinfo.af_ipx.port)) == 0x453 || err == 0x452) |
ntohs | 1324 | net/ipx/af_ipx.c | switch (ntohs(frame)) { |
ntohs | 1695 | net/ipx/af_ipx.c | while (ipxitf_find_socket(intrfc, ntohs(socketNum)) != NULL) |
ntohs | 1702 | net/ipx/af_ipx.c | return ntohs(socketNum); |
ntohs | 1729 | net/ipx/af_ipx.c | if(ntohs(addr->sipx_port)<IPX_MIN_EPHEMERAL_SOCKET && !suser()) |
ntohs | 1940 | net/ipx/af_ipx.c | p->node[3],p->node[4],p->node[5],ntohs(p->sock)); |
ntohs | 1945 | net/ipx/af_ipx.c | str,p->ipx_checksum,ntohs(p->ipx_pktsize),ntohs(p->ipx_pktsize), |
ntohs | 1952 | net/ipx/af_ipx.c | int len = ntohs(p->ipx_pktsize); |
ntohs | 2078 | net/ipx/af_ipx.c | truesize=ntohs(ipx->ipx_pktsize) - sizeof(ipx_packet); |