common/lib/libc/cdb/cdbr.c
234
return /* LINTED */le16toh(*(const uint16_t *)addr);
lib/libbluetooth/bluetooth.h
187
#define btohs(x) le16toh(x)
lib/libbluetooth/bt_dev.c
363
if (le16toh(cs.opcode) == req->opcode) {
lib/libbluetooth/bt_dev.c
382
if (le16toh(cc.opcode) == req->opcode)
lib/libbluetooth/bt_dev.c
559
ii->clock_offset = le16toh(co);
lib/libbluetooth/bt_dev.c
675
if (le16toh(sp.opcode) != HCI_CMD_INQUIRY
sbin/atactl/atactl.c
1139
if (le16toh(stlog->data_structure_revision) != 1) {
sbin/atactl/atactl.c
1141
le16toh(stlog->data_structure_revision));
sbin/atactl/atactl.c
946
flags = le16toh(attr->flags);
sbin/cgdconfig/cgdconfig.c
1089
if (le16toh(mbr.mbr_magic) != MBR_MAGIC)
sbin/efi/utils.c
139
c = le16toh(ibuf[i]);
sbin/fdisk/fdisk.c
1016
le16toh(pboot.mbr_magic));
sbin/fdisk/fdisk.c
1556
tmo = le16toh(mbs->mbrbs_timeo);
sbin/fdisk/fdisk.c
728
tmo = le16toh(mboot.mbr_bootsel.mbrbs_timeo);
sbin/gpt/backup.c
104
le16toh(par->part_start_lo)));
sbin/gpt/backup.c
106
le16toh(par->part_start_hi)));
sbin/gpt/backup.c
108
le16toh(par->part_size_lo)));
sbin/gpt/backup.c
110
le16toh(par->part_size_hi)));
sbin/gpt/gpt.c
144
utfchar = le16toh(s16[s16idx++]);
sbin/gpt/gpt.c
146
c = le16toh(s16[s16idx]);
sbin/gpt/gpt.c
342
start = le16toh(mbr->mbr_part[i].part_start_hi);
sbin/gpt/gpt.c
343
start = (start << 16) + le16toh(mbr->mbr_part[i].part_start_lo);
sbin/gpt/gpt.c
344
size = le16toh(mbr->mbr_part[i].part_size_hi);
sbin/gpt/gpt.c
345
size = (size << 16) + le16toh(mbr->mbr_part[i].part_size_lo);
sbin/gpt/migrate.c
199
for (i = 0; i < le16toh(dl->d_npartitions); i++) {
sbin/gpt/migrate.c
212
for (i = 0; i < le16toh(dl->d_npartitions); i++) {
sbin/gpt/migrate.c
264
start = le16toh(mbr->mbr_part[i].part_start_hi);
sbin/gpt/migrate.c
265
start = (start << 16) + le16toh(mbr->mbr_part[i].part_start_lo);
sbin/gpt/migrate.c
266
size = le16toh(mbr->mbr_part[i].part_size_hi);
sbin/gpt/migrate.c
267
size = (size << 16) + le16toh(mbr->mbr_part[i].part_size_lo);
sbin/gpt/show.c
203
start = le16toh(mbr->mbr_part[i].part_start_hi);
sbin/gpt/show.c
205
le16toh(mbr->mbr_part[i].part_start_lo);
sbin/nvmectl/logpage.c
137
e->sqid = le16toh(e->sqid);
sbin/nvmectl/logpage.c
138
e->cid = le16toh(e->cid);
sbin/nvmectl/logpage.c
139
e->status = le16toh(e->status);
sbin/nvmectl/logpage.c
140
e->error_location = le16toh(e->error_location);
sbin/nvmectl/logpage.c
209
e->composite_temperature = le16toh(e->composite_temperature);
sbin/nvmectl/logpage.c
223
e->temp_sensor[i] = le16toh(e->temp_sensor[i]);
sys/arch/arm/acpi/acpi_iort.c
106
offset += le16toh(node->Length);
sys/arch/arm/acpi/acpi_iort.c
147
offset += le16toh(node->Length);
sys/arch/arm/acpi/acpi_iort.c
180
offset += le16toh(node->Length);
sys/arch/arm/acpi/acpi_platform.c
284
const uint16_t boot_flags = le16toh(fadt->ArmBootFlags);
sys/arch/arm/broadcom/bcm2835_vcaudio.c
478
nb = uimin(resid, le16toh(msg.u.write.max_packet));
sys/arch/bebox/stand/boot/io.c
105
return le16toh(*((u_short *)&PCI_mem[addr]));
sys/arch/bebox/stand/boot/io.c
77
return le16toh(*((volatile uint16_t *)(&ISA_io[port])));
sys/arch/emips/ebus/flash_ebus.c
795
v0 = le16toh(v0);
sys/arch/emips/ebus/flash_ebus.c
797
v1 = le16toh(v1);
sys/arch/emips/ebus/flash_ebus.c
897
v0 = le16toh(v0);
sys/arch/emips/ebus/flash_ebus.c
899
v1 = le16toh(v1);
sys/arch/emips/ebus/flash_ebus.c
934
v0 = le16toh(v0);
sys/arch/emips/ebus/flash_ebus.c
936
v1 = le16toh(v1);
sys/arch/evbppc/stand/wii/sdmmc.c
126
if (le16toh(mbr.mbr_magic) != MBR_MAGIC) {
sys/arch/evbppc/stand/wii/sdmmc.c
60
for (part = 0; part < le16toh(d->d_npartitions); part++) {
sys/arch/evbppc/stand/wii/sdmmc.c
97
if (le16toh(d.d_npartitions) > MAXPARTITIONS) {
sys/arch/evbppc/stand/wii/sdmmc.c
98
printf("SDMMC: bad npartitions %u\n", le16toh(d.d_npartitions));
sys/arch/hppa/dev/dino.c
1203
*a++ = le16toh(data);
sys/arch/hppa/dev/dino.c
1215
*a++ = le16toh(data);
sys/arch/hppa/dev/dino.c
668
return le16toh(*p);
sys/arch/hppa/dev/dino.c
904
*a++ = le16toh(*p);
sys/arch/hppa/dev/elroy.c
520
return le16toh(*p);
sys/arch/hppa/dev/elroy.c
648
*a++ = le16toh(*p);
sys/arch/hppa/dev/elroy.c
859
*a++ = le16toh(data);
sys/arch/hppa/dev/mongoose.c
409
return le16toh(r);
sys/arch/hppa/dev/mongoose.c
437
*(a++) = le16toh(*(volatile uint16_t *)h);
sys/arch/hppa/dev/mongoose.c
500
*a++ = le16toh(r);
sys/arch/i386/stand/lib/biosdisk.c
344
n = wput_utf8(c, r, le16toh(utf16_src[j]));
sys/arch/luna68k/dev/xpbus.c
311
return le16toh(*(volatile uint16_t *)xp_shmptr(offset));
sys/arch/mips/mips/bus_space_alignstride_chipdep.c
114
#define CHIP_SWAP16(x) le16toh(x)
sys/arch/powerpc/mpc5200/mpc5200_ata.c
316
le16toh(*p++));
sys/arch/prep/stand/boot/io.c
80
return le16toh(*((u_short *)&PCI_mem[addr]));
sys/arch/sandpoint/stand/altboot/fxp.c
279
while (!(le16toh(cbp->cb_status) & FXP_CB_STATUS_C) && --i > 0) {
sys/arch/sandpoint/stand/altboot/fxp.c
303
while (!(le16toh(cb_ias->cb_status) & FXP_CB_STATUS_C) && --i > 0) {
sys/arch/sandpoint/stand/altboot/fxp.c
355
while (!(le16toh(txd->cb_status) & FXP_CB_STATUS_C) && --loop > 0) {
sys/arch/sandpoint/stand/altboot/fxp.c
388
if ((le16toh(rfa->rfa_status) & FXP_RFA_STATUS_C) == 0)
sys/arch/sandpoint/stand/altboot/fxp.c
390
len = le16toh(rfa->actual_size) & 0x7ff;
sys/arch/sandpoint/stand/altboot/stg.c
197
addr[i] = le16toh(CSR_READ_2(l, STGE_EepromData));
sys/arch/sh3/sh3/disksubr.c
237
d_partitions[le16toh(lp->d_npartitions)]);
sys/arch/sh3/sh3/disksubr.c
270
if (le16toh(*mbrmagicp) != MBR_MAGIC)
sys/arch/sh3/sh3/disksubr.c
466
if (le16toh(dlp->d_npartitions) > MAXPARTITIONS ||
sys/arch/sh3/sh3/disksubr.c
581
le16toh(dlp->d_npartitions) <= MAXPARTITIONS &&
sys/arch/sparc/dev/ts102.c
239
return (le16toh(*(volatile uint16_t *)(handle +
sys/arch/sparc/sparc/msiiep.c
590
return le16toh(val);
sys/arch/sparc/sparc/msiiepreg.h
240
(le16toh(((volatile struct msiiep_pcic_reg *)MSIIEP_PCIC_VA)->reg))
sys/arch/x68k/stand/boot/dp8390.c
242
len = le16toh(packet_hdr.count);
sys/dev/acpi/dalb_acpi.c
134
sc->sc_usageid = le16toh(*(uint16_t *)obj->Buffer.Pointer);
sys/dev/bluetooth/btuart.c
434
sc->sc_want = le16toh(sc->sc_want);
sys/dev/dkwedge/dkwedge_gpt.c
268
n = wput_utf8(c, r, le16toh(ent->ent_name[j]));
sys/dev/eisa/cac_eisa.c
251
size = le16toh(ccb->ccb_hdr.size) << 2;
sys/dev/i2c/ihidev.c
188
le16toh(sc->hid_desc.wVendorID), le16toh(sc->hid_desc.wProductID),
sys/dev/i2c/ihidev.c
203
sc->sc_isize = le16toh(sc->hid_desc.wMaxInputLength);
sys/dev/i2c/ihidev.c
638
if (le16toh(sc->hid_desc.bcdVersion) != 0x0100) {
sys/dev/i2c/ihidev.c
641
le16toh(sc->hid_desc.bcdVersion));
sys/dev/i2c/ihidev.c
646
if (le16toh(sc->hid_desc.wHIDDescLength !=
sys/dev/i2c/ihidev.c
650
le16toh(sc->hid_desc.wHIDDescLength),
sys/dev/i2c/ihidev.c
655
if (le16toh(sc->hid_desc.wReportDescLength) <= 0) {
sys/dev/i2c/ihidev.c
658
le16toh(sc->hid_desc.wReportDescLength));
sys/dev/i2c/ihidev.c
673
sc->sc_reportlen = le16toh(sc->hid_desc.wReportDescLength);
sys/dev/i2c/mpl115a.c
132
rv = le16toh((msb << 8) | lsb);
sys/dev/i2c/pcagpio.c
289
ret = le16toh(creg);
sys/dev/i2o/dpti.c
171
if (le16toh(iop->sc_status.orgid) != I2O_ORG_DPT)
sys/dev/i2o/iop.c
1103
le16toh(hrthdr.numentries)));
sys/dev/i2o/iop.c
1106
(le16toh(hrthdr.numentries) - 1) * sizeof(struct i2o_hrt_entry);
sys/dev/i2o/iop.c
1175
size = le16toh(lct->tablesize) << 2;
sys/dev/i2o/iop.c
1189
sc->sc_nlctent = ((le16toh(sc->sc_lct->tablesize) << 2) -
sys/dev/i2o/iop.c
1705
im->im_detstatus = le16toh(rb->detail);
sys/dev/i2o/iop.c
2265
detail = le16toh(rb->detail);
sys/dev/i2o/iop.c
2320
nit = (le16toh(sc->sc_status.orgid) != I2O_ORG_DPT);
sys/dev/i2o/iop.c
2527
i = le16toh(sc->sc_lct->tablesize) << 2;
sys/dev/i2o/iop.c
363
le16toh(sc->sc_status.orgid),
sys/dev/i2o/iop.c
382
sc->sc_framesize = le16toh(sc->sc_status.inboundmframesize) << 2;
sys/dev/i2o/iop.c
669
if ((le16toh(le->classid) & 4095) !=
sys/dev/i2o/iop.c
672
tid = le16toh(le->localtid) & 4095;
sys/dev/i2o/iop.c
783
sc->sc_tidmap[i].it_tid = le16toh(le->localtid) & 4095;
sys/dev/i2o/iop.c
790
ia.ia_class = le16toh(le->classid) & 4095;
sys/dev/i2o/iop.c
892
if (le16toh(sc->sc_status.orgid) != I2O_ORG_AMI) {
sys/dev/i2o/iopsp.c
259
if ((le16toh(le->classid) & 4095) ==
sys/dev/i2o/iopsp.c
262
bptid = le16toh(le->localtid) & 4095;
sys/dev/i2o/iopsp.c
268
if ((le16toh(le->classid) & 4095) != I2O_CLASS_SCSI_PERIPHERAL)
sys/dev/i2o/iopsp.c
272
tid = le16toh(le->localtid) & 4095;
sys/dev/i2o/ld_iop.c
502
detail = le16toh(rb->detail);
sys/dev/i2o/ld_iop.c
561
if (le16toh(I2O_ORG_AMI) == iop->sc_status.orgid && mpi > 64)
sys/dev/ic/aac.c
1072
switch (le16toh(fib->Header.Command)) {
sys/dev/ic/aac.c
1106
size = le16toh(fib->Header.Size);
sys/dev/ic/aac.c
1278
*resultsize = le16toh(fib->Header.Size) - sizeof(fib->Header);
sys/dev/ic/aac.c
1497
fib_size = le16toh(ac->ac_fib->Header.Size);
sys/dev/ic/aac.c
1625
fib_size = le16toh(fib->Header.Size);
sys/dev/ic/aac.c
1705
printf(" Command %d\n", le16toh(fib->Header.Command));
sys/dev/ic/aac.c
1708
printf(" Size %d\n", le16toh(fib->Header.Size));
sys/dev/ic/aac.c
1709
printf(" SenderSize %d\n", le16toh(fib->Header.SenderSize));
sys/dev/ic/ahcisata_core.c
1377
idwordbuf[i] = le16toh(idwordbuf[i]);
sys/dev/ic/aic79xx_osm.h
173
#define ahd_le16toh(x) le16toh(x)
sys/dev/ic/aic7xxx_osm.h
188
#define ahc_le16toh(x) le16toh(x)
sys/dev/ic/am79c930.c
331
return le16toh(bus_space_read_stream_2(sc->sc_memt,
sys/dev/ic/an.c
1034
rate = le16toh(sc->sc_buf.sc_status.an_current_tx_rate);
sys/dev/ic/an.c
1401
le32toh(frmhdr.an_rx_time), le16toh(frmhdr.an_rx_status),
sys/dev/ic/an.c
1402
le16toh(frmhdr.an_rx_payload_len), frmhdr.an_rx_chan,
sys/dev/ic/an.c
1405
le16toh(frmhdr.an_gaplen));
sys/dev/ic/an.c
1409
status = le16toh(frmhdr.an_rx_status);
sys/dev/ic/an.c
1419
len = le16toh(frmhdr.an_rx_payload_len) - sizeof(uint16_t);
sys/dev/ic/an.c
1452
gaplen = le16toh(frmhdr.an_gaplen);
sys/dev/ic/an.c
1503
if ((le16toh(frmhdr.an_rx_status) & AN_STAT_BADCRC) ||
sys/dev/ic/an.c
1504
(le16toh(frmhdr.an_rx_status) & AN_STAT_ERRSTAT) ||
sys/dev/ic/an.c
1505
(le16toh(frmhdr.an_rx_status) & AN_STAT_UNDECRYPTABLE))
sys/dev/ic/an.c
1823
len = le16toh(len) - 2;
sys/dev/ic/an.c
1881
le16toh(sc->sc_buf.sc_status.an_cur_channel)];
sys/dev/ic/an.c
1882
ni->ni_esslen = le16toh(sc->sc_buf.sc_status.an_ssidlen);
sys/dev/ic/an.c
1897
le16toh(sc->sc_buf.sc_status.an_cur_channel),
sys/dev/ic/an.c
1898
le16toh(sc->sc_buf.sc_status.an_current_tx_rate)/2);
sys/dev/ic/an.c
236
kid = le16toh(akey->an_key_index);
sys/dev/ic/an.c
240
akey->an_mac_addr[0], le16toh(akey->an_key_len)));
sys/dev/ic/an.c
248
sc->sc_perskeylen[kid] = le16toh(akey->an_key_len);
sys/dev/ic/an.c
278
switch (le16toh(sc->sc_caps.an_regdomain)) {
sys/dev/ic/an.c
821
le16toh(frmhdr.an_tx_ctl),
sys/dev/ic/an.c
822
le16toh(frmhdr.an_tx_payload_len));
sys/dev/ic/arn9003.c
502
if (le16toh(sum) != rsum) {
sys/dev/ic/arn9003.c
505
le16toh(sum), rsum);
sys/dev/ic/bwfm.c
2117
if (le16toh(sta.ver) < 3)
sys/dev/ic/bwfm.c
2220
if (len < le16toh(res->bss_count) * sizeof(struct bwfm_bss_info)) {
sys/dev/ic/bwfm.c
2226
for (i = 0; i < le16toh(res->bss_count); i++) {
sys/dev/ic/bwfm.c
2287
sfrm = ((uint8_t *)bss) + le16toh(bss->ie_offset);
sys/dev/ic/bwfm.c
2311
scan.sp_bintval = le16toh(bss->beacon_period);
sys/dev/ic/bwfm.c
2312
scan.sp_capinfo = le16toh(bss->capability);
sys/dev/ic/bwi.c
10002
_bwi_txeof(sc, le16toh(st->stats[idx].txs_id),
sys/dev/ic/bwi.c
6183
flags1 = le16toh(hdr->rxh_flags1);
sys/dev/ic/bwi.c
6184
flags3 = le16toh(hdr->rxh_flags3);
sys/dev/ic/bwi.c
6217
lna_gain = __SHIFTOUT(le16toh(hdr->rxh_phyinfo),
sys/dev/ic/bwi.c
6294
flags1 = le16toh(hdr->rxh_flags1);
sys/dev/ic/bwi.c
8878
flags2 = le16toh(hdr->rxh_flags2);
sys/dev/ic/bwi.c
8885
buflen = le16toh(hdr->rxh_buflen);
sys/dev/ic/bwi.c
8940
le16toh(hdr->rxh_tsf));
sys/dev/ic/bwi.c
8984
flags2 = le16toh(hdr->rxh_flags2);
sys/dev/ic/bwi.c
8990
buflen = le16toh(hdr->rxh_buflen);
sys/dev/ic/bwi.c
9055
le16toh(hdr->rxh_tsf));
sys/dev/ic/bwi.c
9108
pktlen = le16toh(rxh.rxh_buflen);
sys/dev/ic/bwi.c
9114
flags2 = le16toh(rxh.rxh_flags2);
sys/dev/ic/ciss.c
1479
le16toh(pdid->blksz);
sys/dev/ic/ciss.c
1539
blks = (u_int)le16toh(ldid->nblocks[1]) << 16 |
sys/dev/ic/ciss.c
1540
le16toh(ldid->nblocks[0]);
sys/dev/ic/ciss.c
1541
bv->bv_size = blks * (u_quad_t)le16toh(ldid->blksize);
sys/dev/ic/ciss.c
877
switch ((rv = le16toh(err->cmd_stat))) {
sys/dev/ic/dm9000.c
199
sc->sc_vendor_id = le16toh((uint16_t)b[1] << 8 | b[0]);
sys/dev/ic/dm9000.c
201
sc->sc_product_id = le16toh((uint16_t)b[1] << 8 | b[0]);
sys/dev/ic/dp83932var.h
365
return (le16toh(val));
sys/dev/ic/i82557.c
1176
if ((le16toh(txd->txd_txcb.cb_command) & FXP_CB_COMMAND_CMD)
sys/dev/ic/i82557.c
1180
txstat = le16toh(txd->txd_txcb.cb_status);
sys/dev/ic/i82557.c
1356
rxstat = le16toh(rfa->rfa_status);
sys/dev/ic/i82557.c
1374
len = le16toh(rfa->actual_size) &
sys/dev/ic/i82557.c
1870
status = le16toh(cbp->cb_status);
sys/dev/ic/i82557.c
1905
status = le16toh(cb_ias->cb_status);
sys/dev/ic/i82557.c
2302
status = le16toh(mcsp->cb_status);
sys/dev/ic/i82557.c
2415
status = le16toh(cbp->cb_status);
sys/dev/ic/malo.c
1541
desc->channel, le16toh(desc->len), desc->reserved1,
sys/dev/ic/malo.c
1590
m->m_pkthdr.len = m->m_len = le16toh(desc->len);
sys/dev/ic/malo.c
1915
if ((le16toh(cmd) & 0x7fff) == cmds[i].cmd_code)
sys/dev/ic/malo.c
1939
if (le16toh(result) == results[i].result_code)
sys/dev/ic/malo.c
2254
if (le16toh(hdr->result) != MALO_CMD_RESULT_OK) {
sys/dev/ic/malo.c
2266
malo_hexdump(hdr, le16toh(hdr->size));
sys/dev/ic/mlx.c
1137
lsn = le16toh(me->me_event_log_seq_num);
sys/dev/ic/mlx.c
403
ci->ci_max_sg = le16toh(me2->me_max_sg);
sys/dev/ic/mlx.c
404
ci->ci_max_commands = le16toh(me2->me_max_commands);
sys/dev/ic/mpt.c
447
*data16++ = le16toh(mpt_read(mpt, MPT_OFFSET_DOORBELL) &
sys/dev/ic/mpt.c
456
*data16++ = le16toh(mpt_read(mpt, MPT_OFFSET_DOORBELL) &
sys/dev/ic/mpt.c
480
*data16++ = le16toh(datum & MPT_DB_DATA_MASK);
sys/dev/ic/mpt.c
770
le16toh(reply->IOCStatus));
sys/dev/ic/mpt.h
193
#define MPT_2_HOST16(ptr, tag) ptr->tag = le16toh(ptr->tag)
sys/dev/ic/mpt_debug.c
331
printf("\tIOC Status %s\n", mpt_ioc_status(le16toh(msg->IOCStatus)));
sys/dev/ic/mpt_debug.c
356
printf("\tReplyQueueDepth %d\n", le16toh(msg->ReplyQueueDepth));
sys/dev/ic/mpt_debug.c
357
printf("\tReqFrameSize 0x%04x\n", le16toh(msg->RequestFrameSize));
sys/dev/ic/mpt_debug.c
359
printf("\tProduct ID 0x%04x\n", le16toh(msg->ProductID));
sys/dev/ic/mpt_debug.c
360
printf("\tCredits 0x%04x\n", le16toh(msg->GlobalCredits));
sys/dev/ic/mpt_debug.c
368
le16toh(msg->CurReplyFrameSize));
sys/dev/ic/mpt_debug.c
404
printf("\tEventDataLength %d\n", le16toh(msg->EventDataLength));
sys/dev/ic/mpt_debug.c
597
le16toh(ce->Length));
sys/dev/ic/mpt_netbsd.c
668
switch (le16toh(mpt_reply->IOCStatus) & MPI_IOCSTATUS_MASK) {
sys/dev/ic/mpt_netbsd.c
780
le16toh(mpt_reply->IOCStatus));
sys/dev/ic/mpt_netbsd.c
801
if (mpt_reply != NULL && le16toh(mpt_reply->IOCStatus) &
sys/dev/ic/mvsata.c
2784
quetag = CRPB_CHOSTQUETAG(le16toh(crpb->id));
sys/dev/ic/mvsata.c
2797
st = CRPB_CDEVSTS(le16toh(crpb->rspflg));
sys/dev/ic/mvsata.c
2798
dmaerr = CRPB_CEDMASTS(le16toh(crpb->rspflg));
sys/dev/ic/nvmeio.h
116
format->ms = le16toh(format->ms);
sys/dev/ic/nvmeio.h
129
identify->nawun = le16toh(identify->nawun);
sys/dev/ic/nvmeio.h
130
identify->nawupf = le16toh(identify->nawupf);
sys/dev/ic/nvmeio.h
131
identify->nacwu = le16toh(identify->nacwu);
sys/dev/ic/nvmeio.h
132
identify->nabsn = le16toh(identify->nabsn);
sys/dev/ic/nvmeio.h
133
identify->nabo = le16toh(identify->nabo);
sys/dev/ic/nvmeio.h
134
identify->nabspf = le16toh(identify->nabspf);
sys/dev/ic/nvmeio.h
135
identify->noiob = le16toh(identify->noiob);
sys/dev/ic/nvmeio.h
146
psd->mp = le16toh(psd->mp);
sys/dev/ic/nvmeio.h
149
psd->idlp = le16toh(psd->idlp);
sys/dev/ic/nvmeio.h
150
psd->actp = le16toh(psd->actp);
sys/dev/ic/nvmeio.h
151
psd->ap = le16toh(psd->ap);
sys/dev/ic/nvmeio.h
161
identify->vid = le16toh(identify->vid);
sys/dev/ic/nvmeio.h
162
identify->ssvid = le16toh(identify->ssvid);
sys/dev/ic/nvmeio.h
163
identify->cntlid = le16toh(identify->cntlid);
sys/dev/ic/nvmeio.h
169
identify->oacs = le16toh(identify->oacs);
sys/dev/ic/nvmeio.h
170
identify->wctemp = le16toh(identify->wctemp);
sys/dev/ic/nvmeio.h
171
identify->cctemp = le16toh(identify->cctemp);
sys/dev/ic/nvmeio.h
172
identify->mtfa = le16toh(identify->mtfa);
sys/dev/ic/nvmeio.h
178
identify->edstt = le16toh(identify->edstt);
sys/dev/ic/nvmeio.h
179
identify->kas = le16toh(identify->kas);
sys/dev/ic/nvmeio.h
180
identify->hctma = le16toh(identify->hctma);
sys/dev/ic/nvmeio.h
181
identify->mntmt = le16toh(identify->mntmt);
sys/dev/ic/nvmeio.h
182
identify->mxtmt = le16toh(identify->mxtmt);
sys/dev/ic/nvmeio.h
184
identify->maxcmd = le16toh(identify->maxcmd);
sys/dev/ic/nvmeio.h
186
identify->oncs = le16toh(identify->oncs);
sys/dev/ic/nvmeio.h
187
identify->fuses = le16toh(identify->fuses);
sys/dev/ic/nvmeio.h
188
identify->awun = le16toh(identify->awun);
sys/dev/ic/nvmeio.h
189
identify->awupf = le16toh(identify->awupf);
sys/dev/ic/nvmeio.h
190
identify->acwu = le16toh(identify->acwu);
sys/dev/ic/nvmevar.h
174
#define lemtoh16(p) le16toh(*((uint16_t *)(p)))
sys/dev/ic/rt2860.c
1408
m->m_pkthdr.len = m->m_len = le16toh(rxwi->len) & 0xfff;
sys/dev/ic/rt2860.c
1451
phy = le16toh(rxwi->phy);
sys/dev/ic/siisata.c
1150
idwordbuf[i] = le16toh(idwordbuf[i]);
sys/dev/ic/spdmem.c
617
bits = le16toh(s->sm_sdr.sdr_datawidth);
sys/dev/ic/spdmem.c
682
bits = le16toh(s->sm_ddr.ddr_datawidth);
sys/dev/ic/wi.c
1542
val = le16toh(val);
sys/dev/ic/wi.c
1677
status = le16toh(frmhdr.wi_status);
sys/dev/ic/wi.c
1685
rstamp = (le16toh(frmhdr.wi_rx_tstamp0) << 16) |
sys/dev/ic/wi.c
1686
le16toh(frmhdr.wi_rx_tstamp1);
sys/dev/ic/wi.c
1688
len = le16toh(frmhdr.wi_dat_len);
sys/dev/ic/wi.c
1806
status = le16toh(frmhdr.wi_status);
sys/dev/ic/wi.c
1823
le16toh(frmhdr.wi_dat_len),
sys/dev/ic/wi.c
2027
switch (le16toh(ltbuf[1])) {
sys/dev/ic/wi.c
2031
DPRINTF(("wi_info_intr: LINK_STAT 0x%x\n", le16toh(stat)));
sys/dev/ic/wi.c
2032
switch (le16toh(stat)) {
sys/dev/ic/wi.c
2070
len = uimin(le16toh(ltbuf[0]) - 1, sizeof(sc->sc_stats) / 4);
sys/dev/ic/wi.c
2075
stat = le16toh(stat);
sys/dev/ic/wi.c
2090
wi_scan_result(sc, fid, le16toh(ltbuf[0]));
sys/dev/ic/wi.c
2095
le16toh(ltbuf[1]), le16toh(ltbuf[0])));
sys/dev/ic/wi.c
2153
DPRINTF2(("wi_read_nicid: CARD_ID: %x %x %x %x\n", le16toh(ver[0]), le16toh(ver[1]), le16toh(ver[2]), le16toh(ver[3])));
sys/dev/ic/wi.c
2157
if (le16toh(ver[0]) == id->card_id) {
sys/dev/ic/wi.c
2164
if (le16toh(ver[0]) & 0x8000) {
sys/dev/ic/wi.c
2178
sc->sc_pri_firmware_ver = le16toh(ver[2]) * 10000 +
sys/dev/ic/wi.c
2179
le16toh(ver[3]) * 100 + le16toh(ver[1]);
sys/dev/ic/wi.c
2186
sc->sc_sta_firmware_ver = le16toh(ver[2]) * 10000 +
sys/dev/ic/wi.c
2187
le16toh(ver[3]) * 100 + le16toh(ver[1]);
sys/dev/ic/wi.c
2410
if (le16toh(wreq.wi_val[0]) * 2 > len ||
sys/dev/ic/wi.c
2411
le16toh(wreq.wi_val[0]) > sizeof(sc->sc_nodename)) {
sys/dev/ic/wi.c
2421
sc->sc_nodelen = le16toh(wreq.wi_val[0]) * 2;
sys/dev/ic/wi.c
2453
sc->sc_frag_thresh = le16toh(wreq.wi_val[0]);
sys/dev/ic/wi.c
2456
sc->sc_rts_thresh = le16toh(wreq.wi_val[0]);
sys/dev/ic/wi.c
2459
sc->sc_microwave_oven = le16toh(wreq.wi_val[0]);
sys/dev/ic/wi.c
2462
sc->sc_roaming_mode = le16toh(wreq.wi_val[0]);
sys/dev/ic/wi.c
2465
sc->sc_system_scale = le16toh(wreq.wi_val[0]);
sys/dev/ic/wi.c
2468
sc->sc_cnfauthmode = le16toh(wreq.wi_val[0]);
sys/dev/ic/wi.c
2471
sc->sc_max_datalen = le16toh(wreq.wi_val[0]);
sys/dev/ic/wi.c
2477
switch (le16toh(wreq.wi_val[0])) {
sys/dev/ic/wi.c
2484
/ 2 == le16toh(wreq.wi_val[0]))
sys/dev/ic/wi.c
3099
if (le16toh(ltbuf[0]) == 0)
sys/dev/ic/wi.c
3101
if (le16toh(ltbuf[1]) != rid) {
sys/dev/ic/wi.c
3104
rid, le16toh(ltbuf[1]));
sys/dev/ic/wi.c
3107
len = (le16toh(ltbuf[0]) - 1) * 2; /* already got rid */
sys/dev/ic/wi.c
3233
if (!isset(ic->ic_chan_avail, le16toh(val)))
sys/dev/ic/wi.c
3235
device_xname(sc->sc_dev), le16toh(val));
sys/dev/ic/wi.c
3236
ni->ni_chan = &ic->ic_channels[le16toh(val)];
sys/dev/ic/wi.c
3252
ni->ni_esslen = le16toh(ssid.wi_len);
sys/dev/ic/wi.c
3369
ap->scanreason = le16toh(ws_hdr.wi_reason);
sys/dev/ic/wi.c
3371
ap->channel = le16toh(ws_dat.wi_chid);
sys/dev/ic/wi.c
3372
ap->signal = le16toh(ws_dat.wi_signal);
sys/dev/ic/wi.c
3373
ap->noise = le16toh(ws_dat.wi_noise);
sys/dev/ic/wi.c
3375
ap->capinfo = le16toh(ws_dat.wi_capinfo);
sys/dev/ic/wi.c
3376
ap->interval = le16toh(ws_dat.wi_interval);
sys/dev/ic/wi.c
3377
ap->rate = le16toh(ws_dat.wi_rate);
sys/dev/ic/wi.c
3378
ap->namelen = le16toh(ws_dat.wi_namelen);
sys/dev/ic/wi.c
3398
le16toh(wh->wi_status), le16toh(wh->wi_rx_tstamp1),
sys/dev/ic/wi.c
3399
le16toh(wh->wi_rx_tstamp0), wh->wi_rx_silence);
sys/dev/ic/wi.c
3404
le16toh(wh->wi_tx_ctl), le16toh(wh->wi_dat_len));
sys/dev/ic/wi.c
449
chan = le16toh(val);
sys/dev/ic/wi.c
463
sc->sc_dbm_offset = le16toh(val);
sys/dev/ic/wi.c
528
nrate = le16toh(ratebuf.nrates);
sys/dev/ic/wivar.h
244
le16toh(bus_space_read_2(sc->sc_iot, sc->sc_ioh, \
sys/dev/isa/if_iy.c
1074
rxevnt = le16toh(bus_space_read_stream_2(iot, ioh, MEM_PORT_REG));
sys/dev/isa/if_iy.c
1078
rxstatus = le16toh(bus_space_read_stream_2(iot, ioh,
sys/dev/isa/if_iy.c
1080
rxnext = le16toh(bus_space_read_stream_2(iot, ioh,
sys/dev/isa/if_iy.c
1082
rxlen = le16toh(bus_space_read_stream_2(iot, ioh,
sys/dev/isa/if_iy.c
1107
rxevnt = le16toh(bus_space_read_stream_2(iot, ioh,
sys/dev/isa/if_iy.c
1127
txstatus = le16toh(bus_space_read_stream_2(iot, ioh,
sys/dev/isa/if_iy.c
1133
txstat2 = le16toh(bus_space_read_stream_2(iot, ioh,
sys/dev/isa/if_iy.c
1135
txnext = le16toh(bus_space_read_stream_2(iot, ioh,
sys/dev/isa/if_iy.c
1137
txlen = le16toh(bus_space_read_stream_2(iot, ioh,
sys/dev/isa/if_iy.c
400
v = le16toh(bus_space_read_stream_2(iot, ioh, MEM_PORT_REG));
sys/dev/isa/if_iy.c
404
v = le16toh(bus_space_read_stream_2(iot, ioh, MEM_PORT_REG));
sys/dev/isa/if_iy.c
410
p = le16toh(bus_space_read_stream_2(iot, ioh, MEM_PORT_REG));
sys/dev/isa/if_iy.c
413
v = le16toh(bus_space_read_stream_2(iot, ioh, MEM_PORT_REG));
sys/dev/isa/if_iy.c
820
le16toh(stat) | CHAIN);
sys/dev/marvell/mvgbereg.h
46
#define MVGBE2H16(x) le16toh(x)
sys/dev/mca/edc_mca.c
393
sifr = le16toh(bus_space_read_2(sc->sc_iot, sc->sc_ioh, SIFR));
sys/dev/mca/edc_mca.c
412
sc->status_block[i] = le16toh(
sys/dev/nand/nand.c
579
chip->nc_spare_size = le16toh(params.param_sparesize);
sys/dev/nand/nand.c
591
uint16_t features = le16toh(params.param_features);
sys/dev/pci/amr.c
629
ap->ap_firmware, ap->ap_bios, le16toh(ap->ap_memsize));
sys/dev/pci/if_aq.c
5507
rxd_status = le16toh(rxd->wb.status);
sys/dev/pci/if_aq.c
5513
rxd_pktlen = le16toh(rxd->wb.pkt_len);
sys/dev/pci/if_aq.c
5514
rxd_nextdescptr = le16toh(rxd->wb.next_desc_ptr);
sys/dev/pci/if_aq.c
5516
rxd_vlan = le16toh(rxd->wb.vlan);
sys/dev/pci/if_bwfm_pci.c
572
sc->sc_max_submissionrings = le16toh(ringinfo.max_submissionrings);
sys/dev/pci/if_bwfm_pci.c
573
sc->sc_max_flowrings = le16toh(ringinfo.max_flowrings);
sys/dev/pci/if_bwfm_pci.c
574
sc->sc_max_completionrings = le16toh(ringinfo.max_completionrings);
sys/dev/pci/if_bwfm_pci.c
576
sc->sc_max_submissionrings = le16toh(ringinfo.max_flowrings);
sys/dev/pci/if_dge.c
1669
len = le16toh(sc->sc_rxdescs[i].dr_len);
sys/dev/pci/if_iavf.c
2708
vlan_set_tag(m, le16toh(vtag));
sys/dev/pci/if_iavf.c
3816
snprintb(buf, len, IXL_AQ_FLAGS_FMT, le16toh(iaq->iaq_flags));
sys/dev/pci/if_iavf.c
3818
buf, le16toh(iaq->iaq_opcode));
sys/dev/pci/if_iavf.c
3820
le16toh(iaq->iaq_datalen), le16toh(iaq->iaq_retval));
sys/dev/pci/if_iavf.c
4218
"atq retcode=0x%04x\n", le16toh(iaq.iaq_retval));
sys/dev/pci/if_iavf.c
4377
sc->sc_max_vectors = le16toh(vf_res->max_vectors);
sys/dev/pci/if_iavf.c
4378
if (le16toh(vf_res->num_vsis) == 0) {
sys/dev/pci/if_iavf.c
4391
mtu = le16toh(vf_res->max_mtu);
sys/dev/pci/if_iavf.c
4397
sc->sc_vsi_id = le16toh(vsi_res->vsi_id);
sys/dev/pci/if_iavf.c
4399
sc->sc_qset_handle = le16toh(vsi_res->qset_handle);
sys/dev/pci/if_iavf.c
4400
sc->sc_nqps_vsi = le16toh(vsi_res->num_queue_pairs);
sys/dev/pci/if_ipw.c
1138
switch (le16toh(status->code) & 0xf) {
sys/dev/pci/if_ipw.c
1158
le16toh(status->code));
sys/dev/pci/if_ipw.c
897
return le16toh(val);
sys/dev/pci/if_iwi.c
1153
le16toh(frame->len), frame->chan, frame->rssi_dbm));
sys/dev/pci/if_iwi.c
1155
if (le16toh(frame->len) < sizeof (struct ieee80211_frame) ||
sys/dev/pci/if_iwi.c
1156
le16toh(frame->len) > MCLBYTES) {
sys/dev/pci/if_iwi.c
1205
sizeof (struct iwi_frame) + le16toh(frame->len);
sys/dev/pci/if_iwi.c
1362
le16toh(notif->len)));
sys/dev/pci/if_iwi.c
1754
ac, txq->cur, le16toh(desc->len), le32toh(desc->nseg)));
sys/dev/pci/if_iwi.c
2707
assoc.chan, le16toh(assoc.policy), assoc.auth,
sys/dev/pci/if_iwi.c
2708
le16toh(assoc.capinfo), le16toh(assoc.lintval),
sys/dev/pci/if_iwi.c
2709
le16toh(assoc.intval)));
sys/dev/pci/if_iwm.c
150
#define le16_to_cpup(_a_) (le16toh(*(const uint16_t *)(_a_)))
sys/dev/pci/if_iwm.c
2345
enum iwm_phy_db_section_type type = le16toh(phy_db_notif->type);
sys/dev/pci/if_iwm.c
2350
chg_id = le16toh(*(uint16_t *)phy_db_notif->data);
sys/dev/pci/if_iwm.c
2433
if (le16toh(txp_chg->max_channel_idx) >= ch_index)
sys/dev/pci/if_iwm.c
2477
phy_db_cmd.type = le16toh(type);
sys/dev/pci/if_iwm.c
2478
phy_db_cmd.length = le16toh(length);
sys/dev/pci/if_iwm.c
2729
err = le16toh(nvm_resp->status);
sys/dev/pci/if_iwm.c
2730
bytes_read = le16toh(nvm_resp->length);
sys/dev/pci/if_iwm.c
2731
offset_read = le16toh(nvm_resp->offset);
sys/dev/pci/if_iwm.c
4192
len = le16toh(rx_res->byte_count);
sys/dev/pci/if_iwm.c
4295
int status = le16toh(tx_resp->status.status) & IWM_TX_STATUS_MSK;
sys/dev/pci/if_iwm.c
6118
(le16toh(notif->mcc) & 0xff00) >> 8, le16toh(notif->mcc) & 0xff);
sys/dev/pci/if_iwm.c
6122
"(0x%x)\n", DEVNAME(sc), alpha2, le16toh(notif->mcc));
sys/dev/pci/if_iwm.c
8465
uint16_t size = le16toh(phy_db_notif->length);
sys/dev/pci/if_iwm.c
8504
DEVNAME(sc), le16toh(notif->temperature));
sys/dev/pci/if_iwm.c
8690
hw = le16toh(sc->rxq.stat->closed_rb_num) & 0xfff;
sys/dev/pci/if_iwn.c
1178
base = le16toh(next);
sys/dev/pci/if_iwn.c
1648
DPRINTF(("SKU capabilities=0x%04x\n", le16toh(val)));
sys/dev/pci/if_iwn.c
1654
sc->rfcfg = le16toh(val);
sys/dev/pci/if_iwn.c
1707
sc->eeprom_voltage = (int16_t)le16toh(val);
sys/dev/pci/if_iwn.c
1765
base = le16toh(val);
sys/dev/pci/if_iwn.c
1780
base = le16toh(val);
sys/dev/pci/if_iwn.c
1783
hdr.version, hdr.pa_type, le16toh(hdr.volt)));
sys/dev/pci/if_iwn.c
1790
sc->eeprom_voltage = le16toh(hdr.volt);
sys/dev/pci/if_iwn.c
1792
sc->eeprom_temp = le16toh(val);
sys/dev/pci/if_iwn.c
1794
sc->eeprom_rawtemp = le16toh(val);
sys/dev/pci/if_iwn.c
1800
sc->eeprom_temp = le16toh(val);
sys/dev/pci/if_iwn.c
1802
volt = le16toh(val);
sys/dev/pci/if_iwn.c
1881
base = le16toh(val);
sys/dev/pci/if_iwn.c
2159
len = le16toh(mpdu->len);
sys/dev/pci/if_iwn.c
2162
len = le16toh(stat->len);
sys/dev/pci/if_iwn.c
2316
txq = &sc->txq[le16toh(ba->qid)];
sys/dev/pci/if_iwn.c
2471
iwn_tx_done(sc, desc, stat->ackfailcnt, le16toh(stat->status) & 0xff);
sys/dev/pci/if_iwn.c
2562
hw = le16toh(sc->rxq.stat->closed_count) & 0xfff;
sys/dev/pci/if_iwn.c
3882
mask = (le16toh(phy->antenna) >> 4) & IWN_ANT_ABC;
sys/dev/pci/if_iwn.c
3883
agc = (le16toh(phy->agc) >> 7) & 0x7f;
sys/dev/pci/if_iwn.c
3905
rssi = MAX(le16toh(phy->rssi[0]) & 0xff,
sys/dev/pci/if_iwn.c
3906
le16toh(phy->rssi[1]) & 0xff);
sys/dev/pci/if_iwn.c
3907
rssi = MAX(le16toh(phy->rssi[2]) & 0xff, rssi);
sys/dev/pci/if_iwn.c
5465
DPRINTF(("setting radio sensor offset to %d\n", le16toh(cmd.offset)));
sys/dev/pci/if_iwn.c
5487
le16toh(cmd.offset_low), le16toh(cmd.offset_high),
sys/dev/pci/if_iwn.c
5488
le16toh(cmd.burnt_voltage_ref)));
sys/dev/pci/if_iwn.c
5937
switch (le16toh(tlv->type)) {
sys/dev/pci/if_iwn.c
5962
le16toh(tlv->type), len);
sys/dev/pci/if_iwn.c
5971
le16toh(tlv->type), len);
sys/dev/pci/if_iwn.c
5989
le16toh(tlv->type)));
sys/dev/pci/if_iwn.c
6694
int chan = le16toh(stat->chan);
sys/dev/pci/if_ixl.c
3249
vlan_set_tag(m, le16toh(vtag));
sys/dev/pci/if_ixl.c
3716
snprintb(buf, len, IXL_AQ_FLAGS_FMT, le16toh(iaq->iaq_flags));
sys/dev/pci/if_ixl.c
3718
buf, le16toh(iaq->iaq_opcode));
sys/dev/pci/if_ixl.c
3720
le16toh(iaq->iaq_datalen), le16toh(iaq->iaq_retval));
sys/dev/pci/if_ixl.c
3999
iaq.iaq_retval = le16toh(23);
sys/dev/pci/if_ixl.c
4123
id = le16toh(cap->cap_id);
sys/dev/pci/if_ixl.c
4178
status = le16toh(iaq.iaq_retval);
sys/dev/pci/if_ixl.c
4181
caps_size = le16toh(iaq.iaq_datalen);
sys/dev/pci/if_ixl.c
4192
ncaps = le16toh(iaq.iaq_param[1]);
sys/dev/pci/if_ixl.c
4300
nelm = le16toh(hdr->num_reported);
sys/dev/pci/if_ixl.c
4312
elm->type, elm->revision, le16toh(elm->seid));
sys/dev/pci/if_ixl.c
4315
le16toh(elm->uplink_seid),
sys/dev/pci/if_ixl.c
4316
le16toh(elm->downlink_seid));
sys/dev/pci/if_ixl.c
4320
le16toh(elm->scheduler_id),
sys/dev/pci/if_ixl.c
4321
le16toh(elm->element_info));
sys/dev/pci/if_ixl.c
4390
return le16toh(iaq.iaq_retval);
sys/dev/pci/if_ixl.c
4474
switch (le16toh(iaq->iaq_retval)) {
sys/dev/pci/if_ixl.c
4559
switch (le16toh(iaq.iaq_retval)) {
sys/dev/pci/if_ixl.c
4571
sc->sc_vsi_number = le16toh(reply->vsi_number);
sys/dev/pci/if_ixl.c
4573
sc->sc_vsi_stat_counter_idx = le16toh(data->stat_counter_idx);
sys/dev/pci/if_ixl.c
4600
val = le16toh(data->port_vlan_flags);
sys/dev/pci/if_ixl.c
4636
switch (le16toh(iaq.iaq_retval)) {
sys/dev/pci/if_ixl.c
4995
switch (le16toh(iaq.iaq_retval)) {
sys/dev/pci/if_ixl.c
5045
switch (le16toh(iaq.iaq_retval)) {
sys/dev/pci/if_ixl.c
6939
switch (le16toh(iaq.iaq_retval)) {
sys/dev/pci/if_ixl.c
6974
switch (le16toh(iaq.iaq_retval)) {
sys/dev/pci/if_ixl.c
7070
switch (le16toh(iaq.iaq_retval)) {
sys/dev/pci/if_ixl.c
7103
*data = le16toh(buf);
sys/dev/pci/if_msk.c
70
#define letoh16 le16toh
sys/dev/pci/if_nfe.c
1019
flags = le16toh(desc64->flags);
sys/dev/pci/if_nfe.c
1025
flags = le16toh(desc32->flags);
sys/dev/pci/if_nfe.c
821
flags = le16toh(desc64->flags);
sys/dev/pci/if_nfe.c
822
len = le16toh(desc64->length) & 0x3fff;
sys/dev/pci/if_nfe.c
828
flags = le16toh(desc32->flags);
sys/dev/pci/if_nfe.c
829
len = le16toh(desc32->length) & 0x3fff;
sys/dev/pci/if_rtwn.c
2507
if ((le16toh(hdr->signature) >> 4) == 0x88c ||
sys/dev/pci/if_rtwn.c
2508
(le16toh(hdr->signature) >> 4) == 0x92c) {
sys/dev/pci/if_rtwn.c
2510
le16toh(hdr->version), le16toh(hdr->subversion),
sys/dev/pci/if_rtwn.c
770
return le16toh(bus_space_read_2(sc->sc_st, sc->sc_sh, addr));
sys/dev/pci/if_sk.c
3021
DESC_PRINT(le16toh(desc->sk_rsvd0));
sys/dev/pci/if_sk.c
3022
DESC_PRINT(le16toh(desc->sk_csum_startval));
sys/dev/pci/if_sk.c
3023
DESC_PRINT(le16toh(desc->sk_csum_startpos));
sys/dev/pci/if_sk.c
3024
DESC_PRINT(le16toh(desc->sk_csum_writepos));
sys/dev/pci/if_sk.c
3025
DESC_PRINT(le16toh(desc->sk_rsvd1));
sys/dev/pci/if_ste.c
501
myea[i] = le16toh(myea[i]);
sys/dev/pci/if_stge.c
597
myaddr[i] = le16toh(myaddr[i]);
sys/dev/pci/if_txp.c
1631
*out1 = le16toh(rsp->rsp_par1);
sys/dev/pci/if_txp.c
1725
if (id == le16toh(rsp->rsp_id) && le16toh(rsp->rsp_seq) == seq) {
sys/dev/pci/if_txp.c
1737
TXP_DEVNAME(sc), le16toh(rsp->rsp_id));
sys/dev/pci/if_txp.c
1743
switch (le16toh(rsp->rsp_id)) {
sys/dev/pci/if_txp.c
1752
le16toh(rsp->rsp_id));
sys/dev/pci/if_txp.c
1943
cmd->cmd_flags, cmd->cmd_numdesc, le16toh(cmd->cmd_id),
sys/dev/pci/if_txp.c
1944
le16toh(cmd->cmd_seq), le16toh(cmd->cmd_par1),
sys/dev/pci/if_txp.c
1951
rsp->rsp_flags, rsp->rsp_numdesc, le16toh(rsp->rsp_id),
sys/dev/pci/if_txp.c
1952
le16toh(rsp->rsp_seq), le16toh(rsp->rsp_par1),
sys/dev/pci/if_txp.c
1973
cmd->cmd_flags, cmd->cmd_numdesc, le16toh(cmd->cmd_id),
sys/dev/pci/if_txp.c
1974
le16toh(cmd->cmd_seq), le16toh(cmd->cmd_par1),
sys/dev/pci/if_txp.c
745
len = le16toh(rxd->rx_len);
sys/dev/pci/if_vte.c
1024
status = le16toh(txd->tx_desc->dtst);
sys/dev/pci/if_vte.c
1116
status = le16toh(rxd->rx_desc->drst);
sys/dev/pci/if_vte.c
1119
VTE_RX_LEN(le16toh(rxd->rx_desc->drlen))));
sys/dev/pci/if_vte.c
1122
total_len = VTE_RX_LEN(le16toh(rxd->rx_desc->drlen));
sys/dev/pci/if_wm.c
10173
vlan_set_tag(m, le16toh(vlantag));
sys/dev/pci/if_wm.c
10243
len = le16toh(wm_rxdesc_get_pktlen(rxq, i));
sys/dev/pci/if_wpi.c
1503
tail = (struct wpi_rx_tail *)((char *)(head + 1) + le16toh(head->len));
sys/dev/pci/if_wpi.c
1507
le16toh(head->len), (int8_t)stat->rssi, head->rate, head->chan,
sys/dev/pci/if_wpi.c
1573
m->m_pkthdr.len = m->m_len = le16toh(head->len);
sys/dev/pci/if_wpi.c
1589
tap->wr_dbm_antnoise = (int8_t)le16toh(stat->noise);
sys/dev/pci/if_wpi.c
1591
tap->wr_antenna = (le16toh(head->flags) >> 4) & 0xf;
sys/dev/pci/if_wpi.c
1610
if (le16toh(head->flags) & 0x4)
sys/dev/pci/if_wpi.c
2277
DPRINTF(("cap=%x rev=%x type=%x\n", sc->cap, le16toh(sc->rev),
sys/dev/pci/if_wpi.c
2364
group->temp = (int16_t)le16toh(rgroup.temp);
sys/dev/pci/if_wpi.c
3181
if ((le16toh(sc->rev) & 0xf0) == 0xd0)
sys/dev/pci/igc/if_igc.c
2144
const uint16_t len = le16toh(rxdesc->wb.upper.length);
sys/dev/pci/igc/if_igc.c
2147
const uint16_t vtag = le16toh(rxdesc->wb.upper.vlan);
sys/dev/pci/igc/if_igc.c
2156
le16toh(rxdesc->wb.lower.lo_dword.hs_rss.pkt_info) &
sys/dev/pci/ixgbe/ix_txrx.c
1909
pkt_info = le16toh(cur->wb.lower.lo_dword.hs_rss.pkt_info);
sys/dev/pci/ixgbe/ix_txrx.c
1925
len = le16toh(cur->wb.upper.length);
sys/dev/pci/ixgbe/ix_txrx.c
2101
vtag = le16toh(cur->wb.upper.vlan);
sys/dev/pci/ixgbe/ixgbe_netmap.c
431
ring->slot[nm_i].len = le16toh(curr->wb.upper.length) - crclen;
sys/dev/pci/mfii.c
1261
ccb->ccb_req.smid = le16toh(ccb->ccb_smid);
sys/dev/pci/mfii.c
1412
le16toh(pd->device_id), le16toh(pd->encl_id));
sys/dev/pci/mfii.c
1420
le16toh(pd->device_id), le16toh(pd->encl_id));
sys/dev/pci/mfii.c
1973
ccb->ccb_req.smid = le16toh(ccb->ccb_smid);
sys/dev/pci/mfii.c
2241
ccb = &sc->sc_ccb[le16toh(rdp->smid) - 1];
sys/dev/pci/mfii.c
2463
ccb->ccb_req.smid = le16toh(ccb->ccb_smid);
sys/dev/pci/mfii.c
2513
ccb->ccb_req.smid = le16toh(ccb->ccb_smid);
sys/dev/pci/mfii.c
2632
ccb->ccb_req.smid = le16toh(ccb->ccb_smid);
sys/dev/pci/mfii.c
2780
accb->ccb_req.smid = le16toh(accb->ccb_smid);
sys/dev/pci/mfii.c
3954
edata->value_cur = le16toh(bbu.voltage) * 1000;
sys/dev/pci/mfii.c
3958
edata->value_cur = (int16_t)le16toh(bbu.current) * 1000;
sys/dev/pci/mfii.c
3963
le16toh(bbu.temperature) * 1000000 + 273150000;
sys/dev/pci/mfii.c
873
if (le16toh(sc->sc_info.mci_memory_size) > 0) {
sys/dev/pci/mfii.c
875
le16toh(sc->sc_info.mci_memory_size));
sys/dev/pci/mly.c
1489
slot = le16toh(sp->status.command_id);
sys/dev/pci/mly.c
1619
i = le16toh(mly->mly_controllerinfo->maximum_parallel_commands);
sys/dev/pci/mly.c
495
le16toh(mi->memory_size));
sys/dev/pci/mpii.c
1196
words[i] = le16toh(mpii_read_db(sc) & MPII_DOORBELL_DATA_MASK);
sys/dev/pci/mpii.c
1284
sc->sc_max_devices = ifp.max_volumes + le16toh(ifp.max_targets);
sys/dev/pci/mpii.c
1293
sc->sc_max_cmds = MIN(le16toh(ifp.request_credit),
sys/dev/pci/mpii.c
1316
qdepth = le16toh(ifp.max_reply_descriptor_post_queue_depth);
sys/dev/pci/mpii.c
1360
irs = le16toh(ifp.ioc_request_frame_size) * 4;
sys/dev/pci/mpii.c
1461
le16toh(iip.ioc_status));
sys/dev/pci/mpii.c
1465
if (le16toh(iip.ioc_status) != MPII_IOCSTATUS_SUCCESS ||
sys/dev/pci/mpii.c
1778
type = (le16toh(ce->element_flags) &
sys/dev/pci/mpii.c
1790
le16toh(ce->vol_dev_handle))) {
sys/dev/pci/mpii.c
1795
le16toh(ce->vol_dev_handle));
sys/dev/pci/mpii.c
1800
dev->dev_handle = le16toh(ce->vol_dev_handle);
sys/dev/pci/mpii.c
1813
le16toh(ce->vol_dev_handle)))) {
sys/dev/pci/mpii.c
1831
le16toh(ce->phys_disk_dev_handle)))) {
sys/dev/pci/mpii.c
1848
le16toh(ce->phys_disk_dev_handle)))) {
sys/dev/pci/mpii.c
1874
DEVNAME(sc), le16toh(enp->event));
sys/dev/pci/mpii.c
1875
KASSERT(le16toh(enp->event) == MPII_EVENT_SAS_TOPOLOGY_CHANGE_LIST);
sys/dev/pci/mpii.c
1883
le16toh(pe->dev_handle),
sys/dev/pci/mpii.c
1885
tcl->start_phy_num + i, le16toh(tcl->enclosure_handle), le16toh(tcl->expander_handle));
sys/dev/pci/mpii.c
1889
handle = le16toh(pe->dev_handle);
sys/dev/pci/mpii.c
1907
dev->enclosure = le16toh(tcl->enclosure_handle);
sys/dev/pci/mpii.c
1908
dev->expander = le16toh(tcl->expander_handle);
sys/dev/pci/mpii.c
1963
DEVNAME(sc), le16toh(enp->event));
sys/dev/pci/mpii.c
1964
KASSERT(le16toh(enp->event) == MPII_EVENT_SAS_TOPOLOGY_CHANGE_LIST);
sys/dev/pci/mpii.c
1971
le16toh(pe->dev_handle),
sys/dev/pci/mpii.c
1973
tcl->start_phy_num + i, le16toh(tcl->enclosure_handle), le16toh(tcl->expander_handle));
sys/dev/pci/mpii.c
1982
dev = mpii_find_dev(sc, le16toh(pe->dev_handle));
sys/dev/pci/mpii.c
2030
le16toh(enp->event));
sys/dev/pci/mpii.c
2032
switch (le16toh(enp->event)) {
sys/dev/pci/mpii.c
2064
dev = mpii_find_dev(sc, le16toh(evd->vol_dev_handle));
sys/dev/pci/mpii.c
2095
dev = mpii_find_dev(sc, le16toh(evs->vol_dev_handle));
sys/dev/pci/mpii.c
2104
DEVNAME(sc), le16toh(enp->event));
sys/dev/pci/mpii.c
2233
if (le16toh(ipg.flags) & MPII_IOC_PG8_FLAGS_RESERVED_TARGETID_0)
sys/dev/pci/mpii.c
2236
flags = le16toh(ipg.ir_volume_mapping_flags) &
sys/dev/pci/mpii.c
2314
le16toh(cp->ext_page_length), cp->ext_page_type,
sys/dev/pci/mpii.c
2319
le16toh(cp->ioc_status));
sys/dev/pci/mpii.c
2329
if (le16toh(cp->ioc_status) != MPII_IOCSTATUS_SUCCESS)
sys/dev/pci/mpii.c
2364
le16toh(ehdr->ext_page_length) : hdr->page_length;
sys/dev/pci/mpii.c
2429
le16toh(cp->ext_page_length), cp->ext_page_type,
sys/dev/pci/mpii.c
2434
le16toh(cp->ioc_status));
sys/dev/pci/mpii.c
2444
if (le16toh(cp->ioc_status) != MPII_IOCSTATUS_SUCCESS)
sys/dev/pci/mpii.c
3221
"function: 0x%02x\n", DEVNAME(sc), le16toh(sie->dev_handle),
sys/dev/pci/mpii.c
3227
sie->scsi_state, le16toh(sie->ioc_status));
sys/dev/pci/mpii.c
3237
le16toh(sie->task_tag));
sys/dev/pci/mpii.c
3243
switch (le16toh(sie->ioc_status) & MPII_IOCSTATUS_MASK) {
sys/dev/pci/mpii.c
3373
enabled = ((le16toh(vpg->volume_settings) &
sys/dev/pci/mpii.c
3572
bv->bv_size = le64toh(vpg->max_lba) * le16toh(vpg->block_size);
sys/dev/pci/mpii.c
3664
pagelen = le16toh(ehdr.ext_page_length) * 4;
sys/dev/pci/mpii.c
3682
if (ISSET(le16toh(el->element_flags),
sys/dev/pci/mpii.c
3743
if ((dev = mpii_find_dev(sc, le16toh(ppg->dev_handle))) == NULL) {
sys/dev/pci/mpii.c
3783
bd->bd_size = le64toh(ppg->dev_max_lba) * le16toh(ppg->block_size);
sys/dev/pci/mpii.c
780
smid = le16toh(rdp->smid);
sys/dev/pci/trm.c
2425
chksum += le16toh(*ep++);
sys/dev/pci/trm.c
2465
chksum += le16toh(*ep++);
sys/dev/pci/twe.c
1088
*valp = le16toh(*(uint16_t *)tp->tp_data);
sys/dev/pci/twe.c
900
*aenp = le16toh(*(uint16_t *)tp->tp_data);
sys/dev/pci/twe.c
934
aen = le16toh(*(u_int16_t *)tp->tp_data);
sys/dev/pcmcia/bt3c.c
386
sc->sc_want = le16toh(sc->sc_want);
sys/dev/pcmcia/btbc.c
494
sc->sc_want = le16toh(sc->sc_want);
sys/dev/pcmcia/if_malo_pcmcia.c
1018
rxdesc->status = le16toh(rxdesc->status);
sys/dev/pcmcia/if_malo_pcmcia.c
1019
rxdesc->pkglen = le16toh(rxdesc->pkglen);
sys/dev/pcmcia/if_malo_pcmcia.c
1089
device_xname(sc->sc_dev), txdesc->status, le16toh(txdesc->pkglen),
sys/dev/pcmcia/if_malo_pcmcia.c
1377
psize += le16toh(body_rates->size);
sys/dev/pcmcia/if_malo_pcmcia.c
1379
memset((char *)(body_rates + 1) + le16toh(body_rates->size), 0,
sys/dev/pcmcia/if_malo_pcmcia.c
1405
body->bufsize = le16toh(body->bufsize);
sys/dev/pcmcia/if_malo_pcmcia.c
1414
set->size = le16toh(set->size);
sys/dev/pcmcia/if_malo_pcmcia.c
1415
set->beaconintvl = le16toh(set->beaconintvl);
sys/dev/pcmcia/if_malo_pcmcia.c
1416
set->capinfo = le16toh(set->capinfo);
sys/dev/pcmcia/if_malo_pcmcia.c
1836
le16toh(body_ssid->size));
sys/dev/pcmcia/if_malo_pcmcia.c
1837
psize += le16toh(body_ssid->size);
sys/dev/pcmcia/if_malo_pcmcia.c
1840
((char *)(body_ssid + 1) + le16toh(body_ssid->size));
sys/dev/pcmcia/if_malo_pcmcia.c
1844
psize += le16toh(body_phy->size);
sys/dev/pcmcia/if_malo_pcmcia.c
1847
((char *)(body_phy + 1) + le16toh(body_phy->size));
sys/dev/pcmcia/if_malo_pcmcia.c
1855
le16toh(body_rates->size));
sys/dev/pcmcia/if_malo_pcmcia.c
1856
psize += le16toh(body_rates->size);
sys/dev/pcmcia/if_malo_pcmcia.c
1860
((char *)(body_rates + 1) + le16toh(body_rates->size));
sys/dev/pcmcia/if_malo_pcmcia.c
1863
memcpy(body_passeid->data, body_rates->data, le16toh(body_rates->size));
sys/dev/pcmcia/if_malo_pcmcia.c
1864
psize += le16toh(body_passeid->size);
sys/dev/pcmcia/if_malo_pcmcia.c
2009
hdr->cmd = le16toh(hdr->cmd);
sys/dev/pcmcia/if_malo_pcmcia.c
2010
hdr->size = le16toh(hdr->size);
sys/dev/pcmcia/if_malo_pcmcia.c
2011
hdr->seqnum = le16toh(hdr->seqnum);
sys/dev/pcmcia/if_malo_pcmcia.c
2012
hdr->result = le16toh(hdr->result);
sys/dev/sbus/stp4020.c
260
return (le16toh(*(volatile uint16_t *)(handle + offset)));
sys/dev/scsipi/cd.c
1127
toc->header.len = le16toh(toc->header.len);
sys/dev/scsipi/cd.c
1194
th->len = le16toh(th->len);
sys/dev/scsipi/cd.c
1291
toc.header.len = le16toh(toc.header.len);
sys/dev/sdmmc/if_bwfm_sdio.c
1809
hwhdr->frmlen = le16toh(hwhdr->frmlen);
sys/dev/sdmmc/if_bwfm_sdio.c
1810
hwhdr->cksum = le16toh(hwhdr->cksum);
sys/dev/sdmmc/if_bwfm_sdio.c
1990
slen = le16toh(sublen[i]);
sys/dev/sdmmc/if_bwfm_sdio.c
2027
hwhdr.frmlen = le16toh(hwhdr.frmlen);
sys/dev/sdmmc/if_bwfm_sdio.c
2028
hwhdr.cksum = le16toh(hwhdr.cksum);
sys/dev/sdmmc/if_bwi_sdio.c
419
val = le16toh(val);
sys/dev/sdmmc/sdhc.c
2093
*(uint16_t *)data = le16toh(HREAD2(hp, SDHC_DATA));
sys/dev/sdmmc/sdhc.c
2104
*(uint16_t *)data = le16toh(HREAD2(hp, SDHC_DATA));
sys/dev/usb/if_athn_usb.c
2360
pktlen = le16toh(hdr->len);
sys/dev/usb/if_axe.c
1017
(le16toh(hdr.len) & AXE_RH1M_RXLEN_MASK),
sys/dev/usb/if_axe.c
1018
(le16toh(hdr.ilen) & AXE_RH1M_RXLEN_MASK), 0);
sys/dev/usb/if_axe.c
1023
if (((le16toh(hdr.len) & AXE_RH1M_RXLEN_MASK) ^
sys/dev/usb/if_axe.c
1024
(le16toh(hdr.ilen) & AXE_RH1M_RXLEN_MASK)) !=
sys/dev/usb/if_axe.c
1030
rxlen = le16toh(hdr.len) & AXE_RH1M_RXLEN_MASK;
sys/dev/usb/if_axe.c
1050
csum_hdr.len = le16toh(csum_hdr.len);
sys/dev/usb/if_axe.c
1051
csum_hdr.ilen = le16toh(csum_hdr.ilen);
sys/dev/usb/if_axe.c
1052
csum_hdr.cstatus = le16toh(csum_hdr.cstatus);
sys/dev/usb/if_axe.c
343
*val = le16toh(data);
sys/dev/usb/if_axe.c
449
rxmode = le16toh(rxmode);
sys/dev/usb/if_axe.c
580
eeprom = le16toh(eeprom);
sys/dev/usb/if_axe.c
801
sc->sc_pwrcfg = le16toh(eeprom) & 0xFF00;
sys/dev/usb/if_axe.c
816
eeprom = le16toh(eeprom);
sys/dev/usb/if_axen.c
152
*val = le16toh(data);
sys/dev/usb/if_axen.c
249
rxmode = le16toh(wval);
sys/dev/usb/if_axen.c
338
} while ((le16toh(buf) & 0xff) & AXEN_EEPROM_BUSY);
sys/dev/usb/if_axen.c
402
temp = le16toh(wval);
sys/dev/usb/if_axen.c
413
ctl = le16toh(wval);
sys/dev/usb/if_axen.c
489
DPRINTF(("axen: current medium mode: 0x%04x\n", le16toh(wval)));
sys/dev/usb/if_axen.c
926
rxmode = le16toh(wval);
sys/dev/usb/if_axen.c
944
rxmode = le16toh(wval);
sys/dev/usb/if_otus.c
1680
ether_sprintf(tx->macaddr), le16toh(tx->status),
sys/dev/usb/if_otus.c
1880
le16toh(head->tag));
sys/dev/usb/if_otus.c
1883
hlen = le16toh(head->len);
sys/dev/usb/if_otus.c
913
uint16_t domain = le16toh(sc->sc_eeprom.baseEepHeader.regDmn[0]);
sys/dev/usb/if_rum.c
1852
sc->macbbp_rev = le16toh(val);
sys/dev/usb/if_rum.c
1858
val = le16toh(val);
sys/dev/usb/if_rum.c
1868
val = le16toh(val);
sys/dev/usb/if_rum.c
1876
val = le16toh(val);
sys/dev/usb/if_rum.c
1881
val = le16toh(val);
sys/dev/usb/if_rum.c
1889
val = le16toh(val);
sys/dev/usb/if_run.c
1202
*val = le16toh(tmp);
sys/dev/usb/if_run.c
2305
len = le16toh(rxwi->len) & 0xfff;
sys/dev/usb/if_run.c
2374
phy = le16toh(rxwi->phy);
sys/dev/usb/if_upgt.c
1055
preamble_len = le16toh(eeprom_header->preamble_len);
sys/dev/usb/if_upgt.c
1062
(le16toh(eeprom_option->len) - 1) * sizeof(uint16_t);
sys/dev/usb/if_upgt.c
1064
le16toh(eeprom_option->type);
sys/dev/usb/if_upgt.c
1171
channel = ieee80211_mhz2ieee(le16toh(freq3[i].freq), 0);
sys/dev/usb/if_upgt.c
1177
le16toh(sc->sc_eeprom_freq3[channel].freq), channel);
sys/dev/usb/if_upgt.c
1206
channel = ieee80211_mhz2ieee(le16toh(freq4_1[i].freq), 0);
sys/dev/usb/if_upgt.c
1217
le16toh(freq4_1[i].freq), channel);
sys/dev/usb/if_upgt.c
1235
channel = ieee80211_mhz2ieee(le16toh(freq6[i].freq), 0);
sys/dev/usb/if_upgt.c
1241
le16toh(sc->sc_eeprom_freq6[channel].freq), channel);
sys/dev/usb/if_upgt.c
1747
le16toh(desc->status),
sys/dev/usb/if_upgt.c
1748
le16toh(desc->rssi));
sys/dev/usb/if_upgt.c
1749
DPRINTF(2, "seq=%d\n", le16toh(desc->seq));
sys/dev/usb/if_upgt.c
1792
h2_type = le16toh(header->header2.type);
sys/dev/usb/if_upgt.c
1797
uint16_t eeprom_offset = le16toh(eeprom->offset);
sys/dev/usb/if_upgt.c
1798
uint16_t eeprom_len = le16toh(eeprom->len);
sys/dev/usb/if_upgt.c
1825
upgt_rx(sc, data_rx->buf + 4, le16toh(header->header1.len));
sys/dev/usb/if_ural.c
1569
return le16toh(val);
sys/dev/usb/if_ural.c
1978
val = le16toh(val);
sys/dev/usb/if_urtwn.c
3566
if ((le16toh(hdr->signature) >> 4) == 0x88c ||
sys/dev/usb/if_urtwn.c
3567
(le16toh(hdr->signature) >> 4) == 0x88e ||
sys/dev/usb/if_urtwn.c
3568
(le16toh(hdr->signature) >> 4) == 0x92e ||
sys/dev/usb/if_urtwn.c
3569
(le16toh(hdr->signature) >> 4) == 0x92c) {
sys/dev/usb/if_urtwn.c
3571
le16toh(hdr->version), le16toh(hdr->subversion), 0, 0);
sys/dev/usb/if_zyd.c
1837
if (le16toh(cmd->code) == ZYD_NOTIF_RETRYSTATUS) {
sys/dev/usb/if_zyd.c
1845
le16toh(retry->rate), ether_sprintf(retry->macaddr),
sys/dev/usb/if_zyd.c
1846
le16toh(retry->count) & 0xff, le16toh(retry->count)));
sys/dev/usb/if_zyd.c
1862
if (le16toh(retry->count) & 0x100)
sys/dev/usb/if_zyd.c
1865
} else if (le16toh(cmd->code) == ZYD_NOTIF_IORD) {
sys/dev/usb/if_zyd.c
1868
if (le16toh(*(uint16_t *)cmd->data) == ZYD_CR_INTERRUPT)
sys/dev/usb/if_zyd.c
1900
le16toh(cmd->code));
sys/dev/usb/if_zyd.c
852
*val = le16toh(tmp.val);
sys/dev/usb/if_zyd.c
870
*val = le16toh(tmp[0].val) << 16 | le16toh(tmp[1].val);
sys/dev/usb/utoppy.c
671
if (len < UTOPPY_HEADER_SIZE || len < (uint32_t)le16toh(h->h_len)) {
sys/dev/usb/utoppy.c
674
(int)len, le16toh(h->h_len)));
sys/dev/usb/utoppy.c
678
len = h->h_len = le16toh(h->h_len);
sys/dev/usb/utoppy.c
679
h->h_crc = le16toh(h->h_crc);
sys/dev/usb/utoppy.c
680
*respp = h->h_cmd = le16toh(h->h_cmd);
sys/dev/usb/utoppy.c
681
h->h_cmd2 = le16toh(h->h_cmd2);
sys/fs/msdosfs/msdosfs_conv.c
1026
u1 = le16toh(*w1);
sys/fs/msdosfs/msdosfs_conv.c
1027
u2 = le16toh(*w2);
sys/fs/msdosfs/msdosfs_conv.c
783
uint16_t inch = le16toh(in[0]);
sys/fs/msdosfs/msdosfs_conv.c
907
inch = le16toh(in[0]);
sys/fs/msdosfs/msdosfs_conv.c
966
w = le16toh(w);
sys/fs/msdosfs/msdosfs_conv.c
985
w = le16toh(w);
sys/net80211/ieee80211.h
426
return le16toh(*(const u_int16_t *)frm);
sys/net80211/ieee80211_crypto_tkip.c
460
return le16toh(*v);
sys/net80211/ieee80211_input.c
2109
scan.sp_bintval = le16toh(*(u_int16_t *)frm); frm += 2;
sys/net80211/ieee80211_input.c
2110
scan.sp_capinfo = le16toh(*(u_int16_t *)frm); frm += 2;
sys/net80211/ieee80211_input.c
2473
algo = le16toh(*(u_int16_t *)frm);
sys/net80211/ieee80211_input.c
2474
seq = le16toh(*(u_int16_t *)(frm + 2));
sys/net80211/ieee80211_input.c
2475
status = le16toh(*(u_int16_t *)(frm + 4));
sys/net80211/ieee80211_input.c
2584
capinfo = le16toh(*(u_int16_t *)frm); frm += 2;
sys/net80211/ieee80211_input.c
2585
lintval = le16toh(*(u_int16_t *)frm); frm += 2;
sys/net80211/ieee80211_input.c
2807
capinfo = le16toh(*(u_int16_t *)frm);
sys/net80211/ieee80211_input.c
2809
status = le16toh(*(u_int16_t *)frm);
sys/net80211/ieee80211_input.c
2821
associd = le16toh(*(u_int16_t *)frm);
sys/net80211/ieee80211_input.c
2938
reason = le16toh(*(u_int16_t *)frm);
sys/net80211/ieee80211_input.c
2995
reason = le16toh(*(u_int16_t *)frm);
sys/net80211/ieee80211_input.c
3174
aid = le16toh(*(u_int16_t *)wh->i_dur);
sys/net80211/ieee80211_input.c
691
rxseq = le16toh(*(u_int16_t *)wh->i_seq);
sys/net80211/ieee80211_input.c
773
rxseq = le16toh(iseq);
sys/net80211/ieee80211_input.c
809
last_rxseq = le16toh(*(u_int16_t *)lwh->i_seq);
sys/net80211/ieee80211_ioctl.c
526
if (le16toh(wreq->wi_val[0]) * 2 > len ||
sys/net80211/ieee80211_ioctl.c
527
le16toh(wreq->wi_val[0]) > IEEE80211_NWID_LEN) {
sys/net80211/ieee80211_ioctl.c
532
ic->ic_des_esslen = le16toh(wreq->wi_val[0]) * 2;
sys/net80211/ieee80211_ioctl.c
542
i = le16toh(wreq->wi_val[0]);
sys/net80211/ieee80211_ioctl.c
575
switch (le16toh(wreq->wi_val[0])) {
sys/net80211/ieee80211_ioctl.c
594
if (le16toh(wreq->wi_val[0]) != ic->ic_opmode) {
sys/net80211/ieee80211_ioctl.c
595
ic->ic_opmode = le16toh(wreq->wi_val[0]);
sys/net80211/ieee80211_ioctl.c
616
rate = 2 * le16toh(wreq->wi_val[0]);
sys/net80211/ieee80211_ioctl.c
652
ic->ic_fragthreshold = le16toh(wreq->wi_val[0]);
sys/net80211/ieee80211_ioctl.c
658
ic->ic_rtsthreshold = le16toh(wreq->wi_val[0]);
sys/net80211/ieee80211_ioctl.c
692
i = le16toh(wreq->wi_val[0]);
sys/net80211/ieee80211_ioctl.c
700
if (le16toh(wreq->wi_val[0]) != 1)
sys/net80211/ieee80211_ioctl.c
723
ic->ic_lintval = le16toh(wreq->wi_val[0]);
sys/net80211/ieee80211_ioctl.c
734
i = le16toh(wreq->wi_val[0]);
sys/net80211/ieee80211_ioctl.c
760
i = le16toh(wreq->wi_val[0]);
sys/net80211/ieee80211_ioctl.c
771
len = le16toh(keys->wi_keys[i].wi_keylen);
sys/net80211/ieee80211_ioctl.c
780
len = le16toh(keys->wi_keys[i].wi_keylen);
sys/net80211/ieee80211_ioctl.c
794
len = le16toh(wreq->wi_val[0]);
sys/netbt/hci_event.c
1208
rp.con_handle = HCI_CON_HANDLE(le16toh(rp.con_handle));
sys/netbt/hci_event.c
260
ep.opcode = le16toh(ep.opcode);
sys/netbt/hci_event.c
310
HCI_OGF(le16toh(ep.opcode)), HCI_OCF(le16toh(ep.opcode)),
sys/netbt/hci_event.c
325
HCI_OGF(le16toh(ep.opcode)), HCI_OCF(le16toh(ep.opcode)),
sys/netbt/hci_event.c
332
switch(le16toh(ep.opcode)) {
sys/netbt/hci_event.c
399
handle = le16toh(handle);
sys/netbt/hci_event.c
403
num = le16toh(num);
sys/netbt/hci_event.c
638
link->hl_handle = HCI_CON_HANDLE(le16toh(ep.con_handle));
sys/netbt/hci_event.c
683
ep.con_handle = le16toh(ep.con_handle);
sys/netbt/hci_event.c
761
ep.con_handle = HCI_CON_HANDLE(le16toh(ep.con_handle));
sys/netbt/hci_event.c
804
con_handle = HCI_CON_HANDLE(le16toh(ep.con_handle));
sys/netbt/hci_event.c
857
ep.con_handle = HCI_CON_HANDLE(le16toh(ep.con_handle));
sys/netbt/hci_event.c
900
le16toh(ep.con_handle), le16toh(ep.clock_offset), ep.status);
sys/netbt/hci_event.c
902
ep.con_handle = HCI_CON_HANDLE(le16toh(ep.con_handle));
sys/netbt/hci_event.c
958
unit->hci_max_acl_size = le16toh(rp.max_acl_size);
sys/netbt/hci_event.c
959
unit->hci_num_acl_pkts = le16toh(rp.num_acl_pkts);
sys/netbt/hci_event.c
960
unit->hci_max_acl_pkts = le16toh(rp.num_acl_pkts);
sys/netbt/hci_event.c
962
unit->hci_num_sco_pkts = le16toh(rp.num_sco_pkts);
sys/netbt/hci_event.c
963
unit->hci_max_sco_pkts = le16toh(rp.num_sco_pkts);
sys/netbt/hci_link.c
443
hdr.length = le16toh(hdr.length);
sys/netbt/hci_link.c
444
hdr.con_handle = le16toh(hdr.con_handle);
sys/netbt/hci_link.c
514
want = le16toh(want);
sys/netbt/hci_link.c
850
hdr.con_handle = le16toh(hdr.con_handle);
sys/netbt/hci_socket.c
630
hdr.opcode = le16toh(hdr.opcode);
sys/netbt/hci_socket.c
845
arg1 = le16toh(mtod(m, hci_cmd_hdr_t *)->opcode);
sys/netbt/hci_socket.c
850
arg1 = le16toh(mtod(m, hci_acldata_hdr_t *)->con_handle);
sys/netbt/hci_socket.c
856
arg1 = le16toh(mtod(m, hci_scodata_hdr_t *)->con_handle);
sys/netbt/l2cap_lower.c
118
hdr.length = le16toh(hdr.length);
sys/netbt/l2cap_lower.c
119
hdr.dcid = le16toh(hdr.dcid);
sys/netbt/l2cap_signal.c
182
cmd.length = le16toh(cmd.length);
sys/netbt/l2cap_signal.c
198
switch (le16toh(cp.reason)) {
sys/netbt/l2cap_signal.c
215
link->hl_mtu = le16toh(cp.data[0]);
sys/netbt/l2cap_signal.c
232
UNKNOWN(le16toh(cp.reason));
sys/netbt/l2cap_signal.c
258
cp.scid = le16toh(cp.scid);
sys/netbt/l2cap_signal.c
259
cp.psm = le16toh(cp.psm);
sys/netbt/l2cap_signal.c
364
cp.scid = le16toh(cp.scid);
sys/netbt/l2cap_signal.c
365
cp.dcid = le16toh(cp.dcid);
sys/netbt/l2cap_signal.c
366
cp.result = le16toh(cp.result);
sys/netbt/l2cap_signal.c
430
left = le16toh(cmd.length);
sys/netbt/l2cap_signal.c
439
cp.dcid = le16toh(cp.dcid);
sys/netbt/l2cap_signal.c
440
cp.flags = le16toh(cp.flags);
sys/netbt/l2cap_signal.c
492
val.mtu = le16toh(val.mtu);
sys/netbt/l2cap_signal.c
612
&& rp.result == le16toh(L2CAP_SUCCESS)) {
sys/netbt/l2cap_signal.c
646
left = le16toh(cmd.length);
sys/netbt/l2cap_signal.c
655
cp.scid = le16toh(cp.scid);
sys/netbt/l2cap_signal.c
656
cp.flags = le16toh(cp.flags);
sys/netbt/l2cap_signal.c
657
cp.result = le16toh(cp.result);
sys/netbt/l2cap_signal.c
733
chan->lc_imtu = le16toh(val.mtu);
sys/netbt/l2cap_signal.c
80
cmd.length = le16toh(cmd.length);
sys/netbt/l2cap_signal.c
878
cp.scid = le16toh(cp.scid);
sys/netbt/l2cap_signal.c
879
cp.dcid = le16toh(cp.dcid);
sys/netbt/l2cap_signal.c
915
cp.scid = le16toh(cp.scid);
sys/netbt/l2cap_signal.c
916
cp.dcid = le16toh(cp.dcid);
sys/netbt/l2cap_signal.c
952
cp.type = le16toh(cp.type);
sys/netbt/rfcomm_session.c
1237
rpn.param_mask = le16toh(rpn.param_mask);
sys/netbt/rfcomm_session.c
1328
pn.mtu = le16toh(pn.mtu);
sys/stand/efiboot/efiblock.c
302
if (le16toh(d.d_npartitions) > MAXPARTITIONS)
sys/stand/efiboot/efiblock.c
305
for (n = 0; n < le16toh(d.d_npartitions); n++) {
sys/ufs/chfs/chfs_gc.c
1042
if (le16toh(chfdn.type) != CHFS_NODETYPE_DIRENT)
sys/ufs/chfs/chfs_gc.c
733
if (le16toh(nhdr->magic) != CHFS_FS_MAGIC_BITMASK) {
sys/ufs/chfs/chfs_gc.c
746
switch(le16toh(nhdr->type)) {
sys/ufs/chfs/chfs_readinode.c
1157
if (le16toh(dnode->magic) != CHFS_FS_MAGIC_BITMASK) {
sys/ufs/chfs/chfs_readinode.c
818
if (le16toh(dnode->magic) != CHFS_FS_MAGIC_BITMASK) {
sys/ufs/chfs/chfs_scan.c
494
switch (le16toh(nhdr->type)) {
sys/ufs/chfs/chfs_scan.c
82
magic = le16toh(nhdr->magic);
tools/compat/compat_defs.h
1174
#if !HAVE_DECL_LE16TOH && !defined(le16toh)
usr.bin/btkey/device.c
105
if (opcode != le16toh(cc->opcode))
usr.sbin/bta2dpd/bta2dpd/sbc_encode.c
522
X[i] = (int16_t)le16toh(data[k++]);
usr.sbin/btconfig/btconfig.c
1110
printf(" : clock offset %d\n", le16toh(r->clock_offset));
usr.sbin/installboot/arch/i386.c
345
if (disk_buf.mbr.mbr_magic != le16toh(MBR_MAGIC)) {
usr.sbin/installboot/arch/i386.c
444
u = le16toh(bpb->bpbBytesPerSec)
usr.sbin/installboot/arch/i386.c
445
* le16toh(bpb->bpbResSectors);
usr.sbin/installboot/arch/landisk.c
106
if (mbr.mbr_magic != le16toh(MBR_MAGIC)) {
usr.sbin/installboot/arch/pmax.c
332
for (i = 0; i < le16toh(ehdr.e_phnum); i++) {
usr.sbin/iopctl/iopctl.c
257
nent = ((le16toh(lct->tablesize) << 2) -
usr.sbin/iopctl/iopctl.c
261
show("flags", "0x%x", le16toh(lct->flags));
usr.sbin/iopctl/iopctl.c
271
show("entry size", "%d bytes", le16toh(ent->entrysize) << 2);
usr.sbin/iopctl/iopctl.c
272
show("local tid", "%d", le16toh(ent->localtid) & 4095);
usr.sbin/iopctl/iopctl.c
303
show("organization id", "%d", le16toh(status.orgid));
usr.sbin/iopctl/iopctl.c
310
show("inbound frame sz", "%d", le16toh(status.inboundmframesize));
usr.sbin/iopctl/iopctl.c
349
show("ddm tid", "%d", le16toh(p.di.ddmtid) & 4095);
usr.sbin/iopctl/iopctl.c
438
nit = (le16toh(status.orgid) != I2O_ORG_DPT);
usr.sbin/mlxctl/cmds.c
231
printf(" DRAM type\t\t\t%d\n", le16toh(enq.me_mem_type));
usr.sbin/mlxctl/cmds.c
233
le16toh(enq.me_clock_speed));
usr.sbin/mlxctl/cmds.c
235
le16toh(enq.me_hardware_speed));
usr.sbin/mlxctl/cmds.c
237
le16toh(enq.me_max_commands));
usr.sbin/mlxctl/cmds.c
238
printf(" Max SG Entries\t\t%d\n", le16toh(enq.me_max_sg));
usr.sbin/mlxctl/cmds.c
239
printf(" Max DP\t\t\t%d\n", le16toh(enq.me_max_dp));
usr.sbin/mlxctl/cmds.c
240
printf(" Max IOD\t\t\t%d\n", le16toh(enq.me_max_iod));
usr.sbin/mlxctl/cmds.c
241
printf(" Max Comb\t\t\t%d\n", le16toh(enq.me_max_comb));
usr.sbin/mlxctl/cmds.c
245
le16toh(enq.me_min_freelines));
usr.sbin/mlxctl/cmds.c
247
printf(" MAXBLK\t\t\t%d\n", le16toh(enq.me_maxblk));
usr.sbin/mlxctl/cmds.c
249
le16toh(enq.me_blocking_factor));
usr.sbin/mlxctl/cmds.c
251
le16toh(enq.me_cacheline));
usr.sbin/mlxctl/cmds.c
257
le16toh(enq.me_firmware_build));
usr.sbin/puffs/mount_9p/ninebuf.c
64
return le16toh(val);
usr.sbin/sysinst/arch/hpcarm/md.c
213
if (pbr.mbr_magic != le16toh(MBR_MAGIC))
usr.sbin/sysinst/arch/zaurus/md.c
187
if (pbr.mbr_magic != le16toh(MBR_MAGIC))
usr.sbin/sysinst/mbr.c
527
return (le16toh(mbrs->mbr_magic) == MBR_MAGIC);
usr.sbin/wiconfig/wiconfig.c
351
int len = le16toh(wreq->wi_val[0]);
usr.sbin/wiconfig/wiconfig.c
435
for (j = 0; j < le16toh(k->wi_keylen); j++) {
usr.sbin/wiconfig/wiconfig.c
444
for (j = 0; j < le16toh(k->wi_keylen); j++)
usr.sbin/wiconfig/wiconfig.c
472
switch (le16toh(wreq->wi_val[1])) {
usr.sbin/wiconfig/wiconfig.c
486
printf("[ %s ID: %d version: %d.%d ]", vendor, le16toh(wreq->wi_val[0]),
usr.sbin/wiconfig/wiconfig.c
487
le16toh(wreq->wi_val[2]), le16toh(wreq->wi_val[3]));
usr.sbin/wiconfig/wiconfig.c
497
printf("%d ", le16toh(wreq->wi_val[i]));
usr.sbin/wiconfig/wiconfig.c
504
if (le16toh(wreq->wi_val[0]))
usr.sbin/wiconfig/wiconfig.c
531
int bits = le16toh(wreq->wi_val[0]);
usr.sbin/wiconfig/wiconfig.c
644
has_wep = le16toh(wreq.wi_val[0]);
usr.sbin/wiconfig/wiconfig.c
701
htole16(le16toh(wreq.wi_val[0]) + 1);