to_be16
in.mlxi_set_issi_current = to_be16(issi);
in.mlxi_teardown_hca_profile = to_be16(MLXCX_TEARDOWN_HCA_GRACEFUL);
in.mlxi_query_nic_vport_ctx_vport_number = to_be16(mlp->mlp_num);
in.mlxi_access_register_register_id = to_be16(rid);
data.mlrd_pmtu.mlrd_pmtu_admin_mtu = to_be16(mlp->mlp_mtu);
data.mlrd_mlcr.mlrd_mlcr_beacon_duration = to_be16(sec);
in.mlxi_modify_nic_vport_ctx_vport_number = to_be16(mlp->mlp_num);
ctx->mlnvc_mtu = to_be16(mlp->mlp_mtu);
ctx->mlcqc_cq_period = to_be16(mlcq->mlcq_cqemod_period_usec);
ctx->mlcqc_cq_max_count = to_be16(mlcq->mlcq_cqemod_count);
mlwq->mlwq_doorbell->mlwqd_recv_counter = to_be16(0);
to_be16(mlft->mlft_port->mlp_num);
to_be16(mlft->mlft_port->mlp_num);
to_be16(mlft->mlft_port->mlp_num);
to_be16(mlft->mlft_port->mlp_num);
to_be16(mlft->mlft_port->mlp_num);
to_be16(mlft->mlft_port->mlp_num);
ctx->mlfec_action = to_be16(mlfe->mlfe_action);
to_be16(mlft->mlft_port->mlp_num);
ctx->mlsqc_tis_lst_sz = to_be16(1);
mlwq->mlwq_doorbell->mlwqd_recv_counter = to_be16(0);
ctx->mlrqtc_max_size = to_be16(mlrqt->mlrqt_max);
ctx->mlrqtc_actual_size = to_be16(mlrqt->mlrqt_used);
in.mlxi_config_int_mod_int_vector = to_be16(intr);
in.mlxi_config_int_mod_min_delay = to_be16(min_delay);
#define MLXCX_FUNCTION_SELF (to_be16(0))
in->mci_opcode = to_be16(op);
in->mci_op_mod = to_be16(mod);
data.mlrd_mcia.mlrd_mcia_device_addr = to_be16(offset);
data.mlrd_mcia.mlrd_mcia_size = to_be16(take);
mlwq->mlwq_doorbell->mlwqd_send_counter = to_be16(mlwq->mlwq_pc);
ent0->mlsqe_control.mlcs_wqe_index = to_be16(start_pc);
ent0->mlsqe_control.mlcs_wqe_index = to_be16(b0->mlb_wqe_index);
mlwq->mlwq_doorbell->mlwqd_recv_counter = to_be16(mlwq->mlwq_pc);
data.mlrd_mtmp.mlrd_mtmp_sensor_index = to_be16(sensor->mlts_index);