| /linux/lib/crypto/ |
| H A D | utils.c | 44 u64 l = get_unaligned((u64 *)src1) ^ in __crypto_xor() 45 get_unaligned((u64 *)src2); in __crypto_xor() 58 u32 l = get_unaligned((u32 *)src1) ^ in __crypto_xor() 59 get_unaligned((u32 *)src2); in __crypto_xor() 72 u16 l = get_unaligned((u16 *)src1) ^ in __crypto_xor() 73 get_unaligned((u16 *)src2); in __crypto_xor()
|
| /linux/arch/microblaze/include/asm/ |
| H A D | flat.h | 37 val_hi = get_unaligned(p); in flat_get_addr_from_rp() 38 val_lo = get_unaligned(p+1); in flat_get_addr_from_rp() 44 *addr = get_unaligned(p); in flat_get_addr_from_rp() 62 unsigned long val_hi = get_unaligned(p); in flat_put_addr_at_rp() 63 unsigned long val_lo = get_unaligned(p + 1); in flat_put_addr_at_rp()
|
| /linux/include/crypto/ |
| H A D | utils.h | 26 l = get_unaligned(d) ^ get_unaligned(s++); in crypto_xor() 47 l = get_unaligned(s1++) ^ get_unaligned(s2++); in crypto_xor_cpy()
|
| /linux/lib/842/ |
| H A D | 842_decompress.c | 60 ((s) == 2 ? be16_to_cpu(get_unaligned((__be16 *)d)) : \ 61 (s) == 4 ? be32_to_cpu(get_unaligned((__be32 *)d)) : \ 62 (s) == 8 ? be64_to_cpu(get_unaligned((__be64 *)d)) : \ 112 *d = be16_to_cpu(get_unaligned((__be16 *)in)) >> (16 - bits); in next_bits() 114 *d = be32_to_cpu(get_unaligned((__be32 *)in)) >> (32 - bits); in next_bits() 116 *d = be64_to_cpu(get_unaligned((__be64 *)in)) >> (64 - bits); in next_bits()
|
| H A D | 842_compress.c | 110 be##b##_to_cpu(get_unaligned((__be##b *)((p)->in + (o)))) 514 last = ~get_unaligned((u64 *)p->in); in sw842_compress() 517 next = get_unaligned((u64 *)p->in); in sw842_compress()
|
| /linux/include/asm-generic/ |
| H A D | uaccess.h | 26 *(u16 *)to = get_unaligned((u16 __force *)from); in __get_user_fn() 29 *(u32 *)to = get_unaligned((u32 __force *)from); in __get_user_fn() 32 *(u64 *)to = get_unaligned((u64 __force *)from); in __get_user_fn() 69 *((type *)dst) = get_unaligned((type *)(src)); \
|
| /linux/drivers/net/ethernet/dec/tulip/ |
| H A D | eeprom.c | 288 u32 base15 = get_unaligned((u16*)&p[7]); in tulip_parse_eeprom() 290 (get_unaligned((u16*)&p[9])<<16) + base15; in tulip_parse_eeprom() 292 (get_unaligned((u16*)&p[11])<<16) + base15; in tulip_parse_eeprom() 294 mtable->csr15dir = get_unaligned((u16*)&p[3])<<16; in tulip_parse_eeprom() 295 mtable->csr15val = get_unaligned((u16*)&p[5])<<16; in tulip_parse_eeprom()
|
| /linux/lib/zstd/common/ |
| H A D | mem.h | 114 return get_unaligned((const U16 *)memPtr); in MEM_read16() 119 return get_unaligned((const U32 *)memPtr); in MEM_read32() 124 return get_unaligned((const U64 *)memPtr); in MEM_read64() 129 return get_unaligned((const size_t *)memPtr); in MEM_readST()
|
| /linux/Documentation/translations/zh_CN/core-api/ |
| H A D | unaligned-memory-access.rst | 178 避免非对齐访问的最简单方法是使用<linux/unaligned.h>头文件提供的get_unaligned()和 200 get_unaligned()宏的工作原理与此类似。假设'data'是一个指向内存的指针,并且你希望避免 203 u32 value = get_unaligned((u32 *) data);
|
| /linux/lib/lzo/ |
| H A D | lzodefs.h | 23 put_unaligned(get_unaligned((const u32 *)(src)), (u32 *)(dst)) 26 put_unaligned(get_unaligned((const u64 *)(src)), (u64 *)(dst))
|
| /linux/net/dccp/ |
| H A D | options.c | |
| /linux/include/linux/ |
| H A D | jhash.h | 80 a += get_unaligned((u32 *)k); in jhash() 81 b += get_unaligned((u32 *)(k + 4)); in jhash() 82 c += get_unaligned((u32 *)(k + 8)); in jhash()
|
| H A D | unaligned.h | 13 #define get_unaligned(ptr) __get_unaligned_t(typeof(*(ptr)), (ptr)) macro
|
| /linux/arch/sh/kernel/ |
| H A D | module.c | 53 value = get_unaligned(location); in apply_relocate_add() 59 value = get_unaligned(location); in apply_relocate_add()
|
| H A D | dwarf.c | 130 u32 val = get_unaligned(src); in dwarf_read_addr() 247 decoded_addr += get_unaligned((u32 *)addr); in dwarf_read_encoded_value() 272 initial_len = get_unaligned((u32 *)addr); in dwarf_entry_len() 287 *len = get_unaligned((u64 *)addr + 4); in dwarf_entry_len() 452 delta = get_unaligned((u16 *)current_insn); in dwarf_cfa_execute_insns() 457 delta = get_unaligned((u32 *)current_insn); in dwarf_cfa_execute_insns() 1058 entry_type = get_unaligned((u32 *)p); in dwarf_parse_section()
|
| /linux/drivers/platform/surface/ |
| H A D | surface_acpi_notify.c | 497 if (get_unaligned(&rqsx->cdl) != b->len - sizeof(struct gsb_data_rqsx)) { in san_validate_rqsx() 499 type, b->len, get_unaligned(&rqsx->cdl)); in san_validate_rqsx() 503 if (get_unaligned(&rqsx->cdl) > SAN_GSB_MAX_RQSX_PAYLOAD) { in san_validate_rqsx() 505 type, get_unaligned(&rqsx->cdl)); in san_validate_rqsx() 580 rqst.length = get_unaligned(&gsb_rqst->cdl); in san_rqst() 620 evt.length = get_unaligned(&gsb_rqsg->cdl); in san_rqsg()
|
| /linux/net/ceph/ |
| H A D | decode.c | 172 sa_family_t family = get_unaligned(&addr->in_addr.ss_family); in ceph_entity_addr_encoding_len() 180 sa_family_t family = get_unaligned(&addr->in_addr.ss_family); in ceph_encode_entity_addr()
|
| /linux/arch/xtensa/include/asm/ |
| H A D | flat.h | 10 *addr = get_unaligned((__force u32 *)rp); in flat_get_addr_from_rp()
|
| /linux/arch/sh/include/asm/ |
| H A D | flat.h | 17 *addr = get_unaligned((__force u32 *)rp); in flat_get_addr_from_rp()
|
| /linux/drivers/misc/bcm-vk/ |
| H A D | bcm_vk_sg.c | 52 data = get_unaligned(&vkdata->address); in bcm_vk_dma_alloc() 239 addr = get_unaligned(&vkdata[i].address); in bcm_vk_dma_free()
|
| /linux/fs/isofs/ |
| H A D | joliet.c | 26 while ((ch = get_unaligned(ip)) && len) { in uni16_to_x8()
|
| /linux/arch/um/include/asm/ |
| H A D | uaccess.h | 50 *((type *)dst) = get_unaligned((type *)(src)); \
|
| /linux/fs/hpfs/ |
| H A D | hpfs_fn.h | 157 return le32_to_cpu(get_unaligned((__le32 *)((char *)ea + 9 + ea->namelen))); in ea_sec() 162 return le32_to_cpu(get_unaligned((__le32 *)((char *)ea + 5 + ea->namelen))); in ea_len()
|
| /linux/Documentation/networking/ |
| H A D | radiotap-headers.rst | 72 you have to use a kernel API get_unaligned() to dereference the pointer, 124 * get_unaligned((type *)iterator.this_arg) to dereference
|
| /linux/arch/arc/kernel/ |
| H A D | unwind.c | 546 value = get_unaligned((u16 *) ptr.p16s++); in read_pointer() 548 value = get_unaligned((u16 *) ptr.p16u++); in read_pointer() 555 value = get_unaligned(ptr.p32s++); in read_pointer() 557 value = get_unaligned(ptr.p32u++); in read_pointer() 568 value = get_unaligned((unsigned long *)ptr.pul++); in read_pointer()
|