iPXE
Defines | Functions
byteswap.h File Reference
#include <stdint.h>
#include <endian.h>
#include <bits/byteswap.h>

Go to the source code of this file.

Defines

#define __bswap_constant_16(value)
 Byte-swap a 16-bit constant.
#define __bswap_constant_32(value)
 Byte-swap a 32-bit constant.
#define __bswap_constant_64(value)
 Byte-swap a 64-bit constant.
#define __bswap_16(value)
 Byte-swap a 16-bit value.
#define bswap_16(value)   __bswap_16 (value)
#define __bswap_32(value)
 Byte-swap a 32-bit value.
#define bswap_32(value)   __bswap_32 (value)
#define __bswap_64(value)
 Byte-swap a 64-bit value.
#define bswap_64(value)   __bswap_64 (value)
#define __cpu_to_leNN(bits, value)   (value)
#define __cpu_to_beNN(bits, value)   __bswap_ ## bits (value)
#define __leNN_to_cpu(bits, value)   (value)
#define __beNN_to_cpu(bits, value)   __bswap_ ## bits (value)
#define __cpu_to_leNNs(bits, ptr)   do { } while ( 0 )
#define __cpu_to_beNNs(bits, ptr)   __bswap_ ## bits ## s (ptr)
#define __leNN_to_cpus(bits, ptr)   do { } while ( 0 )
#define __beNN_to_cpus(bits, ptr)   __bswap_ ## bits ## s (ptr)
#define cpu_to_le16(value)   __cpu_to_leNN ( 16, value )
#define cpu_to_le32(value)   __cpu_to_leNN ( 32, value )
#define cpu_to_le64(value)   __cpu_to_leNN ( 64, value )
#define cpu_to_be16(value)   __cpu_to_beNN ( 16, value )
#define cpu_to_be32(value)   __cpu_to_beNN ( 32, value )
#define cpu_to_be64(value)   __cpu_to_beNN ( 64, value )
#define le16_to_cpu(value)   __leNN_to_cpu ( 16, value )
#define le32_to_cpu(value)   __leNN_to_cpu ( 32, value )
#define le64_to_cpu(value)   __leNN_to_cpu ( 64, value )
#define be16_to_cpu(value)   __beNN_to_cpu ( 16, value )
#define be32_to_cpu(value)   __beNN_to_cpu ( 32, value )
#define be64_to_cpu(value)   __beNN_to_cpu ( 64, value )
#define cpu_to_le16s(ptr)   __cpu_to_leNNs ( 16, ptr )
#define cpu_to_le32s(ptr)   __cpu_to_leNNs ( 32, ptr )
#define cpu_to_le64s(ptr)   __cpu_to_leNNs ( 64, ptr )
#define cpu_to_be16s(ptr)   __cpu_to_beNNs ( 16, ptr )
#define cpu_to_be32s(ptr)   __cpu_to_beNNs ( 32, ptr )
#define cpu_to_be64s(ptr)   __cpu_to_beNNs ( 64, ptr )
#define le16_to_cpus(ptr)   __leNN_to_cpus ( 16, ptr )
#define le32_to_cpus(ptr)   __leNN_to_cpus ( 32, ptr )
#define le64_to_cpus(ptr)   __leNN_to_cpus ( 64, ptr )
#define be16_to_cpus(ptr)   __beNN_to_cpus ( 16, ptr )
#define be32_to_cpus(ptr)   __beNN_to_cpus ( 32, ptr )
#define be64_to_cpus(ptr)   __beNN_to_cpus ( 64, ptr )
#define htonll(value)   cpu_to_be64 (value)
#define ntohll(value)   be64_to_cpu (value)
#define htonl(value)   cpu_to_be32 (value)
#define ntohl(value)   be32_to_cpu (value)
#define htons(value)   cpu_to_be16 (value)
#define ntohs(value)   be16_to_cpu (value)

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)

Define Documentation

#define __bswap_constant_16 (   value)
Value:
( ( ( (value) & 0x00ff ) << 8 ) |                               \
          ( ( (value) & 0xff00 ) >> 8 ) )

Byte-swap a 16-bit constant.

