[go: nahoru, domu]

Searched refs:htons (Results 1 - 25 of 256) sorted by relevance

1234567891011

/drivers/net/ethernet/cisco/enic/
H A Dvnic_vic.c65 tlv->type = htons(type);
66 tlv->length = htons(length);
/drivers/net/wan/lmc/
H A Dlmc_proto.c108 return htons(ETH_P_802_2);
111 return htons(ETH_P_802_2);
115 return htons(ETH_P_802_2);
/drivers/net/ethernet/sfc/
H A Dfilter.h190 spec->ether_type = htons(ETH_P_IP);
215 spec->ether_type = htons(ETH_P_IP);
242 spec->outer_vid = htons(vid);
H A Dselftest.c370 payload->header.h_proto = htons(ETH_P_IP);
375 payload->ip.check = (__force __sum16) htons(0xdead);
376 payload->ip.tot_len = htons(sizeof(*payload) - sizeof(struct ethhdr));
382 payload->udp.len = htons(sizeof(*payload) - sizeof(struct ethhdr) -
387 payload->iteration = htons(ntohs(payload->iteration) + 1);
H A Drx.c848 if (skb->protocol == htons(ETH_P_8021Q)) {
864 if (ether_type != htons(ETH_P_IP) && ether_type != htons(ETH_P_IPV6))
876 if (ether_type == htons(ETH_P_IP)) {
912 if (ether_type == htons(ETH_P_IP))
980 if (spec->ether_type == htons(ETH_P_IP) &&
983 if (spec->ether_type == htons(ETH_P_IPV6) &&
/drivers/net/ppp/
H A Dpppopns.c41 #define PPTP_GRE_BITS htons(0x2001)
42 #define PPTP_GRE_BITS_MASK htons(0xEF7F)
43 #define PPTP_GRE_SEQ_BIT htons(0x1000)
44 #define PPTP_GRE_ACK_BIT htons(0x0080)
45 #define PPTP_GRE_TYPE htons(0x880B)
222 hdr->length = htons(length);
/drivers/net/arcnet/
H A Drfc1201.c112 return htons(ETH_P_IP);
114 return htons(ETH_P_IPV6);
116 return htons(ETH_P_ARP);
118 return htons(ETH_P_RARP);
122 return htons(ETH_P_802_3);
129 return htons(ETH_P_IP);
421 soft->sequence = htons(lp->rfc1201.sequence++);
457 excsoft.sequence = htons(0xffff);
H A Drfc1051.c110 return htons(ETH_P_IP);
112 return htons(ETH_P_ARP);
120 return htons(ETH_P_IP);
/drivers/scsi/csiostor/
H A Dcsio_mb.c322 cmdp->fcoecaps |= htons(FW_CAPS_CONFIG_FCOE_CTRL_OFLD);
324 cmdp->fcoecaps |= htons(FW_CAPS_CONFIG_FCOE_INITIATOR);
326 cmdp->fcoecaps |= htons(FW_CAPS_CONFIG_FCOE_TARGET);
459 cmdp->fl0size = htons(iq_params->fl0size);
460 cmdp->fl0size = htons(iq_params->fl1size);
508 cmdp->iqid |= htons(iq_params->iqid);
509 cmdp->fl0id |= htons(iq_params->fl0id);
510 cmdp->fl1id |= htons(iq_params->fl1id);
516 cmdp->iqdroprss_to_iqesize |= htons(
524 cmdp->iqsize |= htons(iq_param
[all...]
/drivers/staging/ft1000/ft1000-pcmcia/
H A Dft1000_hw.c835 tempword = htons(*ptempbuffer++);
842 ft1000_write_reg(dev, FT1000_REG_MAG_DPDATAH, htons(size));
1029 len = htons(len);
1158 htons(info->DSPInfoBlklen + 4);
1179 htons(info->DSPInfoBlklen);
1208 ppseudo_hdr->length = htons(0x0012);
1228 *pmsg++ = htons(RSP_DRV_ERR_RPT_MSG);
1229 *pmsg++ = htons(0x000e);
1230 *pmsg++ = htons(info->DSP_TIME[0]);
1231 *pmsg++ = htons(inf
[all...]
/drivers/net/wireless/ipw2x00/
H A Dlibipw_tx.c139 if (h_proto == htons(ETH_P_AARP) || h_proto == htons(ETH_P_IPX))
229 if (eth->h_proto != htons(ETH_P_IP))
299 encrypt = !(ether_type == htons(ETH_P_PAE) && ieee->ieee802_1x) &&
306 ieee->drop_unencrypted && ether_type != htons(ETH_P_PAE)) {
/drivers/net/slip/
H A Dslhc.c345 || (ip->frag_off & htons(0x4000)) != (cs->cs_ip.frag_off & htons(0x4000))
556 thp->urg_ptr = htons(x);
563 thp->window = htons( ntohs(thp->window) + x);
583 ip->id = htons (ntohs (ip->id) + x);
585 ip->id = htons (ntohs (ip->id) + 1);
597 ip->tot_len = htons(len);
/drivers/net/usb/
H A Dcdc_mbim.c213 case htons(ETH_P_IP):
214 case htons(ETH_P_IPV6):
326 netdev = __vlan_find_dev_deep_rcu(dev->net, htons(ETH_P_8021Q),
368 __be16 proto = htons(ETH_P_802_3);
377 proto = htons(ETH_P_IP);
382 proto = htons(ETH_P_IPV6);
405 vlan_put_tag(skb, htons(ETH_P_8021Q), tci);
/drivers/scsi/fnic/
H A Dfnic_fcs.c353 vlan->eth.h_proto = htons(ETH_P_FIP);
356 vlan->fip.fip_op = htons(FIP_OP_VLAN);
358 vlan->fip.fip_dl_len = htons(sizeof(vlan->desc) / FIP_BPW);
370 skb->protocol = htons(ETH_P_FIP);
590 if (eh->h_proto == htons(ETH_P_FIP)) {
633 if (eh->h_proto == htons(ETH_P_8021Q)) {
638 if (eh->h_proto == htons(ETH_P_FIP)) {
653 if (eh->h_proto != htons(ETH_P_FCOE))
985 vlan_hdr->h_vlan_proto = htons(ETH_P_8021Q);
987 vlan_hdr->h_vlan_TCI = htons(fni
[all...]
/drivers/staging/gdm724x/
H A Dgdm_lte.c143 arp_out->ar_op = htons(ARPOP_REPLY);
303 ipv6_out.payload_len = htons(sizeof(struct icmp6hdr) +
645 vlan_eth.h_vlan_TCI = htons(nic->vlan_id);
646 vlan_eth.h_vlan_proto = htons(ETH_P_8021Q);
652 eth.h_proto = htons(ETH_P_ARP);
653 vlan_eth.h_vlan_encapsulated_proto = htons(ETH_P_ARP);
657 eth.h_proto = htons(ETH_P_IP);
658 vlan_eth.h_vlan_encapsulated_proto = htons(ETH_P_IP);
660 eth.h_proto = htons(ETH_P_IPV6);
661 vlan_eth.h_vlan_encapsulated_proto = htons(ETH_P_IPV
[all...]
/drivers/staging/ft1000/ft1000-usb/
H A Dft1000_hw.c1094 len = htons(len);
1108 TempShortBuf[1] = htons(len);
1300 *pmsg++ = htons(info->DSPInfoBlklen + 20 + info->DSPInfoBlklen);
1303 ppseudo_hdr->length = htons(info->DSPInfoBlklen + 4
1324 info->DSPInfoBlk[11] = htons(info->DSPInfoBlklen);
1352 ppseudo_hdr->length = htons(0x0012);
1372 *pmsg++ = htons(RSP_DRV_ERR_RPT_MSG);
1373 *pmsg++ = htons(0x000e);
1374 *pmsg++ = htons(info->DSP_TIME[0]);
1375 *pmsg++ = htons(inf
[all...]
/drivers/net/ethernet/fujitsu/
H A Dfmvj18x_cs.c779 htons(inw(ioaddr + TX_STATUS)),
784 htons(inw(ioaddr + 0)), htons(inw(ioaddr + 2)),
785 htons(inw(ioaddr + 4)), htons(inw(ioaddr + 6)),
786 htons(inw(ioaddr + 8)), htons(inw(ioaddr + 10)),
787 htons(inw(ioaddr + 12)), htons(inw(ioaddr + 14)));
/drivers/net/wan/
H A Dhdlc_ppp.c147 return htons(ETH_P_HDLC);
150 return htons(ETH_P_HDLC);
155 return htons(ETH_P_IP);
159 return htons(ETH_P_IPV6);
162 return htons(ETH_P_HDLC);
183 data->protocol = htons(PID_IP);
186 data->protocol = htons(PID_IPV6);
191 data->protocol = htons(type);
234 cp->len = htons(sizeof(struct cp_header) + magic_len + len);
/drivers/staging/vt6655/
H A Ddpc.c185 *pwType = htons(cbPacketSize - WLAN_HDR_ADDR3_LEN - 8); // 8 is IV&ExtIV
187 *pwType = htons(cbPacketSize - WLAN_HDR_ADDR3_LEN - 4); // 4 is IV
190 *pwType = htons(cbPacketSize - WLAN_HDR_ADDR3_LEN);
198 *pwType = htons(cbPacketSize - WLAN_HDR_ADDR3_LEN - 8); // 8 is IV&ExtIV
200 *pwType = htons(cbPacketSize - WLAN_HDR_ADDR3_LEN - 4); // 4 is IV
203 *pwType = htons(cbPacketSize - WLAN_HDR_ADDR3_LEN);
540 skb->protocol = htons(ETH_P_802_2);
657 skb->protocol = htons(ETH_P_802_2);
768 pDevice->skb->protocol = htons(ETH_P_802_2);
/drivers/scsi/fcoe/
H A Dfcoe_ctlr.c407 sol->eth.h_proto = htons(ETH_P_FIP);
410 sol->fip.fip_op = htons(FIP_OP_DISC);
412 sol->fip.fip_dl_len = htons(sizeof(sol->desc) / FIP_BPW);
413 sol->fip.fip_flags = htons(FIP_FL_FPMA);
415 sol->fip.fip_flags |= htons(FIP_FL_SPMA);
428 sol->desc.size.fd_size = htons(fcoe_size);
431 skb->protocol = htons(ETH_P_FIP);
563 kal->eth.h_proto = htons(ETH_P_FIP);
566 kal->fip.fip_op = htons(FIP_OP_CTRL);
568 kal->fip.fip_dl_len = htons((sizeo
[all...]
/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_main.c475 __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vid);
695 #define FM10K_NVGRE_RESERVED0_FLAGS htons(0x9FFF)
696 #define NVGRE_TNI htons(0x2000)
709 if (vlan_get_protocol(skb) != htons(ETH_P_IP))
720 if (nvgre_hdr->proto != htons(ETH_P_TEB))
736 case htons(ETH_P_IP):
739 case htons(ETH_P_IPV6):
761 case htons(ETH_P_IP):
762 case htons(ETH_P_IPV6):
850 case htons(ETH_P_I
[all...]
/drivers/net/appletalk/
H A Dipddp.c152 ddp->deh_len_hops = htons(skb->len + (1<<10));
176 skb->protocol = htons(ETH_P_ATALK); /* Protocol has changed */
/drivers/net/wireless/mwifiex/
H A Dsta_rx.c47 if (arp->hdr.ar_op == htons(ARPOP_REPLY) ||
48 arp->hdr.ar_op == htons(ARPOP_REQUEST)) {
/drivers/net/ethernet/brocade/bna/
H A Dbfa_msgq.c199 dbell->idx.cmdq_pi = htons(cmdq->producer_index);
292 rsp->mh.mtag.i2htok = htons(cmdq->token);
457 dbell->idx.rspq_ci = htons(rspq->consumer_index);
524 msgq_cfg->cmdq.q_depth = htons(msgq->cmdq.depth);
526 msgq_cfg->rspq.q_depth = htons(msgq->rspq.depth);
/drivers/infiniband/hw/nes/
H A Dnes_cm.c467 skb->protocol = htons(0x800);
473 ethh->h_proto = htons(0x0800);
478 iph->tot_len = htons(packetsize);
479 iph->id = htons(++cm_node->tcp_cntxt.loc_id);
481 iph->frag_off = htons(0x4000);
488 tcph->source = htons(cm_node->mapped_loc_port);
489 tcph->dest = htons(cm_node->mapped_rem_port);
516 tcph->window = htons(cm_node->tcp_cntxt.rcv_wnd);
548 nes_create_sockaddr(htonl(cm_info->loc_addr), htons(cm_info->loc_port),
551 htons(cm_inf
[all...]

Completed in 449 milliseconds

1234567891011