Home
last modified time | relevance | path

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

12345

/Linux-v6.6/lib/crypto/
Dmemneq.c74 neq |= get_unaligned((unsigned long *)a) ^ in __crypto_memneq_generic()
75 get_unaligned((unsigned long *)b); in __crypto_memneq_generic()
99 neq |= get_unaligned((unsigned long *)a) ^ in __crypto_memneq_16()
100 get_unaligned((unsigned long *)b); in __crypto_memneq_16()
102 neq |= get_unaligned((unsigned long *)(a + 8)) ^ in __crypto_memneq_16()
103 get_unaligned((unsigned long *)(b + 8)); in __crypto_memneq_16()
106 neq |= get_unaligned((unsigned int *)a) ^ in __crypto_memneq_16()
107 get_unaligned((unsigned int *)b); in __crypto_memneq_16()
109 neq |= get_unaligned((unsigned int *)(a + 4)) ^ in __crypto_memneq_16()
110 get_unaligned((unsigned int *)(b + 4)); in __crypto_memneq_16()
[all …]
Dutils.c43 u64 l = get_unaligned((u64 *)src1) ^ in __crypto_xor()
44 get_unaligned((u64 *)src2); in __crypto_xor()
57 u32 l = get_unaligned((u32 *)src1) ^ in __crypto_xor()
58 get_unaligned((u32 *)src2); in __crypto_xor()
71 u16 l = get_unaligned((u16 *)src1) ^ in __crypto_xor()
72 get_unaligned((u16 *)src2); in __crypto_xor()
/Linux-v6.6/lib/lzo/
Dlzo1x_compress.c59 dv64 = get_unaligned((u64 *)ir); in lzo1x_1_do_compress()
60 dv64 |= get_unaligned((u64 *)ir + 1); in lzo1x_1_do_compress()
61 dv64 |= get_unaligned((u64 *)ir + 2); in lzo1x_1_do_compress()
62 dv64 |= get_unaligned((u64 *)ir + 3); in lzo1x_1_do_compress()
67 dv64 = get_unaligned((u64 *)ir); in lzo1x_1_do_compress()
166 v = get_unaligned((const u64 *) (ip + m_len)) ^ in lzo1x_1_do_compress()
167 get_unaligned((const u64 *) (m_pos + m_len)); in lzo1x_1_do_compress()
171 v = get_unaligned((const u64 *) (ip + m_len)) ^ in lzo1x_1_do_compress()
172 get_unaligned((const u64 *) (m_pos + m_len)); in lzo1x_1_do_compress()
186 v = get_unaligned((const u32 *) (ip + m_len)) ^ in lzo1x_1_do_compress()
[all …]
Dlzodefs.h23 put_unaligned(get_unaligned((const u32 *)(src)), (u32 *)(dst))
26 put_unaligned(get_unaligned((const u64 *)(src)), (u64 *)(dst))
/Linux-v6.6/arch/microblaze/include/asm/
Dflat.h37 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-v6.6/include/crypto/
Dutils.h26 l = get_unaligned(d) ^ get_unaligned(s++); in crypto_xor()
47 l = get_unaligned(s1++) ^ get_unaligned(s2++); in crypto_xor_cpy()
/Linux-v6.6/lib/lz4/
Dlz4defs.h109 return get_unaligned((const U16 *)ptr); in LZ4_read16()
114 return get_unaligned((const U32 *)ptr); in LZ4_read32()
119 return get_unaligned((const size_t *)ptr); in LZ4_read_ARCH()
156 U64 a = get_unaligned((const U64 *)src); in LZ4_copy8()
160 U32 a = get_unaligned((const U32 *)src); in LZ4_copy8()
161 U32 b = get_unaligned((const U32 *)src + 1); in LZ4_copy8()
/Linux-v6.6/include/asm-generic/
Duaccess.h26 *(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-v6.6/lib/842/
D842_decompress.c60 ((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()
/Linux-v6.6/drivers/net/ethernet/dec/tulip/
Deeprom.c288 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-v6.6/lib/zstd/common/
Dmem.h113 return get_unaligned((const U16 *)memPtr); in MEM_read16()
118 return get_unaligned((const U32 *)memPtr); in MEM_read32()
123 return get_unaligned((const U64 *)memPtr); in MEM_read64()
128 return get_unaligned((const size_t *)memPtr); in MEM_readST()
/Linux-v6.6/Documentation/translations/zh_CN/core-api/
Dunaligned-memory-access.rst178 避免非对齐访问的最简单方法是使用<asm/unaligned.h>头文件提供的get_unaligned()和
200 get_unaligned()宏的工作原理与此类似。假设'data'是一个指向内存的指针,并且你希望避免
203 u32 value = get_unaligned((u32 *) data);
/Linux-v6.6/lib/
Dhexdump.c162 get_unaligned(ptr8 + j)); in hex_dump_to_buffer()
173 get_unaligned(ptr4 + j)); in hex_dump_to_buffer()
184 get_unaligned(ptr2 + j)); in hex_dump_to_buffer()
/Linux-v6.6/net/dccp/
Doptions.c138 opt_val = get_unaligned((__be32 *)value); in dccp_parse_options()
163 opt_val = get_unaligned((__be32 *)value); in dccp_parse_options()
181 __be16 opt_val2 = get_unaligned((__be16 *)value); in dccp_parse_options()
184 opt_val = get_unaligned((__be32 *)value); in dccp_parse_options()
199 __be16 opt_val2 = get_unaligned((__be16 *)value); in dccp_parse_options()
202 opt_val = get_unaligned((__be32 *)value); in dccp_parse_options()
/Linux-v6.6/arch/sh/kernel/
Dmodule.c53 value = get_unaligned(location); in apply_relocate_add()
59 value = get_unaligned(location); in apply_relocate_add()
Ddwarf.c130 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-v6.6/arch/ia64/include/asm/
Dio.h231 outw(get_unaligned(sp++), port); in outsw()
241 outl(get_unaligned(sp++), port); in outsl()
/Linux-v6.6/net/ceph/
Ddecode.c172 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-v6.6/crypto/
Dpolyval-generic.c72 u64 a = get_unaligned((const u64 *)&src[0]); in copy_and_reverse()
73 u64 b = get_unaligned((const u64 *)&src[8]); in copy_and_reverse()
/Linux-v6.6/drivers/platform/surface/
Dsurface_acpi_notify.c497 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-v6.6/arch/xtensa/include/asm/
Dflat.h10 *addr = get_unaligned((__force u32 *)rp); in flat_get_addr_from_rp()
/Linux-v6.6/tools/include/asm-generic/
Dunaligned.h19 #define get_unaligned(ptr) __get_unaligned_t(typeof(*(ptr)), (ptr)) macro
/Linux-v6.6/arch/sh/include/asm/
Dflat.h17 *addr = get_unaligned((__force u32 *)rp); in flat_get_addr_from_rp()
/Linux-v6.6/fs/isofs/
Djoliet.c26 while ((ch = get_unaligned(ip)) && len) { in uni16_to_x8()
/Linux-v6.6/arch/um/include/asm/
Duaccess.h50 *((type *)dst) = get_unaligned((type *)(src)); \

12345