Parameters:
valueConstant value
Return values:
swappedByte-swapped value

Definition at line 16 of file byteswap.h.

#define __bswap_constant_32 (   value)
Value:
( ( ( (value) & 0x000000ffUL ) << 24 ) |                        \
          ( ( (value) & 0x0000ff00UL ) <<  8 ) |                        \
          ( ( (value) & 0x00ff0000UL ) >>  8 ) |                        \
          ( ( (value) & 0xff000000UL ) >> 24 ) )

Byte-swap a 32-bit constant.

Parameters:
valueConstant value
Return values:
swappedByte-swapped value

Definition at line 26 of file byteswap.h.

#define __bswap_constant_64 (   value)
Value:
( ( ( (value) & 0x00000000000000ffULL ) << 56 ) |               \
          ( ( (value) & 0x000000000000ff00ULL ) << 40 ) |               \
          ( ( (value) & 0x0000000000ff0000ULL ) << 24 ) |               \
          ( ( (value) & 0x00000000ff000000ULL ) <<  8 ) |               \
          ( ( (value) & 0x000000ff00000000ULL ) >>  8 ) |               \
          ( ( (value) & 0x0000ff0000000000ULL ) >> 24 ) |               \
          ( ( (value) & 0x00ff000000000000ULL ) >> 40 ) |               \
          ( ( (value) & 0xff00000000000000ULL ) >> 56 ) )

Byte-swap a 64-bit constant.

Parameters:
valueConstant value
Return values:
swappedByte-swapped value

Definition at line 38 of file byteswap.h.

#define __bswap_16 (   value)
Value:
( __builtin_constant_p (value) ?                                \
          ( ( uint16_t ) __bswap_constant_16 ( ( uint16_t ) (value) ) ) \
          : __bswap_variable_16 (value) )

Byte-swap a 16-bit value.

Parameters:
valueValue
Return values:
swappedByte-swapped value

Definition at line 54 of file byteswap.h.

Referenced by test_bswap16().

#define bswap_16 (   value)    __bswap_16 (value)

Definition at line 58 of file byteswap.h.

Referenced by ata_model(), eepro_probe(), isa_id_string(), S(), and xsmp_rx_xve_install().

#define __bswap_32 (   value)
Value:
( __builtin_constant_p (value) ?                                \
          ( ( uint32_t ) __bswap_constant_32 ( ( uint32_t ) (value) ) ) \
          : __bswap_variable_32 (value) )

Byte-swap a 32-bit value.

Parameters:
valueValue
Return values:
swappedByte-swapped value

Definition at line 66 of file byteswap.h.

Referenced by test_bswap32().

#define bswap_32 (   value)    __bswap_32 (value)
#define __bswap_64 (   value)
Value:
( __builtin_constant_p (value) ?                                \
          ( ( uint64_t ) __bswap_constant_64 ( ( uint64_t ) (value) ) ) \
          : __bswap_variable_64 (value) )

Byte-swap a 64-bit value.

Parameters:
valueValue
Return values:
swappedByte-swapped value

Definition at line 78 of file byteswap.h.

Referenced by test_bswap64().

#define bswap_64 (   value)    __bswap_64 (value)

Definition at line 82 of file byteswap.h.

Referenced by xsmp_rx_xve_modify(), and xsmp_tx_xve_params().

#define __cpu_to_leNN (   bits,
  value 
)    (value)

Definition at line 85 of file byteswap.h.

#define __cpu_to_beNN (   bits,
  value 
)    __bswap_ ## bits (value)

Definition at line 86 of file byteswap.h.

#define __leNN_to_cpu (   bits,
  value 
)    (value)

Definition at line 87 of file byteswap.h.

#define __beNN_to_cpu (   bits,
  value 
)    __bswap_ ## bits (value)

Definition at line 88 of file byteswap.h.

#define __cpu_to_leNNs (   bits,
  ptr 
)    do { } while ( 0 )

Definition at line 89 of file byteswap.h.

#define __cpu_to_beNNs (   bits,
  ptr 
)    __bswap_ ## bits ## s (ptr)

Definition at line 90 of file byteswap.h.

