hibyte
hibyte(*w) = *addr;
(hibyte(lun) | QL_LUN_AM_FLAT));
hibyte(lun));
hibyte(fcp_ent_addr->ent_addr_0));
hibyte(fcp_ent_addr->ent_addr_0);
hibyte(fcp_ent_addr->ent_addr_1);
hibyte(fcp_ent_addr->ent_addr_2);
hibyte(fcp_ent_addr->ent_addr_3);
pkt->fcp_lun[3] = hibyte(fcp_ent_addr->ent_addr_0);
pkt->fcp_lun[1] = hibyte(fcp_ent_addr->ent_addr_1);
pkt->fcp_lun[7] = hibyte(fcp_ent_addr->ent_addr_2);
pkt->fcp_lun[5] = hibyte(fcp_ent_addr->ent_addr_3);
hibyte(fcp_ent_addr->ent_addr_0);
hibyte(fcp_ent_addr->ent_addr_1);
hibyte(fcp_ent_addr->ent_addr_2);
hibyte(fcp_ent_addr->ent_addr_3);
pkt->mgmt.fcp_lun[3] = hibyte(fcp_ent_addr->ent_addr_0);
pkt->mgmt.fcp_lun[1] = hibyte(fcp_ent_addr->ent_addr_1);
pkt->mgmt.fcp_lun[7] = hibyte(fcp_ent_addr->ent_addr_2);
pkt->mgmt.fcp_lun[5] = hibyte(fcp_ent_addr->ent_addr_3);
hibyte(fcp_ent_addr->ent_addr_0);
hibyte(fcp_ent_addr->ent_addr_1);
hibyte(fcp_ent_addr->ent_addr_2);
hibyte(fcp_ent_addr->ent_addr_3);
hibyte(fcp_ent_addr->ent_addr_0);
hibyte(fcp_ent_addr->ent_addr_1);
hibyte(fcp_ent_addr->ent_addr_2);
hibyte(fcp_ent_addr->ent_addr_3);
*cp++ = hibyte(hiword(hostid));
*cp++ = hibyte(loword(hostid));
*cp++ = hibyte(hiword(val));
*cp++ = hibyte(loword(val));
*cp++ = hibyte(gen);
#define DEVID_FORMTYPE(devid, type) (devid)->did_type_hi = hibyte((type)); \
#define DEVID_FORMLEN(devid, len) (devid)->did_len_hi = hibyte((len)); \
#define DKD_FORMCHKSUM(c, dkd) (dkd)->dkd_checksum3 = hibyte(hiword((c))); \
(dkd)->dkd_checksum1 = hibyte(loword((c))); \