ntohs             318 arch/mips/boot/elf2ecoff.c 	if (ntohs(0xaa55) == 0xaa55) {
ntohs             695 arch/um/drivers/vector_user.c 		bpf[3] = (struct sock_filter){ 0x15, 0, 1, ntohs(*mac2)};
ntohs             300 drivers/atm/atmtcp.c 	out_vcc = find_vcc(dev, ntohs(hdr->vpi), ntohs(hdr->vci));
ntohs             415 drivers/atm/zatm.c 		size = error ? 0 : ntohs(((__be16 *) skb->data)[cells*
ntohs             873 drivers/crypto/chelsio/chtls/chtls_cm.c 	mss = ntohs(req->tcpopt.mss);
ntohs            1440 drivers/crypto/chelsio/chtls/chtls_cm.c 		make_established(sk, ntohl(req->snd_isn), ntohs(req->tcp_opt));
ntohs            1542 drivers/crypto/chelsio/chtls/chtls_cm.c 		__skb_trim(skb, ntohs(hdr->len));
ntohs            1545 drivers/crypto/chelsio/chtls/chtls_cm.c 		handle_urg_ptr(sk, tp->rcv_nxt + ntohs(hdr->urg));
ntohs            1639 drivers/crypto/chelsio/chtls/chtls_cm.c 	skb->hdr_len = ntohs((__force __be16)tls_cmp_hdr->length);
ntohs            1640 drivers/crypto/chelsio/chtls/chtls_cm.c 	tls_cmp_hdr->length = ntohs((__force __be16)nlen);
ntohs             164 drivers/crypto/chelsio/chtls/chtls_cm.h 	inet_rsk(oreq)->ir_num = ntohs(dest);
ntohs             538 drivers/firewire/net.c 		if (ntohs(eth->h_proto) >= ETH_P_802_3_MIN) {
ntohs            1326 drivers/firewire/net.c 		fwnet_make_uf_hdr(&ptask->hdr, ntohs(proto));
ntohs            1334 drivers/firewire/net.c 		fwnet_make_ff_hdr(&ptask->hdr, ntohs(proto), dg_size,
ntohs             630 drivers/hsi/clients/ssi_protocol.c 	((u16 *)skb->data)[2] = ntohs(((u16 *)skb->data)[2]);
ntohs             632 drivers/hsi/clients/ssi_protocol.c 			((u16 *)skb->data)[2], ntohs(((u16 *)skb->data)[2]));
ntohs            1555 drivers/infiniband/core/cm.c 				 ntohs(req_msg->primary_local_lid));
ntohs            1557 drivers/infiniband/core/cm.c 				 ntohs(req_msg->primary_remote_lid));
ntohs            1570 drivers/infiniband/core/cm.c 		sa_path_set_dlid(alt_path, ntohs(req_msg->alt_local_lid));
ntohs            1571 drivers/infiniband/core/cm.c 		sa_path_set_slid(alt_path, ntohs(req_msg->alt_remote_lid));
ntohs            3183 drivers/infiniband/core/cm.c 		sa_path_set_dlid(path, ntohs(lap_msg->alt_local_lid));
ntohs            3184 drivers/infiniband/core/cm.c 		sa_path_set_slid(path, ntohs(lap_msg->alt_remote_lid));
ntohs             590 drivers/infiniband/core/cma.c 	ib_addr_set_pkey(dev_addr, ntohs(sib->sib_pkey));
ntohs             823 drivers/infiniband/core/cma.c 	pkey = ntohs(addr->sib_pkey);
ntohs            3262 drivers/infiniband/core/cma.c 		sib->sib_sid = cpu_to_be64((sid & mask) | (u64) ntohs(port));
ntohs            3418 drivers/infiniband/core/cma.c 	snum = ntohs(cma_port(cma_src_addr(id_priv)));
ntohs            3485 drivers/infiniband/core/cma.c 		sib->sib_sid = cpu_to_be64(sid_ps | ntohs(cma_port((struct sockaddr *) sib)));
ntohs             543 drivers/infiniband/core/iwpm_util.c 			ntohs(sockaddr_v4->sin_port),
ntohs             544 drivers/infiniband/core/iwpm_util.c 			ntohs(sockaddr_v4->sin_port));
ntohs             550 drivers/infiniband/core/iwpm_util.c 			ntohs(sockaddr_v6->sin6_port),
ntohs             551 drivers/infiniband/core/iwpm_util.c 			ntohs(sockaddr_v6->sin6_port));
ntohs             188 drivers/infiniband/core/uverbs_marshall.c 		slid = ntohs(src->slid);
ntohs             189 drivers/infiniband/core/uverbs_marshall.c 		dlid = ntohs(src->dlid);
ntohs            2824 drivers/infiniband/hw/bnxt_re/ib_verbs.c 		eth_type = ntohs(eth_hdr->h_proto);
ntohs            2838 drivers/infiniband/hw/bnxt_re/ib_verbs.c 			if (ntohs(udp_hdr->dest) ==
ntohs             646 drivers/infiniband/hw/cxgb3/iwch_cm.c 	set_emss(ep, ntohs(req->tcp_opt));
ntohs             862 drivers/infiniband/hw/cxgb3/iwch_cm.c 	plen = ntohs(mpa->private_data_size);
ntohs             994 drivers/infiniband/hw/cxgb3/iwch_cm.c 	plen = ntohs(mpa->private_data_size);
ntohs            1044 drivers/infiniband/hw/cxgb3/iwch_cm.c 	unsigned int dlen = ntohs(hdr->len);
ntohs            1089 drivers/infiniband/hw/cxgb3/iwch_cm.c 	unsigned int credits = ntohs(hdr->credits);
ntohs            1355 drivers/infiniband/hw/cxgb3/iwch_cm.c 	tim.vlan_tag = ntohs(req->vlan_tag);
ntohs            1419 drivers/infiniband/hw/cxgb3/iwch_cm.c 	set_emss(ep, ntohs(req->tcp_opt));
ntohs             999 drivers/infiniband/hw/cxgb4/cm.c 			htons(ntohs(mpa->private_data_size) +
ntohs            1091 drivers/infiniband/hw/cxgb4/cm.c 			htons(ntohs(mpa->private_data_size) +
ntohs            1175 drivers/infiniband/hw/cxgb4/cm.c 			htons(ntohs(mpa->private_data_size) +
ntohs            1218 drivers/infiniband/hw/cxgb4/cm.c 	unsigned short tcp_opt = ntohs(req->tcp_opt);
ntohs            1508 drivers/infiniband/hw/cxgb4/cm.c 	plen = ntohs(mpa->private_data_size);
ntohs            1565 drivers/infiniband/hw/cxgb4/cm.c 			resp_ird = ntohs(mpa_v2_params->ird) &
ntohs            1567 drivers/infiniband/hw/cxgb4/cm.c 			resp_ord = ntohs(mpa_v2_params->ord) &
ntohs            1598 drivers/infiniband/hw/cxgb4/cm.c 			if (ntohs(mpa_v2_params->ird) &
ntohs            1600 drivers/infiniband/hw/cxgb4/cm.c 				if (ntohs(mpa_v2_params->ord) &
ntohs            1604 drivers/infiniband/hw/cxgb4/cm.c 				else if (ntohs(mpa_v2_params->ord) &
ntohs            1751 drivers/infiniband/hw/cxgb4/cm.c 	plen = ntohs(mpa->private_data_size);
ntohs            1791 drivers/infiniband/hw/cxgb4/cm.c 			ep->ird = ntohs(mpa_v2_params->ird) &
ntohs            1795 drivers/infiniband/hw/cxgb4/cm.c 			ep->ord = ntohs(mpa_v2_params->ord) &
ntohs            1801 drivers/infiniband/hw/cxgb4/cm.c 			if (ntohs(mpa_v2_params->ird) & MPA_V2_PEER2PEER_MODEL)
ntohs            1803 drivers/infiniband/hw/cxgb4/cm.c 					if (ntohs(mpa_v2_params->ord) &
ntohs            1807 drivers/infiniband/hw/cxgb4/cm.c 					else if (ntohs(mpa_v2_params->ord) &
ntohs            1848 drivers/infiniband/hw/cxgb4/cm.c 	unsigned int dlen = ntohs(hdr->len);
ntohs            2343 drivers/infiniband/hw/cxgb4/cm.c 				&la->sin_addr.s_addr, ntohs(la->sin_port),
ntohs            2344 drivers/infiniband/hw/cxgb4/cm.c 				&ra->sin_addr.s_addr, ntohs(ra->sin_port));
ntohs            2348 drivers/infiniband/hw/cxgb4/cm.c 				la6->sin6_addr.s6_addr, ntohs(la6->sin6_port),
ntohs            2349 drivers/infiniband/hw/cxgb4/cm.c 				ra6->sin6_addr.s6_addr, ntohs(ra6->sin6_port));
ntohs            2525 drivers/infiniband/hw/cxgb4/cm.c 	u16 peer_mss = ntohs(req->tcpopt.mss);
ntohs            2554 drivers/infiniband/hw/cxgb4/cm.c 			 local_ip, peer_ip, ntohs(local_port),
ntohs            2555 drivers/infiniband/hw/cxgb4/cm.c 			 ntohs(peer_port), peer_mss);
ntohs            2562 drivers/infiniband/hw/cxgb4/cm.c 			 local_ip, peer_ip, ntohs(local_port),
ntohs            2563 drivers/infiniband/hw/cxgb4/cm.c 			 ntohs(peer_port), peer_mss);
ntohs            2682 drivers/infiniband/hw/cxgb4/cm.c 	u16 tcp_opt = ntohs(req->tcp_opt);
ntohs            3390 drivers/infiniband/hw/cxgb4/cm.c 			 &laddr->sin_addr, ntohs(laddr->sin_port),
ntohs            3391 drivers/infiniband/hw/cxgb4/cm.c 			 ra, ntohs(raddr->sin_port));
ntohs            3413 drivers/infiniband/hw/cxgb4/cm.c 			 ntohs(laddr6->sin6_port),
ntohs            3414 drivers/infiniband/hw/cxgb4/cm.c 			 raddr6->sin6_addr.s6_addr, ntohs(raddr6->sin6_port));
ntohs            3491 drivers/infiniband/hw/cxgb4/cm.c 		       sin6->sin6_addr.s6_addr, ntohs(sin6->sin6_port));
ntohs            3532 drivers/infiniband/hw/cxgb4/cm.c 		       &sin->sin_addr, ntohs(sin->sin_port));
ntohs            4121 drivers/infiniband/hw/cxgb4/cm.c 		__vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), ntohs(cpl->vlan));
ntohs            4133 drivers/infiniband/hw/cxgb4/cm.c 		 ntohl(iph->daddr), ntohs(tcph->dest), ntohl(iph->saddr),
ntohs            4134 drivers/infiniband/hw/cxgb4/cm.c 		 ntohs(tcph->source), iph->tos);
ntohs             276 drivers/infiniband/hw/cxgb4/device.c 				      &lsin->sin_addr, ntohs(lsin->sin_port),
ntohs             277 drivers/infiniband/hw/cxgb4/device.c 				      ntohs(m_lsin->sin_port),
ntohs             278 drivers/infiniband/hw/cxgb4/device.c 				      &rsin->sin_addr, ntohs(rsin->sin_port),
ntohs             279 drivers/infiniband/hw/cxgb4/device.c 				      ntohs(m_rsin->sin_port));
ntohs             297 drivers/infiniband/hw/cxgb4/device.c 				      ntohs(lsin6->sin6_port),
ntohs             298 drivers/infiniband/hw/cxgb4/device.c 				      ntohs(m_lsin6->sin6_port),
ntohs             300 drivers/infiniband/hw/cxgb4/device.c 				      ntohs(rsin6->sin6_port),
ntohs             301 drivers/infiniband/hw/cxgb4/device.c 				      ntohs(m_rsin6->sin6_port));
ntohs             584 drivers/infiniband/hw/cxgb4/device.c 			      &lsin->sin_addr, ntohs(lsin->sin_port),
ntohs             585 drivers/infiniband/hw/cxgb4/device.c 			      ntohs(m_lsin->sin_port),
ntohs             586 drivers/infiniband/hw/cxgb4/device.c 			      &rsin->sin_addr, ntohs(rsin->sin_port),
ntohs             587 drivers/infiniband/hw/cxgb4/device.c 			      ntohs(m_rsin->sin_port));
ntohs             605 drivers/infiniband/hw/cxgb4/device.c 			      &lsin6->sin6_addr, ntohs(lsin6->sin6_port),
ntohs             606 drivers/infiniband/hw/cxgb4/device.c 			      ntohs(m_lsin6->sin6_port),
ntohs             607 drivers/infiniband/hw/cxgb4/device.c 			      &rsin6->sin6_addr, ntohs(rsin6->sin6_port),
ntohs             608 drivers/infiniband/hw/cxgb4/device.c 			      ntohs(m_rsin6->sin6_port));
ntohs             636 drivers/infiniband/hw/cxgb4/device.c 			      &lsin->sin_addr, ntohs(lsin->sin_port),
ntohs             637 drivers/infiniband/hw/cxgb4/device.c 			      ntohs(m_lsin->sin_port));
ntohs             649 drivers/infiniband/hw/cxgb4/device.c 			      &lsin6->sin6_addr, ntohs(lsin6->sin6_port),
ntohs             650 drivers/infiniband/hw/cxgb4/device.c 			      ntohs(m_lsin6->sin6_port));
ntohs             667 drivers/infiniband/hw/i40iw/i40iw_cm.c 			tmp = ntohs(all_options->as_mss.mss);
ntohs             721 drivers/infiniband/hw/i40iw/i40iw_cm.c 	cm_node->tcp_cntxt.snd_wnd = ntohs(tcph->window) <<
ntohs             930 drivers/infiniband/hw/i40iw/i40iw_cm.c 	priv_data_len = ntohs(mpa_frame->priv_data_len);
ntohs             980 drivers/infiniband/hw/i40iw/i40iw_cm.c 			ctrl_ord = ntohs(rtr_msg->ctrl_ord);
ntohs             981 drivers/infiniband/hw/i40iw/i40iw_cm.c 			ctrl_ird = ntohs(rtr_msg->ctrl_ird);
ntohs            3149 drivers/infiniband/hw/i40iw/i40iw_cm.c 		vtag = ntohs(ethh->h_vlan_TCI);
ntohs            3176 drivers/infiniband/hw/i40iw/i40iw_cm.c 	cm_info.loc_port = ntohs(tcph->dest);
ntohs            3177 drivers/infiniband/hw/i40iw/i40iw_cm.c 	cm_info.rem_port = ntohs(tcph->source);
ntohs            3861 drivers/infiniband/hw/i40iw/i40iw_cm.c 		cm_info.loc_port = ntohs(laddr->sin_port);
ntohs            3862 drivers/infiniband/hw/i40iw/i40iw_cm.c 		cm_info.rem_port = ntohs(raddr->sin_port);
ntohs            3870 drivers/infiniband/hw/i40iw/i40iw_cm.c 		cm_info.loc_port = ntohs(laddr6->sin6_port);
ntohs            3871 drivers/infiniband/hw/i40iw/i40iw_cm.c 		cm_info.rem_port = ntohs(raddr6->sin6_port);
ntohs            3978 drivers/infiniband/hw/i40iw/i40iw_cm.c 		cm_info.loc_port = ntohs(laddr->sin_port);
ntohs            3989 drivers/infiniband/hw/i40iw/i40iw_cm.c 		cm_info.loc_port = ntohs(laddr6->sin6_port);
ntohs            4330 drivers/infiniband/hw/i40iw/i40iw_ctrl.c 		opcode = ntohs(mpa[1]) & 0xf;
ntohs            4390 drivers/infiniband/hw/i40iw/i40iw_ctrl.c 		ddp_seg_len = ntohs(*(__be16 *)pkt);
ntohs            1258 drivers/infiniband/hw/i40iw/i40iw_puda.c 		fpdu_len = i40iw_ieq_get_fpdu_length(ntohs(*(__be16 *)datap));
ntohs            1417 drivers/infiniband/hw/i40iw/i40iw_utils.c 	loc_port = ntohs(tcph->dest);
ntohs            1418 drivers/infiniband/hw/i40iw/i40iw_utils.c 	rem_port = ntohs(tcph->source);
ntohs            1469 drivers/infiniband/hw/i40iw/i40iw_utils.c 		buf->vlan_id = ntohs(((struct vlan_ethhdr *)ethh)->h_vlan_TCI) & VLAN_VID_MASK;
ntohs            1481 drivers/infiniband/hw/i40iw/i40iw_utils.c 		pkt_len = ntohs(iph->tot_len);
ntohs            1484 drivers/infiniband/hw/i40iw/i40iw_utils.c 		pkt_len = ntohs(ip6h->payload_len) + iphlen;
ntohs            2741 drivers/infiniband/hw/mlx5/main.c 				 first_vid, ntohs(ib_spec->eth.mask.vlan_tag));
ntohs            2743 drivers/infiniband/hw/mlx5/main.c 				 first_vid, ntohs(ib_spec->eth.val.vlan_tag));
ntohs            2747 drivers/infiniband/hw/mlx5/main.c 				 ntohs(ib_spec->eth.mask.vlan_tag) >> 12);
ntohs            2750 drivers/infiniband/hw/mlx5/main.c 				 ntohs(ib_spec->eth.val.vlan_tag) >> 12);
ntohs            2754 drivers/infiniband/hw/mlx5/main.c 				 ntohs(ib_spec->eth.mask.vlan_tag) >> 13);
ntohs            2757 drivers/infiniband/hw/mlx5/main.c 				 ntohs(ib_spec->eth.val.vlan_tag) >> 13);
ntohs            2760 drivers/infiniband/hw/mlx5/main.c 			 ethertype, ntohs(ib_spec->eth.mask.ether_type));
ntohs            2762 drivers/infiniband/hw/mlx5/main.c 			 ethertype, ntohs(ib_spec->eth.val.ether_type));
ntohs            2870 drivers/infiniband/hw/mlx5/main.c 			 ntohs(ib_spec->tcp_udp.mask.src_port));
ntohs            2872 drivers/infiniband/hw/mlx5/main.c 			 ntohs(ib_spec->tcp_udp.val.src_port));
ntohs            2875 drivers/infiniband/hw/mlx5/main.c 			 ntohs(ib_spec->tcp_udp.mask.dst_port));
ntohs            2877 drivers/infiniband/hw/mlx5/main.c 			 ntohs(ib_spec->tcp_udp.val.dst_port));
ntohs            2888 drivers/infiniband/hw/mlx5/main.c 			 ntohs(ib_spec->tcp_udp.mask.src_port));
ntohs            2890 drivers/infiniband/hw/mlx5/main.c 			 ntohs(ib_spec->tcp_udp.val.src_port));
ntohs            2893 drivers/infiniband/hw/mlx5/main.c 			 ntohs(ib_spec->tcp_udp.mask.dst_port));
ntohs            2895 drivers/infiniband/hw/mlx5/main.c 			 ntohs(ib_spec->tcp_udp.val.dst_port));
ntohs            2910 drivers/infiniband/hw/mlx5/main.c 			 ntohs(ib_spec->gre.mask.protocol));
ntohs            2912 drivers/infiniband/hw/mlx5/main.c 			 ntohs(ib_spec->gre.val.protocol));
ntohs            3139 drivers/infiniband/hw/mlx5/main.c 			eth_type = ntohs(ib_spec->eth.val.ether_type);
ntohs             543 drivers/infiniband/hw/qedr/qedr_iw_cm.c 		 ntohs(((struct sockaddr_in *)&cm_id->remote_addr)->sin_port),
ntohs             544 drivers/infiniband/hw/qedr/qedr_iw_cm.c 		 ntohs(raddr->sin_port));
ntohs             583 drivers/infiniband/hw/qedr/qedr_iw_cm.c 		cm_info->remote_port = ntohs(raddr->sin_port);
ntohs             584 drivers/infiniband/hw/qedr/qedr_iw_cm.c 		cm_info->local_port = ntohs(laddr->sin_port);
ntohs             603 drivers/infiniband/hw/qedr/qedr_iw_cm.c 		cm_info->local_port = ntohs(laddr6->sin6_port);
ntohs             604 drivers/infiniband/hw/qedr/qedr_iw_cm.c 		cm_info->remote_port = ntohs(raddr6->sin6_port);
ntohs             682 drivers/infiniband/hw/qedr/qedr_iw_cm.c 		iparams.port = ntohs(laddr->sin_port);
ntohs             692 drivers/infiniband/hw/qedr/qedr_iw_cm.c 		iparams.port = ntohs(laddr6->sin6_port);
ntohs             115 drivers/infiniband/hw/qedr/qedr_roce_cm.c 		ntohs((u16)data->opaque_data_1);
ntohs             192 drivers/infiniband/hw/usnic/usnic_transport.c 		*port = ntohs(((struct sockaddr_in *)&sock_addr)->sin_port);
ntohs             654 drivers/infiniband/sw/siw/siw_cm.c 		cep->ord = ntohs(v2->ird) & MPA_IRD_ORD_MASK;
ntohs             656 drivers/infiniband/sw/siw/siw_cm.c 		cep->ird = ntohs(v2->ord) & MPA_IRD_ORD_MASK;
ntohs             790 drivers/infiniband/sw/siw/siw_cm.c 		rep_ird = ntohs(v2->ird) & MPA_IRD_ORD_MASK;
ntohs             791 drivers/infiniband/sw/siw/siw_cm.c 		rep_ord = ntohs(v2->ord) & MPA_IRD_ORD_MASK;
ntohs            1380 drivers/infiniband/sw/siw/siw_cm.c 			   ntohs(((struct sockaddr_in *)(laddr))->sin_port),
ntohs            1382 drivers/infiniband/sw/siw/siw_cm.c 			   ntohs(((struct sockaddr_in *)(raddr))->sin_port));
ntohs            1388 drivers/infiniband/sw/siw/siw_cm.c 			   ntohs(((struct sockaddr_in6 *)(laddr))->sin6_port),
ntohs            1390 drivers/infiniband/sw/siw/siw_cm.c 			   ntohs(((struct sockaddr_in6 *)(raddr))->sin6_port));
ntohs             618 drivers/isdn/mISDN/l1oip_core.c 			       ntohs(hc->sin_remote.sin_port),
ntohs             619 drivers/isdn/mISDN/l1oip_core.c 			       ntohs(sin->sin_port));
ntohs             145 drivers/media/dvb-core/dvb_net.c 	if (ntohs(eth->h_proto) >= ETH_P_802_3_MIN)
ntohs             188 drivers/media/dvb-core/dvb_net.c 	if(ntohs(hdr->h_proto) < ETH_P_802_3_MIN) {
ntohs             191 drivers/media/dvb-core/dvb_net.c 		if(framelen != ntohs(hdr->h_proto)) {
ntohs             238 drivers/media/dvb-core/dvb_net.c 					p->ule_sndu_type = ntohs(*(__be16 *)p->ule_next_hdr);
ntohs             241 drivers/media/dvb-core/dvb_net.c 					p->ule_sndu_type = ntohs(*(__be16 *)(p->ule_next_hdr + ((p->ule_dbit ? 2 : 3) * ETH_ALEN)));
ntohs             255 drivers/media/dvb-core/dvb_net.c 		p->ule_sndu_type = ntohs( *(__be16 *)(p->ule_next_hdr-2) );
ntohs             126 drivers/media/platform/vicodec/codec-fwht.c 	stat = ntohs(*input++);
ntohs             143 drivers/media/platform/vicodec/codec-fwht.c 		in = ntohs(*input++);
ntohs             735 drivers/media/platform/vicodec/codec-fwht.c 				s16 hdr = ntohs(*last_rlco);
ntohs             455 drivers/net/bonding/bond_3ad.c 	if (((ntohs(lacpdu->partner_port) == port->actor_port_number) &&
ntohs             456 drivers/net/bonding/bond_3ad.c 	     (ntohs(lacpdu->partner_port_priority) == port->actor_port_priority) &&
ntohs             458 drivers/net/bonding/bond_3ad.c 	     (ntohs(lacpdu->partner_system_priority) == port->actor_system_priority) &&
ntohs             459 drivers/net/bonding/bond_3ad.c 	     (ntohs(lacpdu->partner_key) == port->actor_oper_port_key) &&
ntohs             487 drivers/net/bonding/bond_3ad.c 		partner->port_number = ntohs(lacpdu->actor_port);
ntohs             488 drivers/net/bonding/bond_3ad.c 		partner->port_priority = ntohs(lacpdu->actor_port_priority);
ntohs             490 drivers/net/bonding/bond_3ad.c 		partner->system_priority = ntohs(lacpdu->actor_system_priority);
ntohs             491 drivers/net/bonding/bond_3ad.c 		partner->key = ntohs(lacpdu->actor_key);
ntohs             554 drivers/net/bonding/bond_3ad.c 		if (ntohs(lacpdu->actor_port) != partner->port_number ||
ntohs             555 drivers/net/bonding/bond_3ad.c 		    ntohs(lacpdu->actor_port_priority) != partner->port_priority ||
ntohs             557 drivers/net/bonding/bond_3ad.c 		    ntohs(lacpdu->actor_system_priority) != partner->system_priority ||
ntohs             558 drivers/net/bonding/bond_3ad.c 		    ntohs(lacpdu->actor_key) != partner->key ||
ntohs             617 drivers/net/bonding/bond_3ad.c 		if ((ntohs(lacpdu->partner_port) != port->actor_port_number) ||
ntohs             618 drivers/net/bonding/bond_3ad.c 		    (ntohs(lacpdu->partner_port_priority) != port->actor_port_priority) ||
ntohs             620 drivers/net/bonding/bond_3ad.c 		    (ntohs(lacpdu->partner_system_priority) != port->actor_system_priority) ||
ntohs             621 drivers/net/bonding/bond_3ad.c 		    (ntohs(lacpdu->partner_key) != port->actor_oper_port_key) ||
ntohs            1390 drivers/net/bonding/bond_alb.c 	switch (ntohs(skb->protocol)) {
ntohs            2400 drivers/net/bonding/bond_main.c 			  ntohs(outer_tag->vlan_proto), tags->vlan_id);
ntohs            2413 drivers/net/bonding/bond_main.c 			  ntohs(outer_tag->vlan_proto), outer_tag->vlan_id);
ntohs             283 drivers/net/dsa/mv88e6xxx/hwtstamp.c 	return ts_seqid == ntohs(*seqid);
ntohs            1892 drivers/net/ethernet/3com/typhoon.c 	xp_cmd.parm1 = cpu_to_le16(ntohs(*(__be16 *)&dev->dev_addr[0]));
ntohs            2180 drivers/net/ethernet/3com/typhoon.c 	xp_cmd.parm1 = cpu_to_le16(ntohs(*(__be16 *)&dev->dev_addr[0]));
ntohs            2989 drivers/net/ethernet/amd/xgbe/xgbe-drv.c 	netdev_dbg(netdev, "Protocol: %#06hx\n", ntohs(eth->h_proto));
ntohs             661 drivers/net/ethernet/apm/xgene/xgene_enet_main.c 		if (ntohs(eth_hdr(skb)->h_proto) < 46)
ntohs             526 drivers/net/ethernet/aquantia/atlantic/aq_filters.c 				ntohs(fsp->h_u.tcp_ip4_spec.pdst);
ntohs             528 drivers/net/ethernet/aquantia/atlantic/aq_filters.c 				ntohs(fsp->h_u.tcp_ip4_spec.psrc);
ntohs             531 drivers/net/ethernet/aquantia/atlantic/aq_filters.c 				ntohs(fsp->h_u.tcp_ip6_spec.pdst);
ntohs             533 drivers/net/ethernet/aquantia/atlantic/aq_filters.c 				ntohs(fsp->h_u.tcp_ip6_spec.psrc);
ntohs            1990 drivers/net/ethernet/atheros/atl1c/atl1c_main.c 					+ ntohs(ip_hdr(skb)->tot_len));
ntohs            1639 drivers/net/ethernet/atheros/atl1e/atl1e_main.c 					+ ntohs(ip_hdr(skb)->tot_len));
ntohs            2117 drivers/net/ethernet/atheros/atlx/atl1.c 				ntohs(iph->tot_len));
ntohs            1921 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c 		u16 ether_type = ntohs(hdr->h_proto);
ntohs            1928 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c 			ether_type = ntohs(vhdr->h_vlan_encapsulated_proto);
ntohs            3906 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c 					cpu_to_le16(ntohs(eth->h_proto));
ntohs            10245 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 	u16 t_port = ntohs(ti->port);
ntohs            10263 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 	u16 t_port = ntohs(ti->port);
ntohs              31 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c 	((ntohs(vlan_tci_mask) & VLAN_PRIO_MASK) == 0x0000)
ntohs              33 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c 	((ntohs(vlan_tci_mask) & VLAN_PRIO_MASK) == VLAN_PRIO_MASK)
ntohs              35 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c 	((ntohs(vlan_tci) & VLAN_PRIO_MASK) == 0x0000)
ntohs              37 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c 	((ntohs(vlan_tci_mask) & VLAN_VID_MASK) == VLAN_VID_MASK)
ntohs              42 drivers/net/ethernet/brocade/bna/bfa_cee.c 			ntohs(lldp_cfg->time_to_live);
ntohs              44 drivers/net/ethernet/brocade/bna/bfa_cee.c 			ntohs(lldp_cfg->enabled_system_cap);
ntohs            2109 drivers/net/ethernet/brocade/bna/bfa_ioc.c 	attr->maxfrsize	    = ntohs(attr->maxfrsize);
ntohs             234 drivers/net/ethernet/brocade/bna/bfa_msgq.c 	cmdq->consumer_index = ntohs(dbell->idx.cmdq_ci);
ntohs             240 drivers/net/ethernet/brocade/bna/bfa_msgq.c 		if (ntohs(cmd->msg_hdr->num_entries) <=
ntohs             271 drivers/net/ethernet/brocade/bna/bfa_msgq.c 	cmdq->offset = ntohs(req->offset);
ntohs             272 drivers/net/ethernet/brocade/bna/bfa_msgq.c 	cmdq->bytes_to_copy = ntohs(req->len);
ntohs             468 drivers/net/ethernet/brocade/bna/bfa_msgq.c 	rspq->producer_index = ntohs(dbell->idx.rspq_pi);
ntohs             476 drivers/net/ethernet/brocade/bna/bfa_msgq.c 		num_entries = ntohs(msghdr->num_entries);
ntohs             626 drivers/net/ethernet/brocade/bna/bfa_msgq.c 	if (ntohs(cmd->msg_hdr->num_entries) <=
ntohs             603 drivers/net/ethernet/brocade/bna/bna_tx_rx.c 		ntohs(rsp->handle));
ntohs             551 drivers/net/ethernet/brocade/bna/bnad.c 		len = ntohs(cmpl->length);
ntohs             617 drivers/net/ethernet/brocade/bna/bnad.c 		BNA_UPDATE_PKT_CNT(pkt_rt, ntohs(cmpl->length));
ntohs             640 drivers/net/ethernet/brocade/bna/bnad.c 		len = ntohs(cmpl->length);
ntohs             667 drivers/net/ethernet/brocade/bna/bnad.c 				len = ntohs(next_cmpl->length);
ntohs             712 drivers/net/ethernet/brocade/bna/bnad.c 			__vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), ntohs(cmpl->vlan_tag));
ntohs             840 drivers/net/ethernet/cavium/thunder/nicvf_main.c 				       ntohs((__force __be16)cqe_rx->vlan_tci));
ntohs            1387 drivers/net/ethernet/chelsio/cxgb/sge.c 		__vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), ntohs(p->vlan));
ntohs            2098 drivers/net/ethernet/chelsio/cxgb3/sge.c 		__vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), ntohs(p->vlan));
ntohs            2200 drivers/net/ethernet/chelsio/cxgb3/sge.c 		__vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), ntohs(cpl->vlan));
ntohs            4842 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c 		if (ntohs(caps_cmd.cryptocaps) &
ntohs            4855 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c 		if (ntohs(caps_cmd.cryptocaps) &
ntohs            4867 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c 		adap->params.crypto = ntohs(caps_cmd.cryptocaps);
ntohs             102 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c 		ethtype_key = ntohs(match.key->n_proto);
ntohs             103 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c 		ethtype_mask = ntohs(match.mask->n_proto);
ntohs             252 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c 		ethtype_key = ntohs(match.key->n_proto);
ntohs             253 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c 		ethtype_mask = ntohs(match.mask->n_proto);
ntohs             399 drivers/net/ethernet/chelsio/cxgb4/sge.c 	int hw_cidx = ntohs(READ_ONCE(q->stat->cidx));
ntohs            1337 drivers/net/ethernet/chelsio/cxgb4/sge.c 	hw_cidx = ntohs(READ_ONCE(q->stat->cidx));
ntohs            2002 drivers/net/ethernet/chelsio/cxgb4/sge.c 	int hw_cidx = ntohs(READ_ONCE(q->stat->cidx));
ntohs            2772 drivers/net/ethernet/chelsio/cxgb4/sge.c 		__vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), ntohs(pkt->vlan));
ntohs            2957 drivers/net/ethernet/chelsio/cxgb4/sge.c 		tnl_hdr_len = T6_RX_TNLHDR_LEN_G(ntohs(pkt->err_vec));
ntohs            3051 drivers/net/ethernet/chelsio/cxgb4/sge.c 		__vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), ntohs(pkt->vlan));
ntohs            3613 drivers/net/ethernet/chelsio/cxgb4/sge.c 	iq->cntxt_id = ntohs(c.iqid);
ntohs            3614 drivers/net/ethernet/chelsio/cxgb4/sge.c 	iq->abs_id = ntohs(c.physiqid);
ntohs            3633 drivers/net/ethernet/chelsio/cxgb4/sge.c 		fl->cntxt_id = ntohs(c.fl0id);
ntohs              59 drivers/net/ethernet/chelsio/libcxgb/libcxgb_cm.c 			 ntohs(tcp->source), ntohs(tcp->dest));
ntohs              66 drivers/net/ethernet/chelsio/libcxgb/libcxgb_cm.c 			 ntohs(tcp->source), ntohs(tcp->dest));
ntohs              40 drivers/net/ethernet/cisco/enic/enic_clsf.c 	data.u.ipv4.src_port = ntohs(keys->ports.src);
ntohs              41 drivers/net/ethernet/cisco/enic/enic_clsf.c 	data.u.ipv4.dst_port = ntohs(keys->ports.dst);
ntohs             208 drivers/net/ethernet/cisco/enic/enic_main.c 		if (ntohs(port) == enic->vxlan.vxlan_udp_port_number)
ntohs             223 drivers/net/ethernet/cisco/enic/enic_main.c 					   ntohs(port));
ntohs             232 drivers/net/ethernet/cisco/enic/enic_main.c 	enic->vxlan.vxlan_udp_port_number = ntohs(port);
ntohs             235 drivers/net/ethernet/cisco/enic/enic_main.c 		    (int)enic->vxlan.patch_level, ntohs(port), ti->sa_family);
ntohs             241 drivers/net/ethernet/cisco/enic/enic_main.c 		    ntohs(port), ti->sa_family, ti->type);
ntohs             254 drivers/net/ethernet/cisco/enic/enic_main.c 	if ((ntohs(ti->port) != enic->vxlan.vxlan_udp_port_number) ||
ntohs             257 drivers/net/ethernet/cisco/enic/enic_main.c 			    ntohs(ti->port), ti->sa_family, ti->type);
ntohs             265 drivers/net/ethernet/cisco/enic/enic_main.c 			   ntohs(ti->port));
ntohs             272 drivers/net/ethernet/cisco/enic/enic_main.c 		    ntohs(ti->port), ti->sa_family);
ntohs             307 drivers/net/ethernet/cisco/enic/enic_main.c 	case ntohs(ETH_P_IPV6):
ntohs             311 drivers/net/ethernet/cisco/enic/enic_main.c 	case ntohs(ETH_P_IP):
ntohs             668 drivers/net/ethernet/cisco/enic/enic_main.c 	case ntohs(ETH_P_IP):
ntohs             675 drivers/net/ethernet/cisco/enic/enic_main.c 	case ntohs(ETH_P_IPV6):
ntohs            1137 drivers/net/ethernet/emulex/benet/be_main.c 	eth_hdr_len = ntohs(skb->protocol) == ETH_P_8021Q ?
ntohs            1143 drivers/net/ethernet/emulex/benet/be_main.c 		pskb_trim(skb, eth_hdr_len + ntohs(ip->tot_len));
ntohs            1341 drivers/net/ethernet/emulex/benet/be_main.c 		switch (ntohs(udp->dest)) {
ntohs            1466 drivers/net/ethernet/emulex/benet/be_main.c 						 ntohs(tcphdr->source));
ntohs            1468 drivers/net/ethernet/emulex/benet/be_main.c 						 ntohs(tcphdr->dest));
ntohs            1470 drivers/net/ethernet/emulex/benet/be_main.c 						 ntohs(tcphdr->seq));
ntohs            1472 drivers/net/ethernet/emulex/benet/be_main.c 						 ntohs(tcphdr->ack_seq));
ntohs            1477 drivers/net/ethernet/emulex/benet/be_main.c 						 ntohs(udphdr->source));
ntohs            1479 drivers/net/ethernet/emulex/benet/be_main.c 						 ntohs(udphdr->dest));
ntohs            1402 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c 	u16 ethertype = ntohs(skb->protocol);
ntohs            1426 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c 		ethertype = ntohs(vlan_eth_hdr(skb)->h_vlan_encapsulated_proto);
ntohs            1450 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c 				    ntohs(skb->protocol));
ntohs             337 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c 		rfse.sport_h = ntohs(l4ip4_h->psrc);
ntohs             338 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c 		rfse.sport_m = ntohs(l4ip4_m->psrc);
ntohs             339 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c 		rfse.dport_h = ntohs(l4ip4_h->pdst);
ntohs             340 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c 		rfse.dport_m = ntohs(l4ip4_m->pdst);
ntohs             367 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c 		rfse.ethtype_h = ntohs(eth_h->h_proto);
ntohs             368 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c 		rfse.ethtype_m = ntohs(eth_m->h_proto);
ntohs            1526 drivers/net/ethernet/freescale/fec_main.c 			vlan_tag = ntohs(vlan_header->h_vlan_TCI);
ntohs            8285 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c 	vlan_info.vlan_proto = ntohs(proto);
ntohs            8303 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c 							ntohs(proto));
ntohs            1218 drivers/net/ethernet/ibm/ibmveth.c 		skb_shinfo(skb)->gso_size = ntohs(tcph->check);
ntohs            2271 drivers/net/ethernet/ibm/ibmvnic.c 					       ntohs(next->rx_comp.vlan_tci));
ntohs            5743 drivers/net/ethernet/intel/e1000e/netdev.c 		if (ntohs(udp->dest) != 67)
ntohs             422 drivers/net/ethernet/intel/fm10k/fm10k_netdev.c 			(port ? ntohs(port->port) : 0) |
ntohs             430 drivers/net/ethernet/intel/fm10k/fm10k_netdev.c 			(port ? ntohs(port->port) : 0));
ntohs             666 drivers/net/ethernet/intel/fm10k/fm10k_netdev.c 				       ntohs(vhdr->h_vlan_TCI));
ntohs             668 drivers/net/ethernet/intel/fm10k/fm10k_netdev.c 		skb->protocol = (ntohs(proto) >= 1536) ? proto :
ntohs             198 drivers/net/ethernet/intel/i40e/i40e_dcb.c 	typelength = ntohs(tlv->typelength);
ntohs             362 drivers/net/ethernet/intel/i40e/i40e_dcb.c 	typelength = ntohs(tlv->hdr.typelen);
ntohs             397 drivers/net/ethernet/intel/i40e/i40e_dcb.c 		dcbcfg->app[i].protocolid = ntohs(app->protocol);
ntohs             426 drivers/net/ethernet/intel/i40e/i40e_dcb.c 	typelength = ntohs(tlv->typelength);
ntohs             437 drivers/net/ethernet/intel/i40e/i40e_dcb.c 		typelength = ntohs(sub_tlv->hdr.typelen);
ntohs             517 drivers/net/ethernet/intel/i40e/i40e_dcb.c 		typelength = ntohs(tlv->typelength);
ntohs            7552 drivers/net/ethernet/intel/i40e/i40e_main.c 	cld->inner_vlan = cpu_to_le16(ntohs(filter->vlan_id));
ntohs            7731 drivers/net/ethernet/intel/i40e/i40e_main.c 			 ntohs(filter->dst_port));
ntohs            7780 drivers/net/ethernet/intel/i40e/i40e_main.c 		n_proto_key = ntohs(match.key->n_proto);
ntohs            7781 drivers/net/ethernet/intel/i40e/i40e_main.c 		n_proto_mask = ntohs(match.mask->n_proto);
ntohs            12167 drivers/net/ethernet/intel/i40e/i40e_main.c 	u16 port = ntohs(ti->port);
ntohs            12219 drivers/net/ethernet/intel/i40e/i40e_main.c 	u16 port = ntohs(ti->port);
ntohs            2845 drivers/net/ethernet/intel/i40e/i40e_txrx.c 		tx_flags |= ntohs(vhdr->h_vlan_TCI) << I40E_TX_FLAGS_VLAN_SHIFT;
ntohs            3175 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c 				if (f->vlan == ntohs(data.vlan_id)) {
ntohs            3183 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c 					 vf->vf_id, ntohs(data.vlan_id));
ntohs            3239 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c 		if (ntohs(data.vlan_id) > I40E_MAX_VLANID) {
ntohs            2727 drivers/net/ethernet/intel/iavf/iavf_main.c 		n_proto_key = ntohs(match.key->n_proto);
ntohs            2728 drivers/net/ethernet/intel/iavf/iavf_main.c 		n_proto_mask = ntohs(match.mask->n_proto);
ntohs            1835 drivers/net/ethernet/intel/iavf/iavf_txrx.c 		tx_flags |= ntohs(vhdr->h_vlan_TCI) << IAVF_TX_FLAGS_VLAN_SHIFT;
ntohs            1041 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 			 ntohs(f->data.tcp_spec.vlan_id),
ntohs            1044 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 			 ntohs(f->data.tcp_spec.dst_port),
ntohs            1045 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 			 ntohs(f->data.tcp_spec.src_port));
ntohs            1051 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 			 ntohs(f->data.tcp_spec.vlan_id),
ntohs            1054 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 			 ntohs(f->data.tcp_spec.dst_port),
ntohs            1055 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c 			 ntohs(f->data.tcp_spec.src_port));
ntohs             327 drivers/net/ethernet/intel/ice/ice_dcb.c 	typelen = ntohs(tlv->typelen);
ntohs             499 drivers/net/ethernet/intel/ice/ice_dcb.c 	typelen = ntohs(tlv->hdr.typelen);
ntohs             532 drivers/net/ethernet/intel/ice/ice_dcb.c 		dcbcfg->app[i].prot_id = ntohs(app->protocol);
ntohs             561 drivers/net/ethernet/intel/ice/ice_dcb.c 	typelen = ntohs(tlv->typelen);
ntohs             573 drivers/net/ethernet/intel/ice/ice_dcb.c 		typelen = ntohs(sub_tlv->hdr.typelen);
ntohs             650 drivers/net/ethernet/intel/ice/ice_dcb.c 		typelen = ntohs(tlv->typelen);
ntohs            1270 drivers/net/ethernet/intel/ice/ice_dcb.c 		typelen = ntohs(tlv->typelen);
ntohs            1876 drivers/net/ethernet/intel/ice/ice_txrx.c 		first->tx_flags |= ntohs(vhdr->h_vlan_TCI) <<
ntohs            2722 drivers/net/ethernet/intel/igb/igb_ethtool.c 	etype = ntohs(input->filter.etype & ETHER_TYPE_FULL_MASK);
ntohs            2749 drivers/net/ethernet/intel/igb/igb_ethtool.c 	vlan_priority = (ntohs(input->filter.vlan_tci) & VLAN_PRIO_MASK)
ntohs            2851 drivers/net/ethernet/intel/igb/igb_ethtool.c 					   ntohs(input->filter.vlan_tci));
ntohs            1157 drivers/net/ethernet/intel/igc/igc_ethtool.c 	etype = ntohs(input->filter.etype & ETHER_TYPE_FULL_MASK);
ntohs            1184 drivers/net/ethernet/intel/igc/igc_ethtool.c 	vlan_priority = (ntohs(input->filter.vlan_tci) & VLAN_PRIO_MASK)
ntohs            1286 drivers/net/ethernet/intel/igc/igc_ethtool.c 					   ntohs(input->filter.vlan_tci));
ntohs            1493 drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c 	u32 mask = ntohs(input_mask->formatted.dst_port);
ntohs            1496 drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c 	mask |= ntohs(input_mask->formatted.src_port);
ntohs            1518 drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c 	ntohs(((u16)(_value) >> 8) | ((u16)(_value) << 8))
ntohs            1567 drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c 	switch (ntohs(input_mask->formatted.vlan_id) & 0xEFFF) {
ntohs            1652 drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c 	fdirport = ntohs(input->formatted.dst_port);
ntohs            1654 drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c 	fdirport |= ntohs(input->formatted.src_port);
ntohs            1660 drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c 	fdirvlan |= ntohs(input->formatted.vlan_id);
ntohs            8651 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 		tx_flags |= ntohs(vhdr->h_vlan_TCI) <<
ntohs            9838 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 				    ntohs(adapter->vxlan_port),
ntohs            9839 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 				    ntohs(port));
ntohs            9855 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 				    ntohs(adapter->geneve_port),
ntohs            9856 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 				    ntohs(port));
ntohs            9867 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 	reg = IXGBE_READ_REG(hw, IXGBE_VXLANCTRL) | ntohs(port) << port_shift;
ntohs            9896 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 				    ntohs(ti->port));
ntohs            9908 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 				    ntohs(ti->port));
ntohs            1283 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c 			rule->c2_tcam |= ((u64)ntohs(match.key->src)) << offs;
ntohs            1284 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c 			rule->c2_tcam_mask |= ((u64)ntohs(match.mask->src)) << offs;
ntohs            1291 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c 			rule->c2_tcam |= ((u64)ntohs(match.key->dst)) << offs;
ntohs            1292 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c 			rule->c2_tcam_mask |= ((u64)ntohs(match.mask->dst)) << offs;
ntohs            2691 drivers/net/ethernet/mellanox/mlx4/en_netdev.c 			ntohs(current_port), ntohs(port));
ntohs            2717 drivers/net/ethernet/mellanox/mlx4/en_netdev.c 		en_dbg(DRV, priv, "vxlan port %d isn't configured, ignoring\n", ntohs(port));
ntohs             547 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c 		 ntohs(enc_ports.mask->dst));
ntohs             549 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c 		 ntohs(enc_ports.key->dst));
ntohs             557 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c 		 ntohs(enc_ports.mask->src));
ntohs             559 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c 		 ntohs(enc_ports.key->src));
ntohs             126 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c 		ipv4hdr->tot_len = htons(ntohs(ipv4hdr->tot_len) - trailer_len);
ntohs             129 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c 		ipv6hdr->payload_len = htons(ntohs(ipv6hdr->payload_len) -
ntohs             220 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c 			   ntohs(tcph->source), ntohs(tcph->dest),
ntohs             232 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c 		   ntohs(mdata->content.tx.mss_inv),
ntohs             233 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c 		   ntohs(mdata->content.tx.seq));
ntohs             335 drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.c 						&ipv6h->daddr, ntohs(th->dest),
ntohs             477 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c 		 ntohs(tuple->etype));
ntohs             491 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c 			 ntohs(tuple->dst_port));
ntohs             493 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c 			 ntohs(tuple->src_port));
ntohs             500 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c 			 ntohs(tuple->dst_port));
ntohs             502 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c 			 ntohs(tuple->src_port));
ntohs             178 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c 		MLX5E_FTE_SET(headers_c, tcp_sport, ntohs(psrc_m));
ntohs             179 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c 		MLX5E_FTE_SET(headers_v, tcp_sport, ntohs(psrc_v));
ntohs             182 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c 		MLX5E_FTE_SET(headers_c, tcp_dport, ntohs(pdst_m));
ntohs             183 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c 		MLX5E_FTE_SET(headers_v, tcp_dport, ntohs(pdst_v));
ntohs             195 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c 		MLX5E_FTE_SET(headers_c, udp_sport, ntohs(psrc_m));
ntohs             196 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c 		MLX5E_FTE_SET(headers_v, udp_sport, ntohs(psrc_v));
ntohs             200 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c 		MLX5E_FTE_SET(headers_c, udp_dport, ntohs(pdst_m));
ntohs             201 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c 		MLX5E_FTE_SET(headers_v, udp_dport, ntohs(pdst_v));
ntohs             301 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c 	MLX5E_FTE_SET(headers_c, ethertype, ntohs(eth_mask->h_proto));
ntohs             302 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c 	MLX5E_FTE_SET(headers_v, ethertype, ntohs(eth_val->h_proto));
ntohs             311 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c 	MLX5E_FTE_SET(headers_v, first_vid, ntohs(vlan_tci));
ntohs             890 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c 		pkt_len = network_depth + ntohs(ip4->tot_len);
ntohs             894 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c 		pkt_len = network_depth + sizeof(*ip6) + ntohs(ip6->payload_len);
ntohs            1865 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 			 ntohs(match.mask->n_proto));
ntohs            1867 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 			 ntohs(match.key->n_proto));
ntohs            2103 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 				 tcp_sport, ntohs(match.mask->src));
ntohs            2105 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 				 tcp_sport, ntohs(match.key->src));
ntohs            2108 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 				 tcp_dport, ntohs(match.mask->dst));
ntohs            2110 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 				 tcp_dport, ntohs(match.key->dst));
ntohs            2115 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 				 udp_sport, ntohs(match.mask->src));
ntohs            2117 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 				 udp_sport, ntohs(match.key->src));
ntohs            2120 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 				 udp_dport, ntohs(match.mask->dst));
ntohs            2122 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 				 udp_dport, ntohs(match.key->dst));
ntohs            2141 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 			 ntohs(match.mask->flags));
ntohs            2143 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 			 ntohs(match.key->flags));
ntohs            2457 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 			MLX5_SET(set_action_in, action, data, ntohs(*(__be16 *)vals_p) >> first);
ntohs             159 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 		flow_act.vlan[0].ethtype = ntohs(attr->vlan_proto[0]);
ntohs             163 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 			flow_act.vlan[1].ethtype = ntohs(attr->vlan_proto[1]);
ntohs             252 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c 				       ntohs(match.key->dst),
ntohs             253 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c 				       ntohs(match.mask->dst));
ntohs             255 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c 				       ntohs(match.key->src),
ntohs             256 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c 				       ntohs(match.mask->src));
ntohs             286 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c 				       ntohs(match.key->flags),
ntohs             287 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c 				       ntohs(match.mask->flags));
ntohs             370 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c 		n_proto_key = ntohs(match.key->n_proto);
ntohs             371 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c 		n_proto_mask = ntohs(match.mask->n_proto);
ntohs              66 drivers/net/ethernet/mscc/ocelot_flower.c 		u16 proto = ntohs(f->common.protocol);
ntohs             103 drivers/net/ethernet/mscc/ocelot_flower.c 		if (ntohs(match.key->n_proto) == ETH_P_IP) {
ntohs             110 drivers/net/ethernet/mscc/ocelot_flower.c 		if (ntohs(match.key->n_proto) == ETH_P_IPV6) {
ntohs             120 drivers/net/ethernet/mscc/ocelot_flower.c 	    ntohs(f->common.protocol) == ETH_P_IP) {
ntohs             139 drivers/net/ethernet/mscc/ocelot_flower.c 	    ntohs(f->common.protocol) == ETH_P_IPV6) {
ntohs             147 drivers/net/ethernet/mscc/ocelot_flower.c 		ocelot_rule->frame.ipv4.sport.value = ntohs(match.key->src);
ntohs             148 drivers/net/ethernet/mscc/ocelot_flower.c 		ocelot_rule->frame.ipv4.sport.mask = ntohs(match.mask->src);
ntohs             149 drivers/net/ethernet/mscc/ocelot_flower.c 		ocelot_rule->frame.ipv4.dport.value = ntohs(match.key->dst);
ntohs             150 drivers/net/ethernet/mscc/ocelot_flower.c 		ocelot_rule->frame.ipv4.dport.mask = ntohs(match.mask->dst);
ntohs            1304 drivers/net/ethernet/myricom/myri10ge/myri10ge.c 		__vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), ntohs(veh->h_vlan_TCI));
ntohs            1470 drivers/net/ethernet/myricom/myri10ge/myri10ge.c 		length = ntohs(rx_done->entry[idx].length);
ntohs             898 drivers/net/ethernet/natsemi/ns83820.c 				tag = ntohs(extsts & EXTSTS_VTG_MASK);
ntohs            4045 drivers/net/ethernet/neterion/s2io.c 					queue = (ntohs(th->source) +
ntohs            4046 drivers/net/ethernet/neterion/s2io.c 						 ntohs(th->dest)) &
ntohs            4052 drivers/net/ethernet/neterion/s2io.c 					queue = (ntohs(th->source) +
ntohs            4053 drivers/net/ethernet/neterion/s2io.c 						 ntohs(th->dest)) &
ntohs            8220 drivers/net/ethernet/neterion/s2io.c 	return ntohs(ip->tot_len) - (ip->ihl << 2) - (tcp->doff << 2);
ntohs            8234 drivers/net/ethernet/neterion/s2io.c 	lro->total_len = ntohs(ip->tot_len);
ntohs             645 drivers/net/ethernet/neterion/vxge/vxge-main.c 			counter = (ntohs(th->source) +
ntohs             646 drivers/net/ethernet/neterion/vxge/vxge-main.c 				ntohs(th->dest)) &
ntohs            2816 drivers/net/ethernet/nvidia/forcedeth.c 		protolen = ntohs(((struct vlan_ethhdr *)packet)->h_vlan_encapsulated_proto);
ntohs            2819 drivers/net/ethernet/nvidia/forcedeth.c 		protolen = ntohs(((struct ethhdr *)packet)->h_proto);
ntohs            1521 drivers/net/ethernet/packetengines/hamachi.c 				if (ntohs(ih->tot_len) >= 46){
ntohs            1555 drivers/net/ethernet/packetengines/hamachi.c 						skb->csum = ntohs(pfck & 0xffff);
ntohs             773 drivers/net/ethernet/qlogic/qed/qed_iwarp.c 		mpa_ord = ntohs(mpa_v2->ord);
ntohs             774 drivers/net/ethernet/qlogic/qed/qed_iwarp.c 		mpa_ird = ntohs(mpa_v2->ird);
ntohs             962 drivers/net/ethernet/qlogic/qed/qed_iwarp.c 		mpa_ird = ntohs(mpa_v2_params->ird);
ntohs             963 drivers/net/ethernet/qlogic/qed/qed_iwarp.c 		mpa_ord = ntohs(mpa_v2_params->ord);
ntohs            1689 drivers/net/ethernet/qlogic/qed/qed_iwarp.c 	eth_type = ntohs(ethh->h_proto);
ntohs            1693 drivers/net/ethernet/qlogic/qed/qed_iwarp.c 		cm_info->vlan = ntohs(vethh->h_vlan_TCI) & VLAN_VID_MASK;
ntohs            1694 drivers/net/ethernet/qlogic/qed/qed_iwarp.c 		eth_type = ntohs(vethh->h_vlan_encapsulated_proto);
ntohs            1732 drivers/net/ethernet/qlogic/qed/qed_iwarp.c 		*payload_len = ntohs(iph->tot_len) - ip_hlen;
ntohs            1752 drivers/net/ethernet/qlogic/qed/qed_iwarp.c 		*payload_len = ntohs(ip6h->payload_len);
ntohs            1767 drivers/net/ethernet/qlogic/qed/qed_iwarp.c 	cm_info->local_port = ntohs(tcph->dest);
ntohs            1768 drivers/net/ethernet/qlogic/qed/qed_iwarp.c 	cm_info->remote_port = ntohs(tcph->source);
ntohs            1849 drivers/net/ethernet/qlogic/qed/qed_iwarp.c 	mpa_len = ntohs(*((u16 *)(mpa_data)));
ntohs             222 drivers/net/ethernet/qlogic/qede/qede_filter.c 			  ntohs(fltr->tuple.src_port),
ntohs             223 drivers/net/ethernet/qlogic/qede/qede_filter.c 			  ntohs(fltr->tuple.dst_port), fltr->rxq_id);
ntohs             985 drivers/net/ethernet/qlogic/qede/qede_filter.c 	u16 t_port = ntohs(ti->port);
ntohs            1049 drivers/net/ethernet/qlogic/qede/qede_filter.c 	u16 t_port = ntohs(ti->port);
ntohs             921 drivers/net/ethernet/qlogic/qede/qede_fp.c 			       ntohs(skb->protocol));
ntohs            1736 drivers/net/ethernet/qlogic/qede/qede_fp.c 			     (ntohs(udp_hdr(skb)->dest) != vxln_port &&
ntohs            1737 drivers/net/ethernet/qlogic/qede/qede_fp.c 			      ntohs(udp_hdr(skb)->dest) != gnv_port))
ntohs             308 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 	u16 protocol = ntohs(skb->protocol);
ntohs             322 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 			vlan_id = ntohs(vh->h_vlan_TCI);
ntohs             467 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 	u16 protocol = ntohs(skb->protocol);
ntohs             473 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 		vlan_tci = ntohs(vh->h_vlan_TCI);
ntohs             474 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 		protocol = ntohs(vh->h_vlan_encapsulated_proto);
ntohs             752 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 	protocol = ntohs(skb->protocol);
ntohs            1322 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 	if (ntohs(skb->protocol) == ETH_P_IPV6) {
ntohs            1844 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 	if (ntohs(skb->protocol) == ETH_P_IPV6) {
ntohs             490 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		ahw->vxlan_port = ntohs(ti->port);
ntohs             494 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	if (ahw->vxlan_port == ntohs(ti->port))
ntohs             509 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	    (ahw->vxlan_port != ntohs(ti->port)))
ntohs            1262 drivers/net/ethernet/qualcomm/emac/emac-mac.c 				       + ntohs(ip_hdr(skb)->tot_len);
ntohs              44 drivers/net/ethernet/qualcomm/rmnet/rmnet_map.h #define RMNET_MAP_GET_LENGTH(Y) (ntohs(((struct rmnet_map_header *) \
ntohs              52 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c 	if ((ntohs(ip4h->frag_off) & IP_MF) ||
ntohs              53 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c 	    ((ntohs(ip4h->frag_off) & IP_OFFSET) > 0)) {
ntohs              73 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c 	csum_value = ~ntohs(csum_trailer->csum_value);
ntohs              79 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c 					 ntohs(ip4h->tot_len) - ip4h->ihl * 4,
ntohs              81 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c 	addend = (__force __be16)ntohs((__force __be16)pseudo_csum);
ntohs              84 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c 	addend = (__force __be16)ntohs((__force __be16)*csum_field);
ntohs             103 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c 	if (csum_value_final == ntohs((__force __be16)*csum_field)) {
ntohs             135 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c 	csum_value = ~ntohs(csum_trailer->csum_value);
ntohs             137 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c 			~ntohs((__force __be16)ip_compute_csum(ip6h,
ntohs             143 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c 		 ntohs(((struct udphdr *)txporthdr)->len) :
ntohs             144 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c 		 ntohs(ip6h->payload_len);
ntohs             147 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c 	addend = (__force __be16)ntohs((__force __be16)pseudo_csum);
ntohs             150 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c 	addend = (__force __be16)ntohs((__force __be16)*csum_field);
ntohs             171 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c 	if (csum_value_final == ntohs((__force __be16)*csum_field)) {
ntohs             322 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c 	packet_len = ntohs(maph->pkt_len) + sizeof(struct rmnet_map_header);
ntohs             331 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c 	if (ntohs(maph->pkt_len) == 0)
ntohs             439 drivers/net/ethernet/rocker/rocker_hw.h 	 ROCKER_GROUP_VLAN_SET(ntohs(vlan_id)) | ROCKER_GROUP_PORT_SET(port))
ntohs             445 drivers/net/ethernet/rocker/rocker_hw.h 	 ROCKER_GROUP_VLAN_SET(ntohs(vlan_id)) | ROCKER_GROUP_INDEX_SET(index))
ntohs             448 drivers/net/ethernet/rocker/rocker_hw.h 	ROCKER_GROUP_VLAN_SET(ntohs(vlan_id)) | ROCKER_GROUP_INDEX_SET(index))
ntohs             242 drivers/net/ethernet/rocker/rocker_ofdpa.c 	u16 _vlan_id = ntohs(vlan_id);
ntohs             270 drivers/net/ethernet/rocker/rocker_ofdpa.c 	return ntohs(vlan_id);
ntohs             470 drivers/net/ethernet/rocker/rocker_ofdpa.c 	switch (ntohs(entry->key.acl.eth_type)) {
ntohs            1470 drivers/net/ethernet/rocker/rocker_ofdpa.c 		if (test_bit(ntohs(vlan_id), p->vlan_bitmap)) {
ntohs            1525 drivers/net/ethernet/rocker/rocker_ofdpa.c 		if (p && test_bit(ntohs(vlan_id), p->vlan_bitmap))
ntohs            1657 drivers/net/ethernet/rocker/rocker_ofdpa.c 	if (ntohs(vlan_id) == 0)
ntohs            1741 drivers/net/ethernet/rocker/rocker_ofdpa.c 	    test_bit(ntohs(internal_vlan_id), ofdpa_port->vlan_bitmap))
ntohs            1744 drivers/net/ethernet/rocker/rocker_ofdpa.c 		 !test_bit(ntohs(internal_vlan_id), ofdpa_port->vlan_bitmap))
ntohs            1747 drivers/net/ethernet/rocker/rocker_ofdpa.c 	change_bit(ntohs(internal_vlan_id), ofdpa_port->vlan_bitmap);
ntohs            1783 drivers/net/ethernet/rocker/rocker_ofdpa.c 	change_bit(ntohs(internal_vlan_id), ofdpa_port->vlan_bitmap);
ntohs            2027 drivers/net/ethernet/rocker/rocker_ofdpa.c 	if (ntohs(vlan_id) == 0)
ntohs            2332 drivers/net/ethernet/rocker/rocker_ofdpa.c 		bit = ntohs(found->vlan_id) - OFDPA_INTERNAL_VLAN_ID_BASE;
ntohs             607 drivers/net/ethernet/seeq/ether3.c 			next_ptr = ntohs(temp_ptr);
ntohs            2348 drivers/net/ethernet/sfc/ef10.c 		ipv4_id = ntohs(ip->id);
ntohs            6368 drivers/net/ethernet/sfc/ef10.c 					ntohs(nic_data->udp_tunnels[i].port),
ntohs            6479 drivers/net/ethernet/sfc/ef10.c 		  typebuf, ntohs(tnl.port));
ntohs            6501 drivers/net/ethernet/sfc/ef10.c 			  ntohs(tnl.port), typebuf);
ntohs            6516 drivers/net/ethernet/sfc/ef10.c 		  typebuf, ntohs(tnl.port));
ntohs            6561 drivers/net/ethernet/sfc/ef10.c 		  typebuf, ntohs(tnl.port));
ntohs            6576 drivers/net/ethernet/sfc/ef10.c 					  ntohs(tnl.port));
ntohs            6587 drivers/net/ethernet/sfc/ef10.c 			   ntohs(tnl.port), typebuf);
ntohs            2028 drivers/net/ethernet/sfc/falcon/farch.c 		spec->data[0] = ntohl(host1) << 16 | ntohs(port1);
ntohs            2029 drivers/net/ethernet/sfc/falcon/farch.c 		spec->data[1] = ntohs(port2) << 16 | ntohl(host1) >> 16;
ntohs            2041 drivers/net/ethernet/sfc/falcon/farch.c 		spec->data[0] = is_full ? ntohs(gen_spec->outer_vid) : 0;
ntohs             884 drivers/net/ethernet/sfc/falcon/rx.c 			   spec.rem_host, ntohs(spec.rem_port), spec.loc_host,
ntohs             885 drivers/net/ethernet/sfc/falcon/rx.c 			   ntohs(spec.loc_port), rxq_index, flow_id, rc);
ntohs             890 drivers/net/ethernet/sfc/falcon/rx.c 			   spec.rem_host, ntohs(spec.rem_port), spec.loc_host,
ntohs             891 drivers/net/ethernet/sfc/falcon/rx.c 			   ntohs(spec.loc_port), rxq_index, flow_id, rc);
ntohs             348 drivers/net/ethernet/sfc/falcon/selftest.c 			  "%s loopback test\n", ntohs(received->iteration),
ntohs             349 drivers/net/ethernet/sfc/falcon/selftest.c 			  ntohs(payload->iteration), LOOPBACK_MODE(efx));
ntohs             401 drivers/net/ethernet/sfc/falcon/selftest.c 	payload->iteration = htons(ntohs(payload->iteration) + 1);
ntohs            2087 drivers/net/ethernet/sfc/farch.c 		spec->data[0] = ntohl(host1) << 16 | ntohs(port1);
ntohs            2088 drivers/net/ethernet/sfc/farch.c 		spec->data[1] = ntohs(port2) << 16 | ntohl(host1) >> 16;
ntohs            2100 drivers/net/ethernet/sfc/farch.c 		spec->data[0] = is_full ? ntohs(gen_spec->outer_vid) : 0;
ntohs            1634 drivers/net/ethernet/sfc/ptp.c 		version = ntohs(*(__be16 *)&data[PTP_V1_VERSION_OFFSET]);
ntohs            1671 drivers/net/ethernet/sfc/ptp.c 	if (ntohs(*(__be16 *)&data[PTP_DPORT_OFFSET]) == PTP_EVENT_PORT) {
ntohs             873 drivers/net/ethernet/sfc/rx.c 				   req->spec.rem_host, ntohs(req->spec.rem_port),
ntohs             874 drivers/net/ethernet/sfc/rx.c 				   req->spec.loc_host, ntohs(req->spec.loc_port),
ntohs             880 drivers/net/ethernet/sfc/rx.c 				   req->spec.rem_host, ntohs(req->spec.rem_port),
ntohs             881 drivers/net/ethernet/sfc/rx.c 				   req->spec.loc_host, ntohs(req->spec.loc_port),
ntohs             348 drivers/net/ethernet/sfc/selftest.c 			  "%s loopback test\n", ntohs(received->iteration),
ntohs             349 drivers/net/ethernet/sfc/selftest.c 			  ntohs(payload->iteration), LOOPBACK_MODE(efx));
ntohs             401 drivers/net/ethernet/sfc/selftest.c 	payload->iteration = htons(ntohs(payload->iteration) + 1);
ntohs             324 drivers/net/ethernet/sfc/siena_sriov.c 	vlan = ntohs(vf->addr.tci) & VLAN_VID_MASK;
ntohs             362 drivers/net/ethernet/sfc/siena_sriov.c 	vlan = ntohs(vf->addr.tci) & VLAN_VID_MASK;
ntohs            1669 drivers/net/ethernet/sfc/siena_sriov.c 	tci = ntohs(vf->addr.tci);
ntohs             185 drivers/net/ethernet/sfc/tx_tso.c 		st->ipv4_id = ntohs(ip_hdr(skb)->id);
ntohs            1385 drivers/net/ethernet/sgi/ioc3-eth.c 		const int proto = ntohs(ih->protocol);
ntohs            3361 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		vlanid = ntohs(veth->h_vlan_TCI);
ntohs             108 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c 	switch (ntohs(cls->common.protocol)) {
ntohs             475 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c 	hw_match = ntohs(match.key->src) & ntohs(match.mask->src);
ntohs             483 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c 	hw_match = ntohs(match.key->dst) & ntohs(match.mask->dst);
ntohs             346 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c 	netdev_dbg(netdev, "Protocol: %#06hx\n", ntohs(eth->h_proto));
ntohs             364 drivers/net/ethernet/ti/cpts.c 	return (ts_msgtype == (*msgtype & 0xf) && ts_seqid == ntohs(*seqid));
ntohs             275 drivers/net/ethernet/xscale/ixp4xx_eth.c 	return (uid_hi == ntohs(*hi) &&
ntohs             277 drivers/net/ethernet/xscale/ixp4xx_eth.c 		seqid  == ntohs(*id));
ntohs            1621 drivers/net/fddi/skfp/skfddi.c 		ri = ntohs(*((__be16 *) cp));
ntohs             914 drivers/net/geneve.c 			if (ntohs(eth->h_proto) == ETH_P_IPV6) {
ntohs             916 drivers/net/geneve.c 			} else if (ntohs(eth->h_proto) == ETH_P_IP) {
ntohs             175 drivers/net/gtp.c 	switch (ntohs(skb->protocol)) {
ntohs             546 drivers/net/gtp.c 	    mtu < ntohs(iph->tot_len)) {
ntohs             566 drivers/net/gtp.c 	unsigned int proto = ntohs(skb->protocol);
ntohs             160 drivers/net/ipvlan/ipvlan_core.c 		pktlen = ntohs(ip4h->tot_len);
ntohs             512 drivers/net/ipvlan/ipvlan_core.c 				ntohs(skb->protocol));
ntohs             528 drivers/net/ipvlan/ipvlan_core.c 				    ntohs(skb->protocol));
ntohs             839 drivers/net/phy/dp83640.c 	if (rxts->seqid != ntohs(*seqid))
ntohs             559 drivers/net/plip/plip.c 	if (ntohs(eth->h_proto) >= ETH_P_802_3_MIN)
ntohs            1221 drivers/net/ppp/ppp_generic.c 	npi = ethertype_to_npindex(ntohs(skb->protocol));
ntohs             434 drivers/net/ppp/pppoe.c 	len = ntohs(ph->length);
ntohs             297 drivers/net/ppp/pptp.c 	payload_len = ntohs(header->payload_len);
ntohs             255 drivers/net/slip/slhc.c 	if (ip->protocol != IPPROTO_TCP || (ntohs(ip->frag_off) & 0x3fff)) {
ntohs             370 drivers/net/slip/slhc.c 		deltaS = ntohs(th->urg_ptr);
ntohs             380 drivers/net/slip/slhc.c 	if((deltaS = ntohs(th->window) - ntohs(oth->window)) != 0){
ntohs             406 drivers/net/slip/slhc.c 		   ntohs(cs->cs_ip.tot_len) == hlen)
ntohs             417 drivers/net/slip/slhc.c 		    deltaS == ntohs(cs->cs_ip.tot_len) - hlen){
ntohs             424 drivers/net/slip/slhc.c 		if(deltaS == ntohs(cs->cs_ip.tot_len) - hlen){
ntohs             431 drivers/net/slip/slhc.c 	deltaS = ntohs(ip->id) - ntohs(cs->cs_ip.id);
ntohs             553 drivers/net/slip/slhc.c 		i = ntohs(ip->tot_len) - hdrlen;
ntohs             561 drivers/net/slip/slhc.c 				  ntohs(ip->tot_len) - hdrlen);
ntohs             577 drivers/net/slip/slhc.c 			thp->window = htons( ntohs(thp->window) + x);
ntohs             597 drivers/net/slip/slhc.c 		ip->id = htons (ntohs (ip->id) + x);
ntohs             599 drivers/net/slip/slhc.c 		ip->id = htons (ntohs (ip->id) + 1);
ntohs             876 drivers/net/usb/hso.c 				frame_len = ntohs(odev->rx_ip_hdr.tot_len);
ntohs            3053 drivers/net/usb/lan78xx.c 		skb->csum = ntohs((u16)(rx_cmd_b >> RX_CMD_B_CSUM_SHIFT_));
ntohs            2167 drivers/net/usb/smsc75xx.c 		skb->csum = ntohs((u16)(rx_cmd_b >> RX_CMD_B_CSUM_SHIFT));
ntohs            1059 drivers/net/virtio_net.c 		 ntohs(skb->protocol), skb->len, skb->pkt_type);
ntohs             169 drivers/net/vxlan.c 	return &vn->sock_list[hash_32(ntohs(port), PORT_HASH_BITS)];
ntohs            1543 drivers/net/vxlan.c 	md->gbp = ntohs(gbp->policy_id);
ntohs            2059 drivers/net/vxlan.c 	switch (ntohs(eth_hdr(skb)->h_proto)) {
ntohs            2537 drivers/net/vxlan.c 				if (ntohs(eth->h_proto) == ETH_P_IPV6 ||
ntohs            2538 drivers/net/vxlan.c 				    (ntohs(eth->h_proto) == ETH_P_IP &&
ntohs            2658 drivers/net/vxlan.c 		if (ntohs(eth->h_proto) == ETH_P_ARP)
ntohs            2661 drivers/net/vxlan.c 		else if (ntohs(eth->h_proto) == ETH_P_IPV6 &&
ntohs            2679 drivers/net/vxlan.c 	    (ntohs(eth->h_proto) == ETH_P_IP ||
ntohs            2680 drivers/net/vxlan.c 	     ntohs(eth->h_proto) == ETH_P_IPV6)) {
ntohs            3161 drivers/net/vxlan.c 		if (ntohs(p->high) < ntohs(p->low)) {
ntohs            3847 drivers/net/vxlan.c 			conf->port_min = ntohs(p->low);
ntohs            3848 drivers/net/vxlan.c 			conf->port_max = ntohs(p->high);
ntohs             169 drivers/net/wan/hdlc_cisco.c 	switch (ntohs(data->protocol)) {
ntohs             245 drivers/net/wan/hdlc_cisco.c 	netdev_info(dev, "Unsupported protocol %x\n", ntohs(data->protocol));
ntohs             936 drivers/net/wan/hdlc_fr.c 		u16 oui = ntohs(*(__be16*)(data + 6));
ntohs             937 drivers/net/wan/hdlc_fr.c 		u16 pid = ntohs(*(__be16*)(data + 8));
ntohs             453 drivers/net/wan/hdlc_ppp.c 	pid = ntohs(hdr->protocol);
ntohs             462 drivers/net/wan/hdlc_ppp.c 	len = ntohs(cp->len);
ntohs             489 drivers/net/wan/hdlc_ppp.c 			pid = ntohs(*(__be16*)skb->data);
ntohs             417 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c 	brcmf_dbg(DATA, "rx proto=0x%X\n", ntohs(skb->protocol));
ntohs             540 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c 	type = ntohs(eh->h_proto);
ntohs            2127 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c 	brcmf_dbg(DATA, "tx proto=0x%X\n", ntohs(eh->h_proto));
ntohs            1473 drivers/net/wireless/cisco/airo.c 	if (ntohs(mic->typelen) == 0x888E)
ntohs            2012 drivers/net/wireless/cisco/airo.c 		(ntohs(((__be16 *)buffer)[6]) != 0x888E)) {
ntohs            3366 drivers/net/wireless/cisco/airo.c 			if (ntohs(micbuf.typelen) > 0x05DC)
ntohs            3666 drivers/net/wireless/cisco/airo.c 			if (ntohs(micbuf.typelen) <= 0x05DC) {
ntohs            4345 drivers/net/wireless/cisco/airo.c 	    (ntohs(((__be16 *)pPacket)[6]) != 0x888E)) {
ntohs             830 drivers/net/wireless/intel/iwlwifi/mvm/tx.c 	u16 ip_base_id = ipv4 ? ntohs(ip_hdr(skb)->id) : 0;
ntohs             378 drivers/net/wireless/intersil/orinoco/main.c 	if (ntohs(eh->h_proto) > ETH_DATA_LEN) { /* Ethernet-II frame */
ntohs              56 drivers/net/wireless/marvell/mwifiex/11n_rxreorder.c 			    ntohs(rx_hdr->eth803_hdr.h_proto) == ETH_P_TDLS) {
ntohs             772 drivers/net/wireless/marvell/mwifiex/main.c 	if (ntohs(eth_hdr->h_proto) == ETH_P_PAE ||
ntohs             776 drivers/net/wireless/marvell/mwifiex/main.c 	     (ntohs(eth_hdr->h_proto) == ETH_P_TDLS))) {
ntohs             779 drivers/net/wireless/marvell/mwifiex/main.c 			     ntohs(eth_hdr->h_proto),
ntohs              44 drivers/net/wireless/marvell/mwifiex/sta_rx.c 	switch (ntohs(eth->h_proto)) {
ntohs             105 drivers/net/wireless/marvell/mwifiex/sta_rx.c 	     ntohs(rx_pkt_hdr->rfc1042_hdr.snap_type) != ETH_P_AARP &&
ntohs             106 drivers/net/wireless/marvell/mwifiex/sta_rx.c 	     ntohs(rx_pkt_hdr->rfc1042_hdr.snap_type) != ETH_P_IPX)) {
ntohs             150 drivers/net/wireless/marvell/mwifiex/sta_rx.c 	    ntohs(rx_pkt_hdr->eth803_hdr.h_proto) == ETH_P_TDLS) {
ntohs             122 drivers/net/wireless/marvell/mwifiex/uap_txrx.c 	     ntohs(rx_pkt_hdr->rfc1042_hdr.snap_type) != ETH_P_AARP &&
ntohs             123 drivers/net/wireless/marvell/mwifiex/uap_txrx.c 	     ntohs(rx_pkt_hdr->rfc1042_hdr.snap_type) != ETH_P_IPX)) {
ntohs             825 drivers/net/wireless/marvell/mwifiex/wmm.c 		if (ntohs(eth_hdr->h_proto) == ETH_P_TDLS)
ntohs             941 drivers/net/wireless/ray_cs.c 	if (ntohs(proto) >= ETH_P_802_3_MIN) { /* DIX II ethernet frame */
ntohs            2288 drivers/net/wireless/ray_cs.c 		       ntohs(type), psnap->dsap, psnap->ssap, psnap->ctrl,
ntohs            2311 drivers/net/wireless/ray_cs.c 			switch (ntohs(type)) {
ntohs             313 drivers/net/wireless/zydas/zd1201.c 		len = ntohs(*(__be16 *)&data[datalen-2]);
ntohs             628 drivers/platform/mellanox/mlxbf-tmfifo.c 			if (ntohs(hdr.len) > config->mtu +
ntohs             649 drivers/platform/mellanox/mlxbf-tmfifo.c 		vring->pkt_len = ntohs(hdr.len) + hdr_len;
ntohs             383 drivers/rapidio/rio_cm.c 	chnum = ntohs(hh->dst_ch);
ntohs             403 drivers/rapidio/rio_cm.c 	req->chan = ntohs(hh->src_ch);
ntohs             429 drivers/rapidio/rio_cm.c 	chnum = ntohs(hh->dst_ch);
ntohs             440 drivers/rapidio/rio_cm.c 	ch->rem_channel = ntohs(hh->src_ch);
ntohs             461 drivers/rapidio/rio_cm.c 	riocm_debug(RX_CMD, "for ch=%d", ntohs(hh->dst_ch));
ntohs             464 drivers/rapidio/rio_cm.c 	ch = idr_find(&ch_idr, ntohs(hh->dst_ch));
ntohs             496 drivers/rapidio/rio_cm.c 		    hdr->ch_op, ntohs(hdr->dst_ch), ntohs(hdr->src_ch));
ntohs             533 drivers/rapidio/rio_cm.c 	riocm_debug(RX_DATA, "for ch=%d", ntohs(hdr->dst_ch));
ntohs             535 drivers/rapidio/rio_cm.c 	ch = riocm_get_channel(ntohs(hdr->dst_ch));
ntohs            3567 drivers/s390/net/qeth_core_main.c 			return ~ntohs(veth->h_vlan_TCI) >>
ntohs             195 drivers/s390/net/qeth_l2_main.c 		hdr->hdr.l2.vlan_id = ntohs(veth->h_vlan_TCI);
ntohs            1972 drivers/s390/net/qeth_l3_main.c 		hdr->hdr.l3.vlan_id = ntohs(veth->h_vlan_TCI);
ntohs             169 drivers/scsi/be2iscsi/be_mgmt.c 		req->tcp_port = ntohs(daddr_in->sin_port);
ntohs             171 drivers/scsi/be2iscsi/be_mgmt.c 		beiscsi_ep->dst_tcpport = ntohs(daddr_in->sin_port);
ntohs             178 drivers/scsi/be2iscsi/be_mgmt.c 		req->tcp_port = ntohs(daddr_in6->sin6_port);
ntohs             179 drivers/scsi/be2iscsi/be_mgmt.c 		beiscsi_ep->dst_tcpport = ntohs(daddr_in6->sin6_port);
ntohs             198 drivers/scsi/bnx2fc/bnx2fc_els.c 	cb_arg->l2_oxid = ntohs(fh->fh_ox_id);
ntohs             226 drivers/scsi/bnx2fc/bnx2fc_els.c 	cb_arg->l2_oxid = ntohs(fh->fh_ox_id);
ntohs             254 drivers/scsi/bnx2fc/bnx2fc_els.c 	cb_arg->l2_oxid = ntohs(fh->fh_ox_id);
ntohs             224 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 			ntohs(fh->fh_ox_id), fh->fh_r_ctl);
ntohs            1113 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	op = ntohs(fiph->fip_op);
ntohs              92 drivers/scsi/csiostor/csio_attr.c 	rport->maxframe_size = ntohs(sp->csp.sp_bb_data);
ntohs              93 drivers/scsi/csiostor/csio_attr.c 	if (ntohs(sp->clsp[2].cp_class) & FC_CPC_VALID)
ntohs             195 drivers/scsi/csiostor/csio_attr.c 	fc_host_maxframe_size(shost) = ntohs(ln->ln_sparm.csp.sp_bb_data);
ntohs             694 drivers/scsi/csiostor/csio_hw.c 	if (ntohs(hdr->len512) * 512 != size) {
ntohs            1148 drivers/scsi/csiostor/csio_hw.c 	caps = ntohs(rsp->fcoecaps);
ntohs            1904 drivers/scsi/csiostor/csio_hw.c 	res_info->e_d_tov = ntohs(rsp->e_d_tov);
ntohs            1905 drivers/scsi/csiostor/csio_hw.c 	res_info->r_a_tov_seq = ntohs(rsp->r_a_tov_seq);
ntohs            1906 drivers/scsi/csiostor/csio_hw.c 	res_info->r_a_tov_els = ntohs(rsp->r_a_tov_els);
ntohs            1907 drivers/scsi/csiostor/csio_hw.c 	res_info->r_r_tov = ntohs(rsp->r_r_tov);
ntohs             279 drivers/scsi/csiostor/csio_lnode.c 	if (ntohs(csio_ct_rsp(cmd)) != FC_FS_ACC) {
ntohs             313 drivers/scsi/csiostor/csio_lnode.c 	if (ntohs(csio_ct_rsp(cmd)) != FC_FS_ACC) {
ntohs             429 drivers/scsi/csiostor/csio_lnode.c 	if (ntohs(csio_ct_rsp(cmd)) != FC_FS_ACC) {
ntohs             530 drivers/scsi/csiostor/csio_lnode.c 	if (ntohs(csio_ct_rsp(cmd)) != FC_FS_ACC) {
ntohs             802 drivers/scsi/csiostor/csio_lnode.c 					ntohs(rsp->priority_pkd));
ntohs             803 drivers/scsi/csiostor/csio_lnode.c 	fcf_info->vf_id = ntohs(rsp->vf_id);
ntohs             805 drivers/scsi/csiostor/csio_lnode.c 	fcf_info->max_fcoe_size = ntohs(rsp->max_fcoe_size);
ntohs             395 drivers/scsi/csiostor/csio_mb.c 			*pcaps = fwcaps16_to_caps32(ntohs(rsp->u.info.pcap));
ntohs             396 drivers/scsi/csiostor/csio_mb.c 			*acaps = fwcaps16_to_caps32(ntohs(rsp->u.info.acap));
ntohs             598 drivers/scsi/csiostor/csio_mb.c 		iq_params->physiqid = ntohs(rsp->physiqid);
ntohs             599 drivers/scsi/csiostor/csio_mb.c 		iq_params->iqid = ntohs(rsp->iqid);
ntohs             600 drivers/scsi/csiostor/csio_mb.c 		iq_params->fl0id = ntohs(rsp->fl0id);
ntohs             601 drivers/scsi/csiostor/csio_mb.c 		iq_params->fl1id = ntohs(rsp->fl1id);
ntohs            1138 drivers/scsi/csiostor/csio_mb.c 			    ntohs(dbg->u.prt.dprtstridx));
ntohs             870 drivers/scsi/csiostor/csio_wr.c 	uint16_t cidx = q->cidx = ntohs(stp->cidx);
ntohs             181 drivers/scsi/cxgbi/cxgb3i/cxgb3i.c 		&req->local_ip, ntohs(req->local_port),
ntohs             182 drivers/scsi/cxgbi/cxgb3i/cxgb3i.c 		&req->peer_ip, ntohs(req->peer_port),
ntohs             494 drivers/scsi/cxgbi/cxgb3i/cxgb3i.c 	csk->rss_qid = G_QNUM(ntohs(skb->csum));
ntohs             510 drivers/scsi/cxgbi/cxgb3i/cxgb3i.c 	cxgbi_sock_established(csk, ntohl(req->snd_isn), ntohs(req->tcp_opt));
ntohs             578 drivers/scsi/cxgbi/cxgb3i/cxgb3i.c 		&csk->saddr.sin_addr.s_addr, ntohs(csk->saddr.sin_port),
ntohs             579 drivers/scsi/cxgbi/cxgb3i/cxgb3i.c 		&csk->daddr.sin_addr.s_addr, ntohs(csk->daddr.sin_port));
ntohs             776 drivers/scsi/cxgbi/cxgb3i/cxgb3i.c 	len = hdr_len = ntohs(hdr_cpl->len);
ntohs             796 drivers/scsi/cxgbi/cxgb3i/cxgb3i.c 	cxgbi_skcb_rx_pdulen(skb) = ntohs(ddp_cpl.len);
ntohs             819 drivers/scsi/cxgbi/cxgb3i/cxgb3i.c 		data_len = ntohs(data_cpl.len);
ntohs             855 drivers/scsi/cxgbi/cxgb3i/cxgb3i.c 		csk, csk->state, csk->flags, csk->tid, ntohs(hdr->credits));
ntohs             857 drivers/scsi/cxgbi/cxgb3i/cxgb3i.c 	cxgbi_sock_rcv_wr_ack(csk, ntohs(hdr->credits), ntohl(hdr->snd_una), 1);
ntohs            1007 drivers/scsi/cxgbi/cxgb3i/cxgb3i.c 		&csk->saddr.sin_addr.s_addr, ntohs(csk->saddr.sin_port),
ntohs            1008 drivers/scsi/cxgbi/cxgb3i/cxgb3i.c 		&csk->daddr.sin_addr.s_addr, ntohs(csk->daddr.sin_port));
ntohs             246 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c 			csk, &req->local_ip, ntohs(req->local_port),
ntohs             247 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c 			&req->peer_ip, ntohs(req->peer_port),
ntohs             274 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c 			csk, &req->local_ip, ntohs(req->local_port),
ntohs             275 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c 			&req->peer_ip, ntohs(req->peer_port),
ntohs             306 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c 			  csk, &req->local_ip, ntohs(req->local_port),
ntohs             307 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c 			  &req->peer_ip, ntohs(req->peer_port),
ntohs             428 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c 		&csk->saddr6.sin6_addr, ntohs(csk->saddr.sin_port),
ntohs             429 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c 		&csk->daddr6.sin6_addr, ntohs(csk->daddr.sin_port),
ntohs             813 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c 	unsigned short tcp_opt = ntohs(req->tcp_opt);
ntohs             873 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c 	cxgbi_sock_established(csk, ntohl(req->snd_isn), ntohs(req->tcp_opt));
ntohs            1201 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c 	__pskb_trim(skb, ntohs(cpl->len));
ntohs            1222 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c 		hlen = ntohs(cpl->len);
ntohs            1308 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c 	__pskb_trim(skb, ntohs(cpl->len));
ntohs            1407 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c 	if (ntohs(rpl->len) != cxgbi_skcb_rx_pdulen(lskb))
ntohs            1409 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c 			csk->tid, ntohs(rpl->len), cxgbi_skcb_rx_pdulen(lskb));
ntohs            1453 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c 		  ntohs(rpl->len), pdu_len_ddp,  rpl->status);
ntohs             458 drivers/scsi/cxgbi/libcxgbi.c 			ntohs(*port));
ntohs             510 drivers/scsi/cxgbi/libcxgbi.c 		int idx = ntohs(*port) - pmap->sport_base;
ntohs             517 drivers/scsi/cxgbi/libcxgbi.c 				ntohs(*port));
ntohs             635 drivers/scsi/cxgbi/libcxgbi.c 			&daddr->sin_addr.s_addr, ntohs(daddr->sin_port),
ntohs             669 drivers/scsi/cxgbi/libcxgbi.c 		&daddr->sin_addr.s_addr, ntohs(daddr->sin_port),
ntohs             764 drivers/scsi/cxgbi/libcxgbi.c 			ntohs(daddr6->sin6_port), ndev->name);
ntohs             780 drivers/scsi/cxgbi/libcxgbi.c 		  daddr6->sin6_addr.s6_addr, ntohs(daddr6->sin6_port), port,
ntohs            2293 drivers/scsi/cxgbi/libcxgbi.c 	len = sprintf(buf, "%hu\n", ntohs(csk->daddr.sin_port));
ntohs             575 drivers/scsi/fcoe/fcoe.c 	if (ntohs(frame->eth.h_proto) == ETH_P_FIP &&
ntohs             576 drivers/scsi/fcoe/fcoe.c 	    ntohs(frame->fip.fip_op) == FIP_OP_VLAN &&
ntohs             906 drivers/scsi/fcoe/fcoe.c 		 (ntohs(fh->fh_rx_id) == FC_XID_UNKNOWN)) {
ntohs            1406 drivers/scsi/fcoe/fcoe.c 		cpu = ntohs(fh->fh_ox_id) & fc_cpu_mask;
ntohs            1408 drivers/scsi/fcoe/fcoe.c 		if (ntohs(fh->fh_rx_id) == FC_XID_UNKNOWN)
ntohs            1411 drivers/scsi/fcoe/fcoe.c 			cpu = ntohs(fh->fh_rx_id) & fc_cpu_mask;
ntohs             710 drivers/scsi/fcoe/fcoe_ctlr.c 		fip->flogi_oxid = ntohs(fh->fh_ox_id);
ntohs             906 drivers/scsi/fcoe/fcoe_ctlr.c 	fcf->flags = ntohs(fiph->fip_flags);
ntohs             914 drivers/scsi/fcoe/fcoe_ctlr.c 	rlen = ntohs(fiph->fip_dl_len) * 4;
ntohs             964 drivers/scsi/fcoe/fcoe_ctlr.c 			fcf->vfid = ntohs(fab->fd_vfid);
ntohs            1159 drivers/scsi/fcoe/fcoe_ctlr.c 	rlen = ntohs(fiph->fip_dl_len) * 4;
ntohs            1258 drivers/scsi/fcoe/fcoe_ctlr.c 			if (fip->flogi_oxid == ntohs(fh->fh_ox_id)) {
ntohs            1374 drivers/scsi/fcoe/fcoe_ctlr.c 	rlen = ntohs(fh->fip_dl_len) * FIP_BPW;
ntohs            1558 drivers/scsi/fcoe/fcoe_ctlr.c 	op = ntohs(fiph->fip_op);
ntohs            1563 drivers/scsi/fcoe/fcoe_ctlr.c 	if (ntohs(fiph->fip_dl_len) * FIP_BPW + sizeof(*fiph) > skb->len)
ntohs            1916 drivers/scsi/fcoe/fcoe_ctlr.c 	    fip->flogi_oxid == ntohs(fh->fh_ox_id)) {
ntohs            2287 drivers/scsi/fcoe/fcoe_ctlr.c 	frport->flags = ntohs(fiph->fip_flags);
ntohs            2308 drivers/scsi/fcoe/fcoe_ctlr.c 	rlen = ntohs(fiph->fip_dl_len) * 4;
ntohs            2368 drivers/scsi/fcoe/fcoe_ctlr.c 			frport->fcoe_len = ntohs(size->fd_size);
ntohs            2816 drivers/scsi/fcoe/fcoe_ctlr.c 	frport->flags = ntohs(fiph->fip_flags);
ntohs            2828 drivers/scsi/fcoe/fcoe_ctlr.c 	rlen = ntohs(fiph->fip_dl_len) * 4;
ntohs             328 drivers/scsi/fnic/fnic_fcs.c 	op = ntohs(fiph->fip_op);
ntohs             337 drivers/scsi/fnic/fnic_fcs.c 	rlen = ntohs(fiph->fip_dl_len) * 4;
ntohs             448 drivers/scsi/fnic/fnic_fcs.c 		  ntohs(fiph->fip_op), fiph->fip_subcode);
ntohs             450 drivers/scsi/fnic/fnic_fcs.c 	rlen = ntohs(fiph->fip_dl_len) * 4;
ntohs             458 drivers/scsi/fnic/fnic_fcs.c 			vid = ntohs(((struct fip_vlan_desc *)desc)->fd_vlan);
ntohs             581 drivers/scsi/fnic/fnic_fcs.c 	op = ntohs(fiph->fip_op);
ntohs             587 drivers/scsi/fnic/fnic_fcs.c 	if (ntohs(fiph->fip_dl_len) * FIP_BPW + sizeof(*fiph) > skb->len)
ntohs             591 drivers/scsi/fnic/fnic_fcs.c 		if (fnic_fcoe_vlan_check(fnic, ntohs(fiph->fip_flags)))
ntohs              97 drivers/scsi/libfc/fc_disc.c 	len = ntohs(rp->rscn_plen);
ntohs             519 drivers/scsi/libfc/fc_disc.c 	seq_cnt = ntohs(fh->fh_seq_cnt);
ntohs             526 drivers/scsi/libfc/fc_disc.c 		} else if (ntohs(cp->ct_cmd) == FC_FS_ACC) {
ntohs             531 drivers/scsi/libfc/fc_disc.c 		} else if (ntohs(cp->ct_cmd) == FC_FS_RJT) {
ntohs             541 drivers/scsi/libfc/fc_disc.c 				    "%x\n", ntohs(cp->ct_cmd));
ntohs             590 drivers/scsi/libfc/fc_disc.c 	if (ntohs(cp->ct_cmd) == FC_FS_ACC) {
ntohs             617 drivers/scsi/libfc/fc_disc.c 	} else if (ntohs(cp->ct_cmd) == FC_FS_RJT) {
ntohs             623 drivers/scsi/libfc/fc_disc.c 			    ntohs(cp->ct_cmd));
ntohs             119 drivers/scsi/libfc/fc_elsct.c 				switch (ntohs(ct->ct_cmd)) {
ntohs            1014 drivers/scsi/libfc/fc_exch.c 		ep->oxid = ntohs(fh->fh_ox_id);
ntohs            1053 drivers/scsi/libfc/fc_exch.c 		xid = ntohs(fh->fh_ox_id);	/* we originated exch */
ntohs            1061 drivers/scsi/libfc/fc_exch.c 			ep->rxid = ntohs(fh->fh_rx_id);
ntohs            1062 drivers/scsi/libfc/fc_exch.c 		else if (ep->rxid != ntohs(fh->fh_rx_id)) {
ntohs            1067 drivers/scsi/libfc/fc_exch.c 		xid = ntohs(fh->fh_rx_id);	/* we are the responder */
ntohs            1176 drivers/scsi/libfc/fc_exch.c 	xid = ntohs((f_ctl & FC_FC_EX_CTX) ? fh->fh_ox_id : fh->fh_rx_id);
ntohs            1187 drivers/scsi/libfc/fc_exch.c 			ep->rxid = ntohs(fh->fh_rx_id);
ntohs            1577 drivers/scsi/libfc/fc_exch.c 	ep = fc_exch_find(mp, ntohs(fh->fh_ox_id));
ntohs            1587 drivers/scsi/libfc/fc_exch.c 		ep->rxid = ntohs(fh->fh_rx_id);
ntohs            1708 drivers/scsi/libfc/fc_exch.c 		low = ntohs(ap->ba_low_seq_cnt);
ntohs            1709 drivers/scsi/libfc/fc_exch.c 		high = ntohs(ap->ba_high_seq_cnt);
ntohs            1765 drivers/scsi/libfc/fc_exch.c 			  ntohs(fh->fh_ox_id) : ntohs(fh->fh_rx_id));
ntohs            2018 drivers/scsi/libfc/fc_exch.c 	rxid = ntohs(rp->rec_rx_id);
ntohs            2019 drivers/scsi/libfc/fc_exch.c 	oxid = ntohs(rp->rec_ox_id);
ntohs            2297 drivers/scsi/libfc/fc_exch.c 			ntohs(rp->rrq_ox_id) : ntohs(rp->rrq_rx_id);
ntohs            2304 drivers/scsi/libfc/fc_exch.c 		    sid, xid, ntohs(rp->rrq_rx_id), ntohs(rp->rrq_ox_id));
ntohs            2305 drivers/scsi/libfc/fc_exch.c 	if (ep->oxid != ntohs(rp->rrq_ox_id))
ntohs            2307 drivers/scsi/libfc/fc_exch.c 	if (ep->rxid != ntohs(rp->rrq_rx_id) &&
ntohs            2566 drivers/scsi/libfc/fc_exch.c 		xid = ntohs(fh->fh_ox_id);
ntohs            2568 drivers/scsi/libfc/fc_exch.c 		xid = ntohs(fh->fh_rx_id);
ntohs            2607 drivers/scsi/libfc/fc_exch.c 				     ntohs(fh->fh_ox_id) :
ntohs            2608 drivers/scsi/libfc/fc_exch.c 				     ntohs(fh->fh_rx_id));
ntohs             197 drivers/scsi/libfc/fc_libfc.c 	fh->fh_seq_cnt = ntohs(seq_cnt);
ntohs            1139 drivers/scsi/libfc/fc_lport.c 	    ntohs(ct->ct_cmd) == FC_FS_ACC)
ntohs            1222 drivers/scsi/libfc/fc_lport.c 			if (ntohs(ct->ct_cmd) == FC_FS_ACC)
ntohs            1727 drivers/scsi/libfc/fc_lport.c 	mfs = ntohs(flp->fl_csp.sp_bb_data) &
ntohs            1742 drivers/scsi/libfc/fc_lport.c 	csp_flags = ntohs(flp->fl_csp.sp_features);
ntohs            1898 drivers/scsi/libfc/fc_lport.c 	if (fr_sof(fp) == FC_SOF_I3 && !ntohs(fh->fh_seq_cnt)) {
ntohs            1901 drivers/scsi/libfc/fc_lport.c 			ntohs(((struct fc_ct_hdr *)buf)->ct_cmd) :
ntohs             226 drivers/scsi/libfc/fc_rport.c 	mfs = ntohs(flp->fl_csp.sp_bb_data) & FC_SP_BB_DATA_MASK;
ntohs             229 drivers/scsi/libfc/fc_rport.c 	mfs = ntohs(flp->fl_cssp[3 - 1].cp_rdfs);
ntohs             705 drivers/scsi/libfc/fc_rport.c 	csp_flags = ntohs(flogi->fl_csp.sp_features);
ntohs            1014 drivers/scsi/libfc/fc_rport.c 		rdata->sp_features = ntohs(plp->fl_csp.sp_features);
ntohs            1018 drivers/scsi/libfc/fc_rport.c 		csp_seq = ntohs(plp->fl_csp.sp_tot_seq);
ntohs            1019 drivers/scsi/libfc/fc_rport.c 		cssp_seq = ntohs(plp->fl_cssp[3 - 1].cp_con_seq);
ntohs            1983 drivers/scsi/libfc/fc_rport.c 	plen = ntohs(pp->prli.prli_len);
ntohs            2097 drivers/scsi/libfc/fc_rport.c 	plen = ntohs(pp->prlo.prlo_len);
ntohs             505 drivers/scsi/qedf/qedf_els.c 	cb_arg->l2_oxid = ntohs(fh->fh_ox_id);
ntohs              90 drivers/scsi/qedf/qedf_fip.c 	rlen = ntohs(fiph->fip_dl_len) * 4;
ntohs              96 drivers/scsi/qedf/qedf_fip.c 			vid = ntohs(((struct fip_vlan_desc *)desc)->fd_vlan);
ntohs             138 drivers/scsi/qedf/qedf_fip.c 	op = ntohs(fiph->fip_op);
ntohs             188 drivers/scsi/qedf/qedf_fip.c 	op = ntohs(fiph->fip_op);
ntohs             231 drivers/scsi/qedf/qedf_fip.c 		rlen = ntohs(fiph->fip_dl_len) * FIP_BPW;
ntohs             851 drivers/scsi/qedi/qedi_iscsi.c 		qedi_ep->dst_port = ntohs(addr->sin_port);
ntohs             860 drivers/scsi/qedi/qedi_iscsi.c 		qedi_ep->dst_port = ntohs(addr6->sin6_port);
ntohs            2049 drivers/scsi/qla4xxx/ql4_mbx.c 		fw_ddb_entry->port = cpu_to_le16(ntohs(addr->sin_port));
ntohs            2058 drivers/scsi/qla4xxx/ql4_mbx.c 		fw_ddb_entry->port = cpu_to_le16(ntohs(addr6->sin6_port));
ntohs             117 drivers/staging/gdm724x/gdm_lte.c 	if (ntohs(((struct ethhdr *)skb_in->data)->h_proto) == ETH_P_8021Q) {
ntohs             238 drivers/staging/gdm724x/gdm_lte.c 	if (ntohs(((struct ethhdr *)skb_in->data)->h_proto) == ETH_P_8021Q) {
ntohs             240 drivers/staging/gdm724x/gdm_lte.c 		if (ntohs(vlan_eth.h_vlan_encapsulated_proto) != ETH_P_IPV6)
ntohs             246 drivers/staging/gdm724x/gdm_lte.c 		if (ntohs(eth.h_proto) != ETH_P_IPV6)
ntohs             351 drivers/staging/gdm724x/gdm_lte.c 	if (ntohs(eth->h_proto) == ETH_P_8021Q) {
ntohs             353 drivers/staging/gdm724x/gdm_lte.c 		mac_proto = ntohs(vlan_eth->h_vlan_encapsulated_proto);
ntohs             357 drivers/staging/gdm724x/gdm_lte.c 		mac_proto = ntohs(eth->h_proto);
ntohs             374 drivers/staging/gdm724x/gdm_lte.c 			if (ntohs(udp->dest) == 67 || ntohs(udp->dest) == 68)
ntohs             390 drivers/staging/gdm724x/gdm_lte.c 			if (ntohs(udp->dest) == 546 || ntohs(udp->dest) == 547)
ntohs             440 drivers/staging/gdm724x/gdm_lte.c 		nic->vlan_id = ntohs(vlan_eth->h_vlan_TCI) & VLAN_VID_MASK;
ntohs             350 drivers/staging/ks7010/ks_hostif.c 	eth_proto = ntohs(eth_hdr->h_proto);
ntohs            1157 drivers/staging/ks7010/ks_hostif.c 	eth_proto = ntohs(eth_hdr->h_proto);
ntohs            1165 drivers/staging/ks7010/ks_hostif.c 			keyinfo = ntohs(eap_key->key_info);
ntohs            2616 drivers/staging/qlge/qlge_main.c 	len = (ntohs(iph->tot_len) - (iph->ihl << 2));
ntohs             451 drivers/staging/rtl8188eu/core/rtw_recv.c 		ether_type = ntohs(be_tmp);
ntohs            1298 drivers/staging/rtl8188eu/core/rtw_recv.c 	eth_type = ntohs(be_tmp); /* pattrib->ether_type */
ntohs             407 drivers/staging/rtl8188eu/core/rtw_xmit.c 	pattrib->ether_type = ntohs(etherhdr.h_proto);
ntohs             599 drivers/staging/rtl8192e/rtllib_tx.c 		ether_type = ntohs(((struct ethhdr *)skb->data)->h_proto);
ntohs             574 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 		ether_type = ntohs(((struct ethhdr *)skb->data)->h_proto);
ntohs             195 drivers/staging/rtl8712/rtl871x_xmit.c 	pattrib->ether_type = ntohs(etherhdr.h_proto);
ntohs             585 drivers/staging/rtl8723bs/core/rtw_recv.c 			ether_type = ntohs(be_tmp);
ntohs            1586 drivers/staging/rtl8723bs/core/rtw_recv.c 			eth_type = ntohs((unsigned short) eth_type);
ntohs            1648 drivers/staging/rtl8723bs/core/rtw_recv.c 	eth_type = ntohs(be_tmp); /* pattrib->ether_type */
ntohs             694 drivers/staging/rtl8723bs/core/rtw_xmit.c 	pattrib->ether_type = ntohs(etherhdr.h_proto);
ntohs             158 drivers/staging/wilc1000/wilc_wlan.c 	total_length = ntohs(ip_hdr_ptr->tot_len);
ntohs             133 drivers/staging/wlan-ng/p80211conv.c 		proto = ntohs(e_hdr.type);
ntohs             189 drivers/target/iscsi/cxgbit/cxgbit_cm.c 		       ntohs(sin6->sin6_port));
ntohs             224 drivers/target/iscsi/cxgbit/cxgbit_cm.c 		       ret, stid, &sin->sin_addr, ntohs(sin->sin_port));
ntohs            1224 drivers/target/iscsi/cxgbit/cxgbit_cm.c 	u16 peer_mss = ntohs(req->tcpopt.mss);
ntohs            1264 drivers/target/iscsi/cxgbit/cxgbit_cm.c 			 local_ip, peer_ip, ntohs(local_port),
ntohs            1265 drivers/target/iscsi/cxgbit/cxgbit_cm.c 			 ntohs(peer_port), peer_mss);
ntohs            1275 drivers/target/iscsi/cxgbit/cxgbit_cm.c 			 local_ip, peer_ip, ntohs(local_port),
ntohs            1276 drivers/target/iscsi/cxgbit/cxgbit_cm.c 			 ntohs(peer_port), peer_mss);
ntohs            1296 drivers/target/iscsi/cxgbit/cxgbit_cm.c 	ret = cxgbit_offload_init(csk, iptype, peer_ip, ntohs(local_port),
ntohs             201 drivers/target/iscsi/cxgbit/cxgbit_main.c 	pdu_cb->pdulen = ntohs(cpl->len);
ntohs             248 drivers/target/iscsi/cxgbit/cxgbit_main.c 		len = ntohs(cpl->len);
ntohs             262 drivers/target/iscsi/cxgbit/cxgbit_main.c 		len = ntohs(cpl->len);
ntohs             279 drivers/target/iscsi/cxgbit/cxgbit_main.c 		pdu_cb->pdulen = ntohs(cpl->len);
ntohs             548 drivers/target/iscsi/cxgbit/cxgbit_main.c 			local_port = ntohs(sock_in6->sin6_port);
ntohs             553 drivers/target/iscsi/cxgbit/cxgbit_main.c 			local_port = ntohs(sock_in->sin_port);
ntohs             283 drivers/target/iscsi/iscsi_target.c 		port = ntohs(sock_in6->sin6_port);
ntohs             284 drivers/target/iscsi/iscsi_target.c 		port_e = ntohs(sock_in6_e->sin6_port);
ntohs             292 drivers/target/iscsi/iscsi_target.c 		port = ntohs(sock_in->sin_port);
ntohs             293 drivers/target/iscsi/iscsi_target.c 		port_e = ntohs(sock_in_e->sin_port);
ntohs             284 drivers/target/tcm_fc/tfc_cmd.c 		  ntoh24(fh->fh_s_id), ntohs(fh->fh_ox_id), status, code);
ntohs             286 fs/afs/addr_list.c 		u16 a_port = ntohs(a->sin_port);
ntohs             325 fs/afs/addr_list.c 		u16 a_port = ntohs(a->sin6_port);
ntohs             614 fs/afs/cmservice.c 	reply.ia.uuid[1] = htonl(ntohs(call->net->uuid.time_mid));
ntohs             615 fs/afs/cmservice.c 	reply.ia.uuid[2] = htonl(ntohs(call->net->uuid.time_hi_and_version));
ntohs             137 fs/afs/dir.c   			       ntohs(dbuf->blocks[tmp].hdr.magic));
ntohs             262 fs/afs/dir_edit.c 		       ntohs(block->hdr.npages),
ntohs             263 fs/afs/dir_edit.c 		       ntohs(block->hdr.magic));
ntohs             298 fs/afs/vlclient.c 	r->uuid.time_mid			= htonl(ntohs(u->time_mid));
ntohs             299 fs/afs/vlclient.c 	r->uuid.time_hi_and_version		= htonl(ntohs(u->time_hi_and_version));
ntohs            2299 fs/nfs/flexfilelayout/flexfilelayout.c 		port = ntohs(((struct sockaddr_in *)sap)->sin_port);
ntohs            2306 fs/nfs/flexfilelayout/flexfilelayout.c 		port = ntohs(((struct sockaddr_in6 *)sap)->sin6_port);
ntohs             907 fs/nfs/pnfs_nfs.c 			 buf, endsep, ntohs(port));
ntohs            2074 fs/nfs/super.c 		args->nfs_server.port = ntohs(data->addr.sin_port);
ntohs            2863 fs/nfs/super.c 		args->nfs_server.port = ntohs(((struct sockaddr_in *)sap)->sin_port);
ntohs             106 fs/nfsd/flexfilelayout.c 		port = ntohs(sin->sin_port);
ntohs             113 fs/nfsd/flexfilelayout.c 		port = ntohs(sin6->sin6_port);
ntohs             334 fs/ocfs2/cluster/netdebug.c 		   &saddr, inet ? ntohs(sport) : 0,
ntohs             335 fs/ocfs2/cluster/netdebug.c 		   &daddr, inet ? ntohs(dport) : 0,
ntohs             237 fs/ocfs2/cluster/nodemanager.c 	return sprintf(page, "%u\n", ntohs(to_o2nm_node(item)->nd_ipv4_port));
ntohs              66 fs/ocfs2/cluster/tcp.c 			  ntohs(sc->sc_node->nd_ipv4_port)
ntohs            1859 fs/ocfs2/cluster/tcp.c 		       ntohs(sin.sin_port));
ntohs            1872 fs/ocfs2/cluster/tcp.c 					ntohs(local_node->nd_ipv4_port),
ntohs            1875 fs/ocfs2/cluster/tcp.c 					ntohs(sin.sin_port));
ntohs            1886 fs/ocfs2/cluster/tcp.c 		     ntohs(sin.sin_port));
ntohs            1903 fs/ocfs2/cluster/tcp.c 		       ntohs(sin.sin_port));
ntohs            2039 fs/ocfs2/cluster/tcp.c 		       "%pI4:%u\n", ret, &addr, ntohs(port)); 
ntohs            2046 fs/ocfs2/cluster/tcp.c 		       ret, &addr, ntohs(port));
ntohs            1166 fs/ocfs2/dlm/dlmdomain.c 		     ntohs(qn->qn_nodes[j].ni_ipv4_port));
ntohs            1197 fs/ocfs2/dlm/dlmdomain.c 				     ntohs(remote->ni_ipv4_port),
ntohs            1204 fs/ocfs2/dlm/dlmdomain.c 				     ntohs(local->nd_ipv4_port),
ntohs            1240 fs/ocfs2/dlm/dlmdomain.c 		     &(node->nd_ipv4_address), ntohs(node->nd_ipv4_port));
ntohs              18 include/keys/trusted.h #define LOAD16(buffer, offset)	(ntohs(*(uint16_t *)&buffer[offset]))
ntohs             235 include/linux/ceph/decode.h 	a->in_addr.ss_family = ntohs(ss_family);
ntohs              96 include/linux/dccp.h 	__u64 seq_nr =  ntohs(dh->dccph_seq);
ntohs             121 include/linux/dccp.h 	return ((u64)ntohs(dhack->dccph_ack_nr_high) << 32) + ntohl(dhack->dccph_ack_nr_low);
ntohs             532 include/linux/if_vlan.h 	*vlan_tci = ntohs(veth->h_vlan_TCI);
ntohs              36 include/linux/ip.h 	return ntohs(ip_hdr(skb)->tot_len) - skb_network_header_len(skb);
ntohs             109 include/linux/ipv6.h 	return ntohs(ipv6_hdr(skb)->payload_len) + sizeof(struct ipv6hdr) -
ntohs             313 include/linux/lockd/lockd.h 	if (ntohs(sin->sin_port) > 1023)
ntohs             324 include/linux/lockd/lockd.h 	if (ntohs(sin6->sin6_port) > 1023)
ntohs             407 include/linux/netfilter/ipset/ip_set.h 	return ntohs(nla_get_be16(attr));
ntohs              27 include/linux/sunrpc/addr.h 		return ntohs(((struct sockaddr_in *)sap)->sin_port);
ntohs              29 include/linux/sunrpc/addr.h 		return ntohs(((struct sockaddr_in6 *)sap)->sin6_port);
ntohs             167 include/linux/sunrpc/svc_xprt.h 		return ntohs(sin->sin_port);
ntohs             169 include/linux/sunrpc/svc_xprt.h 		return ntohs(sin6->sin6_port);
ntohs             205 include/linux/sunrpc/svc_xprt.h 			ntohs(sin->sin_port));
ntohs             211 include/linux/sunrpc/svc_xprt.h 			ntohs(sin6->sin6_port));
ntohs              24 include/net/dsfield.h 	return ntohs(*(const __be16 *)ipv6h) >> 4;
ntohs              31 include/net/dsfield.h         __u32 check = ntohs((__force __be16)iph->check);
ntohs             181 include/net/erspan.h 		vlan_tci = ntohs(qp->tci);
ntohs             275 include/net/erspan.h 		vlan_tci = ntohs(qp->tci);
ntohs             165 include/net/fib_rules.h 	return ntohs(port) >= a->start &&
ntohs             166 include/net/fib_rules.h 		ntohs(port) <= a->end;
ntohs              96 include/net/inet6_hashtables.h 			      &ipv6_hdr(skb)->daddr, ntohs(dport),
ntohs             271 include/net/inet_hashtables.h 				      daddr, ntohs(dport), dif, sdif);
ntohs             338 include/net/inet_hashtables.h 					 ntohs(dport), dif, 0);
ntohs             349 include/net/inet_hashtables.h 	u16 hnum = ntohs(dport);
ntohs            1251 include/net/ip_vs.h 			      ntohs(cp->cport),
ntohs            1253 include/net/ip_vs.h 			      ntohs(cp->vport));
ntohs            1261 include/net/ip_vs.h 		      ntohs(cp->cport),
ntohs            1263 include/net/ip_vs.h 		      ntohs(ctl_cp->cport));
ntohs            1270 include/net/ip_vs.h 			      ntohs(cp->cport),
ntohs            1272 include/net/ip_vs.h 			      ntohs(cp->vport));
ntohs            1286 include/net/ip_vs.h 			      ntohs(cp->cport),
ntohs            1288 include/net/ip_vs.h 			      ntohs(cp->vport));
ntohs            1296 include/net/ip_vs.h 		      ntohs(cp->cport),
ntohs            1298 include/net/ip_vs.h 		      ntohs(ctl_cp->cport));
ntohs             344 include/net/llc_pdu.h 		dsize = ntohs(eth_hdr(ev_skb)->h_proto) - 3;
ntohs              98 include/net/mld.h 	unsigned long ret, mc_mrc = ntohs(mlh2->mld2q_mrc);
ntohs              87 include/net/netfilter/nf_conntrack_tuple.h 	       &t->src.u3.ip, ntohs(t->src.u.all),
ntohs              88 include/net/netfilter/nf_conntrack_tuple.h 	       &t->dst.u3.ip, ntohs(t->dst.u.all));
ntohs              97 include/net/netfilter/nf_conntrack_tuple.h 	       t->src.u3.all, ntohs(t->src.u.all),
ntohs              98 include/net/netfilter/nf_conntrack_tuple.h 	       t->dst.u3.all, ntohs(t->dst.u.all));
ntohs              17 include/net/netfilter/nf_tables_ipv4.h 	pkt->xt.fragoff = ntohs(ip->frag_off) & IP_OFFSET;
ntohs              34 include/net/netfilter/nf_tables_ipv4.h 	len = ntohs(iph->tot_len);
ntohs              44 include/net/netfilter/nf_tables_ipv4.h 	pkt->xt.fragoff = ntohs(iph->frag_off) & IP_OFFSET;
ntohs              47 include/net/netfilter/nf_tables_ipv6.h 	pkt_len = ntohs(ip6h->payload_len);
ntohs             262 include/net/nsh.h 	return ((ntohs(nsh->ver_flags_ttl_len) & NSH_LEN_MASK)
ntohs             268 include/net/nsh.h 	return (ntohs(nsh->ver_flags_ttl_len) & NSH_VER_MASK)
ntohs             274 include/net/nsh.h 	return (ntohs(nsh->ver_flags_ttl_len) & NSH_FLAGS_MASK)
ntohs             280 include/net/nsh.h 	return (ntohs(nsh->ver_flags_ttl_len) & NSH_TTL_MASK)
ntohs             429 include/net/sctp/sctp.h _sctp_walk_params((pos), (chunk), ntohs((chunk)->chunk_hdr.length), member)
ntohs             435 include/net/sctp/sctp.h      pos.v <= (void *)chunk + end - ntohs(pos.p->length) &&\
ntohs             436 include/net/sctp/sctp.h      ntohs(pos.p->length) >= sizeof(struct sctp_paramhdr);\
ntohs             437 include/net/sctp/sctp.h      pos.v += SCTP_PAD4(ntohs(pos.p->length)))
ntohs             440 include/net/sctp/sctp.h _sctp_walk_errors((err), (chunk_hdr), ntohs((chunk_hdr)->length))
ntohs             447 include/net/sctp/sctp.h      (void *)err <= (void *)chunk_hdr + end - ntohs(err->length) &&\
ntohs             448 include/net/sctp/sctp.h      ntohs(err->length) >= sizeof(struct sctp_errhdr); \
ntohs             449 include/net/sctp/sctp.h      err = (struct sctp_errhdr *)((void *)err + SCTP_PAD4(ntohs(err->length))))
ntohs             452 include/net/sctp/sctp.h _sctp_walk_fwdtsn((pos), (chunk), ntohs((chunk)->chunk_hdr->length) - sizeof(struct sctp_fwdtsn_chunk))
ntohs             334 include/net/sctp/sm.h 	size = ntohs(chunk->chunk_hdr->length);
ntohs             682 include/net/sctp/structs.h 	return ntohs(ch->subh.data_hdr->stream);
ntohs              50 include/net/udplite.h 	cscov = ntohs(uh->len);
ntohs             281 include/rdma/ib_sa.h 		slid = htonl(ntohs(ib->ib.slid));
ntohs             282 include/rdma/ib_sa.h 		dlid = htonl(ntohs(ib->ib.dlid));
ntohs             620 include/rdma/ib_sa.h 		return htonl(ntohs(rec->ib.slid));
ntohs             629 include/rdma/ib_sa.h 		return htonl(ntohs(rec->ib.dlid));
ntohs              61 include/trace/events/fib.h 			__entry->sport = ntohs(flp->fl4_sport);
ntohs              62 include/trace/events/fib.h 			__entry->dport = ntohs(flp->fl4_dport);
ntohs              58 include/trace/events/fib6.h 			__entry->sport = ntohs(flp->fl6_sport);
ntohs              59 include/trace/events/fib6.h 			__entry->dport = ntohs(flp->fl6_dport);
ntohs              45 include/trace/events/net.h 		__entry->vlan_proto = ntohs(skb->vlan_proto);
ntohs              47 include/trace/events/net.h 		__entry->protocol = ntohs(skb->protocol);
ntohs             202 include/trace/events/net.h 		__entry->vlan_proto = ntohs(skb->vlan_proto);
ntohs             204 include/trace/events/net.h 		__entry->protocol = ntohs(skb->protocol);
ntohs             939 include/trace/events/rxrpc.h 		      ntohs(__entry->whdr.serviceId),
ntohs              30 include/trace/events/skb.h 		__entry->protocol = ntohs(skb->protocol);
ntohs             168 include/trace/events/sock.h 		__entry->sport = ntohs(inet->inet_sport);
ntohs             169 include/trace/events/sock.h 		__entry->dport = ntohs(inet->inet_dport);
ntohs              76 include/trace/events/tcp.h 		__entry->sport = ntohs(inet->inet_sport);
ntohs              77 include/trace/events/tcp.h 		__entry->dport = ntohs(inet->inet_dport);
ntohs             141 include/trace/events/tcp.h 		__entry->sport = ntohs(inet->inet_sport);
ntohs             142 include/trace/events/tcp.h 		__entry->dport = ntohs(inet->inet_dport);
ntohs             209 include/trace/events/tcp.h 		__entry->dport = ntohs(ireq->ir_rmt_port);
ntohs             264 include/trace/events/tcp.h 		__entry->sport = ntohs(inet->inet_sport);
ntohs             265 include/trace/events/tcp.h 		__entry->dport = ntohs(inet->inet_dport);
ntohs             272 include/uapi/linux/tipc_config.h 		(ntohs(((struct tlv_desc *)tlv)->tlv_len) <= space);
ntohs             278 include/uapi/linux/tipc_config.h 		(ntohs(((struct tlv_desc *)tlv)->tlv_type) == exp_type);
ntohs             283 include/uapi/linux/tipc_config.h 	return ntohs(tlv->tlv_len);
ntohs             293 include/uapi/linux/tipc_config.h 	return (ntohs(tlv->tlv_type) == type);
ntohs             351 include/uapi/linux/tipc_config.h 	__u16 tlv_space = TLV_ALIGN(ntohs(list->tlv_ptr->tlv_len));
ntohs            1352 lib/vsprintf.c 		word = ntohs(in6.s6_addr16[i]);
ntohs            1466 lib/vsprintf.c 		p = number(p, pend, ntohs(sa->sin6_port), spec);
ntohs            1510 lib/vsprintf.c 		p = number(p, pend, ntohs(sa->sin_port), spec);
ntohs             769 net/6lowpan/iphc.c 		hdr.version, ntohs(hdr.payload_len), hdr.nexthdr,
ntohs            1148 net/6lowpan/iphc.c 		 hdr->version, ntohs(hdr->payload_len), hdr->nexthdr,
ntohs              72 net/6lowpan/nhc_udp.c 		 ntohs(uh.source), ntohs(uh.dest));
ntohs             101 net/6lowpan/nhc_udp.c 	pr_debug("uncompressed UDP length: src = %d", ntohs(uh.len));
ntohs             121 net/6lowpan/nhc_udp.c 	if (((ntohs(uh->source) & LOWPAN_NHC_UDP_4BIT_MASK) ==
ntohs             123 net/6lowpan/nhc_udp.c 	    ((ntohs(uh->dest) & LOWPAN_NHC_UDP_4BIT_MASK) ==
ntohs             130 net/6lowpan/nhc_udp.c 		tmp = ntohs(uh->dest) - LOWPAN_NHC_UDP_4BIT_PORT +
ntohs             131 net/6lowpan/nhc_udp.c 		      ((ntohs(uh->source) - LOWPAN_NHC_UDP_4BIT_PORT) << 4);
ntohs             133 net/6lowpan/nhc_udp.c 	} else if ((ntohs(uh->dest) & LOWPAN_NHC_UDP_8BIT_MASK) ==
ntohs             142 net/6lowpan/nhc_udp.c 		tmp = ntohs(uh->dest) - LOWPAN_NHC_UDP_8BIT_PORT;
ntohs             144 net/6lowpan/nhc_udp.c 	} else if ((ntohs(uh->source) & LOWPAN_NHC_UDP_8BIT_MASK) ==
ntohs             151 net/6lowpan/nhc_udp.c 		tmp = ntohs(uh->source) - LOWPAN_NHC_UDP_8BIT_PORT;
ntohs             338 net/802/mrp.c  	dev_hard_header(app->pdu, app->dev, ntohs(app->app->pkttype.type),
ntohs              72 net/8021q/vlan_dev.c 		type = ntohs(vlan->vlan_proto);
ntohs             446 net/appletalk/aarp.c 	sa->sat_addr.s_net = ntohs(iface->address.s_net);
ntohs             734 net/appletalk/aarp.c 	function = ntohs(ea->function);
ntohs            1013 net/appletalk/aarp.c 			   ntohs(entry->target_addr.s_net),
ntohs              71 net/appletalk/atalk_proc.c 		   iface->dev->name, ntohs(iface->address.s_net),
ntohs              72 net/appletalk/atalk_proc.c 		   iface->address.s_node, ntohs(iface->nets.nr_firstnet),
ntohs              73 net/appletalk/atalk_proc.c 		   ntohs(iface->nets.nr_lastnet), iface->status);
ntohs             132 net/appletalk/atalk_proc.c 			       ntohs(rt->gateway.s_net), rt->gateway.s_node,
ntohs             138 net/appletalk/atalk_proc.c 		   ntohs(rt->target.s_net), rt->target.s_node,
ntohs             139 net/appletalk/atalk_proc.c 		   ntohs(rt->gateway.s_net), rt->gateway.s_node,
ntohs             179 net/appletalk/atalk_proc.c 		   s->sk_type, ntohs(at->src_net), at->src_node, at->src_port,
ntohs             180 net/appletalk/atalk_proc.c 		   ntohs(at->dest_net), at->dest_node, at->dest_port,
ntohs             244 net/appletalk/ddp.c 	int netrange = ntohs(atif->nets.nr_lastnet) -
ntohs             245 net/appletalk/ddp.c 			ntohs(atif->nets.nr_firstnet) + 1;
ntohs             246 net/appletalk/ddp.c 	int probe_net = ntohs(atif->address.s_net);
ntohs             252 net/appletalk/ddp.c 		probe_net = ntohs(atif->nets.nr_firstnet);
ntohs             279 net/appletalk/ddp.c 		if (probe_net > ntohs(atif->nets.nr_lastnet))
ntohs             280 net/appletalk/ddp.c 			probe_net = ntohs(atif->nets.nr_firstnet);
ntohs             292 net/appletalk/ddp.c 	int netrange = ntohs(atif->nets.nr_lastnet) -
ntohs             293 net/appletalk/ddp.c 			ntohs(atif->nets.nr_firstnet) + 1;
ntohs             295 net/appletalk/ddp.c 	int probe_net = ntohs(atif->address.s_net);
ntohs             301 net/appletalk/ddp.c 		probe_net = ntohs(atif->nets.nr_firstnet);
ntohs             326 net/appletalk/ddp.c 		if (probe_net > ntohs(atif->nets.nr_lastnet))
ntohs             327 net/appletalk/ddp.c 			probe_net = ntohs(atif->nets.nr_firstnet);
ntohs             409 net/appletalk/ddp.c 		    ntohs(iface->nets.nr_firstnet) <= ntohs(net) &&
ntohs             410 net/appletalk/ddp.c 		    ntohs(net) <= ntohs(iface->nets.nr_lastnet))
ntohs             533 net/appletalk/ddp.c 			    ntohs(ga->sat_addr.s_net) >=
ntohs             534 net/appletalk/ddp.c 					ntohs(iface->nets.nr_firstnet) &&
ntohs             535 net/appletalk/ddp.c 			    ntohs(ga->sat_addr.s_net) <=
ntohs             536 net/appletalk/ddp.c 					ntohs(iface->nets.nr_lastnet))
ntohs             763 net/appletalk/ddp.c 			limit = ntohs(nr->nr_lastnet);
ntohs             764 net/appletalk/ddp.c 			if (limit - ntohs(nr->nr_firstnet) > 4096) {
ntohs             770 net/appletalk/ddp.c 				for (ct = ntohs(nr->nr_firstnet);
ntohs            1435 net/appletalk/ddp.c 	len_hops = ntohs(ddp->deh_len_hops);
ntohs            1747 net/appletalk/ddp.c 	copied = ntohs(ddp->deh_len_hops) & 1023;
ntohs             229 net/atm/br2684.c 			unsigned short prot = ntohs(skb->protocol);
ntohs             507 net/atm/br2684.c 	pr_debug("received packet's protocol: %x\n", ntohs(skb->protocol));
ntohs             326 net/batman-adv/bat_iv_ogm.c 	next_buff_pos += ntohs(ogm_packet->tvlv_len);
ntohs             381 net/batman-adv/bat_iv_ogm.c 		buff_pos += ntohs(batadv_ogm_packet->tvlv_len);
ntohs             710 net/batman-adv/bat_iv_ogm.c 	tvlv_len = ntohs(batadv_ogm_packet->tvlv_len);
ntohs            1764 net/batman-adv/bat_iv_ogm.c 		ogm_offset += ntohs(ogm_packet->tvlv_len);
ntohs             147 net/batman-adv/bat_v_ogm.c 	return BATADV_OGM2_HLEN + ntohs(ogm_packet->tvlv_len);
ntohs             558 net/batman-adv/bat_v_ogm.c 	tvlv_len = ntohs(ogm_received->tvlv_len);
ntohs             811 net/batman-adv/bat_v_ogm.c 					       ntohs(ogm2->tvlv_len));
ntohs             844 net/batman-adv/bat_v_ogm.c 	next_buff_pos += ntohs(ogm2_packet->tvlv_len);
ntohs             879 net/batman-adv/bat_v_ogm.c 		   ogm_packet->version, ntohs(ogm_packet->tvlv_len));
ntohs            1025 net/batman-adv/bat_v_ogm.c 		ogm_offset += ntohs(ogm_packet->tvlv_len);
ntohs             847 net/batman-adv/bridge_loop_avoidance.c 	crc = ntohs(*((__be16 *)(&an_addr[4])));
ntohs            1050 net/batman-adv/bridge_loop_avoidance.c 	if (ntohs(bla_dst->group) > ntohs(bla_dst_own->group)) {
ntohs            1053 net/batman-adv/bridge_loop_avoidance.c 			   ntohs(bla_dst->group));
ntohs            2056 net/batman-adv/bridge_loop_avoidance.c 		   ntohs(bat_priv->bla.claim_dest.group));
ntohs            2290 net/batman-adv/bridge_loop_avoidance.c 		   ntohs(bat_priv->bla.claim_dest.group));
ntohs            1115 net/batman-adv/distributed-arp-table.c 	type = ntohs(arphdr->ar_op);
ntohs             158 net/batman-adv/fragmentation.c 	seqno = ntohs(frag_packet->seqno);
ntohs             178 net/batman-adv/fragmentation.c 		chain->total_size = ntohs(frag_packet->total_size);
ntohs             213 net/batman-adv/fragmentation.c 	    chain->total_size != ntohs(frag_packet->total_size) ||
ntohs             221 net/batman-adv/fragmentation.c 	} else if (ntohs(frag_packet->total_size) == chain->size) {
ntohs             266 net/batman-adv/fragmentation.c 	size = ntohs(packet->total_size) + hdr_size;
ntohs             373 net/batman-adv/fragmentation.c 	total_size = ntohs(packet->total_size);
ntohs             402 net/batman-adv/main.c 		prio = ntohs(vhdr->h_vlan_TCI) & VLAN_PRIO_MASK;
ntohs             657 net/batman-adv/main.c 	vid = ntohs(vhdr->h_vlan_TCI) & VLAN_VID_MASK;
ntohs            1107 net/batman-adv/multicast.c 	switch (ntohs(ethhdr->h_proto)) {
ntohs            1137 net/batman-adv/multicast.c 	switch (ntohs(ethhdr->h_proto)) {
ntohs            1254 net/batman-adv/multicast.c 	switch (ntohs(ethhdr->h_proto)) {
ntohs            1359 net/batman-adv/multicast.c 	switch (ntohs(ethhdr->h_proto)) {
ntohs            1579 net/batman-adv/multicast.c 	switch (ntohs(eth_hdr(skb)->h_proto)) {
ntohs            1684 net/batman-adv/multicast.c 	switch (ntohs(eth_hdr(skb)->h_proto)) {
ntohs             254 net/batman-adv/netlink.c 			ntohs(bat_priv->bla.claim_dest.group)))
ntohs            1693 net/batman-adv/network-coding.c 	coding_len = ntohs(coded_packet_tmp.coded_len);
ntohs            1088 net/batman-adv/routing.c 	tvlv_buff_len = ntohs(unicast_tvlv_packet->tvlv_len);
ntohs             220 net/batman-adv/soft-interface.c 	switch (ntohs(proto)) {
ntohs             447 net/batman-adv/soft-interface.c 	switch (ntohs(ethhdr->h_proto)) {
ntohs            3057 net/batman-adv/translation-table.c 						   ntohs(tt_vlan_tmp->vid)))
ntohs            3061 net/batman-adv/translation-table.c 						 ntohs(tt_vlan_tmp->vid));
ntohs            3264 net/batman-adv/translation-table.c 					ntohs(tt_data->num_vlan)))
ntohs            3502 net/batman-adv/translation-table.c 					     ntohs((tt_change + i)->vid),
ntohs            3508 net/batman-adv/translation-table.c 						  ntohs((tt_change + i)->vid),
ntohs            3626 net/batman-adv/translation-table.c 	change_offset *= ntohs(tt_data->num_vlan);
ntohs            4240 net/batman-adv/translation-table.c 	num_vlan = ntohs(tt_data->num_vlan);
ntohs            4284 net/batman-adv/translation-table.c 	tt_vlan_len *= ntohs(tt_data->num_vlan);
ntohs            4379 net/batman-adv/translation-table.c 			     ntohs(roaming_adv->vid), BATADV_TT_CLIENT_ROAM,
ntohs             165 net/batman-adv/tvlv.c 		tvlv_len += ntohs(tvlv->tvlv_hdr.len);
ntohs             242 net/batman-adv/tvlv.c 	memcpy(tvlv_new + 1, tvlv_value, ntohs(tvlv_new->tvlv_hdr.len));
ntohs             335 net/batman-adv/tvlv.c 		memcpy(tvlv_value, tvlv + 1, ntohs(tvlv->tvlv_hdr.len));
ntohs             336 net/batman-adv/tvlv.c 		tvlv_value = (u8 *)tvlv_value + ntohs(tvlv->tvlv_hdr.len);
ntohs             426 net/batman-adv/tvlv.c 		tvlv_value_cont_len = ntohs(tvlv_hdr->len);
ntohs             482 net/batman-adv/tvlv.c 	tvlv_value_len = ntohs(batadv_ogm_packet->tvlv_len);
ntohs             358 net/bluetooth/bnep/core.c 	if (ntohs(s->eh.h_proto) == ETH_P_8021Q) {
ntohs             137 net/bluetooth/bnep/netdev.c 	u16 proto = ntohs(eh->h_proto);
ntohs             933 net/bridge/br_multicast.c 	num = ntohs(ih->ngrec);
ntohs             944 net/bridge/br_multicast.c 		nsrcs = ntohs(grec->grec_nsrcs);
ntohs            1000 net/bridge/br_multicast.c 	num = ntohs(icmp6h->icmp6_dataun.un_data16[1]);
ntohs            1018 net/bridge/br_multicast.c 		nsrcs = ntohs(*_nsrcs);
ntohs            1322 net/bridge/br_multicast.c 		max_delay = msecs_to_jiffies(ntohs(mld->mld_maxdelay));
ntohs            2322 net/bridge/br_multicast.c 		t_len = ntohs(ip_hdr(skb)->tot_len) - ip_hdrlen(skb);
ntohs            2357 net/bridge/br_multicast.c 		t_len = ntohs(ipv6_hdr(skb)->payload_len) +
ntohs             217 net/bridge/br_netfilter_hooks.c 	len = ntohs(iph->tot_len);
ntohs             117 net/bridge/br_netfilter_ipv6.c 	pkt_len = ntohs(hdr->payload_len);
ntohs             787 net/bridge/br_sysfs_br.c 	return sprintf(buf, "%#06x\n", ntohs(br->vlan_proto));
ntohs             804 net/bridge/br_vlan.c 	*p_proto = ntohs(br->vlan_proto);
ntohs              66 net/bridge/netfilter/ebt_ip.c 		if (ntohs(ih->frag_off) & IP_OFFSET)
ntohs              75 net/bridge/netfilter/ebt_ip.c 			u32 dst = ntohs(pptr->tcpudphdr.dst);
ntohs              82 net/bridge/netfilter/ebt_ip.c 			u32 src = ntohs(pptr->tcpudphdr.src);
ntohs              82 net/bridge/netfilter/ebt_ip6.c 			u16 dst = ntohs(pptr->tcpudphdr.dst);
ntohs              89 net/bridge/netfilter/ebt_ip6.c 			u16 src = ntohs(pptr->tcpudphdr.src);
ntohs              69 net/bridge/netfilter/ebt_log.c 		pr_cont(" SPT=%u DPT=%u", ntohs(pptr->src), ntohs(pptr->dst));
ntohs              90 net/bridge/netfilter/ebt_log.c 	       ntohs(eth_hdr(skb)->h_proto));
ntohs             150 net/bridge/netfilter/ebt_log.c 			ntohs(ah->ar_hrd), ntohs(ah->ar_pro),
ntohs             151 net/bridge/netfilter/ebt_log.c 			ntohs(ah->ar_op));
ntohs              47 net/bridge/netfilter/ebt_vlan.c 		TCI = ntohs(fp->h_vlan_TCI);
ntohs              85 net/bridge/netfilter/ebt_vlan.c 			 ntohs(e->ethproto));
ntohs             141 net/bridge/netfilter/ebt_vlan.c 		if ((unsigned short) ntohs(info->encap) < ETH_ZLEN) {
ntohs             143 net/bridge/netfilter/ebt_vlan.c 				 "minimal\n", ntohs(info->encap));
ntohs             380 net/bridge/netfilter/ebtables.c 	      ntohs(e->ethproto), e->invflags & EBT_IPROTO);
ntohs             417 net/bridge/netfilter/ebtables.c 	      ntohs(e->ethproto), e->invflags & EBT_IPROTO);
ntohs             743 net/bridge/netfilter/ebtables.c 	      ntohs(e->ethproto), e->invflags & EBT_IPROTO);
ntohs             204 net/bridge/netfilter/nf_conntrack_bridge.c 	len = ntohs(iph->tot_len);
ntohs             222 net/bridge/netfilter/nf_conntrack_bridge.c 	len = ntohs(hdr->payload_len) + sizeof(struct ipv6hdr) + nhoff;
ntohs             248 net/bridge/netfilter/nf_conntrack_bridge.c 		len = ntohs(ip_hdr(skb)->tot_len);
ntohs             262 net/bridge/netfilter/nf_conntrack_bridge.c 		len = sizeof(struct ipv6hdr) + ntohs(ipv6_hdr(skb)->payload_len);
ntohs              54 net/bridge/netfilter/nft_reject_bridge.c 	len = ntohs(iph->tot_len);
ntohs             128 net/bridge/netfilter/nft_reject_bridge.c 	if (pskb_trim_rcsum(oldskb, ntohs(ip_hdr(oldskb)->tot_len)))
ntohs             177 net/bridge/netfilter/nft_reject_bridge.c 	pkt_len = ntohs(hdr->payload_len);
ntohs             229 net/bridge/netfilter/nft_reject_bridge.c 	    pskb_trim_rcsum(skb, ntohs(ip6h->payload_len) + sizeof(*ip6h)))
ntohs             204 net/ceph/messenger.c 			 ntohs(in4->sin_port));
ntohs             210 net/ceph/messenger.c 			 ntohs(in6->sin6_port));
ntohs            1822 net/ceph/messenger.c 		return ntohs(get_unaligned(&((struct sockaddr_in *)&addr->in_addr)->sin_port));
ntohs            1824 net/ceph/messenger.c 		return ntohs(get_unaligned(&((struct sockaddr_in6 *)&addr->in_addr)->sin6_port));
ntohs             308 net/core/dev.c 				 &ptype_base[ntohs(pt->type) & PTYPE_HASH_MASK];
ntohs            1978 net/core/dev.c 					     ntohs(skb2->protocol),
ntohs            4875 net/core/dev.c 				       &ptype_base[ntohs(type) &
ntohs            3051 net/core/ethtool.c 				ntohs(ext_h_spec->vlan_tci) & 0x0fff;
ntohs            3053 net/core/ethtool.c 				ntohs(ext_m_spec->vlan_tci) & 0x0fff;
ntohs            3061 net/core/ethtool.c 				(ntohs(ext_h_spec->vlan_tci) & 0xe000) >> 13;
ntohs            3063 net/core/ethtool.c 				(ntohs(ext_m_spec->vlan_tci) & 0xe000) >> 13;
ntohs            5234 net/core/filter.c 					    dst6, ntohs(tuple->ipv6.dport),
ntohs             497 net/core/flow_dissector.c 	key_arp->op = ntohs(arp->ar_op) & 0xff;
ntohs             528 net/core/flow_dissector.c 	gre_ver = ntohs(hdr->flags & GRE_VERSION);
ntohs            1139 net/core/flow_dissector.c 				key_vlan->vlan_id = ntohs(vlan->h_vlan_TCI) &
ntohs            1142 net/core/flow_dissector.c 					(ntohs(vlan->h_vlan_TCI) &
ntohs            1482 net/core/neighbour.c 			err = dev_hard_header(skb, dev, ntohs(skb->protocol),
ntohs            1511 net/core/neighbour.c 		err = dev_hard_header(skb, dev, ntohs(skb->protocol),
ntohs            3011 net/core/neighbour.c 		err = dev_hard_header(skb, dev, ntohs(skb->protocol),
ntohs             232 net/core/net-procfs.c 		hash = ntohs(pt->type) & PTYPE_HASH_MASK;
ntohs             259 net/core/net-procfs.c 			seq_printf(seq, "%04x", ntohs(pt->type));
ntohs             759 net/core/skbuff.c 	       ntohs(skb->protocol), skb->pkt_type, skb->skb_iif);
ntohs            4809 net/core/skbuff.c 	len = sizeof(struct ipv6hdr) + ntohs(ipv6_hdr(skb)->payload_len);
ntohs            5325 net/core/skbuff.c 	vlan_tci = ntohs(vhdr->h_vlan_TCI);
ntohs            5381 net/core/skbuff.c 	*vlan_tci = ntohs(vhdr->h_vlan_TCI);
ntohs              69 net/core/tso.c 	tso->ip_id = ntohs(ip_hdr(skb)->id);
ntohs             254 net/dccp/ipv4.c 				       iph->saddr, ntohs(dh->dccph_sport),
ntohs             797 net/dccp/ipv4.c 		      &iph->saddr, ntohs(dh->dccph_sport),
ntohs             798 net/dccp/ipv4.c 		      &iph->daddr, ntohs(dh->dccph_dport),
ntohs              89 net/dccp/ipv6.c 					&hdr->saddr, ntohs(dh->dccph_sport),
ntohs             260 net/dccp/minisocks.c 	inet_rsk(req)->ir_num	   = ntohs(dccp_hdr(skb)->dccph_dport);
ntohs             181 net/dccp/options.c 				elapsed_time = ntohs(opt_val2);
ntohs             199 net/dccp/options.c 				elapsed_time = ntohs(opt_val2);
ntohs              49 net/dccp/trace.h 		__entry->sport = ntohs(inet->inet_sport);
ntohs              50 net/dccp/trace.h 		__entry->dport = ntohs(inet->inet_dport);
ntohs             185 net/decnet/dn_neigh.c 		err = dev_hard_header(skb, dev, ntohs(skb->protocol),
ntohs             111 net/dsa/tag_lan9303.c 	lan9303_tag1 = ntohs(lan9303_tag[1]);
ntohs              84 net/dsa/tag_mtk.c 	hdr = ntohs(*phdr);
ntohs              68 net/dsa/tag_qca.c 	hdr = ntohs(*phdr);
ntohs              16 net/dsa/tag_sja1105.c 	if (ntohs(hdr->h_proto) == ETH_P_SJA1105_META)
ntohs              67 net/dsa/tag_sja1105.c 	if (ntohs(hdr->h_proto) != ETH_P_SJA1105_META)
ntohs             248 net/dsa/tag_sja1105.c 	tpid = ntohs(hdr->h_proto);
ntohs              67 net/hsr/hsr_main.h 	return ntohs(ht->path_and_LSDU_size) >> 12;
ntohs              72 net/hsr/hsr_main.h 	return ntohs(ht->path_and_LSDU_size) & 0x0FFF;
ntohs              78 net/hsr/hsr_main.h 		htons((ntohs(ht->path_and_LSDU_size) & 0x0FFF) | (path << 12));
ntohs              83 net/hsr/hsr_main.h 	ht->path_and_LSDU_size = htons((ntohs(ht->path_and_LSDU_size) &
ntohs             184 net/hsr/hsr_main.h 	return ntohs(hsr_ethhdr->hsr_tag.sequence_nr);
ntohs             257 net/ieee802154/6lowpan/reassembly.c 	cb->d_tag = ntohs(d_tag);
ntohs             188 net/ieee802154/6lowpan/tx.c 			 __func__, ntohs(frag_tag));
ntohs             209 net/ieee802154/6lowpan/tx.c 				 __func__, ntohs(frag_tag), skb_offset);
ntohs              76 net/ife/ife.c  	ifehdrln = ntohs(ifehdr->metalen);
ntohs             108 net/ife/ife.c  	tlvlen = ntohs(tlv->len);
ntohs             135 net/ife/ife.c  	*dlen = ntohs(tlv->len) - NLA_HDRLEN;
ntohs             136 net/ife/ife.c  	*attrtype = ntohs(tlv->type);
ntohs             148 net/ife/ife.c  	u16 tlvlen = ntohs(tlv->len);
ntohs             496 net/ipv4/af_inet.c 	snum = ntohs(addr->sin_port);
ntohs            1320 net/ipv4/af_inet.c 	id = ntohs(iph->id);
ntohs            1480 net/ipv4/af_inet.c 		flush_id = (u16)(id - ntohs(iph2->id));
ntohs              60 net/ipv4/fou.c 		ip_hdr(skb)->tot_len = htons(ntohs(ip_hdr(skb)->tot_len) - len);
ntohs              63 net/ipv4/fou.c 		    htons(ntohs(ipv6_hdr(skb)->payload_len) - len);
ntohs              93 net/ipv4/fou.c 	size_t start = ntohs(pd[0]);
ntohs              94 net/ipv4/fou.c 	size_t offset = ntohs(pd[1]);
ntohs             181 net/ipv4/fou.c 		ip_hdr(skb)->tot_len = htons(ntohs(ip_hdr(skb)->tot_len) - len);
ntohs             184 net/ipv4/fou.c 		    htons(ntohs(ipv6_hdr(skb)->payload_len) - len);
ntohs             293 net/ipv4/fou.c 	size_t start = ntohs(pd[0]);
ntohs             294 net/ipv4/fou.c 	size_t offset = ntohs(pd[1]);
ntohs             836 net/ipv4/icmp.c 				info = ntohs(icmph->un.frag.mtu);
ntohs             452 net/ipv4/igmp.c 	pih->ngrec = htons(ntohs(pih->ngrec)+1);
ntohs             990 net/ipv4/igmp.c 					   + ntohs(ih3->nsrcs)*sizeof(__be32)))
ntohs            1051 net/ipv4/igmp.c 			igmp_marksources(im, ntohs(ih3->nsrcs), ih3->srcs);
ntohs            1506 net/ipv4/igmp.c 	len = skb_network_offset(skb) + ntohs(iph->tot_len);
ntohs             685 net/ipv4/inet_diag.c 	entry.dport = ntohs(inet->inet_dport);
ntohs             293 net/ipv4/ip_fragment.c 	offset = ntohs(ip_hdr(skb)->frag_off);
ntohs             520 net/ipv4/ip_fragment.c 	len = ntohs(iph.tot_len);
ntohs             533 net/ipv4/ip_gre.c 	    (ntohs(ip_hdr(skb)->tot_len) > skb->len - nhoff))
ntohs             538 net/ipv4/ip_gre.c 	    (ntohs(ipv6_hdr(skb)->payload_len) > skb->len - thoff))
ntohs             473 net/ipv4/ip_input.c 	len = ntohs(iph->tot_len);
ntohs             661 net/ipv4/ip_output.c 	state->offset = (ntohs(iph->frag_off) & IP_OFFSET) << 3;
ntohs             371 net/ipv4/ip_vti.c 		spi = htonl(ntohs(ipch->cpi));
ntohs              40 net/ipv4/ipcomp.c 	spi = htonl(ntohs(ipch->cpi));
ntohs             499 net/ipv4/ipconfig.c 	if (rarp->ar_hln != dev->addr_len || dev->type != ntohs(rarp->ar_hrd))
ntohs             860 net/ipv4/ipconfig.c 	if (dev_hard_header(skb, dev, ntohs(skb->protocol),
ntohs             936 net/ipv4/ipconfig.c 		ic_dev_mtu = ntohs(mtu);
ntohs             993 net/ipv4/ipconfig.c 	if (skb->len < ntohs(h->tot_len))
ntohs            1002 net/ipv4/ipconfig.c 	if (ntohs(h->tot_len) < ntohs(b->udph.len) + sizeof(struct iphdr))
ntohs            1005 net/ipv4/ipconfig.c 	len = ntohs(b->udph.len) - sizeof(struct udphdr);
ntohs            1045 net/ipv4/ipconfig.c 		u8 *end = (u8 *) b + ntohs(b->iph.tot_len);
ntohs             615 net/ipv4/ipmr.c 	    ntohs(encap->tot_len) + pimlen > skb->len)
ntohs            1075 net/ipv4/ipmr.c 		ip_hdr(skb)->tot_len = htons(ntohs(ip_hdr(pkt)->tot_len) +
ntohs            1883 net/ipv4/ipmr.c 	if (skb->len+encap > dst_mtu(&rt->dst) && (ntohs(iph->frag_off) & IP_DF)) {
ntohs             253 net/ipv4/netfilter/ip_tables.c 	acpar.fragoff = ntohs(ip->frag_off) & IP_OFFSET;
ntohs              57 net/ipv4/netfilter/nf_log_arp.c 		       ntohs(ah->ar_hrd), ntohs(ah->ar_pro), ntohs(ah->ar_op));
ntohs              61 net/ipv4/netfilter/nf_log_ipv4.c 		       ntohs(ih->tot_len), ih->tos & IPTOS_TOS_MASK,
ntohs              62 net/ipv4/netfilter/nf_log_ipv4.c 		       ih->tos & IPTOS_PREC_MASK, ih->ttl, ntohs(ih->id));
ntohs              65 net/ipv4/netfilter/nf_log_ipv4.c 	if (ntohs(ih->frag_off) & IP_CE)
ntohs              67 net/ipv4/netfilter/nf_log_ipv4.c 	if (ntohs(ih->frag_off) & IP_DF)
ntohs              69 net/ipv4/netfilter/nf_log_ipv4.c 	if (ntohs(ih->frag_off) & IP_MF)
ntohs              73 net/ipv4/netfilter/nf_log_ipv4.c 	if (ntohs(ih->frag_off) & IP_OFFSET)
ntohs              74 net/ipv4/netfilter/nf_log_ipv4.c 		nf_log_buf_add(m, "FRAG:%u ", ntohs(ih->frag_off) & IP_OFFSET);
ntohs             100 net/ipv4/netfilter/nf_log_ipv4.c 					   ntohs(ih->frag_off) & IP_OFFSET,
ntohs             107 net/ipv4/netfilter/nf_log_ipv4.c 					   ntohs(ih->frag_off) & IP_OFFSET,
ntohs             135 net/ipv4/netfilter/nf_log_ipv4.c 		if (ntohs(ih->frag_off) & IP_OFFSET)
ntohs             164 net/ipv4/netfilter/nf_log_ipv4.c 				       ntohs(ich->un.echo.id),
ntohs             165 net/ipv4/netfilter/nf_log_ipv4.c 				       ntohs(ich->un.echo.sequence));
ntohs             192 net/ipv4/netfilter/nf_log_ipv4.c 					       ntohs(ich->un.frag.mtu));
ntohs             202 net/ipv4/netfilter/nf_log_ipv4.c 		if (ntohs(ih->frag_off) & IP_OFFSET)
ntohs             228 net/ipv4/netfilter/nf_log_ipv4.c 		if (ntohs(ih->frag_off) & IP_OFFSET)
ntohs             289 net/ipv4/netfilter/nf_log_ipv4.c 			       ntohs(eth_hdr(skb)->h_proto));
ntohs             160 net/ipv4/netfilter/nf_nat_h323.c 				 &addr.ip, ntohs(port),
ntohs             162 net/ipv4/netfilter/nf_nat_h323.c 				 ntohs(ct->tuplehash[!dir].tuple.dst.u.udp.port));
ntohs             204 net/ipv4/netfilter/nf_nat_h323.c 			    htons(ntohs(info->rtp_port[i][dir]) + 1);
ntohs             219 net/ipv4/netfilter/nf_nat_h323.c 	for (nated_port = ntohs(rtp_exp->tuple.dst.u.udp.port);
ntohs             267 net/ipv4/netfilter/nf_nat_h323.c 		 ntohs(rtp_exp->tuple.src.u.udp.port),
ntohs             269 net/ipv4/netfilter/nf_nat_h323.c 		 ntohs(rtp_exp->tuple.dst.u.udp.port));
ntohs             272 net/ipv4/netfilter/nf_nat_h323.c 		 ntohs(rtcp_exp->tuple.src.u.udp.port),
ntohs             274 net/ipv4/netfilter/nf_nat_h323.c 		 ntohs(rtcp_exp->tuple.dst.u.udp.port));
ntohs             287 net/ipv4/netfilter/nf_nat_h323.c 	u_int16_t nated_port = ntohs(port);
ntohs             323 net/ipv4/netfilter/nf_nat_h323.c 		 ntohs(exp->tuple.src.u.tcp.port),
ntohs             325 net/ipv4/netfilter/nf_nat_h323.c 		 ntohs(exp->tuple.dst.u.tcp.port));
ntohs             339 net/ipv4/netfilter/nf_nat_h323.c 	u_int16_t nated_port = ntohs(port);
ntohs             348 net/ipv4/netfilter/nf_nat_h323.c 		nated_port = ntohs(info->sig_port[!dir]);
ntohs             383 net/ipv4/netfilter/nf_nat_h323.c 		 ntohs(exp->tuple.src.u.tcp.port),
ntohs             385 net/ipv4/netfilter/nf_nat_h323.c 		 ntohs(exp->tuple.dst.u.tcp.port));
ntohs             430 net/ipv4/netfilter/nf_nat_h323.c 	u_int16_t nated_port = ntohs(port);
ntohs             440 net/ipv4/netfilter/nf_nat_h323.c 		nated_port = ntohs(info->sig_port[!dir]);
ntohs             488 net/ipv4/netfilter/nf_nat_h323.c 		 ntohs(exp->tuple.src.u.tcp.port),
ntohs             490 net/ipv4/netfilter/nf_nat_h323.c 		 ntohs(exp->tuple.dst.u.tcp.port));
ntohs             536 net/ipv4/netfilter/nf_nat_h323.c 	for (nated_port = ntohs(port); nated_port != 0; nated_port++) {
ntohs             565 net/ipv4/netfilter/nf_nat_h323.c 		 ntohs(exp->tuple.src.u.tcp.port),
ntohs             567 net/ipv4/netfilter/nf_nat_h323.c 		 ntohs(exp->tuple.dst.u.tcp.port));
ntohs             143 net/ipv4/netfilter/nf_nat_pptp.c 	switch (msg = ntohs(ctlh->messageType)) {
ntohs             186 net/ipv4/netfilter/nf_nat_pptp.c 		 ntohs(REQ_CID(pptpReq, cid_off)), ntohs(new_callid));
ntohs             250 net/ipv4/netfilter/nf_nat_pptp.c 	switch (msg = ntohs(ctlh->messageType)) {
ntohs             287 net/ipv4/netfilter/nf_nat_pptp.c 		 ntohs(REQ_CID(pptpReq, pcid_off)), ntohs(new_pcid));
ntohs             130 net/ipv4/netfilter/nf_nat_snmp_basic_main.c 	u16 datalen = ntohs(udph->len) - sizeof(struct udphdr);
ntohs             184 net/ipv4/netfilter/nf_nat_snmp_basic_main.c 	if (ntohs(udph->len) != skb->len - (iph->ihl << 2)) {
ntohs             155 net/ipv4/netfilter/nf_reject_ipv4.c 		if (dev_hard_header(nskb, nskb->dev, ntohs(nskb->protocol),
ntohs             146 net/ipv4/netfilter/nf_tproxy_ipv4.c 		 protocol, ntohl(saddr), ntohs(sport), ntohl(daddr), ntohs(dport), lookup_type, sk);
ntohs             311 net/ipv4/ping.c 			 sk, &addr->sin_addr.s_addr, ntohs(addr->sin_port));
ntohs             337 net/ipv4/ping.c 			 sk, addr->sin6_addr.s6_addr, ntohs(addr->sin6_port));
ntohs             424 net/ipv4/ping.c 	snum = ntohs(((struct sockaddr_in *)uaddr)->sin_port);
ntohs             508 net/ipv4/ping.c 		 skb->protocol, type, code, ntohs(icmph->un.echo.id),
ntohs             509 net/ipv4/ping.c 		 ntohs(icmph->un.echo.sequence));
ntohs             511 net/ipv4/ping.c 	sk = ping_lookup(net, skb, ntohs(icmph->un.echo.id));
ntohs             967 net/ipv4/ping.c 		 skb, ntohs(icmph->un.echo.id), ntohs(icmph->un.echo.sequence));
ntohs             972 net/ipv4/ping.c 	sk = ping_lookup(net, skb, ntohs(icmph->un.echo.id));
ntohs            1107 net/ipv4/ping.c 	__u16 destp = ntohs(inet->inet_dport);
ntohs            1108 net/ipv4/ping.c 	__u16 srcp = ntohs(inet->inet_sport);
ntohs             340 net/ipv4/syncookies.c 	ireq->ir_num		= ntohs(th->dest);
ntohs             262 net/ipv4/tcp_fastopen.c 	tp->snd_wnd = ntohs(tcp_hdr(skb)->window);
ntohs            2329 net/ipv4/tcp_input.c 			 &inet->inet_daddr, ntohs(inet->inet_dport),
ntohs            2338 net/ipv4/tcp_input.c 			 &sk->sk_v6_daddr, ntohs(inet->inet_dport),
ntohs            3385 net/ipv4/tcp_input.c 	u32 nwin = ntohs(tcp_hdr(skb)->window);
ntohs            4074 net/ipv4/tcp_input.c 		!tcp_may_update_window(tp, ack, seq, ntohs(th->window) << tp->rx_opt.snd_wscale) &&
ntohs            5311 net/ipv4/tcp_input.c 	u32 ptr = ntohs(th->urg_ptr);
ntohs            5949 net/ipv4/tcp_input.c 		tp->snd_wnd = ntohs(th->window);
ntohs            6053 net/ipv4/tcp_input.c 		tp->snd_wnd    = ntohs(th->window);
ntohs            6245 net/ipv4/tcp_input.c 		tp->snd_wnd = ntohs(th->window) << tp->rx_opt.snd_wscale;
ntohs            6452 net/ipv4/tcp_input.c 	ireq->ir_num = ntohs(tcp_hdr(skb)->dest);
ntohs            6640 net/ipv4/tcp_input.c 			pr_drop_req(req, ntohs(tcp_hdr(skb)->source),
ntohs             443 net/ipv4/tcp_ipv4.c 				       th->dest, iph->saddr, ntohs(th->source),
ntohs             719 net/ipv4/tcp_ipv4.c 					     ntohs(th->source), inet_iif(skb),
ntohs            1337 net/ipv4/tcp_ipv4.c 				     &iph->saddr, ntohs(th->source),
ntohs            1338 net/ipv4/tcp_ipv4.c 				     &iph->daddr, ntohs(th->dest),
ntohs            1630 net/ipv4/tcp_ipv4.c 				       iph->daddr, ntohs(th->dest),
ntohs            2410 net/ipv4/tcp_ipv4.c 		ntohs(ireq->ir_rmt_port),
ntohs            2434 net/ipv4/tcp_ipv4.c 	__u16 destp = ntohs(inet->inet_dport);
ntohs            2435 net/ipv4/tcp_ipv4.c 	__u16 srcp = ntohs(inet->inet_sport);
ntohs            2495 net/ipv4/tcp_ipv4.c 	destp = ntohs(tw->tw_dport);
ntohs            2496 net/ipv4/tcp_ipv4.c 	srcp  = ntohs(tw->tw_sport);
ntohs             522 net/ipv4/tcp_minisocks.c 	newtp->snd_wnd = ntohs(tcp_hdr(skb)->window) << newtp->rx_opt.snd_wscale;
ntohs             465 net/ipv4/tcp_timer.c 					    ntohs(inet->inet_dport),
ntohs             473 net/ipv4/tcp_timer.c 					    ntohs(inet->inet_dport),
ntohs             450 net/ipv4/udp.c 	unsigned short hnum = ntohs(dport);
ntohs            2150 net/ipv4/udp.c 	unsigned short hnum = ntohs(uh->dest);
ntohs            2297 net/ipv4/udp.c 	ulen = ntohs(uh->len);
ntohs            2356 net/ipv4/udp.c 			    &saddr, ntohs(uh->source),
ntohs            2358 net/ipv4/udp.c 			    &daddr, ntohs(uh->dest));
ntohs            2368 net/ipv4/udp.c 			    &saddr, ntohs(uh->source), &daddr, ntohs(uh->dest),
ntohs            2386 net/ipv4/udp.c 	unsigned short hnum = ntohs(loc_port);
ntohs            2416 net/ipv4/udp.c 	unsigned short hnum = ntohs(loc_port);
ntohs            2908 net/ipv4/udp.c 	__u16 destp	  = ntohs(inet->inet_dport);
ntohs            2909 net/ipv4/udp.c 	__u16 srcp	  = ntohs(inet->inet_sport);
ntohs             365 net/ipv4/udp_offload.c 	ulen = ntohs(uh->len);
ntohs             392 net/ipv4/udp_offload.c 		if (ulen > ntohs(uh2->len) || skb_gro_receive(p, skb) ||
ntohs             393 net/ipv4/udp_offload.c 		    ulen != ntohs(uh2->len) ||
ntohs             152 net/ipv4/xfrm4_input.c 	iph->tot_len = htons(ntohs(iph->tot_len) - len);
ntohs             294 net/ipv6/af_inet6.c 	snum = ntohs(addr->sin6_port);
ntohs            1344 net/ipv6/calipso.c 		payload = ntohs(ip6_hdr->payload_len);
ntohs              99 net/ipv6/exthdrs_core.c 			if (ntohs(*frag_offp) & ~0x7)
ntohs             248 net/ipv6/exthdrs_core.c 			_frag_off = ntohs(*fp) & ~0x7;
ntohs             193 net/ipv6/inet6_hashtables.c 			    ntohs(dport), dif, 0, &refcounted);
ntohs             944 net/ipv6/ip6_gre.c 	    (ntohs(ip_hdr(skb)->tot_len) > skb->len - nhoff))
ntohs             949 net/ipv6/ip6_gre.c 	    (ntohs(ipv6_hdr(skb)->payload_len) > skb->len - thoff))
ntohs             239 net/ipv6/ip6_input.c 	pkt_len = ntohs(hdr->payload_len);
ntohs             143 net/ipv6/ip6_offload.c 			offset += (ntohs(ipv6h->payload_len) -
ntohs             210 net/ipv6/ip6_offload.c 	flush += ntohs(iph->payload_len) != skb_gro_len(skb);
ntohs             462 net/ipv6/ip6_output.c 		if (ip6_call_ra_chain(skb, ntohs(opt->ra)))
ntohs             536 net/ipv6/ip6_tunnel.c 		len = sizeof(*ipv6h) + ntohs(ipv6h->payload_len);
ntohs             620 net/ipv6/ip6_vti.c 		spi = htonl(ntohs(ipch->cpi));
ntohs             548 net/ipv6/ip6mr.c 	    ntohs(encap->payload_len) + sizeof(*pim) > skb->len)
ntohs              58 net/ipv6/ipcomp6.c 	spi = htonl(ntohs(ipcomph->cpi));
ntohs            1284 net/ipv6/mcast.c 	mldv1_md = ntohs(mld->mld_maxdelay);
ntohs            1352 net/ipv6/mcast.c 	len = ntohs(ipv6_hdr(skb)->payload_len) + sizeof(struct ipv6hdr);
ntohs            1410 net/ipv6/mcast.c 			    ntohs(mlh2->mld2q_nsrcs) * sizeof(struct in6_addr)))
ntohs            1444 net/ipv6/mcast.c 			    mld_marksources(ma, ntohs(mlh2->mld2q_nsrcs), mlh2->mld2q_srcs))
ntohs            1723 net/ipv6/mcast.c 	pmr->mld2r_ngrec = htons(ntohs(pmr->mld2r_ngrec)+1);
ntohs              28 net/ipv6/mcast_snoop.c 	len = offset + ntohs(ip6h->payload_len);
ntohs            1280 net/ipv6/ndisc.c 	lifetime = ntohs(ra_msg->icmph.icmp6_rt_lifetime);
ntohs              57 net/ipv6/netfilter/ip6t_frag.c 	pr_debug("OFFSET %04X ", ntohs(fh->frag_off) & ~0x7);
ntohs              58 net/ipv6/netfilter/ip6t_frag.c 	pr_debug("RES %02X %04X", fh->reserved, ntohs(fh->frag_off) & 0x6);
ntohs              69 net/ipv6/netfilter/ip6t_frag.c 		 ntohs(fh->frag_off) & 0x6,
ntohs              71 net/ipv6/netfilter/ip6t_frag.c 		   (fh->reserved || (ntohs(fh->frag_off) & 0x06))));
ntohs              74 net/ipv6/netfilter/ip6t_frag.c 		 ntohs(fh->frag_off) & ~0x7,
ntohs              76 net/ipv6/netfilter/ip6t_frag.c 		   (ntohs(fh->frag_off) & ~0x7)));
ntohs              79 net/ipv6/netfilter/ip6t_frag.c 		 ntohs(fh->frag_off) & IP6_MF,
ntohs              81 net/ipv6/netfilter/ip6t_frag.c 		   !((ntohs(fh->frag_off) & IP6_MF))));
ntohs              84 net/ipv6/netfilter/ip6t_frag.c 		 ntohs(fh->frag_off) & IP6_MF,
ntohs              86 net/ipv6/netfilter/ip6t_frag.c 		   (ntohs(fh->frag_off) & IP6_MF)));
ntohs              93 net/ipv6/netfilter/ip6t_frag.c 		  (fh->reserved || (ntohs(fh->frag_off) & 0x6))) &&
ntohs              95 net/ipv6/netfilter/ip6t_frag.c 		  (ntohs(fh->frag_off) & ~0x7)) &&
ntohs              97 net/ipv6/netfilter/ip6t_frag.c 		  !(ntohs(fh->frag_off) & IP6_MF)) &&
ntohs              99 net/ipv6/netfilter/ip6t_frag.c 		  (ntohs(fh->frag_off) & IP6_MF));
ntohs             183 net/ipv6/netfilter/nf_conntrack_reasm.c 	payload_len = ntohs(ipv6_hdr(skb)->payload_len);
ntohs             185 net/ipv6/netfilter/nf_conntrack_reasm.c 	offset = ntohs(fhdr->frag_off) & ~0x7;
ntohs              65 net/ipv6/netfilter/nf_log_ipv6.c 	       ntohs(ih->payload_len) + sizeof(struct ipv6hdr),
ntohs             101 net/ipv6/netfilter/nf_log_ipv6.c 			nf_log_buf_add(m, "%u ", ntohs(fh->frag_off) & 0xFFF8);
ntohs             110 net/ipv6/netfilter/nf_log_ipv6.c 			if (ntohs(fh->frag_off) & 0xFFF8)
ntohs             239 net/ipv6/netfilter/nf_log_ipv6.c 				ntohs(ic->icmp6_identifier),
ntohs             240 net/ipv6/netfilter/nf_log_ipv6.c 				ntohs(ic->icmp6_sequence));
ntohs             302 net/ipv6/netfilter/nf_log_ipv6.c 		       ntohs(eth_hdr(skb)->h_proto));
ntohs             205 net/ipv6/netfilter/nf_reject_ipv6.c 		if (dev_hard_header(nskb, nskb->dev, ntohs(nskb->protocol),
ntohs              99 net/ipv6/netfilter/nf_tproxy_ipv6.c 						   daddr, ntohs(dport),
ntohs             112 net/ipv6/netfilter/nf_tproxy_ipv6.c 							saddr, sport, daddr, ntohs(dport),
ntohs             145 net/ipv6/netfilter/nf_tproxy_ipv6.c 		 protocol, saddr, ntohs(sport), daddr, ntohs(dport), lookup_type, sk);
ntohs             204 net/ipv6/ping.c 		__u16 srcp = ntohs(inet->inet_sport);
ntohs             205 net/ipv6/ping.c 		__u16 destp = ntohs(inet->inet_dport);
ntohs             823 net/ipv6/raw.c 		proto = ntohs(sin6->sin6_port);
ntohs             119 net/ipv6/reassembly.c 	offset = ntohs(fhdr->frag_off) & ~0x7;
ntohs             120 net/ipv6/reassembly.c 	end = offset + (ntohs(ipv6_hdr(skb)->payload_len) -
ntohs             186 net/ipv6/syncookies.c 	ireq->ir_num = ntohs(th->dest);
ntohs             376 net/ipv6/tcp_ipv6.c 					&hdr->saddr, ntohs(th->source),
ntohs             737 net/ipv6/tcp_ipv6.c 				     &ip6h->saddr, ntohs(th->source),
ntohs             738 net/ipv6/tcp_ipv6.c 				     &ip6h->daddr, ntohs(th->dest));
ntohs             967 net/ipv6/tcp_ipv6.c 					   ntohs(th->source),
ntohs            1671 net/ipv6/tcp_ipv6.c 					    ntohs(th->dest),
ntohs            1719 net/ipv6/tcp_ipv6.c 					&hdr->daddr, ntohs(th->dest),
ntohs            1845 net/ipv6/tcp_ipv6.c 		   ntohs(inet_rsk(req)->ir_rmt_port),
ntohs            1873 net/ipv6/tcp_ipv6.c 	destp = ntohs(inet->inet_dport);
ntohs            1874 net/ipv6/tcp_ipv6.c 	srcp  = ntohs(inet->inet_sport);
ntohs            1939 net/ipv6/tcp_ipv6.c 	destp = ntohs(tw->tw_dport);
ntohs            1940 net/ipv6/tcp_ipv6.c 	srcp  = ntohs(tw->tw_sport);
ntohs             185 net/ipv6/udp.c 	unsigned short hnum = ntohs(dport);
ntohs             735 net/ipv6/udp.c 			    &ipv6_hdr(skb)->saddr, ntohs(udp_hdr(skb)->source),
ntohs             736 net/ipv6/udp.c 			    &ipv6_hdr(skb)->daddr, ntohs(udp_hdr(skb)->dest));
ntohs             749 net/ipv6/udp.c 	unsigned short hnum = ntohs(uh->dest);
ntohs             856 net/ipv6/udp.c 	ulen = ntohs(uh->len);
ntohs             934 net/ipv6/udp.c 			    saddr, ntohs(uh->source),
ntohs             936 net/ipv6/udp.c 			    daddr, ntohs(uh->dest));
ntohs             955 net/ipv6/udp.c 	unsigned short hnum = ntohs(loc_port);
ntohs            1617 net/ipv6/udp.c 		__u16 srcp = ntohs(inet->inet_sport);
ntohs            1618 net/ipv6/udp.c 		__u16 destp = ntohs(inet->inet_dport);
ntohs             653 net/l2tp/l2tp_core.c 			ns = ntohs(*(__be16 *) ptr);
ntohs             655 net/l2tp/l2tp_core.c 			nr = ntohs(*(__be16 *) ptr);
ntohs             733 net/l2tp/l2tp_core.c 			offset = ntohs(*(__be16 *)ptr);
ntohs             833 net/l2tp/l2tp_core.c 	hdrflags = ntohs(*(__be16 *) ptr);
ntohs             864 net/l2tp/l2tp_core.c 		tunnel_id = ntohs(*(__be16 *) ptr);
ntohs             866 net/l2tp/l2tp_core.c 		session_id = ntohs(*(__be16 *) ptr);
ntohs             158 net/l2tp/l2tp_debugfs.c 				   ntohs(inet->inet_sport), ntohs(inet->inet_dport));
ntohs             405 net/l2tp/l2tp_netlink.c 		if (nla_put_u16(skb, L2TP_ATTR_UDP_SPORT, ntohs(inet->inet_sport)) ||
ntohs             406 net/l2tp/l2tp_netlink.c 		    nla_put_u16(skb, L2TP_ATTR_UDP_DPORT, ntohs(inet->inet_dport)))
ntohs            1555 net/l2tp/l2tp_ppp.c 		port = ntohs(inet->inet_sport);
ntohs             131 net/llc/llc_input.c 		s32 data_size = ntohs(pdulen) - llc_len;
ntohs             161 net/llc/llc_s_ac.c 	data_size = ntohs(eth_hdr(skb)->h_proto) - 3;
ntohs              81 net/llc/llc_station.c 	data_size = ntohs(eth_hdr(skb)->h_proto) - 3;
ntohs              27 net/ncsi/ncsi-aen.c 	if (ntohs(h->common.length) != payload)
ntohs             459 net/ncsi/ncsi-netlink.c 	nca.payload = ntohs(hdr->length);
ntohs              40 net/ncsi/ncsi-rsp.c 	if (ntohs(h->common.length) != payload) {
ntohs              47 net/ncsi/ncsi-rsp.c 	if (ntohs(h->code) != NCSI_PKT_RSP_C_COMPLETED ||
ntohs              48 net/ncsi/ncsi-rsp.c 	    ntohs(h->reason) != NCSI_PKT_RSP_R_NO_ERROR) {
ntohs              51 net/ncsi/ncsi-rsp.c 			    ntohs(h->code), ntohs(h->reason));
ntohs             376 net/ncsi/ncsi-rsp.c 		ncf->vids[cmd->index - 1] = ntohs(cmd->vlan);
ntohs             759 net/ncsi/ncsi-rsp.c 		ncv->pci_ids[i] = ntohs(rsp->pci_ids[i]);
ntohs             873 net/ncsi/ncsi-rsp.c 	enable = ntohs(rsp->vlan_enable);
ntohs             883 net/ncsi/ncsi-rsp.c 		ncvf->vids[i] = ntohs(*(__be16 *)pdata);
ntohs            1164 net/ncsi/ncsi-rsp.c 		payload = ntohs(hdr->length);
ntohs             115 net/netfilter/ipset/ip_set_bitmap_port.c 	port = ntohs(__port);
ntohs             109 net/netfilter/ipset/ip_set_getport.c 	if (ntohs(iph->frag_off) & IP_OFFSET)
ntohs             168 net/netfilter/ipset/ip_set_hash_ipport.c 	port_to = port = ntohs(e.port);
ntohs             178 net/netfilter/ipset/ip_set_hash_ipport.c 		p = retried && ip == ntohl(h->next.ip) ? ntohs(h->next.port)
ntohs             317 net/netfilter/ipset/ip_set_hash_ipport.c 	port = ntohs(e.port);
ntohs             323 net/netfilter/ipset/ip_set_hash_ipport.c 		port = ntohs(h->next.port);
ntohs             175 net/netfilter/ipset/ip_set_hash_ipportip.c 	port_to = port = ntohs(e.port);
ntohs             185 net/netfilter/ipset/ip_set_hash_ipportip.c 		p = retried && ip == ntohl(h->next.ip) ? ntohs(h->next.port)
ntohs             332 net/netfilter/ipset/ip_set_hash_ipportip.c 	port = ntohs(e.port);
ntohs             338 net/netfilter/ipset/ip_set_hash_ipportip.c 		port = ntohs(h->next.port);
ntohs             248 net/netfilter/ipset/ip_set_hash_ipportnet.c 	port_to = port = ntohs(e.port);
ntohs             270 net/netfilter/ipset/ip_set_hash_ipportnet.c 		p = ntohs(h->next.port);
ntohs             488 net/netfilter/ipset/ip_set_hash_ipportnet.c 	port = ntohs(e.port);
ntohs             494 net/netfilter/ipset/ip_set_hash_ipportnet.c 		port = ntohs(h->next.port);
ntohs             220 net/netfilter/ipset/ip_set_hash_netport.c 	port = port_to = ntohs(e.port);
ntohs             240 net/netfilter/ipset/ip_set_hash_netport.c 		p = ntohs(h->next.port);
ntohs             436 net/netfilter/ipset/ip_set_hash_netport.c 	port = ntohs(e.port);
ntohs             442 net/netfilter/ipset/ip_set_hash_netport.c 		port = ntohs(h->next.port);
ntohs             267 net/netfilter/ipset/ip_set_hash_netportnet.c 	port_to = port = ntohs(e.port);
ntohs             289 net/netfilter/ipset/ip_set_hash_netportnet.c 		p = ntohs(h->next.port);
ntohs             533 net/netfilter/ipset/ip_set_hash_netportnet.c 	port = ntohs(e.port);
ntohs             539 net/netfilter/ipset/ip_set_hash_netportnet.c 		port = ntohs(h->next.port);
ntohs             111 net/netfilter/ipvs/ip_vs_app.c 		  pp->name, inc->name, ntohs(inc->port));
ntohs             136 net/netfilter/ipvs/ip_vs_app.c 		  pp->name, inc->name, ntohs(inc->port));
ntohs             584 net/netfilter/ipvs/ip_vs_app.c 			   ntohs(inc->port),
ntohs             306 net/netfilter/ipvs/ip_vs_conn.c 		      IP_VS_DBG_ADDR(p->af, p->caddr), ntohs(p->cport),
ntohs             307 net/netfilter/ipvs/ip_vs_conn.c 		      IP_VS_DBG_ADDR(p->af, p->vaddr), ntohs(p->vport),
ntohs             390 net/netfilter/ipvs/ip_vs_conn.c 		      IP_VS_DBG_ADDR(p->af, p->caddr), ntohs(p->cport),
ntohs             391 net/netfilter/ipvs/ip_vs_conn.c 		      IP_VS_DBG_ADDR(p->af, p->vaddr), ntohs(p->vport),
ntohs             432 net/netfilter/ipvs/ip_vs_conn.c 		      IP_VS_DBG_ADDR(p->af, p->caddr), ntohs(p->cport),
ntohs             433 net/netfilter/ipvs/ip_vs_conn.c 		      IP_VS_DBG_ADDR(p->af, p->vaddr), ntohs(p->vport),
ntohs             606 net/netfilter/ipvs/ip_vs_conn.c 		      IP_VS_DBG_ADDR(cp->af, &cp->caddr), ntohs(cp->cport),
ntohs             607 net/netfilter/ipvs/ip_vs_conn.c 		      IP_VS_DBG_ADDR(cp->af, &cp->vaddr), ntohs(cp->vport),
ntohs             608 net/netfilter/ipvs/ip_vs_conn.c 		      IP_VS_DBG_ADDR(cp->daf, &cp->daddr), ntohs(cp->dport),
ntohs             703 net/netfilter/ipvs/ip_vs_conn.c 		      IP_VS_DBG_ADDR(cp->af, &cp->caddr), ntohs(cp->cport),
ntohs             704 net/netfilter/ipvs/ip_vs_conn.c 		      IP_VS_DBG_ADDR(cp->af, &cp->vaddr), ntohs(cp->vport),
ntohs             705 net/netfilter/ipvs/ip_vs_conn.c 		      IP_VS_DBG_ADDR(cp->daf, &cp->daddr), ntohs(cp->dport),
ntohs             772 net/netfilter/ipvs/ip_vs_conn.c 			      ntohs(ct->cport),
ntohs             774 net/netfilter/ipvs/ip_vs_conn.c 			      ntohs(ct->vport),
ntohs             776 net/netfilter/ipvs/ip_vs_conn.c 			      ntohs(ct->dport));
ntohs            1117 net/netfilter/ipvs/ip_vs_conn.c 				&cp->caddr.in6, ntohs(cp->cport),
ntohs            1118 net/netfilter/ipvs/ip_vs_conn.c 				&cp->vaddr.in6, ntohs(cp->vport),
ntohs            1119 net/netfilter/ipvs/ip_vs_conn.c 				dbuf, ntohs(cp->dport),
ntohs            1130 net/netfilter/ipvs/ip_vs_conn.c 				ntohl(cp->caddr.ip), ntohs(cp->cport),
ntohs            1131 net/netfilter/ipvs/ip_vs_conn.c 				ntohl(cp->vaddr.ip), ntohs(cp->vport),
ntohs            1132 net/netfilter/ipvs/ip_vs_conn.c 				dbuf, ntohs(cp->dport),
ntohs            1183 net/netfilter/ipvs/ip_vs_conn.c 				&cp->caddr.in6, ntohs(cp->cport),
ntohs            1184 net/netfilter/ipvs/ip_vs_conn.c 				&cp->vaddr.in6, ntohs(cp->vport),
ntohs            1185 net/netfilter/ipvs/ip_vs_conn.c 				dbuf, ntohs(cp->dport),
ntohs            1196 net/netfilter/ipvs/ip_vs_conn.c 				ntohl(cp->caddr.ip), ntohs(cp->cport),
ntohs            1197 net/netfilter/ipvs/ip_vs_conn.c 				ntohl(cp->vaddr.ip), ntohs(cp->vport),
ntohs            1198 net/netfilter/ipvs/ip_vs_conn.c 				dbuf, ntohs(cp->dport),
ntohs             300 net/netfilter/ipvs/ip_vs_core.c 		      IP_VS_DBG_ADDR(svc->af, src_addr), ntohs(src_port),
ntohs             301 net/netfilter/ipvs/ip_vs_core.c 		      IP_VS_DBG_ADDR(svc->af, dst_addr), ntohs(dst_port),
ntohs             573 net/netfilter/ipvs/ip_vs_core.c 		      IP_VS_DBG_ADDR(cp->af, &cp->caddr), ntohs(cp->cport),
ntohs             574 net/netfilter/ipvs/ip_vs_core.c 		      IP_VS_DBG_ADDR(cp->af, &cp->vaddr), ntohs(cp->vport),
ntohs             575 net/netfilter/ipvs/ip_vs_core.c 		      IP_VS_DBG_ADDR(cp->daf, &cp->daddr), ntohs(cp->dport),
ntohs             844 net/netfilter/ipvs/ip_vs_core.c 			      ntohs(inout ? ports[1] : ports[0]),
ntohs             845 net/netfilter/ipvs/ip_vs_core.c 			      ntohs(inout ? cp->vport : cp->dport));
ntohs             960 net/netfilter/ipvs/ip_vs_core.c 		  ic->type, ntohs(icmp_id(ic)),
ntohs            1043 net/netfilter/ipvs/ip_vs_core.c 		  ic->icmp6_type, ntohs(icmpv6_id(ic)),
ntohs            1226 net/netfilter/ipvs/ip_vs_core.c 		      IP_VS_DBG_ADDR(cp->af, &cp->caddr), ntohs(cp->cport),
ntohs            1227 net/netfilter/ipvs/ip_vs_core.c 		      IP_VS_DBG_ADDR(cp->af, &cp->vaddr), ntohs(cp->vport),
ntohs            1228 net/netfilter/ipvs/ip_vs_core.c 		      IP_VS_DBG_ADDR(cp->af, &cp->daddr), ntohs(cp->dport),
ntohs            1682 net/netfilter/ipvs/ip_vs_core.c 		  ic->type, ntohs(icmp_id(ic)),
ntohs            1809 net/netfilter/ipvs/ip_vs_core.c 			u32 mtu = ntohs(ic->un.frag.mtu);
ntohs            1907 net/netfilter/ipvs/ip_vs_core.c 		  ic->icmp6_type, ntohs(icmpv6_id(ic)),
ntohs             264 net/netfilter/ipvs/ip_vs_ctl.c 	unsigned int porth = ntohs(port);
ntohs             426 net/netfilter/ipvs/ip_vs_ctl.c 	    (vport == FTPDATA || ntohs(vport) >= inet_prot_sock(ipvs->net))) {
ntohs             445 net/netfilter/ipvs/ip_vs_ctl.c 		      IP_VS_DBG_ADDR(af, vaddr), ntohs(vport),
ntohs             479 net/netfilter/ipvs/ip_vs_ctl.c 			      ntohs(svc->port));
ntohs             495 net/netfilter/ipvs/ip_vs_ctl.c 	unsigned int porth = ntohs(port);
ntohs             746 net/netfilter/ipvs/ip_vs_ctl.c 			      ntohs(dest->port),
ntohs            1074 net/netfilter/ipvs/ip_vs_ctl.c 			      IP_VS_DBG_ADDR(udest->af, &daddr), ntohs(dport),
ntohs            1078 net/netfilter/ipvs/ip_vs_ctl.c 			      ntohs(dest->vport));
ntohs            1157 net/netfilter/ipvs/ip_vs_ctl.c 		      IP_VS_DBG_ADDR(dest->af, &dest->addr), ntohs(dest->port),
ntohs            1254 net/netfilter/ipvs/ip_vs_ctl.c 			      ntohs(dest->port));
ntohs            1634 net/netfilter/ipvs/ip_vs_ctl.c 			      ntohs(dest->port),
ntohs            2143 net/netfilter/ipvs/ip_vs_ctl.c 					   ntohs(svc->port),
ntohs            2150 net/netfilter/ipvs/ip_vs_ctl.c 					   ntohs(svc->port),
ntohs            2173 net/netfilter/ipvs/ip_vs_ctl.c 					   ntohs(dest->port),
ntohs            2184 net/netfilter/ipvs/ip_vs_ctl.c 					   ntohs(dest->port),
ntohs            2498 net/netfilter/ipvs/ip_vs_ctl.c 		       ntohs(usvc.port));
ntohs             234 net/netfilter/ipvs/ip_vs_dh.c 		      ntohs(dest->port));
ntohs              43 net/netfilter/ipvs/ip_vs_fo.c 			      ntohs(hweight->port),
ntohs             289 net/netfilter/ipvs/ip_vs_ftp.c 			  &from.ip, ntohs(port), &cp->caddr.ip, 0);
ntohs             310 net/netfilter/ipvs/ip_vs_ftp.c 			      IP_VS_DBG_ADDR(cp->af, &from), ntohs(port),
ntohs             351 net/netfilter/ipvs/ip_vs_ftp.c 			 ntohs(port) >> 8,
ntohs             352 net/netfilter/ipvs/ip_vs_ftp.c 			 ntohs(port) & 0xFF);
ntohs             358 net/netfilter/ipvs/ip_vs_ftp.c 			 ntohs(port));
ntohs             499 net/netfilter/ipvs/ip_vs_ftp.c 		IP_VS_DBG(7, "PORT %pI4:%u detected\n", &to.ip, ntohs(port));
ntohs             504 net/netfilter/ipvs/ip_vs_ftp.c 			  &to.ip, ntohs(port), &cp->vaddr.ip,
ntohs             505 net/netfilter/ipvs/ip_vs_ftp.c 			  ntohs(cp->vport)-1);
ntohs             514 net/netfilter/ipvs/ip_vs_ftp.c 			      IP_VS_DBG_ADDR(cp->af, &to), ntohs(port));
ntohs             519 net/netfilter/ipvs/ip_vs_ftp.c 			      IP_VS_DBG_ADDR(cp->af, &to), ntohs(port),
ntohs             521 net/netfilter/ipvs/ip_vs_ftp.c 			      ntohs(cp->vport)-1);
ntohs             533 net/netfilter/ipvs/ip_vs_ftp.c 				      htons(ntohs(cp->vport)-1), &p);
ntohs             537 net/netfilter/ipvs/ip_vs_ftp.c 					      htons(ntohs(cp->dport)-1),
ntohs             447 net/netfilter/ipvs/ip_vs_lblc.c 		      ntohs(least->port),
ntohs             527 net/netfilter/ipvs/ip_vs_lblc.c 		      IP_VS_DBG_ADDR(dest->af, &dest->addr), ntohs(dest->port));
ntohs             201 net/netfilter/ipvs/ip_vs_lblcr.c 		      ntohs(least->port),
ntohs             246 net/netfilter/ipvs/ip_vs_lblcr.c 		      IP_VS_DBG_ADDR(most->af, &most->addr), ntohs(most->port),
ntohs             611 net/netfilter/ipvs/ip_vs_lblcr.c 		      ntohs(least->port),
ntohs             712 net/netfilter/ipvs/ip_vs_lblcr.c 		      IP_VS_DBG_ADDR(dest->af, &dest->addr), ntohs(dest->port));
ntohs              58 net/netfilter/ipvs/ip_vs_lc.c 			      ntohs(least->port),
ntohs             100 net/netfilter/ipvs/ip_vs_mh.c 	v = (offset + ntohs(port) + ntohl(addr_fold));
ntohs             265 net/netfilter/ipvs/ip_vs_mh.c 		      IP_VS_DBG_ADDR(dest->af, &dest->addr), ntohs(dest->port));
ntohs             282 net/netfilter/ipvs/ip_vs_mh.c 			      ntohs(dest->port), roffset);
ntohs             313 net/netfilter/ipvs/ip_vs_mh.c 		      ntohs(svc->port));
ntohs             504 net/netfilter/ipvs/ip_vs_mh.c 		      ntohs(port),
ntohs             506 net/netfilter/ipvs/ip_vs_mh.c 		      ntohs(dest->port));
ntohs              56 net/netfilter/ipvs/ip_vs_nfct.c 			ntohs((T)->src.u.all),				\
ntohs              58 net/netfilter/ipvs/ip_vs_nfct.c 			ntohs((T)->dst.u.all),				\
ntohs              63 net/netfilter/ipvs/ip_vs_nfct.c 			ntohs((C)->cport),				\
ntohs              65 net/netfilter/ipvs/ip_vs_nfct.c 			ntohs((C)->vport),				\
ntohs              67 net/netfilter/ipvs/ip_vs_nfct.c 			ntohs((C)->dport),				\
ntohs             106 net/netfilter/ipvs/ip_vs_nq.c 		      ntohs(least->port),
ntohs              50 net/netfilter/ipvs/ip_vs_ovf.c 			      ntohs(h->port),
ntohs             129 net/netfilter/ipvs/ip_vs_pe_sip.c 		      IP_VS_DBG_ADDR(p->af, p->vaddr), ntohs(p->vport),
ntohs             238 net/netfilter/ipvs/ip_vs_proto.c 				&ih->saddr, ntohs(pptr[0]),
ntohs             239 net/netfilter/ipvs/ip_vs_proto.c 				&ih->daddr, ntohs(pptr[1]));
ntohs             270 net/netfilter/ipvs/ip_vs_proto.c 				&ih->saddr, ntohs(pptr[0]),
ntohs             271 net/netfilter/ipvs/ip_vs_proto.c 				&ih->daddr, ntohs(pptr[1]));
ntohs             411 net/netfilter/ipvs/ip_vs_proto_sctp.c 		int clen = ntohs(sch->length);
ntohs             445 net/netfilter/ipvs/ip_vs_proto_sctp.c 				ntohs(cp->dport),
ntohs             447 net/netfilter/ipvs/ip_vs_proto_sctp.c 				ntohs(cp->cport),
ntohs             541 net/netfilter/ipvs/ip_vs_proto_sctp.c 					ntohs(cp->cport),
ntohs             543 net/netfilter/ipvs/ip_vs_proto_sctp.c 					ntohs(cp->vport),
ntohs             544 net/netfilter/ipvs/ip_vs_proto_sctp.c 					inc->name, ntohs(inc->port));
ntohs             552 net/netfilter/ipvs/ip_vs_proto_tcp.c 			      ntohs(cp->dport),
ntohs             554 net/netfilter/ipvs/ip_vs_proto_tcp.c 			      ntohs(cp->cport),
ntohs             672 net/netfilter/ipvs/ip_vs_proto_tcp.c 				      ntohs(cp->cport),
ntohs             674 net/netfilter/ipvs/ip_vs_proto_tcp.c 				      ntohs(cp->vport),
ntohs             675 net/netfilter/ipvs/ip_vs_proto_tcp.c 				      inc->name, ntohs(inc->port));
ntohs             418 net/netfilter/ipvs/ip_vs_proto_udp.c 				      ntohs(cp->cport),
ntohs             420 net/netfilter/ipvs/ip_vs_proto_udp.c 				      ntohs(cp->vport),
ntohs             421 net/netfilter/ipvs/ip_vs_proto_udp.c 				      inc->name, ntohs(inc->port));
ntohs              93 net/netfilter/ipvs/ip_vs_rr.c 		      IP_VS_DBG_ADDR(dest->af, &dest->addr), ntohs(dest->port),
ntohs             155 net/netfilter/ipvs/ip_vs_sched.c 			     &svc->addr.in6, ntohs(svc->port), msg);
ntohs             160 net/netfilter/ipvs/ip_vs_sched.c 			     &svc->addr.ip, ntohs(svc->port), msg);
ntohs             107 net/netfilter/ipvs/ip_vs_sed.c 		      ntohs(least->port),
ntohs              94 net/netfilter/ipvs/ip_vs_sh.c 	return (offset + hash_32(ntohs(port) + ntohl(addr_fold),
ntohs             137 net/netfilter/ipvs/ip_vs_sh.c 		      IP_VS_DBG_ADDR(dest->af, &dest->addr), ntohs(dest->port));
ntohs             153 net/netfilter/ipvs/ip_vs_sh.c 			      ntohs(dest->port), roffset);
ntohs             339 net/netfilter/ipvs/ip_vs_sh.c 		      ntohs(dest->port));
ntohs             613 net/netfilter/ipvs/ip_vs_sync.c 	m->size = htons(ntohs(m->size) + len);
ntohs             717 net/netfilter/ipvs/ip_vs_sync.c 	m->size = htons(ntohs(m->size) + pad + len);
ntohs             982 net/netfilter/ipvs/ip_vs_sync.c 		flags = ntohs(s->flags) | IP_VS_CONN_F_SYNC;
ntohs             996 net/netfilter/ipvs/ip_vs_sync.c 		state = ntohs(s->state);
ntohs            1153 net/netfilter/ipvs/ip_vs_sync.c 	state = ntohs(s->v4.state);
ntohs            1219 net/netfilter/ipvs/ip_vs_sync.c 	if (buflen != ntohs(m2->size)) {
ntohs            1246 net/netfilter/ipvs/ip_vs_sync.c 			size = ntohs(s->v4.ver_size) & SVER_MASK;
ntohs            1253 net/netfilter/ipvs/ip_vs_sync.c 			if (ntohs(s->v4.ver_size) >> SVER_SHIFT) {
ntohs            1255 net/netfilter/ipvs/ip_vs_sync.c 					      ntohs(s->v4.ver_size) >> SVER_SHIFT);
ntohs            1604 net/netfilter/ipvs/ip_vs_sync.c 	msize = ntohs(msg->size);
ntohs              79 net/netfilter/ipvs/ip_vs_wlc.c 		      ntohs(least->port),
ntohs             214 net/netfilter/ipvs/ip_vs_wrr.c 		      IP_VS_DBG_ADDR(dest->af, &dest->addr), ntohs(dest->port),
ntohs             781 net/netfilter/ipvs/ip_vs_xmit.c 		IP_VS_DBG(10, "filled cport=%d\n", ntohs(*p));
ntohs             868 net/netfilter/ipvs/ip_vs_xmit.c 		IP_VS_DBG(10, "filled cport=%d\n", ntohs(*p));
ntohs             977 net/netfilter/ipvs/ip_vs_xmit.c 				ntohs(old_ipv6h->payload_len) +
ntohs             997 net/netfilter/ipvs/ip_vs_xmit.c 			*payload_len = ntohs(old_iph->tot_len);
ntohs             870 net/netfilter/nf_conntrack_h323_main.c 			 &addr, ntohs(port), &ct->tuplehash[!dir].tuple.src.u3,
ntohs             871 net/netfilter/nf_conntrack_h323_main.c 			 ntohs(ct->tuplehash[!dir].tuple.src.u.tcp.port));
ntohs             887 net/netfilter/nf_conntrack_h323_main.c 			 &addr, ntohs(port), &ct->tuplehash[!dir].tuple.dst.u3,
ntohs             888 net/netfilter/nf_conntrack_h323_main.c 			 ntohs(ct->tuplehash[!dir].tuple.dst.u.tcp.port));
ntohs             163 net/netfilter/nf_conntrack_irc.c 			 &iph->saddr, ntohs(th->source),
ntohs             164 net/netfilter/nf_conntrack_irc.c 			 &iph->daddr, ntohs(th->dest));
ntohs            1091 net/netfilter/nf_conntrack_netlink.c 		zone->id = ntohs(nla_get_be16(attr));
ntohs             286 net/netfilter/nf_conntrack_pptp.c 	msg = ntohs(ctlh->messageType);
ntohs             323 net/netfilter/nf_conntrack_pptp.c 			 ntohs(cid), ntohs(pcid));
ntohs             339 net/netfilter/nf_conntrack_pptp.c 		pr_debug("%s, CID=%X\n", pptp_msg_name(msg), ntohs(cid));
ntohs             358 net/netfilter/nf_conntrack_pptp.c 		pr_debug("%s, PCID=%X\n", pptp_msg_name(msg), ntohs(pcid));
ntohs             368 net/netfilter/nf_conntrack_pptp.c 		pr_debug("%s, CID=%X\n", pptp_msg_name(msg), ntohs(cid));
ntohs             396 net/netfilter/nf_conntrack_pptp.c 		 msg, ntohs(cid), ntohs(pcid),  info->cstate, info->sstate,
ntohs             397 net/netfilter/nf_conntrack_pptp.c 		 ntohs(info->pns_call_id), ntohs(info->pac_call_id));
ntohs             414 net/netfilter/nf_conntrack_pptp.c 	msg = ntohs(ctlh->messageType);
ntohs             437 net/netfilter/nf_conntrack_pptp.c 		pr_debug("%s, CID=%X\n", pptp_msg_name(msg), ntohs(cid));
ntohs             452 net/netfilter/nf_conntrack_pptp.c 			 ntohs(cid), ntohs(pcid));
ntohs             492 net/netfilter/nf_conntrack_pptp.c 		 msg, ntohs(cid), ntohs(pcid),  info->cstate, info->sstate,
ntohs             493 net/netfilter/nf_conntrack_pptp.c 		 ntohs(info->pns_call_id), ntohs(info->pac_call_id));
ntohs             560 net/netfilter/nf_conntrack_pptp.c 	if (ntohs(pptph->packetType) != PPTP_PACKET_CONTROL ||
ntohs             573 net/netfilter/nf_conntrack_pptp.c 	msg = ntohs(ctlh->messageType);
ntohs             282 net/netfilter/nf_conntrack_proto.c 			 &sin.sin_addr.s_addr, ntohs(sin.sin_port));
ntohs             290 net/netfilter/nf_conntrack_proto.c 		 &tuple.src.u3.ip, ntohs(tuple.src.u.tcp.port),
ntohs             291 net/netfilter/nf_conntrack_proto.c 		 &tuple.dst.u3.ip, ntohs(tuple.dst.u.tcp.port));
ntohs             336 net/netfilter/nf_conntrack_proto.c 			 &tuple.src.u3.ip6, ntohs(tuple.src.u.tcp.port),
ntohs             337 net/netfilter/nf_conntrack_proto.c 			 &tuple.dst.u3.ip6, ntohs(tuple.dst.u.tcp.port));
ntohs             425 net/netfilter/nf_conntrack_proto_dccp.c 	return ((u64)ntohs(dhack->dccph_ack_nr_high) << 32) +
ntohs             188 net/netfilter/nf_conntrack_proto_gre.c 		pr_debug("Unsupported GRE proto(0x%x)\n", ntohs(grehdr->protocol));
ntohs             158 net/netfilter/nf_conntrack_proto_sctp.c 	(offset) += (ntohs((sch)->length) + 3) & ~3, (count)++)
ntohs             484 net/netfilter/nf_conntrack_proto_tcp.c 	win_raw = ntohs(tcph->window);
ntohs             783 net/netfilter/nf_conntrack_proto_tcp.c 		ct->proto.tcp.seen[0].td_maxwin = ntohs(th->window);
ntohs             803 net/netfilter/nf_conntrack_proto_tcp.c 		ct->proto.tcp.seen[0].td_maxwin = ntohs(th->window);
ntohs             951 net/netfilter/nf_conntrack_proto_tcp.c 		ct->proto.tcp.last_win = ntohs(th->window);
ntohs              61 net/netfilter/nf_conntrack_proto_udp.c 	if (ntohs(hdr->len) > udplen || ntohs(hdr->len) < sizeof(*hdr)) {
ntohs             150 net/netfilter/nf_conntrack_proto_udp.c 	cscov = ntohs(hdr->len);
ntohs             944 net/netfilter/nf_conntrack_sip.c 	base_port = ntohs(tuple.dst.u.udp.port) & ~1;
ntohs             952 net/netfilter/nf_conntrack_sip.c 				     mediaoff, medialen, ntohs(rtp_port)))
ntohs              56 net/netfilter/nf_conntrack_standalone.c 			   ntohs(tuple->src.u.icmp.id));
ntohs              60 net/netfilter/nf_conntrack_standalone.c 			   ntohs(tuple->src.u.tcp.port),
ntohs              61 net/netfilter/nf_conntrack_standalone.c 			   ntohs(tuple->dst.u.tcp.port));
ntohs              66 net/netfilter/nf_conntrack_standalone.c 			   ntohs(tuple->src.u.udp.port),
ntohs              67 net/netfilter/nf_conntrack_standalone.c 			   ntohs(tuple->dst.u.udp.port));
ntohs              72 net/netfilter/nf_conntrack_standalone.c 			   ntohs(tuple->src.u.dccp.port),
ntohs              73 net/netfilter/nf_conntrack_standalone.c 			   ntohs(tuple->dst.u.dccp.port));
ntohs              77 net/netfilter/nf_conntrack_standalone.c 			   ntohs(tuple->src.u.sctp.port),
ntohs              78 net/netfilter/nf_conntrack_standalone.c 			   ntohs(tuple->dst.u.sctp.port));
ntohs              84 net/netfilter/nf_conntrack_standalone.c 			   ntohs(tuple->src.u.icmp.id));
ntohs              88 net/netfilter/nf_conntrack_standalone.c 			   ntohs(tuple->src.u.gre.key),
ntohs              89 net/netfilter/nf_conntrack_standalone.c 			   ntohs(tuple->dst.u.gre.key));
ntohs              57 net/netfilter/nf_conntrack_tftp.c 	switch (ntohs(tfh->opcode)) {
ntohs              46 net/netfilter/nf_log_common.c 		       ntohs(uh->source), ntohs(uh->dest), ntohs(uh->len));
ntohs              75 net/netfilter/nf_log_common.c 		       ntohs(th->source), ntohs(th->dest));
ntohs              83 net/netfilter/nf_log_common.c 	nf_log_buf_add(m, "WINDOW=%u ", ntohs(th->window));
ntohs             105 net/netfilter/nf_log_common.c 	nf_log_buf_add(m, "URGP=%u ", ntohs(th->urg_ptr));
ntohs              47 net/netfilter/nf_nat_amanda.c 	for (port = ntohs(exp->saved_proto.tcp.port); port != 0; port++) {
ntohs             242 net/netfilter/nf_nat_core.c 		return ntohs(tuple->src.u.icmp.id) >= ntohs(min->icmp.id) &&
ntohs             243 net/netfilter/nf_nat_core.c 		       ntohs(tuple->src.u.icmp.id) <= ntohs(max->icmp.id);
ntohs             255 net/netfilter/nf_nat_core.c 		return ntohs(port) >= ntohs(min->all) &&
ntohs             256 net/netfilter/nf_nat_core.c 		       ntohs(port) <= ntohs(max->all);
ntohs             419 net/netfilter/nf_nat_core.c 			min = ntohs(range->min_proto.icmp.id);
ntohs             420 net/netfilter/nf_nat_core.c 			range_size = ntohs(range->max_proto.icmp.id) -
ntohs             421 net/netfilter/nf_nat_core.c 				     ntohs(range->min_proto.icmp.id) + 1;
ntohs             440 net/netfilter/nf_nat_core.c 			min = ntohs(range->min_proto.gre.key);
ntohs             441 net/netfilter/nf_nat_core.c 			range_size = ntohs(range->max_proto.gre.key) - min + 1;
ntohs             466 net/netfilter/nf_nat_core.c 		if (ntohs(*keyptr) < 1024) {
ntohs             468 net/netfilter/nf_nat_core.c 			if (ntohs(*keyptr) < 512) {
ntohs             480 net/netfilter/nf_nat_core.c 		min = ntohs(range->min_proto.all);
ntohs             481 net/netfilter/nf_nat_core.c 		max = ntohs(range->max_proto.all);
ntohs             489 net/netfilter/nf_nat_core.c 		off = (ntohs(*keyptr) - ntohs(range->base_proto.all));
ntohs              90 net/netfilter/nf_nat_ftp.c 	for (port = ntohs(exp->saved_proto.tcp.port); port != 0; port++) {
ntohs              52 net/netfilter/nf_nat_irc.c 	for (port = ntohs(exp->saved_proto.tcp.port); port != 0; port++) {
ntohs             306 net/netfilter/nf_nat_proto.c 		pr_debug("call_id -> 0x%04x\n", ntohs(tuple->dst.u.gre.key));
ntohs             122 net/netfilter/nf_nat_sip.c 	buflen = sip_sprintf_addr_port(ct, buffer, &newaddr, ntohs(newport));
ntohs             250 net/netfilter/nf_nat_sip.c 			buflen = sprintf(buffer, "%u", ntohs(p));
ntohs             403 net/netfilter/nf_nat_sip.c 		port = ntohs(ct->tuplehash[!dir].tuple.dst.u.udp.port);
ntohs             405 net/netfilter/nf_nat_sip.c 		port = ntohs(exp->tuple.dst.u.udp.port);
ntohs             605 net/netfilter/nf_nat_sip.c 	for (port = ntohs(rtp_exp->tuple.dst.u.udp.port);
ntohs             620 net/netfilter/nf_synproxy_core.c 	nth->window	= htons(ntohs(th->window) >> opts->wscale);
ntohs            1036 net/netfilter/nf_synproxy_core.c 	nth->window	= htons(ntohs(th->window) >> opts->wscale);
ntohs             541 net/netfilter/nfnetlink.c 		res_id = ntohs(nfgenmsg->res_id);
ntohs              89 net/netfilter/nfnetlink_cthelper.c 	tuple->src.l3num = ntohs(nla_get_be16(tb[NFCTH_TUPLE_L3PROTONUM]));
ntohs              94 net/netfilter/nfnetlink_cttimeout.c 	l3num = ntohs(nla_get_be16(cda[CTA_TIMEOUT_L3PROTO]));
ntohs             439 net/netfilter/nfnetlink_cttimeout.c 	l3num = ntohs(nla_get_be16(cda[CTA_TIMEOUT_L3PROTO]));
ntohs             878 net/netfilter/nfnetlink_log.c 	u_int16_t group_num = ntohs(nfmsg->res_id);
ntohs             909 net/netfilter/nfnetlink_log.c 		flags = ntohs(nla_get_be16(nfula[NFULA_CFG_FLAGS]));
ntohs             110 net/netfilter/nfnetlink_osf.c 				mss = ntohs((__force __be16)mss);
ntohs             180 net/netfilter/nfnetlink_osf.c 	ctx->totlen = ntohs(ip->tot_len);
ntohs             181 net/netfilter/nfnetlink_osf.c 	ctx->df = ntohs(ip->frag_off) & IP_DF;
ntohs             182 net/netfilter/nfnetlink_osf.c 	ctx->window = ntohs(tcp->window);
ntohs             237 net/netfilter/nfnetlink_osf.c 				      &ip->saddr, ntohs(tcp->source),
ntohs             238 net/netfilter/nfnetlink_osf.c 				      &ip->daddr, ntohs(tcp->dest),
ntohs             249 net/netfilter/nfnetlink_osf.c 			      &ip->saddr, ntohs(tcp->source),
ntohs             250 net/netfilter/nfnetlink_osf.c 			      &ip->daddr, ntohs(tcp->dest));
ntohs            1071 net/netfilter/nfnetlink_queue.c 	u16 queue_num = ntohs(nfmsg->res_id);
ntohs            1149 net/netfilter/nfnetlink_queue.c 			ntohs(nla_get_be16(tb[NFQA_VLAN_TCI])));
ntohs            1174 net/netfilter/nfnetlink_queue.c 	u_int16_t queue_num = ntohs(nfmsg->res_id);
ntohs            1260 net/netfilter/nfnetlink_queue.c 	u_int16_t queue_num = ntohs(nfmsg->res_id);
ntohs              76 net/netfilter/nft_byteorder.c 				d[i].u16 = ntohs((__force __be16)s[i].u16);
ntohs             876 net/netfilter/nft_ct.c 		l3num = ntohs(nla_get_be16(tb[NFTA_CT_TIMEOUT_L3PROTO]));
ntohs             996 net/netfilter/nft_ct.c 		family = ntohs(nla_get_be16(tb[NFTA_CT_HELPER_L3PROTO]));
ntohs            1179 net/netfilter/nft_ct.c 		priv->l3num = ntohs(nla_get_be16(tb[NFTA_CT_EXPECT_L3PROTO]));
ntohs             273 net/netfilter/nft_exthdr.c 				if (ntohs(old.v16) <= ntohs(new.v16))
ntohs              27 net/netfilter/nft_fib_netdev.c 	switch (ntohs(pkt->skb->protocol)) {
ntohs             183 net/netfilter/nft_log.c 		li->u.ulog.group = ntohs(nla_get_be16(tb[NFTA_LOG_GROUP]));
ntohs             191 net/netfilter/nft_log.c 				ntohs(nla_get_be16(tb[NFTA_LOG_QTHRESHOLD]));
ntohs              85 net/netfilter/nft_queue.c 	priv->queuenum = ntohs(nla_get_be16(tb[NFTA_QUEUE_NUM]));
ntohs              88 net/netfilter/nft_queue.c 		priv->queues_total = ntohs(nla_get_be16(tb[NFTA_QUEUE_TOTAL]));
ntohs             100 net/netfilter/nft_queue.c 		priv->flags = ntohs(nla_get_be16(tb[NFTA_QUEUE_FLAGS]));
ntohs             120 net/netfilter/nft_queue.c 		priv->flags = ntohs(nla_get_be16(tb[NFTA_QUEUE_FLAGS]));
ntohs             161 net/netfilter/nft_synproxy.c 		priv->info.mss = ntohs(nla_get_be16(tb[NFTA_SYNPROXY_MSS]));
ntohs              67 net/netfilter/xt_HMARK.c 	src = ntohs(hp.b16.src);
ntohs              68 net/netfilter/xt_HMARK.c 	dst = ntohs(hp.b16.dst);
ntohs             210 net/netfilter/xt_TCPMSS.c 		newlen = htons(ntohs(iph->tot_len) + ret);
ntohs             240 net/netfilter/xt_TCPMSS.c 		newlen = htons(ntohs(oldlen) + ret);
ntohs              79 net/netfilter/xt_TPROXY.c 			 iph->protocol, &iph->daddr, ntohs(hp->dest),
ntohs              80 net/netfilter/xt_TPROXY.c 			 &laddr, ntohs(lport), skb->mark);
ntohs              87 net/netfilter/xt_TPROXY.c 		 iph->protocol, &iph->saddr, ntohs(hp->source),
ntohs              88 net/netfilter/xt_TPROXY.c 		 &iph->daddr, ntohs(hp->dest), skb->mark);
ntohs             173 net/netfilter/xt_TPROXY.c 			 tproto, &iph->saddr, ntohs(hp->source),
ntohs             174 net/netfilter/xt_TPROXY.c 			 laddr, ntohs(lport), skb->mark);
ntohs             181 net/netfilter/xt_TPROXY.c 		 tproto, &iph->saddr, ntohs(hp->source),
ntohs             182 net/netfilter/xt_TPROXY.c 		 &iph->daddr, ntohs(hp->dest), skb->mark);
ntohs             134 net/netfilter/xt_conntrack.c 			ntohs(tuple->src.u.all),
ntohs             140 net/netfilter/xt_conntrack.c 			ntohs(tuple->dst.u.all),
ntohs             148 net/netfilter/xt_conntrack.c 			ntohs(tuple->src.u.all),
ntohs             154 net/netfilter/xt_conntrack.c 			ntohs(tuple->dst.u.all),
ntohs             111 net/netfilter/xt_dccp.c 	return  DCCHECK(ntohs(dh->dccph_sport) >= info->spts[0]
ntohs             112 net/netfilter/xt_dccp.c 			&& ntohs(dh->dccph_sport) <= info->spts[1],
ntohs             114 net/netfilter/xt_dccp.c 		&& DCCHECK(ntohs(dh->dccph_dport) >= info->dpts[0]
ntohs             115 net/netfilter/xt_dccp.c 			&& ntohs(dh->dccph_dport) <= info->dpts[1],
ntohs            1102 net/netfilter/xt_hashlimit.c 			   ntohs(ent->dst.src_port),
ntohs            1104 net/netfilter/xt_hashlimit.c 			   ntohs(ent->dst.dst_port),
ntohs            1113 net/netfilter/xt_hashlimit.c 			   ntohs(ent->dst.src_port),
ntohs            1115 net/netfilter/xt_hashlimit.c 			   ntohs(ent->dst.dst_port),
ntohs              61 net/netfilter/xt_ipcomp.c 			 ntohs(chdr->cpi),
ntohs              99 net/netfilter/xt_l2tp.c 	flags = ntohs(lh->val16[0]);
ntohs             126 net/netfilter/xt_l2tp.c 		data.tid = (u32) ntohs(lh->val16[0]);
ntohs             127 net/netfilter/xt_l2tp.c 		data.sid = (u32) ntohs(lh->val16[1]);
ntohs              24 net/netfilter/xt_length.c 	u_int16_t pktlen = ntohs(ip_hdr(skb)->tot_len);
ntohs              33 net/netfilter/xt_length.c 	const u_int16_t pktlen = ntohs(ipv6_hdr(skb)->payload_len) +
ntohs             105 net/netfilter/xt_multiport.c 	return ports_match_v1(multiinfo, ntohs(pptr[0]), ntohs(pptr[1]));
ntohs              72 net/netfilter/xt_sctp.c 		offset += SCTP_PAD4(ntohs(sch->length));
ntohs             136 net/netfilter/xt_sctp.c 	pr_debug("spt: %d\tdpt: %d\n", ntohs(sh->source), ntohs(sh->dest));
ntohs             138 net/netfilter/xt_sctp.c 	return  SCCHECK(ntohs(sh->source) >= info->spts[0]
ntohs             139 net/netfilter/xt_sctp.c 			&& ntohs(sh->source) <= info->spts[1],
ntohs             141 net/netfilter/xt_sctp.c 		SCCHECK(ntohs(sh->dest) >= info->dpts[0]
ntohs             142 net/netfilter/xt_sctp.c 			&& ntohs(sh->dest) <= info->dpts[1],
ntohs              97 net/netfilter/xt_tcpudp.c 			ntohs(th->source),
ntohs             101 net/netfilter/xt_tcpudp.c 			ntohs(th->dest),
ntohs             149 net/netfilter/xt_tcpudp.c 			  ntohs(uh->source),
ntohs             152 net/netfilter/xt_tcpudp.c 			      ntohs(uh->dest),
ntohs             233 net/openvswitch/actions.c 			     ntohs(vlan->vlan_tci) & ~VLAN_CFI_MASK);
ntohs             869 net/openvswitch/actions.c 			  ovs_vport_name(vport), ntohs(key->eth.type), mru,
ntohs             107 net/openvswitch/conntrack.c 	switch (ntohs(key->eth.type)) {
ntohs            1258 net/openvswitch/conntrack.c 		len = ntohs(ip_hdr(skb)->tot_len);
ntohs            1262 net/openvswitch/conntrack.c 			+ ntohs(ipv6_hdr(skb)->payload_len);
ntohs            1756 net/openvswitch/conntrack.c 			 ntohs(info->range.min_proto.all)) ||
ntohs            1759 net/openvswitch/conntrack.c 			  ntohs(info->range.max_proto.all)))))
ntohs             754 net/openvswitch/datapath.c 	if ((u8)ntohs(tcp_flags) &&
ntohs             755 net/openvswitch/datapath.c 	     nla_put_u8(skb, OVS_FLOW_ATTR_TCP_FLAGS, (u8)ntohs(tcp_flags)))
ntohs             626 net/openvswitch/flow.c 			if (ntohs(arp->ar_op) <= 0xff)
ntohs             627 net/openvswitch/flow.c 				key->ip.proto = ntohs(arp->ar_op);
ntohs            1051 net/openvswitch/flow_netlink.c 			  (inner) ? "C-VLAN" : "VLAN", ntohs(tpid));
ntohs            1133 net/openvswitch/flow_netlink.c 				ntohs(eth_type), ETH_P_802_3_MIN);
ntohs            1613 net/openvswitch/flow_netlink.c 				ntohs(arp_key->arp_op), is_mask);
ntohs            2168 net/openvswitch/flow_netlink.c 			icmp_key->icmp_type = ntohs(output->tp.src);
ntohs            2169 net/openvswitch/flow_netlink.c 			icmp_key->icmp_code = ntohs(output->tp.dst);
ntohs            2179 net/openvswitch/flow_netlink.c 			icmpv6_key->icmpv6_type = ntohs(output->tp.src);
ntohs            2180 net/openvswitch/flow_netlink.c 			icmpv6_key->icmpv6_code = ntohs(output->tp.dst);
ntohs              27 net/openvswitch/vport-vxlan.c 	if (nla_put_u16(skb, OVS_TUNNEL_ATTR_DST_PORT, ntohs(dst_port)))
ntohs             966 net/packet/af_packet.c 		ppd->hv1.tp_vlan_tpid = ntohs(pkc->skb->vlan_proto);
ntohs            2336 net/packet/af_packet.c 			h.h2->tp_vlan_tpid = ntohs(skb->vlan_proto);
ntohs            2498 net/packet/af_packet.c 		err = dev_hard_header(skb, dev, ntohs(proto), addr,
ntohs            2930 net/packet/af_packet.c 		offset = dev_hard_header(skb, dev, ntohs(proto), addr, NULL, len);
ntohs            3435 net/packet/af_packet.c 			aux.tp_vlan_tpid = ntohs(skb->vlan_proto);
ntohs            4606 net/packet/af_packet.c 			   ntohs(po->num),
ntohs             146 net/packet/diag.c 	rp->pdiag_num = ntohs(po->num);
ntohs             187 net/phonet/af_phonet.c 		err = dev_hard_header(skb, dev, ntohs(skb->protocol),
ntohs              88 net/rds/bind.c 		 ntohs(port));
ntohs             135 net/rds/bind.c 				 rs, addr, (int)ntohs(*port));
ntohs             156 net/rds/bind.c 		 ntohs(rs->rs_bound_port));
ntohs             305 net/rds/cong.c 	  &map->m_addr, ntohs(port), map);
ntohs             319 net/rds/cong.c 	  &map->m_addr, ntohs(port), map);
ntohs             380 net/rds/cong.c 			rs->rs_cong_mask |= RDS_CONG_MONITOR_MASK(ntohs(port));
ntohs             111 net/rds/recv.c 	  ntohs(rs->rs_bound_port), rs->rs_rcv_bytes,
ntohs             690 net/rds/recv.c 			 ntohs(inc->i_hdr.h_sport));
ntohs             182 net/rds/tcp_listen.c 		 my_addr, ntohs(inet->inet_sport),
ntohs             183 net/rds/tcp_listen.c 		 peer_addr, ntohs(inet->inet_dport));
ntohs            1179 net/rxrpc/input.c 	sp->hdr._rsvd		= ntohs(whdr._rsvd);
ntohs            1180 net/rxrpc/input.c 	sp->hdr.serviceId	= ntohs(whdr.serviceId);
ntohs             250 net/rxrpc/recvmsg.c 		cksum = ntohs(tmp);
ntohs              20 net/rxrpc/utils.c 	switch (ntohs(skb->protocol)) {
ntohs              41 net/rxrpc/utils.c 				    ntohs(skb->protocol));
ntohs             278 net/sched/act_csum.c 	ul = ntohs(udph->len);
ntohs             334 net/sched/act_csum.c 	ul = ntohs(udph->len);
ntohs             403 net/sched/act_csum.c 						ntohs(iph->tot_len)))
ntohs             409 net/sched/act_csum.c 						ntohs(iph->tot_len)))
ntohs             415 net/sched/act_csum.c 					       ntohs(iph->tot_len)))
ntohs             421 net/sched/act_csum.c 					       ntohs(iph->tot_len), 0))
ntohs             427 net/sched/act_csum.c 					       ntohs(iph->tot_len), 1))
ntohs             432 net/sched/act_csum.c 		    !tcf_csum_sctp(skb, iph->ihl * 4, ntohs(iph->tot_len)))
ntohs             504 net/sched/act_csum.c 	pl = ntohs(ip6h->payload_len);
ntohs              84 net/sched/act_ct.c 		len = ntohs(ip_hdr(skb)->tot_len);
ntohs              88 net/sched/act_ct.c 			+ ntohs(ipv6_hdr(skb)->payload_len);
ntohs              33 net/sched/act_meta_skbtcindex.c 	skb->tc_index = ntohs(ifetc_index);
ntohs             241 net/sched/act_skbmod.c 	    nla_put_u16(skb, TCA_SKBMOD_ETYPE, ntohs(p->eth_type)))
ntohs            1614 net/sched/cls_api.c 				       ntohs(tp->protocol));
ntohs              96 net/sched/cls_flow.c 		return ntohs(flow->ports.src);
ntohs             105 net/sched/cls_flow.c 		return ntohs(flow->ports.dst);
ntohs             180 net/sched/cls_flow.c 	return ntohs(CTTUPLE(skb, src.u.all));
ntohs             188 net/sched/cls_flow.c 	return ntohs(CTTUPLE(skb, dst.u.all));
ntohs             225 net/sched/cls_u32.c 				off2 += ntohs(n->sel.offmask & *data) >>
ntohs            1172 net/sched/sch_cake.c 			seglen = ntohs(iph_check->tot_len) -
ntohs            1182 net/sched/sch_cake.c 			seglen = ntohs(ipv6h_check->payload_len);
ntohs             323 net/sched/sch_dsmark.c 				__func__, ntohs(tc_skb_protocol(skb)));
ntohs             242 net/sched/sch_teql.c 		err = dev_hard_header(skb, dev, ntohs(tc_skb_protocol(skb)),
ntohs             261 net/sctp/associola.c 			ntohs(ep->auth_hmacs_list->param_hdr.length));
ntohs             264 net/sctp/associola.c 			ntohs(ep->auth_chunk_list->param_hdr.length));
ntohs             590 net/sctp/associola.c 	port = ntohs(addr->v4.sin_port);
ntohs            1594 net/sctp/associola.c 	int var_size2 = ntohs(cookie->peer_init->chunk_hdr.length);
ntohs            1608 net/sctp/associola.c 	if ((asoc->base.bind_addr.port == ntohs(laddr->v4.sin_port)) &&
ntohs             195 net/sctp/auth.c 	random_len = ntohs(random->param_hdr.length);
ntohs             196 net/sctp/auth.c 	hmacs_len = ntohs(hmacs->param_hdr.length);
ntohs             198 net/sctp/auth.c 		chunks_len = ntohs(chunks->param_hdr.length);
ntohs             541 net/sctp/auth.c 	n_elt = (ntohs(hmacs->param_hdr.length) -
ntohs             544 net/sctp/auth.c 		id = ntohs(hmacs->hmac_ids[i]);
ntohs             593 net/sctp/auth.c 	n_elt = (ntohs(hmacs->param_hdr.length) -
ntohs             617 net/sctp/auth.c 	n_params = (ntohs(hmacs->param_hdr.length) -
ntohs             621 net/sctp/auth.c 		id = ntohs(hmacs->hmac_ids[i]);
ntohs             646 net/sctp/auth.c 	len = ntohs(param->param_hdr.length) - sizeof(struct sctp_paramhdr);
ntohs             721 net/sctp/auth.c 	key_id = ntohs(auth->auth_hdr.shkey_id);
ntohs             722 net/sctp/auth.c 	hmac_id = ntohs(auth->auth_hdr.hmac_id);
ntohs             772 net/sctp/auth.c 	param_len = ntohs(p->param_hdr.length);
ntohs             291 net/sctp/bind_addr.c 		len = ntohs(param->length);
ntohs             679 net/sctp/input.c 		if (ntohs(ch->length) < sizeof(_ch))
ntohs             682 net/sctp/input.c 		ch_end = offset + SCTP_PAD4(ntohs(ch->length));
ntohs             840 net/sctp/input.c 	hash = sctp_ep_hashfn(net, ntohs(lport));
ntohs            1209 net/sctp/input.c 		if (ntohs(ch->length) < sizeof(*ch))
ntohs            1212 net/sctp/input.c 		ch_end = ((__u8 *)ch) + SCTP_PAD4(ntohs(ch->length));
ntohs            1281 net/sctp/input.c 	if (SCTP_PAD4(ntohs(ch->length)) > skb->len)
ntohs            1314 net/sctp/input.c 			 &laddr->v4.sin_addr, ntohs(laddr->v4.sin_port),
ntohs            1315 net/sctp/input.c 			 &paddr->v4.sin_addr, ntohs(paddr->v4.sin_port));
ntohs            1318 net/sctp/input.c 			 &laddr->v6.sin6_addr, ntohs(laddr->v6.sin6_port),
ntohs            1319 net/sctp/input.c 			 &paddr->v6.sin6_addr, ntohs(paddr->v6.sin6_port));
ntohs             201 net/sctp/inqueue.c 	chunk->chunk_end = ((__u8 *)ch) + SCTP_PAD4(ntohs(ch->length));
ntohs             221 net/sctp/inqueue.c 		 ntohs(chunk->chunk_hdr->length), chunk->skb->len);
ntohs             305 net/sctp/output.c 	__u16 chunk_len = SCTP_PAD4(ntohs(chunk->chunk_hdr->length));
ntohs             477 net/sctp/output.c 				 ntohs(chunk->chunk_hdr->length), chunk->skb->len,
ntohs            1065 net/sctp/outqueue.c 		__u32 sid = ntohs(chunk->subh.data_hdr->stream);
ntohs            1208 net/sctp/outqueue.c 	for (i = 0; i < ntohs(sack->num_gap_ack_blocks); i++) {
ntohs            1209 net/sctp/outqueue.c 		unack_data -= ((ntohs(frags[i].gab.end) -
ntohs            1210 net/sctp/outqueue.c 				ntohs(frags[i].gab.start) + 1));
ntohs            1242 net/sctp/outqueue.c 	gap_ack_blocks = ntohs(sack->num_gap_ack_blocks);
ntohs            1284 net/sctp/outqueue.c 		highest_tsn += ntohs(frags[gap_ack_blocks - 1].gab.end);
ntohs            1760 net/sctp/outqueue.c 	blocks = ntohs(sack->num_gap_ack_blocks);
ntohs            1763 net/sctp/outqueue.c 		if (tsn_offset >= ntohs(frags[i].gab.start) &&
ntohs            1764 net/sctp/outqueue.c 		    tsn_offset <= ntohs(frags[i].gab.end))
ntohs             288 net/sctp/sm_make_chunk.c 			chunksize += SCTP_PAD4(ntohs(auth_hmacs->length));
ntohs             295 net/sctp/sm_make_chunk.c 			chunksize += SCTP_PAD4(ntohs(auth_chunks->length));
ntohs             368 net/sctp/sm_make_chunk.c 			sctp_addto_chunk(retval, ntohs(auth_hmacs->length),
ntohs             371 net/sctp/sm_make_chunk.c 			sctp_addto_chunk(retval, ntohs(auth_chunks->length),
ntohs             450 net/sctp/sm_make_chunk.c 		chunksize += ntohs(auth_random->length);
ntohs             454 net/sctp/sm_make_chunk.c 			chunksize += SCTP_PAD4(ntohs(auth_hmacs->length));
ntohs             460 net/sctp/sm_make_chunk.c 			chunksize += SCTP_PAD4(ntohs(auth_chunks->length));
ntohs             513 net/sctp/sm_make_chunk.c 		sctp_addto_chunk(retval, ntohs(auth_random->length),
ntohs             516 net/sctp/sm_make_chunk.c 			sctp_addto_chunk(retval, ntohs(auth_hmacs->length),
ntohs             519 net/sctp/sm_make_chunk.c 			sctp_addto_chunk(retval, ntohs(auth_chunks->length),
ntohs            1059 net/sctp/sm_make_chunk.c 	int chunklen = ntohs(chunk->chunk_hdr->length);
ntohs            1309 net/sctp/sm_make_chunk.c 		htons(ntohs(retval->chunk_hdr->length) + hmac_desc->hmac_len);
ntohs            1493 net/sctp/sm_make_chunk.c 	int chunklen = ntohs(chunk->chunk_hdr->length);
ntohs            1525 net/sctp/sm_make_chunk.c 		htons(ntohs(chunk->chunk_hdr->length) + len);
ntohs            1545 net/sctp/sm_make_chunk.c 	sid = ntohs(chunk->subh.data_hdr->stream);
ntohs            1626 net/sctp/sm_make_chunk.c 		+ ntohs(init_chunk->chunk_hdr->length) + addrs_len;
ntohs            1666 net/sctp/sm_make_chunk.c 	       ntohs(init_chunk->chunk_hdr->length));
ntohs            1670 net/sctp/sm_make_chunk.c 	       ntohs(init_chunk->chunk_hdr->length), raw_addrs, addrs_len);
ntohs            1720 net/sctp/sm_make_chunk.c 	bodysize = ntohs(chunk->chunk_hdr->length) - headersize;
ntohs            1727 net/sctp/sm_make_chunk.c 	len = ntohs(chunk->chunk_hdr->length);
ntohs            1780 net/sctp/sm_make_chunk.c 	    ntohs(chunk->sctp_hdr->dest) != bear_cookie->my_port) {
ntohs            1830 net/sctp/sm_make_chunk.c 	retval->peer.port = ntohs(chunk->sctp_hdr->source);
ntohs            1956 net/sctp/sm_make_chunk.c 	__u16 len = ntohs(param.p->length);
ntohs            1977 net/sctp/sm_make_chunk.c 	__u16 num_ext = ntohs(param.p->length) - sizeof(struct sctp_paramhdr);
ntohs            2011 net/sctp/sm_make_chunk.c 	__u16 num_ext = ntohs(param.p->length) - sizeof(struct sctp_paramhdr);
ntohs            2106 net/sctp/sm_make_chunk.c 				     ntohs(param.p->length)))
ntohs            2107 net/sctp/sm_make_chunk.c 			sctp_addto_chunk(*errp, ntohs(param.p->length),
ntohs            2184 net/sctp/sm_make_chunk.c 		if (SCTP_AUTH_RANDOM_LENGTH != ntohs(param.p->length) -
ntohs            2201 net/sctp/sm_make_chunk.c 		if (260 < ntohs(param.p->length)) {
ntohs            2213 net/sctp/sm_make_chunk.c 		n_elt = (ntohs(param.p->length) -
ntohs            2221 net/sctp/sm_make_chunk.c 			id = ntohs(hmacs->hmac_ids[i]);
ntohs            2236 net/sctp/sm_make_chunk.c 			 __func__, ntohs(param.p->type), cid);
ntohs            2395 net/sctp/sm_make_chunk.c 		ntohs(peer_init->init_hdr.num_outbound_streams);
ntohs            2397 net/sctp/sm_make_chunk.c 		ntohs(peer_init->init_hdr.num_inbound_streams);
ntohs            2407 net/sctp/sm_make_chunk.c 	    ntohs(peer_init->init_hdr.num_inbound_streams)) {
ntohs            2409 net/sctp/sm_make_chunk.c 			ntohs(peer_init->init_hdr.num_inbound_streams);
ntohs            2413 net/sctp/sm_make_chunk.c 	    ntohs(peer_init->init_hdr.num_outbound_streams)) {
ntohs            2415 net/sctp/sm_make_chunk.c 			ntohs(peer_init->init_hdr.num_outbound_streams);
ntohs            2564 net/sctp/sm_make_chunk.c 		sat = ntohs(param.p->length) - sizeof(struct sctp_paramhdr);
ntohs            2591 net/sctp/sm_make_chunk.c 			ntohs(param.p->length) - sizeof(struct sctp_paramhdr);
ntohs            2664 net/sctp/sm_make_chunk.c 					    ntohs(param.p->length), gfp);
ntohs            2678 net/sctp/sm_make_chunk.c 					    ntohs(param.p->length), gfp);
ntohs            2694 net/sctp/sm_make_chunk.c 					    ntohs(param.p->length), gfp);
ntohs            2706 net/sctp/sm_make_chunk.c 			 __func__, ntohs(param.p->type), asoc);
ntohs            2990 net/sctp/sm_make_chunk.c 				 ntohs(asconf_param->param_hdr.length);
ntohs            3167 net/sctp/sm_make_chunk.c 		size_t length = ntohs(param.p->length);
ntohs            3196 net/sctp/sm_make_chunk.c 			length = ntohs(param.addip->param_hdr.length);
ntohs            3240 net/sctp/sm_make_chunk.c 	chunk_len = ntohs(asconf->chunk_hdr->length) -
ntohs            3253 net/sctp/sm_make_chunk.c 	length = ntohs(addr_param->p.length);
ntohs            3386 net/sctp/sm_make_chunk.c 	asconf_ack_len = ntohs(asconf_ack->chunk_hdr->length) -
ntohs            3416 net/sctp/sm_make_chunk.c 		length = ntohs(asconf_ack_param->param_hdr.length);
ntohs            3448 net/sctp/sm_make_chunk.c 	length = ntohs(addr_param->p.length);
ntohs            3499 net/sctp/sm_make_chunk.c 		length = ntohs(asconf_param->param_hdr.length);
ntohs            3842 net/sctp/sm_make_chunk.c 		__u16 length = ntohs(param.p->length);
ntohs             162 net/sctp/sm_statefuns.c 	__u16 chunk_length = ntohs(chunk->chunk_hdr->length);
ntohs             376 net/sctp/sm_statefuns.c 					ntohs(err_chunk->chunk_hdr->length) -
ntohs             423 net/sctp/sm_statefuns.c 		len = ntohs(err_chunk->chunk_hdr->length) -
ntohs             548 net/sctp/sm_statefuns.c 					ntohs(err_chunk->chunk_hdr->length) -
ntohs             730 net/sctp/sm_statefuns.c 	if (!pskb_pull(chunk->skb, ntohs(chunk->chunk_hdr->length) -
ntohs            1141 net/sctp/sm_statefuns.c 	paylen = ntohs(chunk->chunk_hdr->length) - sizeof(struct sctp_chunkhdr);
ntohs            1143 net/sctp/sm_statefuns.c 	if (ntohs(param_hdr->length) > paylen)
ntohs            1213 net/sctp/sm_statefuns.c 	if (ntohs(hbinfo->param_hdr.length) != sizeof(*hbinfo))
ntohs            1514 net/sctp/sm_statefuns.c 					ntohs(err_chunk->chunk_hdr->length) -
ntohs            1578 net/sctp/sm_statefuns.c 		len = ntohs(err_chunk->chunk_hdr->length) -
ntohs            2136 net/sctp/sm_statefuns.c 	if (!pskb_pull(chunk->skb, ntohs(chunk->chunk_hdr->length) -
ntohs            2604 net/sctp/sm_statefuns.c 	len = ntohs(chunk->chunk_hdr->length);
ntohs            2651 net/sctp/sm_statefuns.c 	len = ntohs(chunk->chunk_hdr->length);
ntohs            3552 net/sctp/sm_statefuns.c 		if (ntohs(ch->length) < sizeof(*ch))
ntohs            3557 net/sctp/sm_statefuns.c 		ch_end = ((__u8 *)ch) + SCTP_PAD4(ntohs(ch->length));
ntohs            4076 net/sctp/sm_statefuns.c 	len = ntohs(chunk->chunk_hdr->length);
ntohs            4143 net/sctp/sm_statefuns.c 	len = ntohs(chunk->chunk_hdr->length);
ntohs            4227 net/sctp/sm_statefuns.c 	key_id = ntohs(auth_hdr->shkey_id);
ntohs            4237 net/sctp/sm_statefuns.c 	sig_len = ntohs(chunk->chunk_hdr->length) -
ntohs            4239 net/sctp/sm_statefuns.c 	hmac = sctp_auth_get_hmac(ntohs(auth_hdr->hmac_id));
ntohs            4334 net/sctp/sm_statefuns.c 	if (asoc->active_key_id != ntohs(auth_hdr->shkey_id)) {
ntohs            4337 net/sctp/sm_statefuns.c 		ev = sctp_ulpevent_make_authkey(asoc, ntohs(auth_hdr->shkey_id),
ntohs            4406 net/sctp/sm_statefuns.c 					       SCTP_PAD4(ntohs(hdr->length)),
ntohs            4424 net/sctp/sm_statefuns.c 					       SCTP_PAD4(ntohs(hdr->length)),
ntohs            6156 net/sctp/sm_statefuns.c 	num_blocks = ntohs(sack->num_gap_ack_blocks);
ntohs            6157 net/sctp/sm_statefuns.c 	num_dup_tsns = ntohs(sack->num_dup_tsns);
ntohs            6224 net/sctp/sm_statefuns.c 	sport = ntohs(chunk->sctp_hdr->dest);
ntohs            6225 net/sctp/sm_statefuns.c 	dport = ntohs(chunk->sctp_hdr->source);
ntohs            6388 net/sctp/sm_statefuns.c 	datalen = ntohs(chunk->chunk_hdr->length);
ntohs            6496 net/sctp/sm_statefuns.c 	if (ntohs(data_hdr->stream) >= asoc->stream.incnt) {
ntohs             379 net/sctp/socket.c 	snum = ntohs(addr->v4.sin_port);
ntohs            1208 net/sctp/socket.c 		if (asoc->peer.port != ntohs(daddr->v4.sin_port))
ntohs            6924 net/sctp/socket.c 	data_len = ntohs(hmacs->param_hdr.length) -
ntohs            6938 net/sctp/socket.c 		__u16 hmacid = ntohs(hmacs->hmac_ids[i]);
ntohs            7011 net/sctp/socket.c 	num_chunks = ntohs(ch->param_hdr.length) - sizeof(struct sctp_paramhdr);
ntohs            7061 net/sctp/socket.c 	num_chunks = ntohs(ch->param_hdr.length) - sizeof(struct sctp_paramhdr);
ntohs            8175 net/sctp/socket.c 	snum = ntohs(addr->v4.sin_port);
ntohs             249 net/sctp/stream.c 		__u16 sid = ntohs(str_list[i]);
ntohs             548 net/sctp/stream.c 	nums = (ntohs(param.p->length) - sizeof(*outreq)) / sizeof(__u16);
ntohs             551 net/sctp/stream.c 		if (ntohs(str_p[i]) >= stream->incnt) {
ntohs             583 net/sctp/stream.c 			SCTP_SI(stream, ntohs(str_p[i]))->mid = 0;
ntohs             634 net/sctp/stream.c 	nums = (ntohs(param.p->length) - sizeof(*inreq)) / sizeof(__u16);
ntohs             637 net/sctp/stream.c 		if (ntohs(str_p[i]) >= stream->outcnt) {
ntohs             655 net/sctp/stream.c 			SCTP_SO(stream, ntohs(str_p[i]))->state =
ntohs             799 net/sctp/stream.c 	in = ntohs(addstrm->number_of_streams);
ntohs             835 net/sctp/stream.c 		0, ntohs(addstrm->number_of_streams), 0, GFP_ATOMIC);
ntohs             878 net/sctp/stream.c 	out = ntohs(addstrm->number_of_streams);
ntohs             941 net/sctp/stream.c 		nums = (ntohs(outreq->param_hdr.length) - sizeof(*outreq)) /
ntohs             948 net/sctp/stream.c 					sout = SCTP_SO(stream, ntohs(str_p[i]));
ntohs             978 net/sctp/stream.c 		nums = (ntohs(inreq->param_hdr.length) - sizeof(*inreq)) /
ntohs             990 net/sctp/stream.c 		if (ntohs(param.p->length) != sizeof(*resptsn))
ntohs            1038 net/sctp/stream.c 		nums = ntohs(addstrm->number_of_streams);
ntohs            1059 net/sctp/stream.c 		nums = ntohs(addstrm->number_of_streams);
ntohs             100 net/sctp/stream_interleave.c 	ssn = ntohs(chunk->subh.data_hdr->ssn);
ntohs             970 net/sctp/stream_interleave.c 	needed = ntohs(chunk->chunk_hdr->length) -
ntohs            1171 net/sctp/stream_interleave.c 	_sctp_walk_ifwdtsn((pos), (ch), ntohs((ch)->chunk_hdr->length) - \
ntohs            1184 net/sctp/stream_interleave.c 		if (ntohs(skip->stream) >= incnt)
ntohs            1200 net/sctp/stream_interleave.c 		if (ntohs(skip->stream) >= incnt)
ntohs            1258 net/sctp/stream_interleave.c 		sctp_ulpq_skip(ulpq, ntohs(skip->stream), ntohs(skip->ssn));
ntohs            1295 net/sctp/stream_interleave.c 		sctp_intl_skip(ulpq, ntohs(skip->stream),
ntohs             145 net/sctp/ulpevent.c 			 ntohs(chunk->chunk_hdr->length) -
ntohs             368 net/sctp/ulpevent.c 	elen = SCTP_PAD4(ntohs(ch->length)) - sizeof(*ch);
ntohs             420 net/sctp/ulpevent.c 	int len = ntohs(chunk->chunk_hdr->length);
ntohs             637 net/sctp/ulpevent.c 	datalen = ntohs(chunk->chunk_hdr->length);
ntohs             689 net/sctp/ulpevent.c 	event->stream = ntohs(chunk->subh.data_hdr->stream);
ntohs             854 net/sctp/ulpevent.c 		sreset->strreset_stream_list[i] = ntohs(stream_list[i]);
ntohs              97 net/sctp/ulpqueue.c 	event->ssn = ntohs(chunk->subh.data_hdr->ssn);
ntohs            1083 net/sctp/ulpqueue.c 	needed = ntohs(chunk->chunk_hdr->length) -
ntohs             374 net/smc/smc_cdc.c 		if (smc_cdc_before(ntohs(cdc->seqno),
ntohs             249 net/smc/smc_cdc.h 	temp.wrap = ntohs(net.wrap);
ntohs             264 net/smc/smc_cdc.h 	local->seqno = ntohs(peer->seqno);
ntohs              57 net/smc/smc_clc.c 		if (ntohs(pclc->hdr.length) !=
ntohs              58 net/smc/smc_clc.c 			sizeof(*pclc) + ntohs(pclc->iparea_offset) +
ntohs              65 net/smc/smc_clc.c 			((u8 *)pclc + ntohs(pclc->hdr.length) - sizeof(*trl));
ntohs              73 net/smc/smc_clc.c 		     ntohs(clc->hdr.length) != SMCR_CLC_ACCEPT_CONFIRM_LEN) ||
ntohs              75 net/smc/smc_clc.c 		     ntohs(clc->hdr.length) != SMCD_CLC_ACCEPT_CONFIRM_LEN))
ntohs              78 net/smc/smc_clc.c 			((u8 *)clc + ntohs(clc->hdr.length) - sizeof(*trl));
ntohs              82 net/smc/smc_clc.c 		if (ntohs(dclc->hdr.length) != sizeof(*dclc))
ntohs             321 net/smc/smc_clc.c 	datlen = ntohs(clcm->length);
ntohs             524 net/smc/smc_clc.c 	vec.iov_len = ntohs(cclc.hdr.length);
ntohs             526 net/smc/smc_clc.c 			     ntohs(cclc.hdr.length));
ntohs             527 net/smc/smc_clc.c 	if (len < ntohs(cclc.hdr.length)) {
ntohs             596 net/smc/smc_clc.c 	vec.iov_len = ntohs(aclc.hdr.length);
ntohs             598 net/smc/smc_clc.c 			     ntohs(aclc.hdr.length));
ntohs             599 net/smc/smc_clc.c 	if (len < ntohs(aclc.hdr.length))
ntohs             174 net/smc/smc_clc.h 	       ((u8 *)pclc + sizeof(*pclc) + ntohs(pclc->iparea_offset));
ntohs             181 net/smc/smc_clc.h 	if (ntohs(prop->iparea_offset) != sizeof(struct smc_clc_msg_smcd))
ntohs             279 net/sunrpc/addr.c 		port = ntohs(((struct sockaddr_in *)sap)->sin_port);
ntohs             284 net/sunrpc/addr.c 		port = ntohs(((struct sockaddr_in6 *)sap)->sin6_port);
ntohs             486 net/sunrpc/rpcb_clnt.c 	unsigned short port = ntohs(sin->sin_port);
ntohs             517 net/sunrpc/rpcb_clnt.c 	unsigned short port = ntohs(sin6->sin6_port);
ntohs             570 net/sunrpc/svc_xprt.c 		return ntohs(((struct sockaddr_in *)sin)->sin_port)
ntohs             573 net/sunrpc/svc_xprt.c 		return ntohs(((struct sockaddr_in6 *)sin)->sin6_port)
ntohs            1283 net/sunrpc/svcsock.c 				     ntohs(inet_sk(inet)->inet_sport));
ntohs            1730 net/sunrpc/xprtsock.c 		port = ntohs(((struct sockaddr_in6 *)&buf)->sin6_port);
ntohs            1733 net/sunrpc/xprtsock.c 		port = ntohs(((struct sockaddr_in *)&buf)->sin_port);
ntohs            1448 net/tipc/link.c 			acked = ntohs(ga->gacks[n].ack);
ntohs            1449 net/tipc/link.c 			gap = ntohs(ga->gacks[n].gap);
ntohs            2056 net/tipc/link.c 			glen = ntohs(ga->len);
ntohs             450 net/tipc/monitor.c 	u16 new_member_cnt = ntohs(arrv_dom->member_cnt);
ntohs             452 net/tipc/monitor.c 	u16 new_gen = ntohs(arrv_dom->gen);
ntohs             453 net/tipc/monitor.c 	u16 acked_gen = ntohs(arrv_dom->ack_gen);
ntohs             464 net/tipc/monitor.c 	if ((dlen < new_dlen) || ntohs(arrv_dom->len) != new_dlen)
ntohs             551 net/tipc/monitor.c 	len = ntohs(mon->cache.len);
ntohs             101 net/tipc/udp_media.c 	if (ntohs(addr->proto) == ETH_P_IP)
ntohs             127 net/tipc/udp_media.c 	if (ntohs(ua->proto) == ETH_P_IP)
ntohs             128 net/tipc/udp_media.c 		snprintf(buf, size, "%pI4:%u", &ua->ipv4, ntohs(ua->port));
ntohs             129 net/tipc/udp_media.c 	else if (ntohs(ua->proto) == ETH_P_IPV6)
ntohs             130 net/tipc/udp_media.c 		snprintf(buf, size, "%pI6:%u", &ua->ipv6, ntohs(ua->port));
ntohs             313 net/tipc/udp_media.c 	if (ntohs(addr->proto) == ETH_P_IP)
ntohs             316 net/tipc/udp_media.c 	else if (ntohs(addr->proto) == ETH_P_IPV6)
ntohs             403 net/tipc/udp_media.c 	if (ntohs(remote->proto) == ETH_P_IP) {
ntohs             419 net/tipc/udp_media.c 	if (ntohs(addr->proto) == ETH_P_IP) {
ntohs             430 net/tipc/udp_media.c 	} else if (ntohs(addr->proto) == ETH_P_IPV6) {
ntohs             674 net/wireless/util.c 		len = ntohs(eth.h_proto);
ntohs             155 net/xfrm/xfrm_input.c 		*spi = htonl(ntohs(*(__be16 *)(skb_transport_header(skb) + 2)));
ntohs             423 net/xfrm/xfrm_interface.c 		spi = htonl(ntohs(ipch->cpi));
ntohs             483 net/xfrm/xfrm_interface.c 		spi = htonl(ntohs(ipch->cpi));
ntohs            3343 net/xfrm/xfrm_policy.c 				fl4->fl4_ipsec_spi = htonl(ntohs(ipcomp_hdr[1]));
ntohs              47 samples/bpf/test_probe_write_user_user.c 	printf("Server bound to: %s:%d\n", ip, ntohs(serv_addr_in->sin_port));
ntohs              60 samples/bpf/test_probe_write_user_user.c 	       ip, ntohs(mapped_addr_in->sin_port));
ntohs              67 samples/bpf/test_probe_write_user_user.c 	       ip, ntohs(tmp_addr_in->sin_port));
ntohs              73 samples/bpf/test_probe_write_user_user.c 	       ip, ntohs(tmp_addr_in->sin_port));
ntohs              76 samples/bpf/xdp_fwd_kern.c 		fib_params.tot_len	= ntohs(iph->tot_len);
ntohs              95 samples/bpf/xdp_fwd_kern.c 		fib_params.tot_len	= ntohs(ip6h->payload_len);
ntohs             125 samples/bpf/xdp_redirect_cpu_kern.c 	if (unlikely(ntohs(eth_type) < ETH_P_802_3_MIN))
ntohs             149 samples/bpf/xdp_redirect_cpu_kern.c 	*eth_proto = ntohs(eth_type);
ntohs             172 samples/bpf/xdp_redirect_cpu_kern.c 	dport = ntohs(udph->dest);
ntohs             260 samples/bpf/xdp_redirect_cpu_kern.c 	if (ntohs(eth_type) < ETH_P_802_3_MIN) {
ntohs             127 samples/bpf/xdp_rxq_info_kern.c 		if (ntohs(eth->h_proto) < ETH_P_802_3_MIN)
ntohs             103 samples/bpf/xdp_tx_iptunnel_kern.c 	payload_len = ntohs(iph->tot_len);
ntohs             204 samples/bpf/xdp_tx_iptunnel_kern.c 	ip6h->payload_len = htons(ntohs(payload_len) + sizeof(*ip6h));
ntohs             306 security/apparmor/match.c 	dfa->flags = ntohs(*(__be16 *) (data + 12));
ntohs              55 security/lsm_audit.c 	if (ntohs(ih->frag_off) & IP_OFFSET)
ntohs             191 security/lsm_audit.c 		audit_log_format(ab, " %s=%d", name2, ntohs(port));
ntohs             200 security/lsm_audit.c 		audit_log_format(ab, " %s=%d", name2, ntohs(port));
ntohs            4201 security/selinux/hooks.c 		if (ntohs(ih->frag_off) & IP_OFFSET)
ntohs            4217 security/selinux/hooks.c 		if (ntohs(ih->frag_off) & IP_OFFSET)
ntohs            4233 security/selinux/hooks.c 		if (ntohs(ih->frag_off) & IP_OFFSET)
ntohs            4250 security/selinux/hooks.c 		if (ntohs(ih->frag_off) & IP_OFFSET)
ntohs            4614 security/selinux/hooks.c 			snum = ntohs(addr4->sin_port);
ntohs            4621 security/selinux/hooks.c 			snum = ntohs(addr6->sin6_port);
ntohs            4745 security/selinux/hooks.c 			snum = ntohs(addr4->sin_port);
ntohs            4751 security/selinux/hooks.c 			snum = ntohs(addr6->sin6_port);
ntohs            2339 security/smack/smack_lsm.c 	    ntohs(be16p[7]) == 1)
ntohs            2504 security/smack/smack_lsm.c 	ad.a.u.net->dport = ntohs(address->sin6_port);
ntohs            2555 security/smack/smack_lsm.c 	port = ntohs(addr6->sin6_port);
ntohs            2651 security/smack/smack_lsm.c 	port = ntohs(address->sin6_port);
ntohs             481 security/tomoyo/network.c 		r.param.inet_network.port = ntohs(address->inet.port);
ntohs             618 tools/bpf/bpf_dbg.c 	return ntohs(r);
ntohs            4625 tools/lib/traceevent/event-parse.c 		word = ntohs(in6.s6_addr16[i]);
ntohs            4806 tools/lib/traceevent/event-parse.c 			trace_seq_printf(s, ":%d", ntohs(sa4->sin_port));
ntohs            4827 tools/lib/traceevent/event-parse.c 			trace_seq_printf(s, "]:%d", ntohs(sa6->sin6_port));
ntohs              24 tools/perf/trace/beauty/sockaddr.c 	return scnprintf(bf, size, ", port: %d, addr: %s", ntohs(sin->sin_port),
ntohs              33 tools/perf/trace/beauty/sockaddr.c 	size_t printed = scnprintf(bf, size, ", port: %d, addr: %s", ntohs(sin6->sin6_port),
ntohs             187 tools/testing/selftests/bpf/test_flow_dissector.c 	val = ntohs(*ptr);
ntohs             102 tools/testing/selftests/bpf/test_sock_fields.c 	       dst_ip6, ntohs(sk->dst_port));
ntohs             191 tools/testing/selftests/bpf/test_sock_fields.c 	      listen_sk.src_port != ntohs(srv_sa6.sin6_port) ||
ntohs             205 tools/testing/selftests/bpf/test_sock_fields.c 	      srv_sk.src_port != ntohs(srv_sa6.sin6_port) ||
ntohs             218 tools/testing/selftests/bpf/test_sock_fields.c 	      cli_sk.src_port != ntohs(cli_sa6.sin6_port) ||
ntohs             358 tools/testing/selftests/bpf/test_sock_fields.c 	       ntohs(srv_sa6.sin6_port), ntohs(cli_sa6.sin6_port));
ntohs             116 tools/testing/selftests/bpf/test_socket_cookie.c 	cookie_expected_value = (ntohs(addr.sin6_port) << 8) | 0xFF;
ntohs              87 tools/testing/selftests/net/ip_defrag.c 		sum += (u_int16_t)ntohs(*((u_int16_t *)(buf + i)));
ntohs             186 tools/testing/selftests/net/nettest.c 			ntohs(s->sin_port));
ntohs             195 tools/testing/selftests/net/nettest.c 			ntohs(s6->sin6_port));
ntohs             136 tools/testing/selftests/net/psock_tpacket.c 			"type: 0x%x!\n", ntohs(eth->h_proto));
ntohs             330 tools/testing/selftests/networking/timestamping/txtimestamp.c 	csum_len = ntohs(udph->len) + alen * 2;
ntohs             376 tools/testing/selftests/networking/timestamping/txtimestamp.c 	udph->source = ntohs(dest_port + 1);	/* spoof */
ntohs             377 tools/testing/selftests/networking/timestamping/txtimestamp.c 	udph->dest   = ntohs(dest_port);
ntohs             378 tools/testing/selftests/networking/timestamping/txtimestamp.c 	udph->len    = ntohs(sizeof(*udph) + cfg_payload_len);
ntohs              72 tools/usb/usbip/src/usbip_network.c 		i = ntohs(num);