#define __leNN_to_cpus (   bits,
  ptr 
)    do { } while ( 0 )

Definition at line 91 of file byteswap.h.

#define __beNN_to_cpus (   bits,
  ptr 
)    __bswap_ ## bits ## s (ptr)

Definition at line 92 of file byteswap.h.

#define cpu_to_le16 (   value)    __cpu_to_leNN ( 16, value )

Definition at line 106 of file byteswap.h.

Referenced by abft_install(), acm_intr_complete(), amd8111e_init_rx_ring(), amd8111e_poll(), amd8111e_transmit(), atacmd_identify_done(), axge_in_complete(), axge_intr_complete(), axge_open(), axge_probe(), b44_process_rx_packets(), b44_read_eeprom(), dm96xx_out_transmit(), dmfe_probe(), ecm_intr_complete(), ehci_endpoint_message(), ehci_enqueue(), ena_create_cq(), ena_create_sq(), ena_destroy_cq(), ena_destroy_sq(), ena_refill_rx(), ena_transmit(), gdbstub_from_hex_buf(), gdbstub_to_hex_buf(), hv_signal_event(), ib_sbft_install(), ibft_alloc_string(), ibft_fill_initiator(), ibft_fill_nic(), ibft_fill_target(), ibft_install(), icplus_read_eeprom(), icplus_refill_rx(), icplus_transmit(), intel_describe_tx(), intel_describe_tx_adv(), intel_read_eeprom(), intelxl_admin_autoneg(), intelxl_admin_command(), intelxl_admin_driver(), intelxl_admin_link(), intelxl_admin_promisc(), intelxl_admin_shutdown(), intelxl_admin_switch(), intelxl_admin_version(), intelxl_admin_vsi(), intelxl_context_rx(), intelxl_context_tx(), intelxl_poll_admin(), jme_fill_tx_desc(), jme_process_receive(), jme_set_clean_rxdesc(), natsemi_hwaddr_insane(), ncm_intr_complete(), ncm_out_transmit(), ntlm_append(), ntlm_append_string(), ntlm_key(), pcnet32_refill_rx_ring(), pcnet32_setup_init_block(), pcnet32_transmit(), peerdist_info(), peerdist_info_v1(), peerdist_info_v2(), phantom_create_rx_ctx(), pxe_probe_no_mz(), realtek_init_eeprom(), realtek_legacy_poll_rx(), realtek_poll_rx(), realtek_poll_tx(), realtek_refill_rx(), realtek_transmit(), rtl818x_tx(), sis190_get_mac_addr_from_eeprom(), sky2_rx_add(), sky2_xmit_frame(), start_pxebs(), txnic_send(), uhci_endpoint_message(), usb_message(), usbio_config(), vmbus_establish_gpadl(), vmbus_poll(), vmbus_send(), vmbus_send_cancellation(), vmbus_send_completion(), vmbus_send_control(), vmbus_send_data(), vmbus_xfer_page_iobufs(), vpm_iowrite16(), xhci_address_device_input(), xhci_configure_endpoint_input(), xhci_endpoint_message(), and xhci_evaluate_context_input().

#define cpu_to_le32 (   value)    __cpu_to_leNN ( 32, value )

Definition at line 107 of file byteswap.h.

