B_LENDIAN_TO_HOST_INT16
#define le16_to_cpu B_LENDIAN_TO_HOST_INT16
vendor->prod_id = B_LENDIAN_TO_HOST_INT16(raw->prod_id);
B_LENDIAN_TO_HOST_INT16(reserveInfo->usFirmwareUseInKb));
= B_LENDIAN_TO_HOST_INT16(reserveInfo->usFirmwareUseInKb) * 1024;
= B_LENDIAN_TO_HOST_INT16(lvdsInfo->info.sLCDTiming.usPixClk) * 10;
= B_LENDIAN_TO_HOST_INT16(lvdsInfo->info.sLCDTiming.usHActive);
timing->h_total = timing->h_display + B_LENDIAN_TO_HOST_INT16(
+ B_LENDIAN_TO_HOST_INT16(lvdsInfo->info.sLCDTiming.usHSyncOffset);
+ B_LENDIAN_TO_HOST_INT16(lvdsInfo->info.sLCDTiming.usHSyncWidth);
= B_LENDIAN_TO_HOST_INT16(lvdsInfo->info.sLCDTiming.usVActive);
timing->v_total = timing->v_display + B_LENDIAN_TO_HOST_INT16(
+ B_LENDIAN_TO_HOST_INT16(lvdsInfo->info.sLCDTiming.usVSyncOffset);
+ B_LENDIAN_TO_HOST_INT16(lvdsInfo->info.sLCDTiming.usVSyncWidth);
= B_LENDIAN_TO_HOST_INT16(lvdsInfo->info.usOffDelayInMs);
uint16 flags = B_LENDIAN_TO_HOST_INT16(
= B_LENDIAN_TO_HOST_INT16(pin->usGpioPin_AIndex) * 4;
if (i == 4 && B_LENDIAN_TO_HOST_INT16(gpio->usClkMaskRegisterIndex)
if (i == 7 && B_LENDIAN_TO_HOST_INT16(gpio->usClkMaskRegisterIndex)
= B_LENDIAN_TO_HOST_INT16(gpio->usClkMaskRegisterIndex) * 4;
= B_LENDIAN_TO_HOST_INT16(gpio->usDataMaskRegisterIndex) * 4;
= B_LENDIAN_TO_HOST_INT16(gpio->usClkEnRegisterIndex) * 4;
= B_LENDIAN_TO_HOST_INT16(gpio->usDataEnRegisterIndex) * 4;
= B_LENDIAN_TO_HOST_INT16(gpio->usClkA_RegisterIndex) * 4;
= B_LENDIAN_TO_HOST_INT16(gpio->usDataA_RegisterIndex) * 4;
= B_LENDIAN_TO_HOST_INT16(gpio->usClkY_RegisterIndex) * 4;
= B_LENDIAN_TO_HOST_INT16(gpio->usDataY_RegisterIndex) * 4;
= B_LENDIAN_TO_HOST_INT16(supportedDevices->info.usDeviceSupport);
+ B_LENDIAN_TO_HOST_INT16(objectHeader->usDisplayPathTableOffset));
+ B_LENDIAN_TO_HOST_INT16(objectHeader->usConnectorObjectTableOffset));
+ B_LENDIAN_TO_HOST_INT16(objectHeader->usEncoderObjectTableOffset));
+ B_LENDIAN_TO_HOST_INT16(objectHeader->usRouterObjectTableOffset));
int deviceSupport = B_LENDIAN_TO_HOST_INT16(objectHeader->usDeviceSupport);
pathSize += B_LENDIAN_TO_HOST_INT16(path->usSize);
uint16 connectorFlags = B_LENDIAN_TO_HOST_INT16(path->usDeviceTag);
= (B_LENDIAN_TO_HOST_INT16(path->usConnObjectId)
for (j = 0; j < ((B_LENDIAN_TO_HOST_INT16(path->usSize) - 8) / 2);
= (B_LENDIAN_TO_HOST_INT16(path->usGraphicObjIds[j]) &
= B_LENDIAN_TO_HOST_INT16(
if (B_LENDIAN_TO_HOST_INT16(path->usGraphicObjIds[j])
+ B_LENDIAN_TO_HOST_INT16(
caps = B_LENDIAN_TO_HOST_INT16(
= B_LENDIAN_TO_HOST_INT16(routerObject->asObjects[k].usObjectID);
if (B_LENDIAN_TO_HOST_INT16(path->usGraphicObjIds[j]) == routerObjectID) {
+ B_LENDIAN_TO_HOST_INT16(
+ B_LENDIAN_TO_HOST_INT16(
if (B_LENDIAN_TO_HOST_INT16(path->usConnObjectId)
== B_LENDIAN_TO_HOST_INT16(dstObjs[enumId]))
if (B_LENDIAN_TO_HOST_INT16(path->usConnObjectId)
== B_LENDIAN_TO_HOST_INT16(
+ tableOffset + B_LENDIAN_TO_HOST_INT16(
gInfo->dpExternalClock = B_LENDIAN_TO_HOST_INT16(
gInfo->maximumPixelClock = B_LENDIAN_TO_HOST_INT16(
= B_LENDIAN_TO_HOST_INT16(firmwareInfo->info.usReferenceClock) * 10;
= B_LENDIAN_TO_HOST_INT16(
= B_LENDIAN_TO_HOST_INT16(
= B_LENDIAN_TO_HOST_INT16(
pll->pllInMin = B_LENDIAN_TO_HOST_INT16(
pll->pllInMax = B_LENDIAN_TO_HOST_INT16(
pll->ssPercentage = B_LENDIAN_TO_HOST_INT16(
pll->ssPercentage = B_LENDIAN_TO_HOST_INT16(
pll->ssRate = B_LENDIAN_TO_HOST_INT16(
pll->ssPercentage = B_LENDIAN_TO_HOST_INT16(
pll->ssRate = B_LENDIAN_TO_HOST_INT16(
pll->ssPercentage = B_LENDIAN_TO_HOST_INT16(
pll->ssRate = B_LENDIAN_TO_HOST_INT16(
= B_LENDIAN_TO_HOST_INT16(args.v1.usPixelClock);
conn->currentRxExpectedLength = B_LENDIAN_TO_HOST_INT16(l2capHeader->length)
aclHeader->handle = B_LENDIAN_TO_HOST_INT16(aclHeader->handle);
uint16 length = B_LENDIAN_TO_HOST_INT16(aclHeader->alen);
+ B_LENDIAN_TO_HOST_INT16(headerPkt->alen);
crs->i2c_addr = B_LENDIAN_TO_HOST_INT16(
fMaxTrimRangeBlocks = B_LENDIAN_TO_HOST_INT16(
*(f++) = B_HOST_TO_BENDIAN_FLOAT((float)B_LENDIAN_TO_HOST_INT16(sh));
*(f++) = B_HOST_TO_LENDIAN_FLOAT((float)B_LENDIAN_TO_HOST_INT16(sh));
size_t bytes = B_LENDIAN_TO_HOST_INT16(*(uint16 *)(*buffer));
{ return B_LENDIAN_TO_HOST_INT16(stripe_count); }
{ return B_LENDIAN_TO_HOST_INT16(sub_stripes); }
uint16 NameLength() const { return B_LENDIAN_TO_HOST_INT16(name_length); }
uint16 DataLength() const { return B_LENDIAN_TO_HOST_INT16(data_length); }
uint16 NameLength() const { return B_LENDIAN_TO_HOST_INT16(name_length); }
{ return B_LENDIAN_TO_HOST_INT16(modification_time); }
{ return B_LENDIAN_TO_HOST_INT16(modification_date); }
{ return B_LENDIAN_TO_HOST_INT16(access_time); }
{ return B_LENDIAN_TO_HOST_INT16(access_date); }
{ return B_LENDIAN_TO_HOST_INT16(creation_time); }
{ return B_LENDIAN_TO_HOST_INT16(creation_date); }
{ return B_LENDIAN_TO_HOST_INT16(attribs); }
uint16 Flags() const { return B_LENDIAN_TO_HOST_INT16(flags); }
{ return B_LENDIAN_TO_HOST_INT16(limit); }
{ return B_LENDIAN_TO_HOST_INT16(count); }
uint16 InodeSize() const { return B_LENDIAN_TO_HOST_INT16(inode_size); }
{ return B_LENDIAN_TO_HOST_INT16(reserved_gdt_blocks); }
{ return B_LENDIAN_TO_HOST_INT16(group_descriptor_size); }
uint32 blocks = B_LENDIAN_TO_HOST_INT16(free_blocks);
((uint32)B_LENDIAN_TO_HOST_INT16(free_blocks_high) << 16);
uint32 inodes = B_LENDIAN_TO_HOST_INT16(free_inodes);
((uint32)B_LENDIAN_TO_HOST_INT16(free_inodes_high) << 16);
uint32 dirs = B_LENDIAN_TO_HOST_INT16(used_directories);
((uint32)B_LENDIAN_TO_HOST_INT16(used_directories_high) << 16);
uint16 Flags() const { return B_LENDIAN_TO_HOST_INT16(flags); }
uint32 inodes = B_LENDIAN_TO_HOST_INT16(unused_inodes);
((uint32)B_LENDIAN_TO_HOST_INT16(unused_inodes_high) << 16);
return B_LENDIAN_TO_HOST_INT16(magic) == EXT2_EXTENT_MAGIC;
uint16 NumEntries() const { return B_LENDIAN_TO_HOST_INT16(num_entries); }
uint16 MaxEntries() const { return B_LENDIAN_TO_HOST_INT16(max_entries); }
uint16 Depth() const { return B_LENDIAN_TO_HOST_INT16(depth); }
| ((uint64)B_LENDIAN_TO_HOST_INT16(physical_block_high) << 32); }
uint16 Length() const { return B_LENDIAN_TO_HOST_INT16(length) == 0x8000
? 0x8000 : B_LENDIAN_TO_HOST_INT16(length) & 0x7fff; }
| ((uint64)B_LENDIAN_TO_HOST_INT16(physical_block_high) << 32); }
uint16 Mode() const { return B_LENDIAN_TO_HOST_INT16(mode); }
uint16 NumLinks() const { return B_LENDIAN_TO_HOST_INT16(num_links); }
| ((uint64)B_LENDIAN_TO_HOST_INT16(num_blocks_high) << 32); }
{ return B_LENDIAN_TO_HOST_INT16(extra_inode_size); }
return B_LENDIAN_TO_HOST_INT16(uid)
| (B_LENDIAN_TO_HOST_INT16(uid_high) << 16);
return B_LENDIAN_TO_HOST_INT16(gid)
| (B_LENDIAN_TO_HOST_INT16(gid_high) << 16);
mode = B_LENDIAN_TO_HOST_INT16(newMode);
uint16 Length() const { return B_LENDIAN_TO_HOST_INT16(length); }
B_LENDIAN_TO_HOST_INT16(value_offset); }
uint16 Magic() const { return B_LENDIAN_TO_HOST_INT16(magic); }
uint16 State() const { return B_LENDIAN_TO_HOST_INT16(state); }
uint32 RevisionLevel() const { return B_LENDIAN_TO_HOST_INT16(revision_level); }
if (is_unicode_japanese(B_LENDIAN_TO_HOST_INT16(unicodeChar))) {
return B_LENDIAN_TO_HOST_INT16(*twoBytes);
#define read16(buffer, off) B_LENDIAN_TO_HOST_INT16(*(uint16*)&buffer[off])
match = B_LENDIAN_TO_HOST_INT16(*puni);
if (B_LENDIAN_TO_HOST_INT16(*puni) == '.')
match = B_LENDIAN_TO_HOST_INT16(*puni);
if (is_unicode_japanese(B_LENDIAN_TO_HOST_INT16(*(uint16 *)&uni[i]))) {
if ((B_LENDIAN_TO_HOST_INT16(uni_str[0])&0xff80) == 0)\
*str++ = B_LENDIAN_TO_HOST_INT16(*uni_str++);\
else if ((B_LENDIAN_TO_HOST_INT16(uni_str[0])&0xf800) == 0) {\
str[0] = 0xc0|(B_LENDIAN_TO_HOST_INT16(uni_str[0])>>6);\
str[1] = 0x80|(B_LENDIAN_TO_HOST_INT16(*uni_str++)&0x3f);\
} else if ((B_LENDIAN_TO_HOST_INT16(uni_str[0])&0xfc00) != 0xd800) {\
str[0] = 0xe0|(B_LENDIAN_TO_HOST_INT16(uni_str[0])>>12);\
str[1] = 0x80|((B_LENDIAN_TO_HOST_INT16(uni_str[0])>>6)&0x3f);\
str[2] = 0x80|(B_LENDIAN_TO_HOST_INT16(*uni_str++)&0x3f);\
val = ((B_LENDIAN_TO_HOST_INT16(uni_str[0])-0xd7c0)<<10) | (B_LENDIAN_TO_HOST_INT16(uni_str[1])&0x3ff);\
B_LENDIAN_TO_HOST_INT16(record->volume_space)));
uint16 year() const { return B_LENDIAN_TO_HOST_INT16(_year); }
return B_LENDIAN_TO_HOST_INT16(_volume_sequence_number); }
return B_LENDIAN_TO_HOST_INT16(_partition_number); }
return B_LENDIAN_TO_HOST_INT16(_volume_sequence_number); }
return B_LENDIAN_TO_HOST_INT16(_partition_number); }
return B_LENDIAN_TO_HOST_INT16(_packet_length); }
return B_LENDIAN_TO_HOST_INT16(_volume_sequence_number); }
return B_LENDIAN_TO_HOST_INT16(_partition_number); }
uint16 minimum_udf_read_revision() const { return B_LENDIAN_TO_HOST_INT16(_accessor().minimum_udf_read_revision); }
uint16 minimum_udf_write_revision() const { return B_LENDIAN_TO_HOST_INT16(_accessor().minimum_udf_write_revision); }
uint16 maximum_udf_write_revision() const { return B_LENDIAN_TO_HOST_INT16(_accessor().maximum_udf_write_revision); }
uint16 interchange_level() const { return B_LENDIAN_TO_HOST_INT16(_interchange_level); }
uint16 max_interchange_level() const { return B_LENDIAN_TO_HOST_INT16(_max_interchange_level); }
uint16 version_number() const { return B_LENDIAN_TO_HOST_INT16(_version_number); }
uint16 implementation_use_length() const { return B_LENDIAN_TO_HOST_INT16(_implementation_use_length); }
uint16 strategy_type() const { return B_LENDIAN_TO_HOST_INT16(_strategy_type); }
uint16 entry_count() const { return B_LENDIAN_TO_HOST_INT16(_entry_count); }
uint16 flags() const { return B_LENDIAN_TO_HOST_INT16(_flags); }
void set_entry_count(uint16 count) { _entry_count = B_LENDIAN_TO_HOST_INT16(count); }
void set_flags(uint16 flags) { _flags = B_LENDIAN_TO_HOST_INT16(flags); }
uint16 file_link_count() const { return B_LENDIAN_TO_HOST_INT16(_file_link_count); }
uint16 file_link_count() const { return B_LENDIAN_TO_HOST_INT16(_file_link_count); }
uint16 partition() const { return B_LENDIAN_TO_HOST_INT16(_partition); }
uint16 flags() const { return B_LENDIAN_TO_HOST_INT16(_accessor().flags); }
uint16 id() const { return B_LENDIAN_TO_HOST_INT16(_id); }
uint16 version() const { return B_LENDIAN_TO_HOST_INT16(_version); }
uint16 serial_number() const { return B_LENDIAN_TO_HOST_INT16(_serial_number); }
uint16 crc() const { return B_LENDIAN_TO_HOST_INT16(_crc); }
uint16 crc_length() const { return B_LENDIAN_TO_HOST_INT16(_crc_length); }
uint16 volume_sequence_number() const { return B_LENDIAN_TO_HOST_INT16(_volume_sequence_number); }
uint16 max_volume_sequence_number() const { return B_LENDIAN_TO_HOST_INT16(_max_volume_sequence_number); }
uint16 interchange_level() const { return B_LENDIAN_TO_HOST_INT16(_interchange_level); }
uint16 max_interchange_level() const { return B_LENDIAN_TO_HOST_INT16(_max_interchange_level); }
uint16 flags() const { return B_LENDIAN_TO_HOST_INT16(_flags); }
uint16 type_and_timezone() const { return B_LENDIAN_TO_HOST_INT16(_type_and_timezone); }
uint16 partition_flags() const { return B_LENDIAN_TO_HOST_INT16(_partition_flags); }
uint16 partition_number() const { return B_LENDIAN_TO_HOST_INT16(_partition_number); }
#define le16toh(x) B_LENDIAN_TO_HOST_INT16(x)
B_LENDIAN_TO_HOST_INT32(id.data1), B_LENDIAN_TO_HOST_INT16(id.data2),
B_LENDIAN_TO_HOST_INT16(id.data3), id.data4[0], id.data4[1],
uint16 w1 = B_LENDIAN_TO_HOST_INT16(from[i]);
uint16 w2 = B_LENDIAN_TO_HOST_INT16(from[i + 1]);
mapspec.firstentry = B_LENDIAN_TO_HOST_INT16(mapspec.firstentry);
mapspec.length = B_LENDIAN_TO_HOST_INT16(mapspec.length);
imagespec.xorigin = B_LENDIAN_TO_HOST_INT16(imagespec.xorigin);
imagespec.yorigin = B_LENDIAN_TO_HOST_INT16(imagespec.yorigin);
imagespec.width = B_LENDIAN_TO_HOST_INT16(imagespec.width);
imagespec.height = B_LENDIAN_TO_HOST_INT16(imagespec.height);
const uint16 character = B_LENDIAN_TO_HOST_INT16(ustr[i]);
uint16 value = B_LENDIAN_TO_HOST_INT16(*(uint16*)data);
value = B_LENDIAN_TO_HOST_INT16(*(uint16*)fHandle);
int16 handle = B_LENDIAN_TO_HOST_INT16(eventData->handle);
uint32 c = B_LENDIAN_TO_HOST_INT16(fClusterLSB);
c += ((uint32)B_LENDIAN_TO_HOST_INT16(fClusterMSB) << 16);
return B_LENDIAN_TO_HOST_INT16(*(reinterpret_cast<uint16 *>(buffer + offset)));