/openbmc/linux/tools/include/tools/ |
H A D | endian.h | 19 #ifndef le16toh 20 #define le16toh(x) (x) macro 43 #ifndef le16toh 44 #define le16toh(x) __bswap_16(x) macro
|
/openbmc/libpldm/tests/dsp/ |
H A D | pdr.cpp | 1206 EXPECT_EQ(le16toh(hdr->length), size - sizeof(struct pldm_pdr_hdr)); in TEST() 1210 EXPECT_EQ(le16toh(*containerId), 1u); in TEST() 1216 EXPECT_EQ(le16toh(entity->entity_type), 1u); in TEST() 1217 EXPECT_EQ(le16toh(entity->entity_instance_num), 1u); in TEST() 1218 EXPECT_EQ(le16toh(entity->entity_container_id), 0u); in TEST() 1225 EXPECT_EQ(le16toh(entity->entity_type), 3u); in TEST() 1226 EXPECT_EQ(le16toh(entity->entity_instance_num), 1u); in TEST() 1227 EXPECT_EQ(le16toh(entity->entity_container_id), 1u); in TEST() 1231 EXPECT_EQ(le16toh(entity->entity_type), 3u); in TEST() 1232 EXPECT_EQ(le16toh(entity->entity_instance_num), 2u); in TEST() [all …]
|
/openbmc/linux/arch/mips/tools/ |
H A D | loongson3-llsc-check.c | 20 # define le16toh(x) (x) macro 24 # define le16toh(x) bswap_16(x) macro 285 for (i = 0; i < le16toh(eh->e_shnum); i++) { in main() 286 sh = vmlinux + le64toh(eh->e_shoff) + (i * le16toh(eh->e_shentsize)); in main()
|
/openbmc/pldm/libpldmresponder/test/ |
H A D | libpldmresponder_platform_test.cpp | 538 ASSERT_EQ(le16toh(terminusHandle1), 0u); in TEST() 539 ASSERT_EQ(le16toh(sensorID1), 1u); in TEST() 540 ASSERT_EQ(le16toh(containerID1), 0u); in TEST() 541 ASSERT_EQ(le16toh(entityType1), 67u); in TEST() 542 ASSERT_EQ(le16toh(entityInstance1), 1u); in TEST() 559 ASSERT_EQ(le16toh(terminusHandle2), 0u); in TEST() 560 ASSERT_EQ(le16toh(sensorID2), 2u); in TEST() 561 ASSERT_EQ(le16toh(containerID2), 0u); in TEST() 562 ASSERT_EQ(le16toh(entityType2), 31u); in TEST() 563 ASSERT_EQ(le16toh(entityInstance2), 1u); in TEST() [all …]
|
/openbmc/linux/tools/usb/usbip/src/ |
H A D | usbip_list.c | 298 idVendor = le16toh(d_desc->idVendor); in list_gadget_devices() 300 idProduct = le16toh(d_desc->idProduct); in list_gadget_devices() 306 le16toh(idVendor), in list_gadget_devices() 307 le16toh(idProduct)); in list_gadget_devices()
|
/openbmc/libpldm/src/dsp/ |
H A D | bios_table.c | 95 return le16toh(entry->string_handle); in pldm_bios_table_string_entry_decode_handle() 102 return le16toh(entry->string_length); in pldm_bios_table_string_entry_decode_string_length() 174 return le16toh(entry->attr_handle); in pldm_bios_table_attr_entry_decode_attribute_handle() 188 return le16toh(entry->string_handle); in pldm_bios_table_attr_entry_decode_string_handle() 279 pv_hdls[i] = le16toh(*hdl); in pldm_bios_table_attr_entry_enum_decode_pv_hdls() 421 *def_string_length = le16toh(fields->def_length); in pldm_bios_table_attr_entry_string_decode_def_string_length() 440 return le16toh(fields->max_length); in pldm_bios_table_attr_entry_string_decode_max_length() 449 return le16toh(fields->min_length); in pldm_bios_table_attr_entry_string_decode_min_length() 660 return le16toh(entry->attr_handle); in pldm_bios_table_attr_value_entry_decode_attribute_handle() 748 return le16toh(str_length); in pldm_bios_table_attr_value_entry_string_decode_length() [all …]
|
H A D | firmware_update.c | 367 le16toh(data_header->package_header_size); in decode_pldm_package_header_info() 372 le16toh(data_header->component_bitmap_bit_length); in decode_pldm_package_header_info() 421 le16toh(data_record->record_length); in decode_firmware_device_id_record() 430 le16toh(data_record->fw_device_pkg_data_length); in decode_firmware_device_id_record() 531 *descriptor_type = le16toh(entry->descriptor_type); in decode_descriptor_type_length_value() 532 descriptor_length = le16toh(entry->descriptor_length); in decode_descriptor_type_length_value() 626 le16toh(data_header->comp_classification); in decode_pldm_comp_image_info() 628 le16toh(data_header->comp_identifier); in decode_pldm_comp_image_info() 632 le16toh(data_header->comp_options.value); in decode_pldm_comp_image_info() 634 le16toh(data_header->requested_comp_activation_method.value); in decode_pldm_comp_image_info() [all …]
|
H A D | pdr.c | 347 *terminus_handle = le16toh(fru->terminus_handle); in pldm_pdr_fru_record_set_find_by_rsi() 348 *entity_type = le16toh(fru->entity_type); in pldm_pdr_fru_record_set_find_by_rsi() 350 le16toh(fru->entity_instance_num); in pldm_pdr_fru_record_set_find_by_rsi() 351 *container_id = le16toh(fru->container_id); in pldm_pdr_fru_record_set_find_by_rsi() 452 *container_id = le16toh(child->entity_container_id); in pldm_pdr_find_child_container_id_index_range_exclude() 1330 (sizeof(struct pldm_pdr_hdr) + le16toh(hdr->length))) { in pldm_entity_association_pdr_extract() 1334 if (pdr_len < (sizeof(struct pldm_pdr_hdr) + le16toh(hdr->length))) { in pldm_entity_association_pdr_extract() 1339 start + sizeof(struct pldm_pdr_hdr) + le16toh(hdr->length); in pldm_entity_association_pdr_extract() 1367 le16toh(entity_association_pdr->container.entity_type); in pldm_entity_association_pdr_extract() 1369 le16toh(entity_association_pdr->container.entity_instance_num); in pldm_entity_association_pdr_extract() [all …]
|
H A D | fru.c | 67 le16toh(response->total_record_set_identifiers); in decode_get_fru_record_table_metadata_resp() 68 *total_table_records = le16toh(response->total_table_records); in decode_get_fru_record_table_metadata_resp() 357 *fru_table_handle = le16toh(req->fru_table_handle); in decode_get_fru_record_by_option_req() 358 *record_set_identifier = le16toh(req->record_set_identifier); in decode_get_fru_record_by_option_req()
|
H A D | bios.c | 89 *year = le16toh(response->year); in decode_get_date_time_resp() 155 *year = bcd2dec16(le16toh(request->year)); in decode_set_date_time_req() 424 *attribute_handle = le16toh(request->attribute_handle); in decode_get_bios_attribute_current_value_by_handle_req()
|
/openbmc/openpower-host-ipmi-flash/ |
H A D | hiomap.cpp | 542 m.append(le16toh(get<uint16_t>(&reqdata[0]))); in hiomap_create_window() 543 m.append(le16toh(get<uint16_t>(&reqdata[2]))); in hiomap_create_window() 632 m.append(le16toh(get<uint16_t>(&reqdata[0]))); /* offset */ in hiomap_mark_dirty() 633 m.append(le16toh(get<uint16_t>(&reqdata[2]))); /* size */ in hiomap_mark_dirty() 719 m.append(le16toh(get<uint16_t>(&reqdata[0]))); /* offset */ in hiomap_erase() 720 m.append(le16toh(get<uint16_t>(&reqdata[2]))); /* size */ in hiomap_erase()
|
/openbmc/openpower-host-ipmi-oem/ |
H A D | oemhandler.cpp | 242 esel_req.resid = le16toh((((uint16_t)reqptr[1]) << 8) + reqptr[0]); in ipmi_ibm_oem_partial_esel() 243 esel_req.selrecord = le16toh((((uint16_t)reqptr[3]) << 8) + reqptr[2]); in ipmi_ibm_oem_partial_esel() 244 esel_req.offset = le16toh((((uint16_t)reqptr[5]) << 8) + reqptr[4]); in ipmi_ibm_oem_partial_esel()
|
/openbmc/qemu/subprojects/libvhost-user/ |
H A D | libvhost-user.c | 1233 vq->used_idx = le16toh(vq->vring.used->idx); in vu_set_vring_addr_exec() 1350 vq->used_idx = le16toh(vq->vring.used->idx); in vu_check_queue_inflights() 2330 return le16toh(vq->vring.avail->flags); in vring_avail_flags() 2336 vq->shadow_avail_idx = le16toh(vq->vring.avail->idx); in vring_avail_idx() 2344 return le16toh(vq->vring.avail->ring[i]); in vring_avail_ring() 2432 if (!(le16toh(desc[i].flags) & VRING_DESC_F_NEXT)) { in virtqueue_read_next_desc() 2437 *next = le16toh(desc[i].next); in virtqueue_read_next_desc() 2479 if (le16toh(desc[i].flags) & VRING_DESC_F_INDIRECT) { in vu_queue_get_avail_bytes() 2521 if (le16toh(desc[i].flags) & VRING_DESC_F_WRITE) { in vu_queue_get_avail_bytes() 2683 *flags = htole16(le16toh(*flags) | mask); in vring_used_flags_set_bit() [all …]
|
/openbmc/qemu/subprojects/libvduse/ |
H A D | libvduse.c | 233 vq->used_idx = le16toh(vq->vring.used->idx); in vduse_queue_check_inflights() 426 return le16toh(vq->vring.avail->flags); in vring_avail_flags() 431 vq->shadow_avail_idx = le16toh(vq->vring.avail->idx); in vring_avail_idx() 438 return le16toh(vq->vring.avail->ring[i]); in vring_avail_ring() 505 if (!(le16toh(desc[i].flags) & VRING_DESC_F_NEXT)) { in vduse_queue_read_next_desc() 660 if (le16toh(desc[i].flags) & VRING_DESC_F_INDIRECT) { in vduse_queue_map_desc() 690 if (le16toh(desc[i].flags) & VRING_DESC_F_WRITE) { in vduse_queue_map_desc()
|
/openbmc/hiomapd/ |
H A D | common.c | 57 return le16toh(*(uint16_t *)ptr); in get_u16()
|
/openbmc/phosphor-mboxd/ |
H A D | common.c | 54 return le16toh(*(uint16_t *)ptr); in get_u16()
|
/openbmc/openbmc/poky/meta/recipes-core/glibc/ldconfig-native-2.12.1/ |
H A D | endianess-header.patch | 46 +# define le16toh(x) (x) 61 +# define le16toh(x) __bswap_16 (x)
|
/openbmc/phosphor-net-ipmid/ |
H A D | endian.hpp | 28 return le16toh(i); in from_ipmi()
|
/openbmc/libpldm/src/oem/ibm/ |
H A D | file_io.c | 482 *file_type = le16toh(request->file_type); in decode_rw_file_by_type_memory_req() 591 *file_type = le16toh(request->file_type); in decode_new_file_req() 687 *file_type = le16toh(request->file_type); in decode_rw_file_by_type_req() 800 *file_type = le16toh(request->file_type); in decode_file_ack_req() 950 *file_type = le16toh(request->file_type); in decode_file_ack_with_meta_data_req() 1066 *file_type = le16toh(request->file_type); in decode_new_file_with_metadata_req()
|
/openbmc/linux/tools/usb/usbip/libsrc/ |
H A D | usbip_device_driver.c | 25 ((dev)->attr = le16toh((descr)->attr)) \
|
/openbmc/pldm/oem/ibm/libpldmresponder/ |
H A D | fru_oem_ibm.cpp | 40 uint16_t fruRSI = le16toh(record->record_set_id); in processOEMFRUTable()
|
/openbmc/pldm/libpldmresponder/ |
H A D | pdr_utils.cpp | 235 fru.fruRSI = (int)le16toh(record->record_set_id); in parseFruRecordTable()
|
/openbmc/libpldm/include/libpldm/ |
H A D | base.h | 172 #define LE16TOH(X) ((X) = le16toh(X))
|
/openbmc/pldm/fw-update/ |
H A D | package_parser.cpp | 260 le16toh(pkgHdr[offset] | (pkgHdr[offset + 1] << 8))); in parse()
|
/openbmc/linux/arch/arm64/kvm/hyp/nvhe/ |
H A D | gen-hyprel.c | 141 #define elf16toh(x) le16toh(x)
|