Referenced by abft_install(), acm_transmit(), acpi_find(), acpi_name(), acpi_sx_zsdt(), amd8111e_init_rx_ring(), amd8111e_poll(), amd8111e_transmit(), atl1e_tx_map(), axge_out_transmit(), b44_populate_rx_descriptor(), b44_transmit(), dmfe_descriptor_init(), dmfe_poll(), dmfe_transmit(), ehci_async_schedule(), ehci_bus_open(), ehci_endpoint_reset(), ehci_endpoint_update(), ehci_enqueue(), ehci_periodic_schedule(), ehci_ring_alloc(), epic100_init_ring(), epic100_poll(), epic100_transmit(), fbcon_colour(), fcoe_deliver(), forcedeth_transmit(), gdbstub_from_hex_buf(), gdbstub_to_hex_buf(), hunt_mcdi_copyin(), hunt_probe(), hv_post_message(), hv_signal_event(), ib_sbft_install(), ibft_install(), init_ring(), intel_describe_tx_adv(), intel_fetch_mac(), intel_poll_rx(), intel_poll_tx(), intelx_try_fetch_mac(), intelxl_admin_command(), intelxl_fetch_mac(), intelxl_poll_rx(), intelxl_transmit(), jme_fill_tx_desc(), jme_set_clean_rxdesc(), md4_digest(), md4_init(), md5_digest(), md5_init(), myson_create_ring(), myson_poll_rx(), myson_poll_tx(), myson_probe(), myson_refill_rx(), myson_transmit(), natsemi_create_ring(), natsemi_poll_rx(), natsemi_poll_tx(), natsemi_refill_rx(), natsemi_transmit(), ncm_in_complete(), ncm_open(), ncm_out_transmit(), netvsc_establish_buffer(), netvsc_initialise(), netvsc_initialised(), netvsc_ndis_version(), netvsc_recv_data(), netvsc_revoke_buffer(), netvsc_rx_established_buffer(), netvsc_transmit(), ntlm_append(), ntlm_authenticate(), nv_alloc_rx(), nv_init_rings(), pcnet32_refill_rx_ring(), pcnet32_setup_init_block(), pcnet32_transmit(), peerdist_info_v1(), phantom_create_rx_ctx(), phantom_create_tx_ctx(), rhine_create_ring(), rhine_poll_rx(), rhine_poll_tx(), rhine_refill_rx(), rhine_transmit(), rndis_filter(), rndis_tx_complete_err(), rndis_tx_data(), rndis_tx_defer(), rndis_tx_initialise(), rndis_tx_message(), rndis_tx_oid(), rtl818x_handle_rx(), rtl818x_init_rx_ring(), rtl818x_init_tx_ring(), rtl818x_tx(), rx_set_checksum(), send_filter_frame(), sis190_give_to_asic(), sis190_make_unusable_by_asic(), sis190_map_to_asic(), sis190_mark_as_last_descriptor(), sis190_open(), sis190_transmit(), sky2_rx_add(), sky2_xmit_frame(), smsc75xx_in_complete(), smsc75xx_out_transmit(), smsc95xx_in_complete(), smsc95xx_out_transmit(), smscusb_set_filter(), spi_bit_rw(), sundance_poll(), sundance_transmit(), tkip_encrypt(), tkip_michael(), tls_send_certificate(), tls_send_certificate_verify(), tls_send_client_hello(), tls_send_client_key_exchange(), tls_send_finished(), tulip_init_ring(), tulip_reset(), tulip_transmit(), txnic_send(), uhci_async_schedule(), uhci_bus_open(), uhci_describe(), uhci_endpoint_poll(), uhci_enqueue(), uhci_is_message(), uhci_periodic_schedule(), uhci_restart(), uhci_ring_alloc(), velocity_poll_rx(), velocity_refill_rx(), velocity_transmit(), vmbus_close(), vmbus_establish_gpadl(), vmbus_gpadl_teardown(), vmbus_initiate_contact(), vmbus_open(), vmbus_poll(), vmbus_post_empty_message(), vmbus_probe_channels(), vmbus_reset_channels(), vmbus_send(), vmbus_send_data(), vmbus_wait_for_any_message(), vmbus_wait_for_message(), vmxnet3_open(), vmxnet3_poll_rx(), vmxnet3_poll_tx(), vmxnet3_refill_rx(), vmxnet3_set_ll_addr(), vmxnet3_transmit(), vpm_iowrite32(), xhci_address_device_input(), xhci_configure_endpoint_input(), xhci_deconfigure_endpoint_input(), xhci_endpoint_message(), xhci_endpoint_stream(), xhci_enqueue(), xhci_evaluate_context_input(), xhci_event_alloc(), and xhci_port_protocol().

#define cpu_to_le64 (   value)    __cpu_to_leNN ( 64, value )
#define cpu_to_be16 (   value)    __cpu_to_beNN ( 16, value )
#define cpu_to_be32 (   value)    __cpu_to_beNN ( 32, value )
#define cpu_to_be64 (   value)    __cpu_to_beNN ( 64, value )
#define le16_to_cpu (   value)    __leNN_to_cpu ( 16, value )
#define le32_to_cpu (   value)    __leNN_to_cpu ( 32, value )

