lemtoh16
return lemtoh16((volatile uint16_t *)(h + o));
switch (lemtoh16(&sie->ioc_status)) {
sc->sc_maxcmds = lemtoh16(&ifp.global_credits);
sc->sc_repq = MIN(MPI_REPLYQ_DEPTH, lemtoh16(&ifp.reply_queue_depth));
sc->sc_first_sgl_len = ((lemtoh16(&ifp.request_frame_size) * 4) -
sc->sc_chain_len = (lemtoh16(&ifp.request_frame_size) * 4) /
sc->sc_target = lemtoh16(&pfp->port_scsi_id);
if (lemtoh16(&upp->ioc_status) != MPI_IOCSTATUS_SUCCESS)
if (lemtoh16(&cp->ioc_status) != MPI_IOCSTATUS_SUCCESS)
lemtoh16(&ehdr->ext_page_length) : hdr->page_length;
if (lemtoh16(&cp->ioc_status) != MPI_IOCSTATUS_SUCCESS)
enabled = ISSET(lemtoh16(&rpg0->settings.volume_settings),
switch (lemtoh16(&rep->action_status)) {
pagelen = lemtoh16(&ehdr.ext_page_length) * 4;
flags = lemtoh16(&cqe->flags);
ccb->ccb_cqe_flags = lemtoh16(&cqe->flags);
flags = lemtoh16(&acqe->flags);
flags = lemtoh16(&icqe->flags);
lemtoh16(&idctrl->oacs), NVM_ID_CTRL_OACS_FMT,
lemtoh16(&idctrl->oncs), NVM_ID_CTRL_ONCS_FMT);
ms = lemtoh16(&idns->lbaf[i].ms);
kstat_kv_u16(&kvs->miss_pkt) = lemtoh16(&rs->re_miss_pkt);
kstat_kv_u16(&kvs->fae) = lemtoh16(&rs->re_fae);
kstat_kv_u16(&kvs->tx_abt) = lemtoh16(&rs->re_tx_abt);
kstat_kv_u16(&kvs->tx_undrn) = lemtoh16(&rs->re_tx_undrn);
#define le16_to_cpup(x) lemtoh16(x)
htolem16(p, lemtoh16(p) + n);
val = lemtoh16(addr);
status = lemtoh16(&rxd->status);
pktlen = lemtoh16(&rxd->pkt_len);
m->m_pkthdr.ether_vtag = lemtoh16(&rxd->vlan);
errors = lemtoh16(&rxhi->errors_v2);
m->m_pkthdr.ether_vtag = lemtoh16(&rxhi->metadata);
if (lemtoh16(&rxlo->flags_type) & RX_PKT_CMPL_FLAGS_RSS_VALID) {
((lemtoh16(&rxlo->flags_type) & RX_PKT_CMPL_FLAGS_ITYPE_TCP) ==
lemtoh16(&rxd->l2tag1);
lemtoh16(&rxdesc->wb.lower.lo_dword.hs_rss.pkt_info) &
lemtoh16(&rxd->l2tag1);
retval = lemtoh16(&iaq->iaq_retval);
lemtoh16(&iaq->iaq_flags), IXL_AQ_FLAGS_FMT,
lemtoh16(&iaq->iaq_opcode));
lemtoh16(&iaq->iaq_datalen), lemtoh16(&iaq->iaq_retval));
nelm = lemtoh16(&hdr->num_reported);
elm->type, elm->revision, lemtoh16(&elm->seid));
lemtoh16(&elm->uplink_seid),
lemtoh16(&elm->downlink_seid));
lemtoh16(&elm->scheduler_id),
lemtoh16(&elm->element_info));
return (lemtoh16(&iaq.iaq_retval));
dev, reg, lemtoh16(&iaq->iaq_retval));
dev, reg, v, lemtoh16(&iaq->iaq_retval));
lemtoh16(&iaq.iaq_retval));
lemtoh16(&iaq.iaq_retval));
retval = lemtoh16(&iaq->iaq_retval);
retval = lemtoh16(&iaq->iaq_retval);
lemtoh16(&sc->sc_vsi_number));
kstat_kv_u16(&kvs->miss_pkt) = lemtoh16(&rs->rge_miss_pkt);
kstat_kv_u16(&kvs->fae) = lemtoh16(&rs->rge_fae);
kstat_kv_u16(&kvs->tx_abt) = lemtoh16(&rs->rge_tx_abt);
kstat_kv_u16(&kvs->tx_undrn) = lemtoh16(&rs->rge_tx_undrn);
lemtoh16(&pd->device_id), lemtoh16(&pd->encl_id),
scsi_probe_target(sc->sc_pd->pd_scsibus, lemtoh16(&pd->device_id));
lemtoh16(&pd->device_id), lemtoh16(&pd->encl_id),
uint16_t target = lemtoh16(&pd->device_id);
uint16_t target = lemtoh16(&state->pd.mep_device_id);
sc->sc_max_devices = ifp.max_volumes + lemtoh16(&ifp.max_targets);
sc->sc_max_cmds = MIN(lemtoh16(&ifp.request_credit),
qdepth = lemtoh16(&ifp.max_reply_descriptor_post_queue_depth);
irs = lemtoh16(&ifp.ioc_request_frame_size) * 4;
sc->sc_max_chain = lemtoh16(&ifp.ioc_max_chain_seg_size);
lemtoh16(&iip.ioc_status));
if (lemtoh16(&iip.ioc_status) != MPII_IOCSTATUS_SUCCESS ||
type = (lemtoh16(&ce->element_flags) &
lemtoh16(&ce->vol_dev_handle))) {
lemtoh16(&ce->vol_dev_handle));
dev->dev_handle = lemtoh16(&ce->vol_dev_handle);
lemtoh16(&ce->vol_dev_handle))))
lemtoh16(&ce->phys_disk_dev_handle))))
lemtoh16(&ce->phys_disk_dev_handle))))
switch (lemtoh16(&enp->event)) {
DEVNAME(sc), lemtoh16(&enp->event));
handle = lemtoh16(&pe->dev_handle);
dev->enclosure = lemtoh16(&tcl->enclosure_handle);
dev->expander = lemtoh16(&tcl->expander_handle);
dev = mpii_find_dev(sc, lemtoh16(&pe->dev_handle));
lemtoh16(&enp->event));
switch (lemtoh16(&enp->event)) {
dev = mpii_find_dev(sc, lemtoh16(&evd->vol_dev_handle));
dev = mpii_find_dev(sc, lemtoh16(&evs->vol_dev_handle));
DEVNAME(sc), lemtoh16(&enp->event));
if (lemtoh16(&ipg.flags) & MPII_IOC_PG8_FLAGS_RESERVED_TARGETID_0)
flags = lemtoh16(&ipg.ir_volume_mapping_flags) &
lemtoh16(&cp->ext_page_length), cp->ext_page_type,
lemtoh16(&cp->ioc_status));
if (lemtoh16(&cp->ioc_status) != MPII_IOCSTATUS_SUCCESS)
lemtoh16(&ehdr->ext_page_length) : hdr->page_length;
lemtoh16(&cp->ext_page_length), cp->ext_page_type,
lemtoh16(&cp->ioc_status));
if (lemtoh16(&cp->ioc_status) != MPII_IOCSTATUS_SUCCESS)
"function: 0x%02x\n", DEVNAME(sc), lemtoh16(&sie->dev_handle),
sie->scsi_state, lemtoh16(&sie->ioc_status));
lemtoh16(&sie->task_tag));
switch (lemtoh16(&sie->ioc_status) & MPII_IOCSTATUS_MASK) {
enabled = ((lemtoh16(&vpg->volume_settings) &
bv->bv_size = letoh64(vpg->max_lba) * lemtoh16(&vpg->block_size);
pagelen = lemtoh16(&ehdr.ext_page_length) * 4;
if (ISSET(lemtoh16(&el->element_flags),
if ((dev = mpii_find_dev(sc, lemtoh16(&ppg->dev_handle))) == NULL) {
bd->bd_size = letoh64(ppg->dev_max_lba) * lemtoh16(&ppg->block_size);
smid = lemtoh16(&rdp->smid);
xs->status = lemtoh16(&status->scsi_status) & 0xff;
completion = lemtoh16(&status->completion);
if (lemtoh16(&status->scsi_status) &
rv = lemtoh16(&iocb->req_status);
loopid = lemtoh16(&l[i].loopid) & 0xfff;
if (lemtoh16(&pdb->prli_svc_word3) & QLE_SVC3_TARGET_ROLE)
if (lemtoh16(&pdb->prli_svc_word3) & QLE_SVC3_TARGET_ROLE)
if (lemtoh16(&pdb->prli_svc_word3) & QLE_SVC3_TARGET_ROLE)