/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 | 1237 EXPECT_EQ(le16toh(*containerId), 1u); in TEST() 1242 EXPECT_EQ(le16toh(entity->entity_type), 1u); in TEST() 1250 EXPECT_EQ(le16toh(entity->entity_type), 3u); in TEST() 1255 EXPECT_EQ(le16toh(entity->entity_type), 3u); in TEST() 1272 EXPECT_EQ(le16toh(*containerId), 1u); in TEST() 1277 EXPECT_EQ(le16toh(entity->entity_type), 1u); in TEST() 1307 EXPECT_EQ(le16toh(*containerId), 2u); in TEST() 1320 EXPECT_EQ(le16toh(entity->entity_type), 5); in TEST() 1342 EXPECT_EQ(le16toh(*containerId), 2u); in TEST() 1377 EXPECT_EQ(le16toh(*containerId), 3u); 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/libpldm/src/dsp/ |
H A D | firmware_update.c | 363 le16toh(data_header->package_header_size); in decode_pldm_package_header_info() 368 le16toh(data_header->component_bitmap_bit_length); in decode_pldm_package_header_info() 417 le16toh(data_record->record_length); in decode_firmware_device_id_record() 426 le16toh(data_record->fw_device_pkg_data_length); in decode_firmware_device_id_record() 493 *descriptor_type = le16toh(entry->descriptor_type); in decode_descriptor_type_length_value() 588 le16toh(data_header->comp_classification); in decode_pldm_comp_image_info() 590 le16toh(data_header->comp_identifier); in decode_pldm_comp_image_info() 594 le16toh(data_header->comp_options.value); in decode_pldm_comp_image_info() 833 le16toh(entry->comp_classification); in decode_get_firmware_parameters_resp_comp_entry() 856 le16toh(entry->comp_activation_methods.value); in decode_get_firmware_parameters_resp_comp_entry() [all …]
|
H A D | bios_table.c | 91 return le16toh(entry->string_handle); in pldm_bios_table_string_entry_decode_handle() 98 return le16toh(entry->string_length); in pldm_bios_table_string_entry_decode_string_length() 170 return le16toh(entry->attr_handle); in pldm_bios_table_attr_entry_decode_attribute_handle() 184 return le16toh(entry->string_handle); in pldm_bios_table_attr_entry_decode_string_handle() 280 pv_hdls[i] = le16toh(*hdl); in pldm_bios_table_attr_entry_enum_decode_pv_hdls_check() 411 return le16toh(fields->def_length); in pldm_bios_table_attr_entry_string_decode_def_string_length() 443 return le16toh(fields->max_length); in pldm_bios_table_attr_entry_string_decode_max_length() 452 return le16toh(fields->min_length); in pldm_bios_table_attr_entry_string_decode_min_length() 650 return le16toh(entry->attr_handle); in pldm_bios_table_attr_value_entry_decode_attribute_handle() 737 return le16toh(str_length); in pldm_bios_table_attr_value_entry_string_decode_length() [all …]
|
H A D | pdr.c | 328 *terminus_handle = le16toh(fru->terminus_handle); in pldm_pdr_fru_record_set_find_by_rsi() 329 *entity_type = le16toh(fru->entity_type); in pldm_pdr_fru_record_set_find_by_rsi() 331 le16toh(fru->entity_instance_num); in pldm_pdr_fru_record_set_find_by_rsi() 332 *container_id = le16toh(fru->container_id); in pldm_pdr_fru_record_set_find_by_rsi() 433 *container_id = le16toh(child->entity_container_id); in pldm_pdr_find_child_container_id_index_range_exclude() 1269 start + sizeof(struct pldm_pdr_hdr) + le16toh(hdr->length); in pldm_entity_association_pdr_extract() 1287 le16toh(entity_association_pdr->container.entity_type); in pldm_entity_association_pdr_extract() 1289 le16toh(entity_association_pdr->container.entity_instance_num); in pldm_entity_association_pdr_extract() 1294 l_entities[i].entity_type = le16toh(curr_entity->entity_type); in pldm_entity_association_pdr_extract() 1296 le16toh(curr_entity->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() 344 *fru_table_handle = le16toh(req->fru_table_handle); in decode_get_fru_record_by_option_req() 345 *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/pldm/libpldmresponder/test/ |
H A D | libpldmresponder_platform_test.cpp | 541 ASSERT_EQ(le16toh(terminusHandle1), 0u); in TEST() 542 ASSERT_EQ(le16toh(sensorID1), 1u); in TEST() 543 ASSERT_EQ(le16toh(containerID1), 0u); in TEST() 544 ASSERT_EQ(le16toh(entityType1), 67u); in TEST() 545 ASSERT_EQ(le16toh(entityInstance1), 1u); in TEST() 563 ASSERT_EQ(le16toh(sensorID2), 2u); in TEST() 564 ASSERT_EQ(le16toh(containerID2), 0u); in TEST() 565 ASSERT_EQ(le16toh(entityType2), 31u); in TEST() 586 ASSERT_EQ(le16toh(sensorID3), 3u); in TEST() 587 ASSERT_EQ(le16toh(containerID3), 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/openpower-host-ipmi-flash/ |
H A D | hiomap.cpp | 545 m.append(le16toh(get<uint16_t>(&reqdata[0]))); in hiomap_create_window() 546 m.append(le16toh(get<uint16_t>(&reqdata[2]))); in hiomap_create_window() 639 m.append(le16toh(get<uint16_t>(&reqdata[0]))); /* offset */ in hiomap_mark_dirty() 640 m.append(le16toh(get<uint16_t>(&reqdata[2]))); /* size */ in hiomap_mark_dirty() 726 m.append(le16toh(get<uint16_t>(&reqdata[0]))); /* offset */ in hiomap_erase() 727 m.append(le16toh(get<uint16_t>(&reqdata[2]))); /* size */ in hiomap_erase()
|
/openbmc/openpower-host-ipmi-oem/ |
H A D | oemhandler.cpp | 244 esel_req.resid = le16toh((((uint16_t)reqptr[1]) << 8) + reqptr[0]); in ipmi_ibm_oem_partial_esel() 245 esel_req.selrecord = le16toh((((uint16_t)reqptr[3]) << 8) + reqptr[2]); in ipmi_ibm_oem_partial_esel() 246 esel_req.offset = le16toh((((uint16_t)reqptr[5]) << 8) + reqptr[4]); in ipmi_ibm_oem_partial_esel()
|
/openbmc/phosphor-mboxd/ |
H A D | common.c | 54 return le16toh(*(uint16_t *)ptr); in get_u16()
|
/openbmc/hiomapd/ |
H A D | common.c | 57 return le16toh(*(uint16_t *)ptr); in get_u16()
|
/openbmc/phosphor-net-ipmid/ |
H A D | endian.hpp | 28 return le16toh(i); in from_ipmi()
|
/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/qemu/subprojects/libvhost-user/ |
H A D | libvhost-user.c | 1163 vq->used_idx = le16toh(vq->vring.used->idx); in vu_set_vring_addr_exec() 1280 vq->used_idx = le16toh(vq->vring.used->idx); in vu_check_queue_inflights() 2246 return le16toh(vq->vring.avail->flags); in vring_avail_flags() 2252 vq->shadow_avail_idx = le16toh(vq->vring.avail->idx); in vring_avail_idx() 2260 return le16toh(vq->vring.avail->ring[i]); in vring_avail_ring() 2348 if (!(le16toh(desc[i].flags) & VRING_DESC_F_NEXT)) { in virtqueue_read_next_desc() 2353 *next = le16toh(desc[i].next); in virtqueue_read_next_desc() 2602 *flags = htole16(le16toh(*flags) | mask); in vring_used_flags_set_bit() 2612 *flags = htole16(le16toh(*flags) & ~mask); in vring_used_flags_unset_bit() 2718 if (le16toh(desc[i].flags) & VRING_DESC_F_INDIRECT) { in vu_queue_map_desc() [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/libpldm/src/oem/ibm/ |
H A D | file_io.c | 481 *file_type = le16toh(request->file_type); in decode_rw_file_by_type_memory_req() 590 *file_type = le16toh(request->file_type); in decode_new_file_req() 686 *file_type = le16toh(request->file_type); in decode_rw_file_by_type_req() 799 *file_type = le16toh(request->file_type); in decode_file_ack_req() 949 *file_type = le16toh(request->file_type); in decode_file_ack_with_meta_data_req() 1065 *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/qemu/contrib/vhost-user-input/ |
H A D | main.c | 127 evdev.type = le16toh(event->type); in vi_handle_status() 128 evdev.code = le16toh(event->code); in vi_handle_status()
|
/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 | 165 #define LE16TOH(X) ((X) = le16toh(X))
|
/openbmc/linux/arch/arm64/kvm/hyp/nvhe/ |
H A D | gen-hyprel.c | 141 #define elf16toh(x) le16toh(x)
|