tag | line | file | source code |
ntohs | 36 | arch/alpha/lib/checksum.c | ((unsigned long) ntohs(len) << 16) + |
ntohs | 1946 | drivers/block/ide.c | *pp = ntohs(*pp); |
ntohs | 224 | 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 | 638 | drivers/net/ibmtr.c | unsigned char *check_reason=ti->mmio + ntohs(*(unsigned short *)(ti->mmio + ACA_OFFSET + ACA_RW +WWCR_EVEN)); |
ntohs | 695 | drivers/net/ibmtr.c | ti->srb=ti->sram+ntohs(open_response->srb_addr); |
ntohs | 696 | drivers/net/ibmtr.c | ti->ssb=ti->sram+ntohs(open_response->ssb_addr); |
ntohs | 697 | drivers/net/ibmtr.c | ti->arb=ti->sram+ntohs(open_response->arb_addr); |
ntohs | 698 | drivers/net/ibmtr.c | ti->asb=ti->sram+ntohs(open_response->asb_addr); |
ntohs | 812 | drivers/net/ibmtr.c | DPRINTK("DLC_STATUS new status: %02X on station %02X\n",ntohs(dlc_status->status),ntohs(dlc_status->station_id)); |
ntohs | 822 | drivers/net/ibmtr.c | unsigned short ring_status=ntohs(ring_stat_change->ring_status); |
ntohs | 920 | drivers/net/ibmtr.c | ti->init_srb=ti->sram+ntohs(*(unsigned short *)(ti->mmio+ ACA_OFFSET + WRBR_EVEN)); |
ntohs | 921 | drivers/net/ibmtr.c | SET_PAGE(ntohs(*(unsigned short *)(ti->mmio+ ACA_OFFSET + WRBR_EVEN))); |
ntohs | 932 | drivers/net/ibmtr.c | DPRINTK("ntohs(srb_init_response->encoded_address): %04X\n",ntohs(((struct srb_init_response *)ti->init_srb)->encoded_address)); |
ntohs | 934 | drivers/net/ibmtr.c | encoded_addr=(unsigned char *)(ti->sram + ntohs(((struct srb_init_response *)ti->init_srb)->encoded_address)); |
ntohs | 939 | drivers/net/ibmtr.c | ntohs(((struct srb_init_response *)ti->init_srb)->encoded_address), |
ntohs | 1070 | drivers/net/ibmtr.c | dhb=ti->sram+ntohs(xmit_req->dhb_address); |
ntohs | 1108 | drivers/net/ibmtr.c | hdr_len=((ntohs(trhdr->rcf) |
ntohs | 1151 | drivers/net/ibmtr.c | rbuffer=(struct rec_buf *)(ti->sram+ntohs(rec_req->rec_buf_addr)); |
ntohs | 1165 | drivers/net/ibmtr.c | DPRINTK("llc: %p rec_buf_addr: %04X ti->sram: %p\n",llc,ntohs(rec_req->rec_buf_addr),ti->sram); |
ntohs | 1193 | drivers/net/ibmtr.c | if(!(skb=dev_alloc_skb(ntohs(rec_req->frame_len)-lan_hdr_len+sizeof(struct trh_hdr)))) { |
ntohs | 1201 | drivers/net/ibmtr.c | skb_put(skb,ntohs(rec_req->frame_len)-lan_hdr_len+sizeof(struct trh_hdr)); |
ntohs | 1217 | drivers/net/ibmtr.c | rbuffer_len=ntohs(rbuffer->buf_len)-lan_hdr_len; |
ntohs | 1226 | drivers/net/ibmtr.c | for(rbuffer=(struct rec_buf *)(ti->sram+ntohs(rbuffer->buf_ptr)-2); |
ntohs | 1227 | drivers/net/ibmtr.c | memcpy(data,&(rbuffer->data),rbuffer_len=ntohs(rbuffer->buf_len)),rbuffer->buf_ptr; |
ntohs | 1228 | drivers/net/ibmtr.c | data+=rbuffer_len,rbuffer=(struct rec_buf *)(ti->sram+ntohs(rbuffer->buf_ptr)-2)) |
ntohs | 1230 | drivers/net/ibmtr.c | DPRINTK("buf_ptr: %d,data =%p\n",ntohs(rbuffer->buf_ptr),data); |
ntohs | 659 | drivers/net/pi2.c | skb->protocol=ntohs(ETH_P_AX25); |
ntohs | 1773 | drivers/net/ppp.c | len = ntohs( ((struct iphdr *)(skb->data)) -> tot_len ); |
ntohs | 494 | drivers/net/seeq8005.c | next_packet = ntohs(inw(SEEQ_BUFFER)); |
ntohs | 259 | drivers/net/slhc.c | if(ip->protocol != IPPROTO_TCP || (ntohs(ip->frag_off) & 0x1fff) || |
ntohs | 371 | drivers/net/slhc.c | deltaS = ntohs(th->urg_ptr); |
ntohs | 381 | drivers/net/slhc.c | if((deltaS = ntohs(th->window) - ntohs(oth->window)) != 0){ |
ntohs | 407 | drivers/net/slhc.c | ntohs(cs->cs_ip.tot_len) == hlen) |
ntohs | 419 | drivers/net/slhc.c | deltaS == ntohs(cs->cs_ip.tot_len) - hlen){ |
ntohs | 426 | drivers/net/slhc.c | if(deltaS == ntohs(cs->cs_ip.tot_len) - hlen){ |
ntohs | 433 | drivers/net/slhc.c | deltaS = ntohs(ip->id) - ntohs(cs->cs_ip.id); |
ntohs | 443 | drivers/net/slhc.c | deltaA = ntohs(th->check); |
ntohs | 552 | drivers/net/slhc.c | i = ntohs(ip->tot_len) - hdrlen; |
ntohs | 560 | drivers/net/slhc.c | ntohs(ip->tot_len) - hdrlen); |
ntohs | 576 | drivers/net/slhc.c | thp->window = htons( ntohs(thp->window) + x); |
ntohs | 596 | drivers/net/slhc.c | ip->id = htons (ntohs (ip->id) + x); |
ntohs | 598 | drivers/net/slhc.c | ip->id = htons (ntohs (ip->id) + 1); |
ntohs | 117 | drivers/net/tunnel.c | printk("--- total packet len: %d\n", ntohs(ip->tot_len)); |
ntohs | 1640 | drivers/net/wavelan.c | printk("%s: ntohs(length/type)=0x%04x\n", dev->name, ntohs(ltype)); |
ntohs | 489 | drivers/scsi/eata.c | sh[j]->sg_tablesize = (ushort) ntohs(info.scatt_size); |
ntohs | 491 | drivers/scsi/eata.c | sh[j]->can_queue = (ushort) ntohs(info.queue_size); |
ntohs | 400 | drivers/scsi/eata_dma.c | x = ntohs(*sho)/2; |
ntohs | 809 | drivers/scsi/eata_dma.c | gc->scsi_id[1], ntohs(gc->queuesiz), ntohs(gc->SGsiz), gc->SECOND); |
ntohs | 914 | drivers/scsi/eata_dma.c | if(ntohs(gc->queuesiz) == 0) { |
ntohs | 915 | drivers/scsi/eata_dma.c | gc->queuesiz = ntohs(64); |
ntohs | 921 | drivers/scsi/eata_dma.c | * ntohs(gc->queuesiz)); |
ntohs | 941 | drivers/scsi/eata_dma.c | memset(hd->ccb, 0, sizeof(struct eata_ccb) * ntohs(gc->queuesiz)); |
ntohs | 1016 | drivers/scsi/eata_dma.c | sh->can_queue = ntohs(gc->queuesiz); |
ntohs | 1035 | drivers/scsi/eata_dma.c | if (gc->SG_64K == TRUE && ntohs(gc->SGsiz) == 64 && hd->bustype != IS_ISA){ |
ntohs | 1039 | drivers/scsi/eata_dma.c | sh->sg_tablesize = ntohs(gc->SGsiz); |
ntohs | 1043 | 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 | 636 | drivers/scsi/eata_pio.c | gc->scsi_id[1], ntohs(gc->queuesiz), ntohs(gc->SGsiz), gc->SECOND); |
ntohs | 723 | drivers/scsi/eata_pio.c | size = sizeof(hostdata) + (sizeof(struct eata_ccb) * ntohs(gc->queuesiz)); |
ntohs | 728 | drivers/scsi/eata_pio.c | memset(hd->ccb, 0, (sizeof(struct eata_ccb) * ntohs(gc->queuesiz))); |
ntohs | 18 | include/asm-alpha/byteorder.h | extern unsigned short int ntohs(unsigned short int); |
ntohs | 18 | 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 | 20 | include/asm-mips/byteorder.h | extern unsigned short int ntohs(unsigned short int); |
ntohs | 13 | include/asm-sparc/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 | 594 | net/appletalk/aarp.c | ea->function=ntohs(ea->function); |
ntohs | 326 | net/appletalk/ddp.c | int netrange=ntohs(atif->nets.nr_lastnet)-ntohs(atif->nets.nr_firstnet)+1; |
ntohs | 327 | net/appletalk/ddp.c | int probe_net=ntohs(atif->address.s_net); |
ntohs | 340 | net/appletalk/ddp.c | probe_net=ntohs(atif->nets.nr_firstnet); |
ntohs | 342 | net/appletalk/ddp.c | probe_net=ntohs(atif->nets.nr_firstnet) + (jiffies%netrange); |
ntohs | 386 | net/appletalk/ddp.c | if(probe_net>ntohs(atif->nets.nr_lastnet)) |
ntohs | 387 | net/appletalk/ddp.c | probe_net=ntohs(atif->nets.nr_firstnet); |
ntohs | 563 | net/appletalk/ddp.c | if ( riface == NULL && ntohs( ga->sat_addr.s_net ) >= |
ntohs | 564 | net/appletalk/ddp.c | ntohs( iface->nets.nr_firstnet ) && |
ntohs | 565 | net/appletalk/ddp.c | ntohs( ga->sat_addr.s_net ) <= |
ntohs | 566 | net/appletalk/ddp.c | ntohs( iface->nets.nr_lastnet )) |
ntohs | 759 | net/appletalk/ddp.c | limit=ntohs(nr->nr_lastnet); |
ntohs | 760 | net/appletalk/ddp.c | if(limit-ntohs(nr->nr_firstnet) > 256) |
ntohs | 765 | net/appletalk/ddp.c | for(ct=ntohs(nr->nr_firstnet);ct<=limit;ct++) |
ntohs | 832 | net/appletalk/ddp.c | ntohs(iface->address.s_net),iface->address.s_node, |
ntohs | 833 | net/appletalk/ddp.c | ntohs(iface->nets.nr_firstnet),ntohs(iface->nets.nr_lastnet), |
ntohs | 865 | net/appletalk/ddp.c | ntohs(rt->gateway.s_net), rt->gateway.s_node, rt->flags, |
ntohs | 871 | net/appletalk/ddp.c | ntohs(rt->target.s_net),rt->target.s_node, |
ntohs | 872 | net/appletalk/ddp.c | ntohs(rt->gateway.s_net), rt->gateway.s_node, rt->flags, |
ntohs | 1362 | net/appletalk/ddp.c | *((__u16 *)ddp)=ntohs(*((__u16 *)ddp)); |
ntohs | 1433 | net/appletalk/ddp.c | *((__u16 *)ddp)=ntohs(*((__u16 *)ddp)); /* Mend the byte order */ |
ntohs | 1573 | net/appletalk/ddp.c | *((__u16 *)ddp)=ntohs(*((__u16 *)ddp)); |
ntohs | 155 | net/core/dev.c | hash=ntohs(pt->type)&15; |
ntohs | 175 | net/core/dev.c | pt1=&ptype_base[ntohs(pt->type)&15]; |
ntohs | 688 | net/core/dev.c | for (ptype = ptype_base[ntohs(type)&15]; ptype != NULL; ptype = ptype->next) |
ntohs | 193 | net/ethernet/eth.c | if (ntohs(eth->h_proto) >= 1536) |
ntohs | 260 | net/ethernet/eth.c | ip_length = ntohs(iph->tot_len) - sizeof(struct iphdr); |
ntohs | 475 | net/ipv4/af_inet.c | sk->dummy_th.source = ntohs(sk->num); |
ntohs | 748 | net/ipv4/af_inet.c | sk->dummy_th.source = ntohs(sk->num); |
ntohs | 876 | net/ipv4/af_inet.c | snum = ntohs(addr->sin_port); |
ntohs | 933 | net/ipv4/af_inet.c | sk->dummy_th.source = ntohs(sk->num); |
ntohs | 1382 | net/ipv4/af_inet.c | hnum = ntohs(num); |
ntohs | 1474 | net/ipv4/af_inet.c | hnum = ntohs(num); |
ntohs | 620 | net/ipv4/arp.c | dev->type != ntohs(arp->ar_hrd) || |
ntohs | 357 | net/ipv4/icmp.c | in_ntoa(iph->daddr), ntohs(iph->protocol)); |
ntohs | 696 | net/ipv4/ip.c | offset = ntohs(iph->frag_off); |
ntohs | 741 | net/ipv4/ip.c | end = offset + ntohs(iph->tot_len) - ihl; |
ntohs | 901 | net/ipv4/ip.c | left = ntohs(iph->tot_len) - hlen; /* Space per frame */ |
ntohs | 910 | net/ipv4/ip.c | if (ntohs(iph->frag_off) & IP_DF) |
ntohs | 944 | net/ipv4/ip.c | offset = (ntohs(iph->frag_off) & IP_OFFSET) << 3; |
ntohs | 1107 | net/ipv4/ip.c | iph->check = ntohs(iph->check) + 0x0100; |
ntohs | 1378 | net/ipv4/ip.c | || skb->len < ntohs(iph->tot_len)) |
ntohs | 1391 | net/ipv4/ip.c | skb_trim(skb,ntohs(iph->tot_len)); |
ntohs | 1690 | net/ipv4/ip.c | (ntohs(iph->tot_len) - (iph->ihl * 4)), |
ntohs | 1752 | net/ipv4/ip.c | int len=ntohs(skb->ip_hdr->tot_len); |
ntohs | 1837 | net/ipv4/ip.c | iph->tot_len = ntohs(skb->len-(((unsigned char *)iph)-skb->data)); |
ntohs | 1866 | net/ipv4/ip.c | if(ntohs(iph->tot_len)> dev->mtu) |
ntohs | 222 | net/ipv4/ip_fw.c | offset = ntohs(ip->frag_off) & IP_OFFSET; |
ntohs | 242 | net/ipv4/ip_fw.c | if(ip->protocol==IPPROTO_TCP && (ip->ihl<<2)+16 > ntohs(ip->tot_len)) |
ntohs | 249 | net/ipv4/ip_fw.c | else if(ntohs(ip->tot_len)<8+(ip->ihl<<2)) |
ntohs | 270 | net/ipv4/ip_fw.c | src_port=ntohs(tcp->source); |
ntohs | 271 | net/ipv4/ip_fw.c | dst_port=ntohs(tcp->dest); |
ntohs | 285 | net/ipv4/ip_fw.c | src_port=ntohs(udp->source); |
ntohs | 286 | net/ipv4/ip_fw.c | dst_port=ntohs(udp->dest); |
ntohs | 458 | net/ipv4/ip_fw.c | f->fw_bcnt+=ntohs(ip->tot_len); |
ntohs | 496 | net/ipv4/ip_fw.c | ntohl(ms->src),ntohs(ms->sport)); |
ntohs | 648 | net/ipv4/ip_fw.c | port = ntohs(ms->mport); |
ntohs | 759 | net/ipv4/ip_fw.c | ntohl(iph->saddr), ntohs(portptr[0]), |
ntohs | 760 | net/ipv4/ip_fw.c | ntohl(iph->daddr), ntohs(portptr[1])); |
ntohs | 839 | net/ipv4/ip_fw.c | printk("O-routed from %lX:%X over %s\n",ntohl(dev->pa_addr),ntohs(ms->mport),dev->name); |
ntohs | 863 | net/ipv4/ip_fw.c | if (ntohs(portptr[1]) < PORT_MASQ_BEGIN || |
ntohs | 864 | net/ipv4/ip_fw.c | ntohs(portptr[1]) > PORT_MASQ_END) |
ntohs | 870 | net/ipv4/ip_fw.c | ntohl(iph->saddr), ntohs(portptr[0]), |
ntohs | 871 | net/ipv4/ip_fw.c | ntohl(iph->daddr), ntohs(portptr[1])); |
ntohs | 914 | net/ipv4/ip_fw.c | printk("I-routed to %lX:%X\n",ntohl(iph->daddr),ntohs(portptr[1])); |
ntohs | 1576 | net/ipv4/ip_fw.c | ntohl(ms->src),ntohs(ms->sport), |
ntohs | 1577 | net/ipv4/ip_fw.c | ntohl(ms->dst),ntohs(ms->dport), |
ntohs | 1578 | net/ipv4/ip_fw.c | ntohs(ms->mport), |
ntohs | 94 | net/ipv4/proc.c | destp = ntohs(destp); |
ntohs | 95 | net/ipv4/proc.c | srcp = ntohs(srcp); |
ntohs | 213 | net/ipv4/rarp.c | if (rarp->ar_hln != dev->addr_len || dev->type != ntohs(rarp->ar_hrd) |
ntohs | 120 | net/ipv4/raw.c | skb_trim(skb,ntohs(skb->ip_hdr->tot_len)); |
ntohs | 666 | net/ipv4/tcp.c | size = ntohs(iph->tot_len) - (iph->ihl<<2); |
ntohs | 719 | net/ipv4/tcp.c | th->window = ntohs(tcp_select_window(sk)); |
ntohs | 1409 | net/ipv4/tcp.c | th->window = ntohs(tcp_select_window(sk)); |
ntohs | 1572 | net/ipv4/tcp.c | t1->window = ntohs(sk->window); |
ntohs | 1921 | net/ipv4/tcp.c | skb->h.th->urg_ptr = ntohs(copy); |
ntohs | 2057 | net/ipv4/tcp.c | t1->window = ntohs(sk->window); |
ntohs | 2573 | net/ipv4/tcp.c | t1->window = ntohs(sk->window=tcp_select_window(sk)); |
ntohs | 2813 | net/ipv4/tcp.c | sk->mtu=min(sk->mtu,ntohs(*(unsigned short *)ptr)); |
ntohs | 3106 | net/ipv4/tcp.c | t1->window = ntohs(newsk->window); |
ntohs | 3276 | net/ipv4/tcp.c | th->window = ntohs(tcp_select_window(sk)); |
ntohs | 3323 | net/ipv4/tcp.c | if (ntohs(th->window) > sk->max_window) |
ntohs | 3325 | net/ipv4/tcp.c | sk->max_window = ntohs(th->window); |
ntohs | 3385 | net/ipv4/tcp.c | if (after(sk->window_seq, ack+ntohs(th->window))) |
ntohs | 3409 | net/ipv4/tcp.c | sk->window_seq = ack + ntohs(th->window); |
ntohs | 3465 | net/ipv4/tcp.c | sk->window_seq = ack + ntohs(th->window); |
ntohs | 4321 | net/ipv4/tcp.c | u32 ptr = ntohs(th->urg_ptr); |
ntohs | 5206 | net/ipv4/tcp.c | nth->window = ntohs(tcp_select_window(sk)); |
ntohs | 5245 | net/ipv4/tcp.c | urg_ptr = ntohs(th->urg_ptr); |
ntohs | 5256 | net/ipv4/tcp.c | if(th->urg && ntohs(th->urg_ptr) < win_size) |
ntohs | 5307 | net/ipv4/tcp.c | t1->window = ntohs(tcp_select_window(sk)); |
ntohs | 249 | net/ipv4/udp.c | ntohs(ufh->uh.len), |
ntohs | 596 | net/ipv4/udp.c | ulen = ntohs(uh->len); |
ntohs | 626 | net/ipv4/udp.c | ntohl(saddr),ntohs(uh->source), |
ntohs | 627 | net/ipv4/udp.c | ntohl(daddr),ntohs(uh->dest), |
ntohs | 644 | net/ipv4/udp.c | sk=get_sock_mcast(udp_prot.sock_array[ntohs(uh->dest)&(SOCK_ARRAY_SIZE-1)], uh->dest, |
ntohs | 362 | net/ipx/af_ipx.c | switch (ntohs(ipx->ipx_dest.sock)) { |
ntohs | 1112 | net/ipx/af_ipx.c | switch (ntohs(frame)) { |
ntohs | 1458 | net/ipx/af_ipx.c | while (ipxitf_find_socket(intrfc, ntohs(socketNum)) != NULL) |
ntohs | 1465 | net/ipx/af_ipx.c | return ntohs(socketNum); |
ntohs | 1492 | net/ipx/af_ipx.c | if(ntohs(addr->sipx_port)<IPX_MIN_EPHEMERAL_SOCKET && !suser()) |
ntohs | 1635 | net/ipx/af_ipx.c | p->node[3],p->node[4],p->node[5],ntohs(p->sock)); |
ntohs | 1640 | net/ipx/af_ipx.c | str,p->ipx_checksum,ntohs(p->ipx_pktsize),ntohs(p->ipx_pktsize), |
ntohs | 1647 | net/ipx/af_ipx.c | int len = ntohs(p->ipx_pktsize); |
ntohs | 1771 | net/ipx/af_ipx.c | truesize=ntohs(ipx->ipx_pktsize) - sizeof(ipx_packet); |