Definition at line 113 of file byteswap.h.

Referenced by acm_control_receive(), acm_transmit(), acpi_checksum(), acpi_find(), acpi_poweroff(), acpi_settings_fetch(), acpi_sx_zsdt(), acpi_timer_probe(), atacmd_identify_done(), dmfe_poll(), dummy_install(), efi_block_install(), ena_create_cq(), ena_create_sq(), ena_get_device_attributes(), epic100_poll(), epic100_transmit(), fcoe_rx(), hv_wait_for_message(), intel_open(), intel_poll_rx(), intelx_open(), intelxl_admin_command(), intelxl_context_line(), intelxl_open(), intelxl_poll_rx(), myson_open(), myson_poll_rx(), myson_poll_tx(), natsemi_poll_rx(), natsemi_poll_tx(), ncm_probe(), netvsc_initialised(), netvsc_recv_data(), netvsc_rx_established_buffer(), netvsc_transmit(), ntlm_challenge(), ntlm_data_okx(), nv_alloc_rx(), nv_process_rx_packets(), nv_process_tx_packets(), pcnet32_process_rx_packets(), peerdist_info_v1(), peerdist_info_v1_blocks(), peerdist_info_v1_segment(), phantom_create_rx_ctx(), phantom_create_tx_ctx(), phantom_poll(), rhine_poll_rx(), rhine_poll_tx(), rndis_rx(), rndis_rx_data(), rndis_rx_initialise(), rndis_rx_query_oid(), rndis_rx_set_oid(), rndis_rx_status(), rsdp_find_rsdt_range(), rtl818x_handle_rx(), rtl818x_handle_tx(), rtl818x_probe(), rtl818x_set_hwaddr(), sis190_give_to_asic(), sis190_process_rx(), sis190_process_tx(), sis190_transmit(), sky2_status_intr(), smsc75xx_dump_statistics(), smsc75xx_in_complete(), smsc95xx_dump_statistics(), smsc95xx_in_complete(), smscusb_intr_complete(), smscusb_raw_readl(), smscusb_raw_writel(), spi_bit_rw(), sundance_poll(), tg3_test_dma(), tkip_decrypt(), tkip_michael(), tlan_poll(), uhci_endpoint_poll(), uhci_restart(), velocity_poll_tx(), vmbus_dump_channel(), vmbus_establish_gpadl(), vmbus_gpadl_teardown(), vmbus_open(), vmbus_poll(), vmbus_probe_channels(), vmbus_reset_channels(), vmbus_send(), vmbus_wait_for_any_message(), vmbus_wait_for_message(), vmbus_xfer_page_iobufs(), vmxnet3_get_hw_addr(), vmxnet3_poll_events(), vmxnet3_poll_rx(), vmxnet3_poll_tx(), and vpm_ioread32().

#define le64_to_cpu (   value)    __leNN_to_cpu ( 64, value )
#define be16_to_cpu (   value)    __beNN_to_cpu ( 16, value )
#define be32_to_cpu (   value)    __beNN_to_cpu ( 32, value )
#define be64_to_cpu (   value)    __beNN_to_cpu ( 64, value )
#define cpu_to_le16s (   ptr)    __cpu_to_leNNs ( 16, ptr )

Definition at line 118 of file byteswap.h.

#define cpu_to_le32s (   ptr)    __cpu_to_leNNs ( 32, ptr )

Definition at line 119 of file byteswap.h.

#define cpu_to_le64s (   ptr)    __cpu_to_leNNs ( 64, ptr )

Definition at line 120 of file byteswap.h.

#define cpu_to_be16s (   ptr)    __cpu_to_beNNs ( 16, ptr )

Definition at line 121 of file byteswap.h.

#define cpu_to_be32s (   ptr)    __cpu_to_beNNs ( 32, ptr )

Definition at line 122 of file byteswap.h.

