le16_to_cpu
*var = cpu_to_le16(le16_to_cpu(*var) + val);
le16_to_cpu(f->u.beacon.beacon_int),
le16_to_cpu(f->u.beacon.capab_info), ssid);
softc->legacy_db_size = le16_to_cpu(resp->legacy_l2_db_size_kb) * 1024;
softc->db_size = roundup2(le16_to_cpu(resp->l2_doorbell_bar_size_kb) *
type = le16_to_cpu(resp->next_valid_type);
ctxm->type = le16_to_cpu(resp->type);
ctxm->entry_size = le16_to_cpu(resp->entry_size);
init_mask = le16_to_cpu(resp->ctx_init_mask);
ctxm->qp_qp1_entries = le16_to_cpu(resp->qp_min_qp1_entries);
ctxm->qp_l2_entries = le16_to_cpu(resp->qp_max_l2_entries);
ctxm->entry_size = le16_to_cpu(resp->qp_entry_size);
ctxm->srq_l2_entries = le16_to_cpu(resp->srq_max_l2_entries);
ctxm->entry_size = le16_to_cpu(resp->srq_entry_size);
ctxm->cq_l2_entries = le16_to_cpu(resp->cq_max_l2_entries);
ctxm->entry_size = le16_to_cpu(resp->cq_entry_size);
le16_to_cpu(resp->vnic_max_ring_table_entries);
ctxm->entry_size = le16_to_cpu(resp->vnic_entry_size);
ctxm->entry_size = le16_to_cpu(resp->stat_entry_size);
ctxm->entry_size = le16_to_cpu(resp->tqm_entry_size);
ctxm->entry_size = le16_to_cpu(resp->mrav_entry_size);
le16_to_cpu(resp->mrav_num_entries_units);
ctxm->entry_size = le16_to_cpu(resp->tim_entry_size);
u16 event_id = le16_to_cpu(cmpl->event_id);
*fw_ring_id = le16_to_cpu(resp.ring_id);
cctx->hwrm_intf_ver = (u64) le16_to_cpu(resp.hwrm_intf_major) << 48 |
(u64) le16_to_cpu(resp.hwrm_intf_minor) << 32 |
(u64) le16_to_cpu(resp.hwrm_intf_build) << 16 |
le16_to_cpu(resp.hwrm_intf_patch);
cctx->hwrm_cmd_max_timeout = le16_to_cpu(resp.max_req_timeout);
cctx->chip_num = le16_to_cpu(resp.chip_num);
*db_len = PAGE_ALIGN(le16_to_cpu(resp.l2_doorbell_bar_size_kb) * 1024);
*offset = PAGE_ALIGN(le16_to_cpu(resp.legacy_l2_db_size_kb) * 1024);
for (i = 0; i < le16_to_cpu(resp.entry_cnt) && i < in_count; i++) {
*count = le16_to_cpu(resp.entry_cnt);
*first_pf = le16_to_cpu(resp.first_pf_id);
*pf_mask = le16_to_cpu(resp.pf_ordinal_mask);
event_id = le16_to_cpu(cmpl->event_id);
qp->pkey_index = le16_to_cpu(sb->pkey);
if (res->sgid_tbl.hw_id[i] == le16_to_cpu(sb->sgid_index)) {
qp->id, le16_to_cpu(sb->sgid_index));
qp->ah.vlan_id = le16_to_cpu(sb->path_mtu_dest_vlan_id) &
qp->path_mtu = le16_to_cpu(sb->path_mtu_dest_vlan_id) &
qp->sq.max_sge = le16_to_cpu(sb->sq_sge);
qp->rq.max_sge = le16_to_cpu(sb->rq_sge);
qp->vlan_id = le16_to_cpu(sb->vlan_pcp_vlan_dei_vlan_id);
qp->port_id = le16_to_cpu(sb->port_id);
total_cnq_events = le16_to_cpu(resp.total_cnq_events);
type = le16_to_cpu(hw_nqe->info10_type) &
((le16_to_cpu(
cqe_sq_cons = le16_to_cpu(hwcqe->sq_cons_idx) % sq->max_sw_wqe;
slot_num = le16_to_cpu(hwcqe->sq_cons_idx);
cqe->flags = le16_to_cpu(hwcqe->flags);
cqe->cfa_meta = le16_to_cpu(hwcqe->cfa_metadata0);
cqe->flags = le16_to_cpu(hwcqe->flags);
smac[2] = ntohs(le16_to_cpu(hwcqe->src_mac[0]));
smac[1] = ntohs(le16_to_cpu(hwcqe->src_mac[1]));
smac[0] = ntohs(le16_to_cpu(hwcqe->src_mac[2]));
cqe->src_qp = le16_to_cpu(hwcqe->src_qp_low) |
cqe->flags = le16_to_cpu(hwcqe->flags);
cqe->length = le16_to_cpu(hwcqe->length);
cqe->raweth_qp1_flags = le16_to_cpu(hwcqe->raweth_qp1_flags);
cqe_cons = le16_to_cpu(hwcqe->sq_cons_idx);
cqe_cons = le16_to_cpu(hwcqe->rq_cons_idx);
type = le16_to_cpu(nqe->info10_type) & NQ_BASE_TYPE_MASK;
cq->toggle = (le16_to_cpu(nqe->info10_type) & NQ_CN_TOGGLE_MASK) >> NQ_CN_TOGGLE_SFT;
toggle = (le16_to_cpu(nqe->info10_type) & NQ_CN_TOGGLE_MASK)
cookie = le16_to_cpu(__get_cmdq_base_cookie(msg->req,
cookie = le16_to_cpu(event->cookie);
attr->max_qp_wqes = le16_to_cpu(sb->max_qp_wr) - 1;
attr->max_srq = bnxt_re_cap_fw_res(le16_to_cpu(sb->max_srq),
le16_to_cpu(sb->max_inline_data_var_wqe);
attr->dev_cap_flags = le16_to_cpu(sb->dev_cap_flags);
attr->dev_cap_ext_flags2 = le16_to_cpu(sb->dev_cap_ext_flags_2);
cc_ext->inact_th_hi = le16_to_cpu(sb->inactivity_th_hi);
cc_ext->min_delta_cnp = le16_to_cpu(sb->min_time_between_cnps);
cc_ext->init_cp = le16_to_cpu(sb->init_cp);
cc_ext->rr_rtt_th = le16_to_cpu(sb->reduction_relax_rtts_th);
cc_ext->ar_cr_th = le16_to_cpu(sb->additional_relax_cr_th);
cc_ext->cr_min_th = le16_to_cpu(sb->cr_min_th);
cc_ext->cr_th_max_cp = le16_to_cpu(sb->max_cp_cr_th);
cc_ext->bytes_per_usec = le16_to_cpu(sb->link_bytes_per_usec);
cc_ext->cc_cr_reset_th = le16_to_cpu(sb->reset_cc_cr_th);
cc_ext->tr_lb = le16_to_cpu(sb->tr_lower_bound);
cc_ext->fair_cr_th = le16_to_cpu(sb->fairness_cr_th);
cc_ext->ai_ext_rtt = le16_to_cpu(sb->exp_ai_rtts);
cc_ext->cpcr_update_th = le16_to_cpu(sb->cp_exp_update_th);
cc_ext->ai_rtt_th1 = le16_to_cpu(sb->high_exp_ai_rtts_th1);
cc_ext->ai_rtt_th2 = le16_to_cpu(sb->high_exp_ai_rtts_th2);
cc_ext->cf_rtt_th = le16_to_cpu(sb->actual_cr_cong_free_rtts_th);
cc_ext->sc_cr_th1 = le16_to_cpu(sb->severe_cong_cr_th1);
cc_ext->sc_cr_th2 = le16_to_cpu(sb->severe_cong_cr_th2);
cc_ext->reduce_cf_rtt_th = le16_to_cpu(sb->reduce_init_cong_free_rtts_th);
cc_param->init_cr = le16_to_cpu(sb->init_cr);
cc_param->init_tr = le16_to_cpu(sb->init_tr);
cc_param->inact_th = le16_to_cpu(sb->inactivity_th);
cc_param->rtt = le16_to_cpu(sb->rtt);
cc_param->tcp_cp = le16_to_cpu(sb->tcp_cp);
if (le16_to_cpu(*(u16*)header->signature) != BOOT_SIGNATURE) {
le16_to_cpu(*(u16*)header->pcir_offset)];
pcir_offset = le16_to_cpu(*(u16 *)header->pcir_offset);
if (le16_to_cpu(*(u16*)header->signature) != BOOT_SIGNATURE ) {
if (le16_to_cpu(*(u16*)pcir_header->vendor_id) != VENDOR_ID) {
if (le16_to_cpu(*(u16*)pcir_header->device_id) != device_id) {
mode->clock = le16_to_cpu(timing->pixel_clock) * 10;
*q_number = le16_to_cpu(desc->q_number) & CQ_DESC_Q_NUM_MASK;
*completed_index = le16_to_cpu(desc->completed_index) &
completed_index_flags = le16_to_cpu(desc->completed_index_flags);
le16_to_cpu(desc->q_number_rss_type_flags);
bytes_written_flags = le16_to_cpu(desc->bytes_written_flags);
*vlan_tci = le16_to_cpu(desc->vlan);
*fcoe_sof = (u8)(le16_to_cpu(desc->checksum_fcoe) &
*fcoe_eof = (u8)((le16_to_cpu(desc->checksum_fcoe) >>
*checksum = le16_to_cpu(desc->checksum_fcoe);
*length = le16_to_cpu(desc->length_type) & RQ_ENET_LEN_MASK;
*type = (u8)((le16_to_cpu(desc->length_type) >> RQ_ENET_LEN_BITS) &
*length = le16_to_cpu(desc->length) & WQ_ENET_LEN_MASK;
*mss = (le16_to_cpu(desc->mss_loopback) >> WQ_ENET_MSS_SHIFT) &
*loopback = (u8)((le16_to_cpu(desc->mss_loopback) >>
*header_length = le16_to_cpu(desc->header_length_flags) &
*offload_mode = (u8)((le16_to_cpu(desc->header_length_flags) >>
*eop = (u8)((le16_to_cpu(desc->header_length_flags) >>
*cq_entry = (u8)((le16_to_cpu(desc->header_length_flags) >>
*fcoe_encap = (u8)((le16_to_cpu(desc->header_length_flags) >>
*vlan_tag_insert = (u8)((le16_to_cpu(desc->header_length_flags) >>
*vlan_tag = le16_to_cpu(desc->vlan_tag);
pf_info->qs_handle[i] = le16_to_cpu(pf->vsi.info.qs_handle[0]);
txq.rdylist = le16_to_cpu(vf->vsi.info.qs_handle[0]);
hw_comp_cons = le16_to_cpu(*cnq->hw_cons_ptr);
le16_to_cpu(qp->sq.db_data.data.value),
if (le16_to_cpu(resp->rq_cons) == qp->rq.wqe_cons) {
if (le16_to_cpu(req->sq_cons) == qp->sq.wqe_cons) {