htons 83 include/linux/can/dev.h if (skb->protocol == htons(ETH_P_CAN)) { htons 87 include/linux/can/dev.h } else if (skb->protocol == htons(ETH_P_CANFD)) { htons 155 include/linux/ceph/decode.h __be16 ss_family = htons(a->in_addr.ss_family); htons 117 include/linux/hdlc.h return htons(ETH_P_HDLC); htons 277 include/linux/if_vlan.h if (proto == htons(ETH_P_8021Q) && features & NETIF_F_HW_VLAN_CTAG_TX) htons 279 include/linux/if_vlan.h if (proto == htons(ETH_P_8021AD) && features & NETIF_F_HW_VLAN_STAG_TX) htons 317 include/linux/if_vlan.h veth->h_vlan_TCI = htons(vlan_tci); htons 388 include/linux/if_vlan.h if (veth->h_vlan_proto != htons(ETH_P_8021Q) && htons 389 include/linux/if_vlan.h veth->h_vlan_proto != htons(ETH_P_8021AD)) htons 485 include/linux/if_vlan.h skb->protocol = htons(ETH_P_802_3); htons 490 include/linux/if_vlan.h skb->protocol = htons(ETH_P_802_2); htons 3452 include/linux/netdevice.h protocol == htons(ETH_P_IP)) || htons 3454 include/linux/netdevice.h protocol == htons(ETH_P_IPV6)) || htons 3456 include/linux/netdevice.h protocol == htons(ETH_P_FCOE))); htons 42 include/linux/netfilter_bridge.h skb->protocol = htons(ETH_P_8021Q); htons 44 include/linux/netfilter_bridge.h skb->protocol = htons(ETH_P_PPP_SES); htons 38 include/linux/sunrpc/addr.h ((struct sockaddr_in *)sap)->sin_port = htons(port); htons 41 include/linux/sunrpc/addr.h ((struct sockaddr_in6 *)sap)->sin6_port = htons(port); htons 269 include/net/ax25.h return htons(ETH_P_AX25); htons 38 include/net/dsfield.h iph->check = (__force __sum16)htons(check); htons 48 include/net/dsfield.h *p = (*p & htons((((u16)mask << 4) | 0xf00f))) | htons((u16)value << 4); htons 94 include/net/inet_ecn.h check += (__force u16)htons(0xFFFB) + (__force u16)htons(ecn); htons 202 include/net/inet_ecn.h if (skb->protocol == htons(ETH_P_IP)) htons 204 include/net/inet_ecn.h else if (skb->protocol == htons(ETH_P_IPV6)) htons 217 include/net/inet_ecn.h if (skb->protocol == htons(ETH_P_IP)) htons 219 include/net/inet_ecn.h else if (skb->protocol == htons(ETH_P_IPV6)) htons 255 include/net/ip.h return (iph->frag_off & htons(IP_MF | IP_OFFSET)) != 0; htons 267 include/net/ip.h check += (__force u32)htons(0x0100); htons 327 include/net/ip.h if ((iph->frag_off & htons(IP_DF)) && !skb->ignore_df) { htons 334 include/net/ip.h iph->id = htons(inet_sk(sk)->inet_id); htons 159 include/net/ip_tunnels.h if (skb->protocol == htons(ETH_P_IP)) htons 161 include/net/ip_tunnels.h else if (skb->protocol == htons(ETH_P_IPV6)) htons 253 include/net/llc_pdu.h if (skb->protocol == htons(ETH_P_802_2)) htons 266 include/net/llc_pdu.h if (skb->protocol == htons(ETH_P_802_2)) htons 340 include/net/llc_pdu.h if (ev_skb->protocol == htons(ETH_P_802_2)) { htons 223 include/net/udp.h return htons((((u64) hash * (max - min)) >> 32) + min); htons 84 include/net/udplite.h udp_hdr(skb)->len = htons(up->pcslen); htons 122 include/net/udplite.h udp_hdr(skb)->len = htons(up->pcslen); htons 66 include/net/vxlan.h case htons(ETH_P_IP): htons 69 include/net/vxlan.h case htons(ETH_P_IPV6): htons 78 include/net/vxlan.h skb->inner_protocol != htons(ETH_P_TEB) || htons 15 include/net/x25device.h return htons(ETH_P_X25); htons 871 include/net/xfrm.h port = htons(uli->icmpt.type); htons 874 include/net/xfrm.h port = htons(uli->mht.type); htons 877 include/net/xfrm.h port = htons(ntohl(uli->gre_key) >> 16); htons 898 include/net/xfrm.h port = htons(uli->icmpt.code); htons 901 include/net/xfrm.h port = htons(ntohl(uli->gre_key) & 0xffff); htons 118 include/scsi/fc_encode.h ct->hdr.ct_cmd = htons((u16) op); htons 549 include/scsi/fc_encode.h csp->sp_bb_cred = htons(10); /* this gets set by gateway */ htons 550 include/scsi/fc_encode.h csp->sp_bb_data = htons((u16) lport->mfs); htons 552 include/scsi/fc_encode.h cp->cp_class = htons(FC_CPC_VALID | FC_CPC_SEQ); htons 553 include/scsi/fc_encode.h csp->sp_features = htons(FC_SP_FT_CIRO); htons 554 include/scsi/fc_encode.h csp->sp_tot_seq = htons(255); /* seq. we accept */ htons 555 include/scsi/fc_encode.h csp->sp_rel_off = htons(0x1f); htons 558 include/scsi/fc_encode.h cp->cp_rdfs = htons((u16) lport->mfs); htons 559 include/scsi/fc_encode.h cp->cp_con_seq = htons(255); htons 580 include/scsi/fc_encode.h sp->sp_bb_cred = htons(10); /* this gets set by gateway */ htons 581 include/scsi/fc_encode.h sp->sp_bb_data = htons((u16) lport->mfs); htons 583 include/scsi/fc_encode.h cp->cp_class = htons(FC_CPC_VALID | FC_CPC_SEQ); htons 585 include/scsi/fc_encode.h sp->sp_features = htons(FC_SP_FT_NPIV); htons 605 include/scsi/fc_encode.h sp->sp_bb_cred = htons(10); /* this gets set by gateway */ htons 606 include/scsi/fc_encode.h sp->sp_bb_data = htons((u16) lport->mfs); htons 608 include/scsi/fc_encode.h cp->cp_class = htons(FC_CPC_VALID | FC_CPC_SEQ); htons 649 include/scsi/fc_encode.h rec->rec_ox_id = htons(ep->oxid); htons 650 include/scsi/fc_encode.h rec->rec_rx_id = htons(ep->rxid); htons 667 include/scsi/fc_encode.h pp->prli.prli_len = htons(sizeof(*pp)); htons 282 include/uapi/linux/tipc_config.h tlv_ptr->tlv_type = htons(type); htons 283 include/uapi/linux/tipc_config.h tlv_ptr->tlv_len = htons(tlv_len); htons 380 include/uapi/linux/tipc_config.h tcm_hdr->tcm_type = htons(cmd); htons 381 include/uapi/linux/tipc_config.h tcm_hdr->tcm_flags = htons(flags);