Home
last modified time | relevance | path

Searched refs:le16toh (Results 1 – 25 of 35) sorted by relevance

12

/openbmc/linux/tools/include/tools/
H A Dendian.h19 #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 Dpdr.cpp1237 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 Dloongson3-llsc-check.c20 # 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 Dfirmware_update.c363 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 Dbios_table.c91 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 Dpdr.c328 *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 Dfru.c67 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 Dbios.c89 *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 Dlibpldmresponder_platform_test.cpp541 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 Dusbip_list.c298 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 Dhiomap.cpp545 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 Doemhandler.cpp244 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 Dcommon.c54 return le16toh(*(uint16_t *)ptr); in get_u16()
/openbmc/hiomapd/
H A Dcommon.c57 return le16toh(*(uint16_t *)ptr); in get_u16()
/openbmc/phosphor-net-ipmid/
H A Dendian.hpp28 return le16toh(i); in from_ipmi()
/openbmc/openbmc/poky/meta/recipes-core/glibc/ldconfig-native-2.12.1/
H A Dendianess-header.patch46 +# define le16toh(x) (x)
61 +# define le16toh(x) __bswap_16 (x)
/openbmc/qemu/subprojects/libvhost-user/
H A Dlibvhost-user.c1163 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 Dlibvduse.c233 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 Dfile_io.c481 *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 Dusbip_device_driver.c25 ((dev)->attr = le16toh((descr)->attr)) \
/openbmc/qemu/contrib/vhost-user-input/
H A Dmain.c127 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 Dfru_oem_ibm.cpp40 uint16_t fruRSI = le16toh(record->record_set_id); in processOEMFRUTable()
/openbmc/pldm/libpldmresponder/
H A Dpdr_utils.cpp235 fru.fruRSI = (int)le16toh(record->record_set_id); in parseFruRecordTable()
/openbmc/libpldm/include/libpldm/
H A Dbase.h165 #define LE16TOH(X) ((X) = le16toh(X))
/openbmc/linux/arch/arm64/kvm/hyp/nvhe/
H A Dgen-hyprel.c141 #define elf16toh(x) le16toh(x)

12