sys/compat/linuxkpi/common/include/asm/byteorder.h
137
*var = cpu_to_be16(be16_to_cpu(*var) + val);
sys/dev/axgbe/xgbe-phy-v2.c
447
*redrv_val = cpu_to_be16(val);
sys/dev/axgbe/xgbe-phy-v2.c
676
*mii_val = cpu_to_be16(val);
sys/dev/bnxt/bnxt_re/ib_verbs.c
3036
qp->qp1_hdr.eth.type = cpu_to_be16(BNXT_QPLIB_ETHTYPE_ROCEV1);
sys/dev/bnxt/bnxt_re/ib_verbs.c
3042
qp->qp1_hdr.eth.type = cpu_to_be16(ETH_P_8021Q);
sys/dev/bnxt/bnxt_re/ib_verbs.c
3048
cpu_to_be16((IB_BTH_BYTES + IB_DETH_BYTES + payload_size + 7)
sys/dev/bnxt/bnxt_re/ib_verbs.c
3066
qp->qp1_hdr.bth.pkey = cpu_to_be16(0xFFFF);
sys/dev/bnxt/bnxt_re/qplib_sp.c
273
req.src_mac[0] = cpu_to_be16(((u16 *)smac)[0]);
sys/dev/bnxt/bnxt_re/qplib_sp.c
274
req.src_mac[1] = cpu_to_be16(((u16 *)smac)[1]);
sys/dev/bnxt/bnxt_re/qplib_sp.c
275
req.src_mac[2] = cpu_to_be16(((u16 *)smac)[2]);
sys/dev/bnxt/bnxt_re/qplib_sp.c
433
req.src_mac[0] = cpu_to_be16(((u16 *)smac)[0]);
sys/dev/bnxt/bnxt_re/qplib_sp.c
434
req.src_mac[1] = cpu_to_be16(((u16 *)smac)[1]);
sys/dev/bnxt/bnxt_re/qplib_sp.c
435
req.src_mac[2] = cpu_to_be16(((u16 *)smac)[2]);
sys/dev/cxgbe/common/t4_hw.c
10072
cpu_to_be16(F_FW_VI_MAC_CMD_VALID |
sys/dev/cxgbe/common/t4_hw.c
10141
p->valid_to_idx = cpu_to_be16(F_FW_VI_MAC_CMD_VALID |
sys/dev/cxgbe/common/t4_hw.c
10245
p->valid_to_idx = cpu_to_be16(
sys/dev/cxgbe/common/t4_hw.c
10311
p->valid_to_idx = cpu_to_be16(F_FW_VI_MAC_CMD_VALID |
sys/dev/cxgbe/common/t4_hw.c
10427
c.blinkdur = cpu_to_be16(nblinks);
sys/dev/cxgbe/common/t4_hw.c
10458
c.iqid = cpu_to_be16(iqid);
sys/dev/cxgbe/common/t4_hw.c
10459
c.fl0id = cpu_to_be16(fl0id);
sys/dev/cxgbe/common/t4_hw.c
10460
c.fl1id = cpu_to_be16(fl1id);
sys/dev/cxgbe/common/t4_hw.c
10489
c.iqid = cpu_to_be16(iqid);
sys/dev/cxgbe/common/t4_hw.c
10490
c.fl0id = cpu_to_be16(fl0id);
sys/dev/cxgbe/common/t4_hw.c
10491
c.fl1id = cpu_to_be16(fl1id);
sys/dev/cxgbe/common/t4_hw.c
13281
cmd.u.params.weight = cpu_to_be16(weight);
sys/dev/cxgbe/common/t4_hw.c
13282
cmd.u.params.pktsize = cpu_to_be16(pktsize);
sys/dev/cxgbe/common/t4_hw.c
13283
cmd.u.params.burstsize = cpu_to_be16(burstsize);
sys/dev/cxgbe/common/t4_hw.c
13330
cmd.u.params.weight = cpu_to_be16(weight);
sys/dev/cxgbe/common/t4_hw.c
13356
cmd.u.params.pktsize = cpu_to_be16(pktsize);
sys/dev/cxgbe/common/t4_hw.c
13534
vlan_cmd.vlanid[0] = cpu_to_be16(vlan);
sys/dev/cxgbe/common/t4_hw.c
13572
p->valid_to_idx = cpu_to_be16(
sys/dev/cxgbe/common/t4_hw.c
13623
p->valid_to_idx = cpu_to_be16(F_FW_VI_MAC_CMD_VALID |
sys/dev/cxgbe/common/t4_hw.c
7279
cmd.niqid = cpu_to_be16(nq);
sys/dev/cxgbe/common/t4_hw.c
7280
cmd.startidx = cpu_to_be16(start);
sys/dev/cxgbe/common/t4_hw.c
8983
cpu_to_be16(V_FW_FILTER_WR_RX_RPL_IQ(qid));
sys/dev/cxgbe/common/t4_hw.c
9036
c.u.mdio.paddr_mmd = cpu_to_be16(V_FW_LDST_CMD_PADDR(phy_addr) |
sys/dev/cxgbe/common/t4_hw.c
9038
c.u.mdio.raddr = cpu_to_be16(reg);
sys/dev/cxgbe/common/t4_hw.c
9069
c.u.mdio.paddr_mmd = cpu_to_be16(V_FW_LDST_CMD_PADDR(phy_addr) |
sys/dev/cxgbe/common/t4_hw.c
9071
c.u.mdio.raddr = cpu_to_be16(reg);
sys/dev/cxgbe/common/t4_hw.c
9072
c.u.mdio.rval = cpu_to_be16(val);
sys/dev/cxgbe/common/t4_hw.c
9775
c.type_to_viid = cpu_to_be16(V_FW_VI_CMD_TYPE(idstype) |
sys/dev/cxgbe/common/t4_hw.c
9861
c.type_to_viid = cpu_to_be16(V_FW_VI_CMD_VIID(viid));
sys/dev/cxgbe/common/t4_hw.c
9945
p->valid_to_idx = cpu_to_be16(F_FW_VI_MAC_CMD_VALID |
sys/dev/cxgbe/iw_cxgbe/cq.c
158
res->u.cq.iqdroprss_to_iqesize = cpu_to_be16(
sys/dev/cxgbe/iw_cxgbe/cq.c
164
res->u.cq.iqsize = cpu_to_be16(cq->size);
sys/dev/cxgbe/iw_cxgbe/qp.c
1400
wqe->u.init.nrqe = cpu_to_be16(t4_rqes_posted(&qhp->wq));
sys/dev/cxgbe/iw_cxgbe/qp.c
401
isglp->nsge = cpu_to_be16(num_sge);
sys/dev/cxgbe/iw_cxgbe/qp.c
741
sglp->nsge = cpu_to_be16(1);
sys/dev/irdma/irdma_cm.c
961
mpa_frame->priv_data_len = cpu_to_be16(be16_to_cpu(mpa_frame->priv_data_len) +
sys/dev/mlx4/device.h
273
#define MLX4_ATTR_EXTENDED_PORT_INFO cpu_to_be16(0xff90)
sys/dev/mlx4/mlx4_core/mlx4_cmd.c
530
vhcr->opcode = cpu_to_be16((((u16) op_modifier) << 12) | (op & 0xfff));
sys/dev/mlx4/mlx4_core/mlx4_cmd.c
531
vhcr->token = cpu_to_be16(CMD_POLL_TOKEN);
sys/dev/mlx4/mlx4_core/mlx4_cmd.c
947
outtab[vidx % 32] = cpu_to_be16(table[pidx]);
sys/dev/mlx4/mlx4_core/mlx4_cq.c
129
cq_context->cq_max_count = cpu_to_be16(count);
sys/dev/mlx4/mlx4_core/mlx4_cq.c
130
cq_context->cq_period = cpu_to_be16(period);
sys/dev/mlx4/mlx4_core/mlx4_fw.c
2510
config_dev.roce_v2_udp_dport = cpu_to_be16(udp_port);
sys/dev/mlx4/mlx4_core/mlx4_fw.c
2901
inbuf->constant1 = cpu_to_be16(0x1<<11 | 0x4);
sys/dev/mlx4/mlx4_core/mlx4_fw.c
2903
inbuf->reg_id = cpu_to_be16(reg_id);
sys/dev/mlx4/mlx4_core/mlx4_fw.c
2908
cpu_to_be16(((reg_len/4 + 1) & MLX4_ACCESS_REG_LEN_MASK) |
sys/dev/mlx4/mlx4_core/mlx4_fw.c
80
case 2: *(__be16 *) __d = cpu_to_be16(source); break; \
sys/dev/mlx4/mlx4_core/mlx4_mcg.c
784
hw->prio = cpu_to_be16(ctrl->priority);
sys/dev/mlx4/mlx4_core/mlx4_mcg.c
844
rule_hw->id = cpu_to_be16(__sw_id_hw[spec->id]);
sys/dev/mlx4/mlx4_core/mlx4_port.c
1078
*(__be16 *) (&inbuf[16]) = cpu_to_be16(0x0015);
sys/dev/mlx4/mlx4_core/mlx4_port.c
1325
gen_context->mtu = cpu_to_be16(master->max_mtu[port]);
sys/dev/mlx4/mlx4_core/mlx4_port.c
1520
((__be16 *) mailbox->buf)[20] = cpu_to_be16(pkey_tbl_sz);
sys/dev/mlx4/mlx4_core/mlx4_port.c
1557
context->mtu = cpu_to_be16(mtu);
sys/dev/mlx4/mlx4_core/mlx4_port.c
1961
inmad->attr_id = cpu_to_be16(0xFF60); /* Module Info */
sys/dev/mlx4/mlx4_core/mlx4_port.c
1977
cable_info->dev_mem_address = cpu_to_be16(offset);
sys/dev/mlx4/mlx4_core/mlx4_port.c
1980
cable_info->size = cpu_to_be16(size);
sys/dev/mlx4/mlx4_core/mlx4_qp.c
175
cpu_to_be16(mlx4_qp_roce_entropy(dev, qp->qpn));
sys/dev/mlx4/mlx4_core/mlx4_qp.c
471
cmd->qp_context.rate_limit_params = cpu_to_be16((params->rate_unit << 14) | params->rate_val);
sys/dev/mlx4/mlx4_core/mlx4_resource_tracker.c
3326
eqe->event.cmd.token = cpu_to_be16(event_eq->token);
sys/dev/mlx4/mlx4_core/mlx4_resource_tracker.c
4178
ctrl->prio = cpu_to_be16(MLX4_DOMAIN_NIC);
sys/dev/mlx4/mlx4_core/mlx4_resource_tracker.c
4234
eth_header->id = cpu_to_be16(__sw_id_hw[MLX4_NET_TRANS_RULE_ID_ETH]);
sys/dev/mlx4/mlx4_core/mlx4_srq.c
191
srq_context->xrcd = cpu_to_be16(xrcd);
sys/dev/mlx4/mlx4_en/en.h
368
const __be16 status_all = cpu_to_be16(
sys/dev/mlx4/mlx4_en/en.h
376
const __be16 status_ipv4_ipok_tcp = cpu_to_be16(
sys/dev/mlx4/mlx4_en/en.h
380
const __be16 status_ipv6_ipok_tcp = cpu_to_be16(
sys/dev/mlx4/mlx4_en/mlx4_en_netdev.c
1357
cq->buf->wqe_index = cpu_to_be16(0xffff);
sys/dev/mlx4/mlx4_en/mlx4_en_rx.c
689
status_all = cpu_to_be16(
sys/dev/mlx4/mlx4_en/mlx4_en_rx.c
695
status_ipv4_tcp = cpu_to_be16(
sys/dev/mlx4/mlx4_en/mlx4_en_rx.c
698
status_ipv6_tcp = cpu_to_be16(
sys/dev/mlx4/mlx4_en/mlx4_en_rx.c
701
status_ipv4_udp = cpu_to_be16(
sys/dev/mlx4/mlx4_en/mlx4_en_rx.c
704
status_ipv6_udp = cpu_to_be16(
sys/dev/mlx4/mlx4_en/mlx4_en_rx.c
707
status_ipv4 = cpu_to_be16(MLX4_CQE_STATUS_IPV4),
sys/dev/mlx4/mlx4_en/mlx4_en_rx.c
708
status_ipv6 = cpu_to_be16(MLX4_CQE_STATUS_IPV6)
sys/dev/mlx4/mlx4_en/mlx4_en_rx.c
811
(cqe->status & cpu_to_be16(MLX4_CQE_STATUS_IPOK)) &&
sys/dev/mlx4/mlx4_en/mlx4_en_rx.c
812
(cqe->checksum == cpu_to_be16(0xffff))) {
sys/dev/mlx4/mlx4_en/mlx4_en_tx.c
712
tx_desc->ctrl.vlan_tag = cpu_to_be16(mb->m_pkthdr.ether_vtag);
sys/dev/mlx4/mlx4_ib/mlx4_ib_ah.c
111
ah->av.eth.vlan = cpu_to_be16(vlan_tag);
sys/dev/mlx4/mlx4_ib/mlx4_ib_ah.c
124
ah->av.ib.dlid = cpu_to_be16(0xc000);
sys/dev/mlx4/mlx4_ib/mlx4_ib_ah.c
173
mah->av.eth.vlan = cpu_to_be16(vlan_tag);
sys/dev/mlx4/mlx4_ib/mlx4_ib_ah.c
64
ah->av.ib.dlid = cpu_to_be16(ah_attr->dlid);
sys/dev/mlx4/mlx4_ib/mlx4_ib_alias_GUID.c
533
guid_info_rec.lid = cpu_to_be16(attr.lid);
sys/dev/mlx4/mlx4_ib/mlx4_ib_cq.c
561
return ((status & cpu_to_be16(MLX4_CQE_STATUS_IPV4 |
sys/dev/mlx4/mlx4_ib/mlx4_ib_cq.c
566
cpu_to_be16(MLX4_CQE_STATUS_IPV4 |
sys/dev/mlx4/mlx4_ib/mlx4_ib_cq.c
568
(status & cpu_to_be16(MLX4_CQE_STATUS_UDP |
sys/dev/mlx4/mlx4_ib/mlx4_ib_cq.c
570
checksum == cpu_to_be16(0xffff);
sys/dev/mlx4/mlx4_ib/mlx4_ib_mad.c
163
ext_info->pkey = cpu_to_be16(in_wc->pkey_index);
sys/dev/mlx4/mlx4_ib/mlx4_ib_mad.c
573
tun_mad->hdr.pkey_index = cpu_to_be16(tun_pkey_ix);
sys/dev/mlx4/mlx4_ib/mlx4_ib_mad.c
598
tun_mad->hdr.sl_vid = cpu_to_be16(vlan);
sys/dev/mlx4/mlx4_ib/mlx4_ib_mad.c
602
tun_mad->hdr.sl_vid = cpu_to_be16(((u16)(wc->sl)) << 12);
sys/dev/mlx4/mlx4_ib/mlx4_ib_mad.c
603
tun_mad->hdr.slid_mac_47_32 = cpu_to_be16(wc->slid);
sys/dev/mlx4/mlx4_ib/mlx4_ib_mad.c
844
out_mad->mad_hdr.status |= cpu_to_be16(1 << 15);
sys/dev/mlx4/mlx4_ib/mlx4_ib_main.c
1357
mlx4_spec->id = cpu_to_be16(mlx4_map_sw_to_hw_steering_id(dev, type));
sys/dev/mlx4/mlx4_ib/mlx4_ib_main.c
1507
ctrl->prio = cpu_to_be16(__mlx4_domain[domain] |
sys/dev/mlx4/mlx4_ib/mlx4_ib_mcg.c
290
mad.mad_hdr.status = cpu_to_be16(0);
sys/dev/mlx4/mlx4_ib/mlx4_ib_mcg.c
291
mad.mad_hdr.class_specific = cpu_to_be16(0);
sys/dev/mlx4/mlx4_ib/mlx4_ib_mcg.c
294
mad.mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_MC_MEMBER_REC);
sys/dev/mlx4/mlx4_ib/mlx4_ib_mcg.c
297
mad.sa_hdr.attr_offset = cpu_to_be16(7);
sys/dev/mlx4/mlx4_ib/mlx4_ib_mcg.c
331
mad.mad_hdr.status = cpu_to_be16(status);
sys/dev/mlx4/mlx4_ib/mlx4_ib_mcg.c
332
mad.mad_hdr.class_specific = cpu_to_be16(0);
sys/dev/mlx4/mlx4_ib/mlx4_ib_mcg.c
335
mad.mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_MC_MEMBER_REC);
sys/dev/mlx4/mlx4_ib/mlx4_ib_mcg.c
338
mad.sa_hdr.attr_offset = cpu_to_be16(7);
sys/dev/mlx4/mlx4_ib/mlx4_ib_qp.c
1406
path->rlid = cpu_to_be16(ah->dlid);
sys/dev/mlx4/mlx4_ib/mlx4_ib_qp.c
2332
cpu_to_be16(ah->av.ib.g_slid & 0x7f);
sys/dev/mlx4/mlx4_ib/mlx4_ib_qp.c
2334
cpu_to_be16(ah->av.ib.g_slid & 0x7f);
sys/dev/mlx4/mlx4_ib/mlx4_ib_qp.c
2346
sqp->ud_header.bth.pkey = cpu_to_be16(pkey);
sys/dev/mlx4/mlx4_ib/mlx4_ib_qp.c
2491
if (ah->av.eth.vlan != cpu_to_be16(0xffff)) {
sys/dev/mlx4/mlx4_ib/mlx4_ib_qp.c
2505
sqp->ud_header.lrh.source_lid = cpu_to_be16(ah->av.ib.g_slid & 0x7f);
sys/dev/mlx4/mlx4_ib/mlx4_ib_qp.c
2593
mlx->sched_prio = cpu_to_be16(pcp);
sys/dev/mlx4/mlx4_ib/mlx4_ib_qp.c
2605
sqp->ud_header.eth.type = cpu_to_be16(ether_type);
sys/dev/mlx4/mlx4_ib/mlx4_ib_qp.c
2607
sqp->ud_header.vlan.type = cpu_to_be16(ether_type);
sys/dev/mlx4/mlx4_ib/mlx4_ib_qp.c
2608
sqp->ud_header.vlan.tag = cpu_to_be16(vlan | pcp);
sys/dev/mlx4/mlx4_ib/mlx4_ib_qp.c
2625
sqp->ud_header.bth.pkey = cpu_to_be16(pkey);
sys/dev/mlx4/mlx4_ib/mlx4_ib_qp.c
2816
hdr.pkey_index = cpu_to_be16(wr->pkey_index);
sys/dev/mlx4/mlx4_ib/mlx4_ib_srq.c
151
cpu_to_be16((i + 1) & (srq->msrq.max - 1));
sys/dev/mlx4/mlx4_ib/mlx4_ib_srq.c
300
next->next_wqe_index = cpu_to_be16(wqe_index);
sys/dev/mlx5/device.h
124
cpu_to_be16((be16_to_cpu(*((__be16 *)(p) + __mlx5_16_off(typ, fld))) & \
sys/dev/mlx5/device.h
139
tmp = (__force type_t)cpu_to_be16(MLX5_GET(typ, p, fld)); \
sys/dev/mlx5/device.h
891
#define MLX5_ATTR_EXTENDED_PORT_INFO cpu_to_be16(0xff90)
sys/dev/mlx5/mlx5_core/mlx5_wq.c
166
next_seg->next_wqe_index = cpu_to_be16(i + 1);
sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls.c
629
wqe->umr.bsf_octowords = cpu_to_be16(MLX5_FLD_SZ_BYTES(sw_tls_cntx, param) / 16);
sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls_rx.c
181
cpu_to_be16(MLX5_FLD_SZ_BYTES(sw_tls_rx_cntx, param) / 16);
sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
224
ip4->ip_len = cpu_to_be16(tot_len);
sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
246
ip6->ip6_plen = cpu_to_be16(tot_len -
sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
494
title->wqe_counter = cpu_to_be16((wqe_counter + i) & cq->wq.sz_m1);
sys/dev/mlx5/mlx5_en/mlx5_en_tx.c
768
wqe->eth.mss = cpu_to_be16(mss);
sys/dev/mlx5/mlx5_en/mlx5_en_tx.c
794
wqe->eth.mss = cpu_to_be16(mss);
sys/dev/mlx5/mlx5_en/mlx5_en_tx.c
921
wqe->eth.inline_hdr_sz = cpu_to_be16(args.ihs);
sys/dev/mlx5/mlx5_en/mlx5_en_tx.c
934
wqe->eth.inline_hdr_sz = cpu_to_be16(args.ihs);
sys/dev/mlx5/mlx5_ib/mlx5_ib_ah.c
55
ah->av.rlid = cpu_to_be16(ah_attr->dlid);
sys/dev/mlx5/mlx5_ib/mlx5_ib_mad.c
100
out_mad->mad_hdr.status |= cpu_to_be16(1 << 15);
sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
450
return cpu_to_be16(MLX5_CAP_ROCE(dev->mdev, r_roce_min_src_udp_port));
sys/dev/mlx5/mlx5_ib/mlx5_ib_qp.c
2335
path->pkey_index = cpu_to_be16(alt ? attr->alt_pkey_index :
sys/dev/mlx5/mlx5_ib/mlx5_ib_qp.c
2365
path->rlid = cpu_to_be16(ah->dlid);
sys/dev/mlx5/mlx5_ib/mlx5_ib_qp.c
2779
context->pri_path.pkey_index = cpu_to_be16(attr->pkey_index);
sys/dev/mlx5/mlx5_ib/mlx5_ib_qp.c
2871
context->sq_crq_size |= cpu_to_be16(1 << 4);
sys/dev/mlx5/mlx5_ib/mlx5_ib_qp.c
3081
eseg->mss = cpu_to_be16(ud_wr->mss);
sys/dev/mlx5/mlx5_ib/mlx5_ib_qp.c
3082
eseg->inline_hdr_sz = cpu_to_be16(left);
sys/dev/mlx5/mlx5_ib/mlx5_ib_qp.c
3129
return cpu_to_be16(ALIGN(npages, 8) / 2);
sys/dev/mlx5/mlx5_ib/mlx5_ib_qp.c
3473
inl->vld_refresh = cpu_to_be16(MLX5_BSF_INL_VALID |
sys/dev/mlx5/mlx5_ib/mlx5_ib_qp.c
3475
inl->dif_apptag = cpu_to_be16(domain->sig.dif.app_tag);
sys/dev/mlx5/mlx5_ib/mlx5_ib_qp.c
3493
cpu_to_be16(domain->sig.dif.apptag_check_mask);
sys/dev/mlx5/mlx5_ib/mlx5_ib_qp.c
3621
sblock_ctrl->num_entries = cpu_to_be16(2);
sys/dev/mlx5/mlx5_ib/mlx5_ib_qp.c
3623
data_sentry->bcount = cpu_to_be16(block_size);
sys/dev/mlx5/mlx5_ib/mlx5_ib_qp.c
3626
data_sentry->stride = cpu_to_be16(block_size);
sys/dev/mlx5/mlx5_ib/mlx5_ib_qp.c
3628
prot_sentry->bcount = cpu_to_be16(prot_size);
sys/dev/mlx5/mlx5_ib/mlx5_ib_qp.c
3631
prot_sentry->stride = cpu_to_be16(prot_size);
sys/dev/mlx5/mlx5_ib/mlx5_ib_qp.c
3682
umr->bsf_octowords = cpu_to_be16(MLX5_MKEY_BSF_OCTO_SIZE);
sys/dev/mlx5/mlx5_ib/mlx5_ib_srq.c
182
cpu_to_be16((i + 1) & (srq->msrq.max - 1));
sys/dev/mlx5/mlx5_ib/mlx5_ib_srq.c
423
next->next_wqe_index = cpu_to_be16(wqe_index);
sys/dev/mthca/mthca_av.c
203
av->dlid = cpu_to_be16(ah_attr->dlid);
sys/dev/mthca/mthca_av.c
274
header->lrh.source_lid = cpu_to_be16(ah->av->g_slid & 0x7f);
sys/dev/mthca/mthca_dev.h
407
case 2: *(__be16 *) __d = cpu_to_be16(source); break; \
sys/dev/mthca/mthca_mad.c
278
out_mad->mad_hdr.status |= cpu_to_be16(1 << 15);
sys/dev/mthca/mthca_qp.c
1532
sqp->ud_header.bth.pkey = cpu_to_be16(pkey);
sys/dev/mthca/mthca_qp.c
520
path->rlid = cpu_to_be16(ah->dlid);
sys/ofed/drivers/infiniband/core/ib_cm.c
1436
rej_msg->reason = cpu_to_be16(reason);
sys/ofed/drivers/infiniband/core/ib_cm.c
1622
rej_msg->reason = cpu_to_be16(reason);
sys/ofed/drivers/infiniband/core/ib_cm.c
1747
req_msg->primary_local_lid = cpu_to_be16(wc->slid);
sys/ofed/drivers/infiniband/core/ib_cm.c
1752
req_msg->primary_remote_lid = cpu_to_be16(wc->dlid_path_bits);
sys/ofed/drivers/infiniband/core/ib_cm.c
1757
req_msg->alt_local_lid = cpu_to_be16(wc->slid);
sys/ofed/drivers/infiniband/core/ib_cm.c
1762
req_msg->alt_remote_lid = cpu_to_be16(wc->dlid_path_bits);
sys/ofed/drivers/infiniband/core/ib_cma.c
2598
path_rec.pkey = cpu_to_be16(ib_addr_get_pkey(dev_addr));
sys/ofed/drivers/infiniband/core/ib_cma.c
2609
path_rec.qos_class = cpu_to_be16((u16) id_priv->tos);
sys/ofed/drivers/infiniband/core/ib_cma.c
2818
route->path_rec->pkey = cpu_to_be16(0xffff);
sys/ofed/drivers/infiniband/core/ib_cma.c
4224
rec.pkey = cpu_to_be16(ib_addr_get_pkey(dev_addr));
sys/ofed/drivers/infiniband/core/ib_cma.c
4335
mc->multicast.ib->rec.pkey = cpu_to_be16(0xffff);
sys/ofed/drivers/infiniband/core/ib_mad.c
2077
resp_hdr->status = cpu_to_be16(IB_MGMT_MAD_STATUS_UNSUPPORTED_METHOD_ATTRIB);
sys/ofed/drivers/infiniband/core/ib_packer.c
132
case 16: *(__be16 *) ((char *)structure + offset) = cpu_to_be16(val); break;
sys/ofed/drivers/infiniband/core/ib_sa_query.c
1065
mad->mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_SERVICE_REC);
sys/ofed/drivers/infiniband/core/ib_sa_query.c
1157
mad->mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_MC_MEMBER_REC);
sys/ofed/drivers/infiniband/core/ib_sa_query.c
1255
mad->mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_GUID_INFO_REC);
sys/ofed/drivers/infiniband/core/ib_sa_query.c
1374
mad->mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_CLASS_PORTINFO);
sys/ofed/drivers/infiniband/core/ib_sa_query.c
940
mad->mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_PATH_REC);
sys/ofed/drivers/infiniband/core/ib_ucma.c
760
resp->ib_route[0].pkey = cpu_to_be16(ib_addr_get_pkey(dev_addr));
sys/ofed/drivers/infiniband/core/ib_ucma.c
786
resp->ib_route[0].pkey = cpu_to_be16(0xffff);
sys/ofed/drivers/infiniband/core/ib_ucma.c
870
resp->pkey = (__force __u16) cpu_to_be16(
sys/ofed/drivers/infiniband/core/ib_ud_header.c
356
header->lrh.packet_length = cpu_to_be16(packet_length);
sys/ofed/drivers/infiniband/core/ib_ud_header.c
360
header->eth.type = cpu_to_be16(ETH_P_8021Q);
sys/ofed/drivers/infiniband/core/ib_ud_header.c
365
cpu_to_be16((udp_bytes +
sys/ofed/drivers/infiniband/core/ib_ud_header.c
378
cpu_to_be16(IB_IP4_BYTES +
sys/ofed/drivers/infiniband/core/ib_ud_header.c
388
cpu_to_be16(IB_UDP_BYTES +
sys/ofed/drivers/infiniband/core/ib_user_mad.c
234
packet->mad.hdr.lid = cpu_to_be16(mad_recv_wc->wc->slid);
sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_main.c
604
path->pathrec.pkey = cpu_to_be16(priv->pkey);
sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_multicast.c
299
rec.pkey = cpu_to_be16(priv->pkey);
sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_multicast.c
418
rec.pkey = cpu_to_be16(priv->pkey);
sys/ofed/include/rdma/ib_cm.h
288
#define CM_REQ_ATTR_ID cpu_to_be16(0x0010)
sys/ofed/include/rdma/ib_cm.h
289
#define CM_MRA_ATTR_ID cpu_to_be16(0x0011)
sys/ofed/include/rdma/ib_cm.h
290
#define CM_REJ_ATTR_ID cpu_to_be16(0x0012)
sys/ofed/include/rdma/ib_cm.h
291
#define CM_REP_ATTR_ID cpu_to_be16(0x0013)
sys/ofed/include/rdma/ib_cm.h
292
#define CM_RTU_ATTR_ID cpu_to_be16(0x0014)
sys/ofed/include/rdma/ib_cm.h
293
#define CM_DREQ_ATTR_ID cpu_to_be16(0x0015)
sys/ofed/include/rdma/ib_cm.h
294
#define CM_DREP_ATTR_ID cpu_to_be16(0x0016)
sys/ofed/include/rdma/ib_cm.h
295
#define CM_SIDR_REQ_ATTR_ID cpu_to_be16(0x0017)
sys/ofed/include/rdma/ib_cm.h
296
#define CM_SIDR_REP_ATTR_ID cpu_to_be16(0x0018)
sys/ofed/include/rdma/ib_cm.h
297
#define CM_LAP_ATTR_ID cpu_to_be16(0x0019)
sys/ofed/include/rdma/ib_cm.h
298
#define CM_APR_ATTR_ID cpu_to_be16(0x001A)
sys/ofed/include/rdma/ib_mad.h
144
#define IB_NOTICE_PROD_CA cpu_to_be16(1)
sys/ofed/include/rdma/ib_mad.h
145
#define IB_NOTICE_PROD_SWITCH cpu_to_be16(2)
sys/ofed/include/rdma/ib_mad.h
146
#define IB_NOTICE_PROD_ROUTER cpu_to_be16(3)
sys/ofed/include/rdma/ib_mad.h
147
#define IB_NOTICE_PROD_CLASS_MGR cpu_to_be16(4)
sys/ofed/include/rdma/ib_mad.h
242
#define IB_MGMT_CLASSPORTINFO_ATTR_ID cpu_to_be16(0x0001)
sys/ofed/include/rdma/ib_pma.h
121
#define IB_PMA_SEL_SYMBOL_ERROR cpu_to_be16(0x0001)
sys/ofed/include/rdma/ib_pma.h
122
#define IB_PMA_SEL_LINK_ERROR_RECOVERY cpu_to_be16(0x0002)
sys/ofed/include/rdma/ib_pma.h
123
#define IB_PMA_SEL_LINK_DOWNED cpu_to_be16(0x0004)
sys/ofed/include/rdma/ib_pma.h
124
#define IB_PMA_SEL_PORT_RCV_ERRORS cpu_to_be16(0x0008)
sys/ofed/include/rdma/ib_pma.h
125
#define IB_PMA_SEL_PORT_RCV_REMPHYS_ERRORS cpu_to_be16(0x0010)
sys/ofed/include/rdma/ib_pma.h
126
#define IB_PMA_SEL_PORT_XMIT_DISCARDS cpu_to_be16(0x0040)
sys/ofed/include/rdma/ib_pma.h
127
#define IB_PMA_SEL_LOCAL_LINK_INTEGRITY_ERRORS cpu_to_be16(0x0200)
sys/ofed/include/rdma/ib_pma.h
128
#define IB_PMA_SEL_EXCESSIVE_BUFFER_OVERRUNS cpu_to_be16(0x0400)
sys/ofed/include/rdma/ib_pma.h
129
#define IB_PMA_SEL_PORT_VL15_DROPPED cpu_to_be16(0x0800)
sys/ofed/include/rdma/ib_pma.h
130
#define IB_PMA_SEL_PORT_XMIT_DATA cpu_to_be16(0x1000)
sys/ofed/include/rdma/ib_pma.h
131
#define IB_PMA_SEL_PORT_RCV_DATA cpu_to_be16(0x2000)
sys/ofed/include/rdma/ib_pma.h
132
#define IB_PMA_SEL_PORT_XMIT_PACKETS cpu_to_be16(0x4000)
sys/ofed/include/rdma/ib_pma.h
133
#define IB_PMA_SEL_PORT_RCV_PACKETS cpu_to_be16(0x8000)
sys/ofed/include/rdma/ib_pma.h
150
#define IB_PMA_SELX_PORT_XMIT_DATA cpu_to_be16(0x0001)
sys/ofed/include/rdma/ib_pma.h
151
#define IB_PMA_SELX_PORT_RCV_DATA cpu_to_be16(0x0002)
sys/ofed/include/rdma/ib_pma.h
152
#define IB_PMA_SELX_PORT_XMIT_PACKETS cpu_to_be16(0x0004)
sys/ofed/include/rdma/ib_pma.h
153
#define IB_PMA_SELX_PORT_RCV_PACKETS cpu_to_be16(0x0008)
sys/ofed/include/rdma/ib_pma.h
154
#define IB_PMA_SELX_PORT_UNI_XMIT_PACKETS cpu_to_be16(0x0010)
sys/ofed/include/rdma/ib_pma.h
155
#define IB_PMA_SELX_PORT_UNI_RCV_PACKETS cpu_to_be16(0x0020)
sys/ofed/include/rdma/ib_pma.h
156
#define IB_PMA_SELX_PORT_MULTI_XMIT_PACKETS cpu_to_be16(0x0040)
sys/ofed/include/rdma/ib_pma.h
157
#define IB_PMA_SELX_PORT_MULTI_RCV_PACKETS cpu_to_be16(0x0080)
sys/ofed/include/rdma/ib_pma.h
45
#define IB_PMA_CLASS_CAP_ALLPORTSELECT cpu_to_be16(1 << 8)
sys/ofed/include/rdma/ib_pma.h
46
#define IB_PMA_CLASS_CAP_EXT_WIDTH cpu_to_be16(1 << 9)
sys/ofed/include/rdma/ib_pma.h
47
#define IB_PMA_CLASS_CAP_EXT_WIDTH_NOIETF cpu_to_be16(1 << 10)
sys/ofed/include/rdma/ib_pma.h
48
#define IB_PMA_CLASS_CAP_XMIT_WAIT cpu_to_be16(1 << 12)
sys/ofed/include/rdma/ib_pma.h
50
#define IB_PMA_CLASS_PORT_INFO cpu_to_be16(0x0001)
sys/ofed/include/rdma/ib_pma.h
51
#define IB_PMA_PORT_SAMPLES_CONTROL cpu_to_be16(0x0010)
sys/ofed/include/rdma/ib_pma.h
52
#define IB_PMA_PORT_SAMPLES_RESULT cpu_to_be16(0x0011)
sys/ofed/include/rdma/ib_pma.h
53
#define IB_PMA_PORT_COUNTERS cpu_to_be16(0x0012)
sys/ofed/include/rdma/ib_pma.h
54
#define IB_PMA_PORT_COUNTERS_EXT cpu_to_be16(0x001D)
sys/ofed/include/rdma/ib_pma.h
55
#define IB_PMA_PORT_SAMPLES_RESULT_EXT cpu_to_be16(0x001E)
sys/ofed/include/rdma/ib_smi.h
154
#define IB_NOTICE_TRAP_LLI_THRESH cpu_to_be16(129)
sys/ofed/include/rdma/ib_smi.h
155
#define IB_NOTICE_TRAP_EBO_THRESH cpu_to_be16(130)
sys/ofed/include/rdma/ib_smi.h
156
#define IB_NOTICE_TRAP_FLOW_UPDATE cpu_to_be16(131)
sys/ofed/include/rdma/ib_smi.h
157
#define IB_NOTICE_TRAP_CAP_MASK_CHG cpu_to_be16(144)
sys/ofed/include/rdma/ib_smi.h
158
#define IB_NOTICE_TRAP_SYS_GUID_CHG cpu_to_be16(145)
sys/ofed/include/rdma/ib_smi.h
159
#define IB_NOTICE_TRAP_BAD_MKEY cpu_to_be16(256)
sys/ofed/include/rdma/ib_smi.h
160
#define IB_NOTICE_TRAP_BAD_PKEY cpu_to_be16(257)
sys/ofed/include/rdma/ib_smi.h
161
#define IB_NOTICE_TRAP_BAD_QKEY cpu_to_be16(258)
sys/ofed/include/rdma/ib_smi.h
68
#define IB_SMP_DIRECTION cpu_to_be16(0x8000)
sys/ofed/include/rdma/ib_smi.h
71
#define IB_SMP_ATTR_NOTICE cpu_to_be16(0x0002)
sys/ofed/include/rdma/ib_smi.h
72
#define IB_SMP_ATTR_NODE_DESC cpu_to_be16(0x0010)
sys/ofed/include/rdma/ib_smi.h
73
#define IB_SMP_ATTR_NODE_INFO cpu_to_be16(0x0011)
sys/ofed/include/rdma/ib_smi.h
74
#define IB_SMP_ATTR_SWITCH_INFO cpu_to_be16(0x0012)
sys/ofed/include/rdma/ib_smi.h
75
#define IB_SMP_ATTR_GUID_INFO cpu_to_be16(0x0014)
sys/ofed/include/rdma/ib_smi.h
76
#define IB_SMP_ATTR_PORT_INFO cpu_to_be16(0x0015)
sys/ofed/include/rdma/ib_smi.h
77
#define IB_SMP_ATTR_PKEY_TABLE cpu_to_be16(0x0016)
sys/ofed/include/rdma/ib_smi.h
78
#define IB_SMP_ATTR_SL_TO_VL_TABLE cpu_to_be16(0x0017)
sys/ofed/include/rdma/ib_smi.h
79
#define IB_SMP_ATTR_VL_ARB_TABLE cpu_to_be16(0x0018)
sys/ofed/include/rdma/ib_smi.h
80
#define IB_SMP_ATTR_LINEAR_FORWARD_TABLE cpu_to_be16(0x0019)
sys/ofed/include/rdma/ib_smi.h
81
#define IB_SMP_ATTR_RANDOM_FORWARD_TABLE cpu_to_be16(0x001A)
sys/ofed/include/rdma/ib_smi.h
82
#define IB_SMP_ATTR_MCAST_FORWARD_TABLE cpu_to_be16(0x001B)
sys/ofed/include/rdma/ib_smi.h
83
#define IB_SMP_ATTR_SM_INFO cpu_to_be16(0x0020)
sys/ofed/include/rdma/ib_smi.h
84
#define IB_SMP_ATTR_VENDOR_DIAG cpu_to_be16(0x0030)
sys/ofed/include/rdma/ib_smi.h
85
#define IB_SMP_ATTR_LED_INFO cpu_to_be16(0x0031)
sys/ofed/include/rdma/ib_smi.h
86
#define IB_SMP_ATTR_VENDOR_MASK cpu_to_be16(0xFF00)
sys/ofed/include/rdma/ib_verbs.h
723
#define IB_LID_PERMISSIVE cpu_to_be16(0xFFFF)
sys/ofed/include/rdma/ib_verbs.h
724
#define IB_MULTICAST_LID_BASE cpu_to_be16(0xC000)
sys/ofed/include/rdma/opa_smi.h
100
#define OPA_ATTRIB_ID_BUFFER_CONTROL_TABLE cpu_to_be16(0x008A)
sys/ofed/include/rdma/opa_smi.h
84
#define OPA_ATTRIB_ID_NODE_DESCRIPTION cpu_to_be16(0x0010)
sys/ofed/include/rdma/opa_smi.h
85
#define OPA_ATTRIB_ID_NODE_INFO cpu_to_be16(0x0011)
sys/ofed/include/rdma/opa_smi.h
86
#define OPA_ATTRIB_ID_PORT_INFO cpu_to_be16(0x0015)
sys/ofed/include/rdma/opa_smi.h
87
#define OPA_ATTRIB_ID_PARTITION_TABLE cpu_to_be16(0x0016)
sys/ofed/include/rdma/opa_smi.h
88
#define OPA_ATTRIB_ID_SL_TO_SC_MAP cpu_to_be16(0x0017)
sys/ofed/include/rdma/opa_smi.h
89
#define OPA_ATTRIB_ID_VL_ARBITRATION cpu_to_be16(0x0018)
sys/ofed/include/rdma/opa_smi.h
90
#define OPA_ATTRIB_ID_SM_INFO cpu_to_be16(0x0020)
sys/ofed/include/rdma/opa_smi.h
91
#define OPA_ATTRIB_ID_CABLE_INFO cpu_to_be16(0x0032)
sys/ofed/include/rdma/opa_smi.h
92
#define OPA_ATTRIB_ID_AGGREGATE cpu_to_be16(0x0080)
sys/ofed/include/rdma/opa_smi.h
93
#define OPA_ATTRIB_ID_SC_TO_SL_MAP cpu_to_be16(0x0082)
sys/ofed/include/rdma/opa_smi.h
94
#define OPA_ATTRIB_ID_SC_TO_VLR_MAP cpu_to_be16(0x0083)
sys/ofed/include/rdma/opa_smi.h
95
#define OPA_ATTRIB_ID_SC_TO_VLT_MAP cpu_to_be16(0x0084)
sys/ofed/include/rdma/opa_smi.h
96
#define OPA_ATTRIB_ID_SC_TO_VLNT_MAP cpu_to_be16(0x0085)
sys/ofed/include/rdma/opa_smi.h
98
#define OPA_ATTRIB_ID_PORT_STATE_INFO cpu_to_be16(0x0087)