#define cpu_to_be64s (   ptr)    __cpu_to_beNNs ( 64, ptr )

Definition at line 123 of file byteswap.h.

#define le16_to_cpus (   ptr)    __leNN_to_cpus ( 16, ptr )

Definition at line 124 of file byteswap.h.

#define le32_to_cpus (   ptr)    __leNN_to_cpus ( 32, ptr )

Definition at line 125 of file byteswap.h.

Referenced by md4_digest(), and md5_digest().

#define le64_to_cpus (   ptr)    __leNN_to_cpus ( 64, ptr )

Definition at line 126 of file byteswap.h.

#define be16_to_cpus (   ptr)    __beNN_to_cpus ( 16, ptr )

Definition at line 127 of file byteswap.h.

#define be32_to_cpus (   ptr)    __beNN_to_cpus ( 32, ptr )

Definition at line 128 of file byteswap.h.

Referenced by sha1_digest(), and sha256_digest().

#define be64_to_cpus (   ptr)    __beNN_to_cpus ( 64, ptr )

Definition at line 129 of file byteswap.h.

Referenced by sha512_digest().

#define htonll (   value)    cpu_to_be64 (value)

Definition at line 131 of file byteswap.h.

Referenced by oncrpc_iob_add_int64().

#define ntohll (   value)    be64_to_cpu (value)

Definition at line 132 of file byteswap.h.

#define htonl (   value)    cpu_to_be32 (value)
#define ntohl (   value)    be32_to_cpu (value)
#define htons (   value)    cpu_to_be16 (value)

Definition at line 135 of file byteswap.h.

Referenced by add_tls(), amd8111e_transmit(), aoecmd_tx(), arp_rx(), arp_tx_request(), bnx2_transmit(), corkscrew_probe1(), dhcp_create_packet(), dhcp_discovery_rx(), dhcp_discovery_tx(), dhcp_proxy_tx(), dhcp_pxebs_rx(), dhcp_pxebs_tx(), dhcp_request_rx(), dhcp_request_tx(), dhcp_tx(), dhcpv6_option(), dhcpv6_tx(), dmfe_transmit(), dns_question(), dns_resolv(), dns_type(), dns_xfer_deliver(), eepro_transmit(), efi_pxe_udp_write(), efi_snp_transmit(), eoib_link_state_changed(), eoib_transmit(), epic100_transmit(), eth_eui64(), eth_probe(), eth_slow_lacp_rx(), fc_els_flogi_rx(), fc_els_flogi_tx(), fc_els_plogi_tx(), fc_els_prli_rx(), fc_els_prli_tx(), fc_ns_query_step(), fc_xchg_tx(), fcoe_deliver(), fcoe_fip_tx_keepalive(), fcoe_fip_tx_solicitation(), fcoe_fip_tx_vlan(), fcoe_probe(), ftp_open(), gdbudp_configure(), gdbudp_recv(), gdbudp_send(), http_connect(), ib_cm_path_complete(), ib_cm_rejection_reason_to_rc(), ib_cm_req_complete(), ib_cm_send_drep(), ib_cm_send_rtu(), ib_create_path(), ib_create_service_madx(), ib_mcast_complete(), ib_mcast_mad(), ib_mi_send(), ib_path_complete(), ib_push(), ib_sma_node_info(), ib_sma_pkey_table(), ib_sma_port_info(), ib_smc_get_guid_info(), ib_smc_get_node_info(), ib_smc_get_pkey_table(), ib_smc_get_port_info(), inet6_aton(), ipoib_complete_recv(), ipoib_link_state_changed(), ipoib_translate_rx(), ipoib_translate_rx_arp(), ipoib_translate_tx(), ipoib_translate_tx_arp(), ipoib_transmit(), ipv4_more_fragments(), ipv4_pshdr_chksum(), ipv4_rx(), ipv4_tx(), ipv6_all_dhcp_relay_and_servers(), ipv6_all_routers(), ipv6_link_local(), ipv6_more_fragments(), ipv6_solicited_node(), ipv6_tx(), iscsi_handle_targetaddress_value(), iscsi_open_connection(), iscsi_start_login(), netdev_fetch_busid(), nfs_connect(), ntp_deliver(), ping_deliver(), prism2_transmit(), pxenv_udp_read(), pxenv_udp_write(), pxenv_undi_isr(), scsi_parse_lun(), sis900_transmit(), slam_open(), slam_parse_multicast_address(), smc9000_transmit(), start_dhcp(), start_dhcpv6(), start_ntp(), start_pxebs(), stp_rx(), sundance_transmit(), t509_transmit(), t515_transmit(), t595_probe(), t595_transmit(), t5x9_probe(), tcp_open_uri(), tcp_xmit_reset(), tcp_xmit_sack(), tftp_process_multicast(), tftp_reopen(), tftp_rx(), tftp_send_ack(), tftp_send_error(), tftp_send_rrq(), tftp_set_mtftp_port(), tlan_transmit(), tls_new_ciphertext(), tls_new_server_hello(), tls_send_certificate_verify(), tls_send_client_hello(), tls_send_client_key_exchange(), tls_send_plaintext(), tulip_transmit(), udp_open_common(), udp_open_uri(), udp_port_available(), udp_tx(), undinet_transmit(), vlan_transmit(), wpa_send_eapol(), xsigo_xcm_complete(), xsigo_xds_complete(), xsmp_tx_session(), xsmp_tx_xve(), xsmp_tx_xve_params(), and xve_create().

