be16_to_cpu
*var = cpu_to_be16(be16_to_cpu(*var) + val);
ret = be16_to_cpu(mii_val);
be16_to_cpu(p->valid_to_idx));
be16_to_cpu(p->valid_to_idx));
ret = G_FW_VI_MAC_CMD_IDX(be16_to_cpu(p->valid_to_idx));
lc->pcaps = fwcaps16_to_caps32(be16_to_cpu(p->u.info.pcap));
lc->acaps = fwcaps16_to_caps32(be16_to_cpu(p->u.info.acap));
lc->lpacaps = fwcaps16_to_caps32(be16_to_cpu(p->u.info.lpacap));
ret = G_FW_VI_MAC_CMD_IDX(be16_to_cpu(p->valid_to_idx));
ret = G_FW_VI_MAC_CMD_IDX(be16_to_cpu(p->valid_to_idx));
if ((unsigned int) be16_to_cpu(hdr->len512) * 512 != size) {
*valp = be16_to_cpu(c.u.mdio.rval);
ret = G_FW_VI_CMD_VIID(be16_to_cpu(c.type_to_viid));
*rss_size = G_FW_VI_CMD_RSSSIZE(be16_to_cpu(c.norss_rsssize));
ret = G_FW_VI_MAC_CMD_IDX(be16_to_cpu(p->valid_to_idx));
vlan = be16_to_cpu(cmd.vlanid[0]);
mpa_frame->priv_data_len = cpu_to_be16(be16_to_cpu(mpa_frame->priv_data_len) +
be16_to_cpu(smp->attr_id));
vhcr->token = be16_to_cpu(vhcr_cmd->token);
vhcr->op = be16_to_cpu(vhcr_cmd->opcode) & 0xfff;
vhcr->op_modifier = (u8) (be16_to_cpu(vhcr_cmd->opcode) >> 12);
pkey[i] = be16_to_cpu(((__be16 *) out_mad->data)[i]);
be16_to_cpu(eqe->event.cmd.token),
be16_to_cpu(eqe->event.warming.warning_threshold),
be16_to_cpu(eqe->event.warming.current_temperature));
params->vxlan_udp_dport = be16_to_cpu(config_dev.vxlan_udp_dport);
u16 reg_id = be16_to_cpu(inbuf->reg_id);
be16_to_cpu(cur->eth.ether_type));
be16_to_cpu(cur->eth.vlan_id));
be16_to_cpu(cur->tcp_udp.src_port));
be16_to_cpu(cur->tcp_udp.dst_port));
mtu = be16_to_cpu(gen_context->mtu);
if (be16_to_cpu(outmad->status)) {
ret = be16_to_cpu(outmad->status);
header_id = map_hw_to_sw_id(be16_to_cpu(rule_header->id));
*limit_watermark = be16_to_cpu(srq_context->limit_watermark);
mb->m_pkthdr.ether_vtag = be16_to_cpu(cqe->sl_vid);
new_index = be16_to_cpu(cqe->wqe_index) & size_mask;
ah_attr->dlid = ll == IB_LINK_LAYER_INFINIBAND ? be16_to_cpu(ah->av.ib.dlid) : 0;
be16_to_cpu(guid_rec->lid), cb_ctx->port,
be32_to_cpu(cqe->my_qpn), be16_to_cpu(cqe->wqe_index),
wc->pkey_index = be16_to_cpu(hdr->tun.pkey_index);
wc->vlan_id = be16_to_cpu(hdr->tun.sl_vid);
wc->slid = be16_to_cpu(hdr->tun.slid_mac_47_32);
wc->sl = (u8) (be16_to_cpu(hdr->tun.sl_vid) >> 12);
wqe_ctr = be16_to_cpu(cqe->wqe_index);
wqe_ctr = be16_to_cpu(cqe->wqe_index);
wqe_ctr = be16_to_cpu(cqe->wqe_index);
wc->sl = be16_to_cpu(cqe->sl_vid) >> 13;
wc->vlan_id = be16_to_cpu(cqe->sl_vid) &
wc->slid = be16_to_cpu(cqe->rlid);
wc->sl = be16_to_cpu(cqe->sl_vid) >> 12;
mlx4_ib_free_srq_wqe(srq, be16_to_cpu(cqe->wqe_index));
u16 lid = be16_to_cpu(eqe->event.port_mgmt_change.params.port_info.mstr_sm_lid);
switch (be16_to_cpu(sa_mad->mad_hdr.attr_id)) {
vlan_id = be16_to_cpu(tunnel->hdr.vlan);
be16_to_cpu(tunnel->hdr.pkey_index),
lid = be16_to_cpu(pinfo->lid);
be16_to_cpu(pinfo->sm_lid),
i + bn*32, be16_to_cpu(base[i]));
if (be16_to_cpu(base[i]) !=
be16_to_cpu(base[i]);
switch (be16_to_cpu(sa_mad->mad_hdr.attr_id)) {
be16_to_cpu(in_mad->mad_hdr.attr_id));
slid = in_wc ? in_wc->slid : be16_to_cpu(IB_LID_PERMISSIVE);
*pkey = be16_to_cpu(((__be16 *) out_mad->data)[index % 32]);
be16_to_cpu(group->rec.pkey),
status = be16_to_cpu(group->response_sa_mad.mad_hdr.status);
vlan = be16_to_cpu(ah->av.eth.vlan) & 0x0fff;
ib_ah_attr->dlid = be16_to_cpu(path->rlid);
srq->head = be16_to_cpu(next->next_wqe_index);
be16_to_cpu(((__be16 *) gid.raw)[0]),
be16_to_cpu(((__be16 *) gid.raw)[1]),
be16_to_cpu(((__be16 *) gid.raw)[2]),
be16_to_cpu(((__be16 *) gid.raw)[3]),
be16_to_cpu(((__be16 *) gid.raw)[4]),
be16_to_cpu(((__be16 *) gid.raw)[5]),
be16_to_cpu(((__be16 *) gid.raw)[6]),
be16_to_cpu(((__be16 *) gid.raw)[7]));
#define MLX5_GET16(typ, p, fld) ((be16_to_cpu(*((__be16 *)(p) +\
cpu_to_be16((be16_to_cpu(*((__be16 *)(p) + __mlx5_16_off(typ, fld))) & \
return be16_to_cpu(cqe->vlan_info) & 0xfff;
type = be16_to_cpu(object->obj_type);
u16 func_id = be16_to_cpu(eqe->data.req_pages.func_id);
u16 vport_num = be16_to_cpu(vc_eqe->vport_num);
u16 vport_num = be16_to_cpu(vc_eqe->vport_num);
mlx5_wq_ll_push(&rq->wq, be16_to_cpu(wqe->next.next_wqe_index));
mb->m_pkthdr.ether_vtag = be16_to_cpu(cqe->vlan_info);
title_wqe_counter = be16_to_cpu(title.wqe_counter);
wqe_counter = be16_to_cpu(wqe_counter_be);
ix = be16_to_cpu(cqe->wqe_counter) & (conn->qp.rq.size - 1);
ix = be16_to_cpu(cqe->wqe_counter) & (conn->qp.sq.size - 1);
ah_attr->dlid = be16_to_cpu(ah->av.rlid);
mlx5_ib_free_srq_wqe(srq, be16_to_cpu(cqe64->wqe_counter));
wqe_ctr = be16_to_cpu(cqe->wqe_counter);
wc->slid = be16_to_cpu(cqe->slid);
wc->vlan_id = (be16_to_cpu(cqe->vlan_info)) & 0xfff;
wc->sl = (be16_to_cpu(cqe->vlan_info) >> 13) & 0x7;
u16 syndrome = be16_to_cpu(cqe->syndrome);
wqe_ctr = be16_to_cpu(cqe64->wqe_counter);
wqe_ctr = be16_to_cpu(cqe64->wqe_counter);
wqe_ctr = be16_to_cpu(cqe64->wqe_counter);
packet_error = be16_to_cpu(out_mad->status);
*pkey = be16_to_cpu(((__be16 *)out_mad->data)[index % 32]);
slid = in_wc ? in_wc->slid : be16_to_cpu(IB_LID_PERMISSIVE);
seg->xlt_oct_size = cpu_to_be32(be16_to_cpu(get_klm_octo(nelements)));
ib_ah_attr->dlid = be16_to_cpu(path->rlid);
be16_to_cpu(context->alt_path.pkey_index);
qp_attr->pkey_index = be16_to_cpu(context->pri_path.pkey_index);
srq->head = be16_to_cpu(next->next_wqe_index);
psid->psid, be16_to_cpu(tlv->len), true);
be16_to_cpu(cptr->component_index));
pr_debug(" -- Component type %d\n", be16_to_cpu(cdesc->identifier));
mfa2_file->dev_count = be16_to_cpu(pd->num_devices);
mfa2_file->component_count = be16_to_cpu(pd->num_components);
if (be16_to_cpu(tlv->len) != psid_size)
comp_idx = be16_to_cpu(cptr->component_index);
comp_data->comp.index = be16_to_cpu(comp->identifier);
tlv_top = (const u8 *) tlv + be16_to_cpu(tlv->len) - 1;
if (varsize && (be16_to_cpu(tlv->len) < payload_size))
if (!varsize && (be16_to_cpu(tlv->len) != payload_size))
NLA_ALIGN(sizeof(*(tlv)) + be16_to_cpu((tlv)->len))
tlv_len = NLA_ALIGN(tlv_len + be16_to_cpu(multi->total_len));
be16_to_cpu(multi->num_extensions) + 1)
attr->dlid = be16_to_cpu(ah->av->dlid);
entry->slid = be16_to_cpu(cqe->rlid);
be16_to_cpu(eqe->event.cmd.token),
u16 lid = be16_to_cpu(pinfo->lid);
be16_to_cpu(pinfo->sm_lid),
u16 slid = in_wc ? in_wc->slid : be16_to_cpu(IB_LID_PERMISSIVE);
*pkey = be16_to_cpu(((__be16 *) out_mad->data)[index % 32]);
ib_ah_attr->dlid = be16_to_cpu(path->rlid);
srq_attr->srq_limit = be16_to_cpu(arbel_ctx->limit_watermark);
srq_attr->srq_limit = be16_to_cpu(tavor_ctx->limit_watermark);
attr_index = be16_to_cpu(((struct ib_mad_hdr *)
attr_id = be16_to_cpu(mad_recv_wc->recv_buf.mad->mad_hdr.attr_id);
be16_to_cpu(path->pkey), &av->pkey_index);
req->pkey = be16_to_cpu(req_param->primary_path->pkey);
ib_addr_set_pkey(&rt->addr.dev_addr, be16_to_cpu(rt->path_rec[0].pkey));
return cpu_to_be64(((u64)id->ps << 16) + be16_to_cpu(cma_port(addr)));
be16_to_cpu(multicast->rec.mlid));
be16_to_cpu(mc->multicast.ib->rec.mlid));
be16_to_cpu(IB_LID_PERMISSIVE),
drslid = be16_to_cpu(smp->dr_slid);
be16_to_cpu(group->rec.pkey), &pkey_index);
be16_to_cpu(rec->pkey), &pkey_index))
ah_attr->dlid = be16_to_cpu(rec->mlid);
ah_attr->dlid = be16_to_cpu(rec->dlid);
ah_attr->src_path_bits = be16_to_cpu(rec->slid) &
be16_to_cpu(((__be16 *) &dev->attrs.sys_image_guid)[0]),
be16_to_cpu(((__be16 *) &dev->attrs.sys_image_guid)[1]),
be16_to_cpu(((__be16 *) &dev->attrs.sys_image_guid)[2]),
be16_to_cpu(((__be16 *) &dev->attrs.sys_image_guid)[3]));
be16_to_cpu(((__be16 *) &dev->node_guid)[0]),
be16_to_cpu(((__be16 *) &dev->node_guid)[1]),
be16_to_cpu(((__be16 *) &dev->node_guid)[2]),
be16_to_cpu(((__be16 *) &dev->node_guid)[3]));
ah_attr.dlid = be16_to_cpu(packet->mad.hdr.lid);
return !(lid < be16_to_cpu(IB_MULTICAST_LID_BASE) ||
lid == be16_to_cpu(IB_LID_PERMISSIVE));
be16_to_cpu(path.pathrec.dlid),
be16_to_cpu(((__be16 *) gid->raw)[i]));
be16_to_cpu(path->pathrec.dlid),
be16_to_cpu(pathrec->dlid), pathrec->dgid.raw, ":");
ah, be16_to_cpu(pathrec->dlid), pathrec->sl);
ret = ipoib_mcast_attach(priv, be16_to_cpu(mcast->mcmember.mlid),
.dlid = be16_to_cpu(mcast->mcmember.mlid),
be16_to_cpu(mcast->mcmember.mlid),
be16_to_cpu(mcast->mcmember.mlid));
printk("Status.........0x%02x\n", be16_to_cpu(mad_hdr->status));
print_status_details(be16_to_cpu(mad_hdr->status));
printk("Class specific.0x%02x\n", be16_to_cpu(mad_hdr->class_specific));
be16_to_cpu(mad_hdr->attr_id),
get_sa_attr(be16_to_cpu(mad_hdr->attr_id)));
be16_to_cpu(mad_hdr->attr_id));
printk("Status.........0x%02x\n", be16_to_cpu(smp->status));
print_status_details(be16_to_cpu(smp->status));
printk("Attr ID........0x%02x (%s)\n", be16_to_cpu(smp->attr_id),
printk("DR SLID........0x%02x\n", be16_to_cpu(smp->dr_slid));
printk("DR DLID........0x%02x", be16_to_cpu(smp->dr_dlid));
if (attr_id && be16_to_cpu(hdr->attr_id) != attr_id)
if (attr_id && be16_to_cpu(mad_recv_wc->recv_buf.mad->mad_hdr.attr_id) != attr_id)
if (attr_id && be16_to_cpu(hdr->attr_id) != attr_id)
if (attr_id && be16_to_cpu(mad_recv_wc->recv_buf.mad->mad_hdr.attr_id) != attr_id)