Home
last modified time | relevance | path

Searched refs:get_unaligned (Results 1 – 25 of 33) sorted by relevance

12

/external/wpa_supplicant_8/src/utils/
Dplatform.h10 #define get_unaligned(p) \ macro
18 #define get_unaligned_le16(p) le16_to_cpu(get_unaligned((le16 *)(p)))
19 #define get_unaligned_le32(p) le32_to_cpu(get_unaligned((le32 *)(p)))
/external/u-boot/lib/zstd/
Dmem.h50 ZSTD_STATIC U16 ZSTD_read16(const void *memPtr) { return get_unaligned((const U16 *)memPtr); } in ZSTD_read16()
52 ZSTD_STATIC U32 ZSTD_read32(const void *memPtr) { return get_unaligned((const U32 *)memPtr); } in ZSTD_read32()
54 ZSTD_STATIC U64 ZSTD_read64(const void *memPtr) { return get_unaligned((const U64 *)memPtr); } in ZSTD_read64()
56 ZSTD_STATIC size_t ZSTD_readST(const void *memPtr) { return get_unaligned((const size_t *)memPtr); } in ZSTD_readST()
/external/u-boot/arch/arm/include/asm/
Dunaligned.h12 #define get_unaligned __get_unaligned_le macro
15 #define get_unaligned __get_unaligned_be macro
/external/u-boot/arch/sh/include/asm/
Dunaligned.h13 #define get_unaligned __get_unaligned_be macro
16 #define get_unaligned __get_unaligned_le macro
Dunaligned-sh4a.h251 # define get_unaligned __get_unaligned_le macro
254 # define get_unaligned __get_unaligned_be macro
/external/u-boot/arch/mips/include/asm/
Dunaligned.h10 #define get_unaligned __get_unaligned_be macro
13 #define get_unaligned __get_unaligned_le macro
/external/u-boot/include/asm-generic/
Dunaligned.h14 #define get_unaligned __get_unaligned_le macro
17 #define get_unaligned __get_unaligned_be macro
/external/puffin/src/
Dutils.cc30 inline T get_unaligned(const void* address) { in get_unaligned() function
258 if (get_unaligned<uint32_t>(data.data() + pos) != 0x04034b50) { in LocateDeflatesInZipArchive()
276 auto compression_method = get_unaligned<uint16_t>(data.data() + pos + 8); in LocateDeflatesInZipArchive()
282 auto compressed_size = get_unaligned<uint32_t>(data.data() + pos + 18); in LocateDeflatesInZipArchive()
283 auto file_name_length = get_unaligned<uint16_t>(data.data() + pos + 26); in LocateDeflatesInZipArchive()
284 auto extra_field_length = get_unaligned<uint16_t>(data.data() + pos + 28); in LocateDeflatesInZipArchive()
/external/u-boot/lib/
Dhexdump.c87 get_unaligned(ptr8 + j)); in hex_dump_to_buffer()
98 get_unaligned(ptr4 + j)); in hex_dump_to_buffer()
109 get_unaligned(ptr2 + j)); in hex_dump_to_buffer()
/external/kmod/shared/
Dhash.c101 hash += get_unaligned((uint16_t *) key); in hash_superfast()
102 tmp = (get_unaligned((uint16_t *)(key + 2)) << 11) ^ hash; in hash_superfast()
111 hash += get_unaligned((uint16_t *) key); in hash_superfast()
118 hash += get_unaligned((uint16_t *) key); in hash_superfast()
Dutil.h49 #define get_unaligned(ptr) \ macro
/external/u-boot/arch/powerpc/include/asm/
Dunaligned.h12 #define get_unaligned __get_unaligned_be macro
/external/u-boot/arch/m68k/include/asm/
Dunaligned.h12 #define get_unaligned __get_unaligned_be macro
/external/u-boot/drivers/usb/gadget/
Depautoconf.c118 max = 0x7ff & le16_to_cpu(get_unaligned(&desc->wMaxPacketSize)); in ep_matches()
134 if ((get_unaligned(&desc->wMaxPacketSize) & in ep_matches()
Drndis.c784 resp->RequestID = get_unaligned(&buf->RequestID); /* Still LE in msg buffer */ in rndis_init_response()
829 resp->RequestID = get_unaligned(&buf->RequestID); /* Still LE in msg buffer */ in rndis_query_response()
878 resp->RequestID = get_unaligned(&buf->RequestID); /* Still LE in msg buffer */ in rndis_set_response()
932 resp->RequestID = get_unaligned(&buf->RequestID); /* Still LE in msg buffer */ in rndis_keepalive_response()
1273 != get_unaligned(tmp++)) in rndis_rm_hdr()
Ddwc2_udc_otg.c625 le16_to_cpu(get_unaligned(&desc->wMaxPacketSize))) { in dwc2_ep_enable()
642 le16_to_cpu(get_unaligned(&desc->wMaxPacketSize)) > in dwc2_ep_enable()
643 ep_maxpacket(ep)) || !get_unaligned(&desc->wMaxPacketSize)) { in dwc2_ep_enable()
659 ep->ep.maxpacket = le16_to_cpu(get_unaligned(&desc->wMaxPacketSize)); in dwc2_ep_enable()
Dpxa25x_udc.c304 le16_to_cpu(get_unaligned(&desc->wMaxPacketSize))) { in pxa25x_ep_enable()
319 && le16_to_cpu(get_unaligned(&desc->wMaxPacketSize)) in pxa25x_ep_enable()
321 || !get_unaligned(&desc->wMaxPacketSize)) { in pxa25x_ep_enable()
335 ep->ep.maxpacket = le16_to_cpu(get_unaligned(&desc->wMaxPacketSize)); in pxa25x_ep_enable()
475 max = le16_to_cpu(get_unaligned(&ep->desc->wMaxPacketSize)); in write_fifo()
756 le16_to_cpu(get_unaligned(&ep->desc->wMaxPacketSize)))) in pxa25x_ep_queue()
/external/u-boot/fs/btrfs/
Dcompression.c24 tot_len = le32_to_cpu(get_unaligned((u32 *)cbuf)); in decompress_lzo()
37 in_len = le32_to_cpu(get_unaligned((u32 *)cbuf)); in decompress_lzo()
/external/u-boot/doc/
DREADME.unaligned-memory-access.txt197 The easiest way to avoid unaligned access is to use the get_unaligned() and
220 The get_unaligned() macro works similarly. Assuming 'data' is a pointer to
223 u32 value = get_unaligned((u32 *) data);
/external/u-boot/common/
Dusb_hub.c646 put_unaligned(le16_to_cpu(get_unaligned( in usb_hub_configure()
667 hubCharacteristics = get_unaligned(&hub->desc.wHubCharacteristics); in usb_hub_configure()
/external/u-boot/lib/lzo/
Dlzo1x_decompress.c25 put_unaligned(get_unaligned((const u32 *)(src)), (u32 *)(dst))
/external/u-boot/drivers/usb/host/
Dxhci.c590 (get_unaligned(&endpt_desc->wMaxPacketSize))); in xhci_set_configuration()
1223 put_unaligned(get_unaligned(&descriptor.hub.wHubCharacteristics) in xhci_lowlevel_init()
1228 put_unaligned(get_unaligned(&descriptor.hub.wHubCharacteristics) in xhci_lowlevel_init()
/external/u-boot/lib/zlib/
Dinffast.c273 PUP(sout) = get_unaligned(++sfrom); in inflate_fast()
/external/kmod/libkmod/
Dlibkmod-signature.c345 sig_len = be32toh(get_unaligned(&modsig->sig_len)); in kmod_module_signature_info()
/external/u-boot/drivers/mtd/
Dcfi_flash.c1652 tmp = get_unaligned(&qry->erase_region_info[i]); in cfi_reverse_geometry()
1653 put_unaligned(get_unaligned(&qry->erase_region_info[j]), in cfi_reverse_geometry()
2096 info->vendor = le16_to_cpu(get_unaligned(&qry.p_id)); in flash_get_size()
2097 info->ext_addr = le16_to_cpu(get_unaligned(&qry.p_adr)); in flash_get_size()
2186 tmp = le32_to_cpu(get_unaligned( in flash_get_size()

12