#define ntohs (   value)    be16_to_cpu (value)

Definition at line 136 of file byteswap.h.

Referenced by aoecmd_cfg_rsp(), aoecmd_rx(), arbel_mad(), dhcp_create_packet(), dhcp_create_request(), dhcp_deliver(), dhcp_discovery_rx(), dhcp_proxy_rx(), dhcp_pxebs_rx(), dhcp_pxebs_tx(), dhcp_request_rx(), dhcpv6_check_duid(), dhcpv6_fetch(), dhcpv6_iaaddr(), dhcpv6_option(), dhcpv6_rx(), dhcpv6_status_code(), dns_label(), dns_send_packet(), dns_xfer_deliver(), eapol_key_rx(), efi_pxe_udp_deliver(), efi_pxe_udp_write(), efi_snp_probe(), efi_snp_receive(), efi_snp_set_mode(), efi_undi_get_init_info(), eth_slow_lacp_dump(), eth_slow_marker_dump(), fc_ns_query_deliver(), fc_port_deliver(), fc_xchg_respond(), fc_xchg_rx(), fcoe_deliver(), fcoe_fip_parse(), fcoe_fip_rx(), fcoe_fip_rx_vlan(), gdbudp_recv(), hermon_mad(), ib_cm_req_complete(), ib_mcast_complete(), ib_mi_complete_recv(), ib_mi_send(), ib_path_complete(), ib_pull(), ib_sma_port_info(), ib_sma_set_pkey_table(), ib_sma_set_port_info(), ib_smc_get(), ibft_fill_target(), icmp_rx_echo_reply(), icmp_rx_echo_request(), icmp_tx_echo_reply(), icmp_tx_echo_request(), inet6_ntoa(), inet6_ntoa_okx(), ipoib_transmit(), ipv4_fragment_offset(), ipv4_rx(), ipv4_tx(), ipv6_fragment_offset(), ipv6_rx(), legacy_transmit(), myri10ge_net_poll(), net_rx(), ping_rx(), pxe_tftp_open(), pxenv_udp_read(), pxenv_udp_write(), pxenv_undi_get_information(), scsicmd_response(), stp_rx(), t595_probe(), t5x9_probe(), tcp_rx(), tcp_xmit_reset(), tcp_xmit_sack(), tcpip_bind(), tftp_process_multicast(), tftp_rx(), tftp_rx_data(), tftp_rx_error(), tftp_uri(), tls_new_server_hello(), tls_newdata_process_header(), tls_select_cipher(), udp_open_common(), udp_rx(), udp_tx(), vlan_rx(), wpa_send_eapol(), xcm_create(), xsigo_xds_complete(), xsmp_rx_xve_install(), xsmp_rx_xve_modify(), and xsmp_tx_xve_params().


Function Documentation

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )