Home
last modified time | relevance | path

Searched refs:UNALIGNED_GET (Results 1 – 25 of 39) sorted by relevance

12

/Zephyr-latest/subsys/net/lib/dns/
Ddns_pack.h186 return htons(UNALIGNED_GET((uint16_t *)(header))); in dns_header_id()
195 return ntohs(UNALIGNED_GET((uint16_t *)(header))); in dns_unpack_header_id()
249 return htons(UNALIGNED_GET((uint16_t *)(header + 4))); in dns_header_qdcount()
254 return ntohs(UNALIGNED_GET((uint16_t *)(header + 4))); in dns_unpack_header_qdcount()
260 return htons(UNALIGNED_GET((uint16_t *)(header + 6))); in dns_header_ancount()
265 return ntohs(UNALIGNED_GET((uint16_t *)(header + 6))); in dns_unpack_header_ancount()
271 return htons(UNALIGNED_GET((uint16_t *)(header + 8))); in dns_header_nscount()
277 return htons(UNALIGNED_GET((uint16_t *)(header + 10))); in dns_header_arcount()
282 return htons(UNALIGNED_GET((uint16_t *)(question + 0))); in dns_query_qtype()
287 return ntohs(UNALIGNED_GET((uint16_t *)(question + 0))); in dns_unpack_query_qtype()
[all …]
/Zephyr-latest/arch/riscv/core/
Delf.c124 modified_operand = UNALIGNED_GET(loc32); in arch_elf_relocate()
133 modified_operand = UNALIGNED_GET(loc32); in arch_elf_relocate()
143 modified_operand = UNALIGNED_GET(loc32); in arch_elf_relocate()
166 modified_operand = UNALIGNED_GET(loc32); in arch_elf_relocate()
183 modified_operand = UNALIGNED_GET(loc32); in arch_elf_relocate()
200 modified_operand = UNALIGNED_GET(loc32); in arch_elf_relocate()
211 modified_operand = UNALIGNED_GET(loc32); in arch_elf_relocate()
226 modified_operand = UNALIGNED_GET(loc32); in arch_elf_relocate()
236 modified_operand = UNALIGNED_GET(loc32); in arch_elf_relocate()
249 tmp8 = UNALIGNED_GET(loc8); in arch_elf_relocate()
[all …]
/Zephyr-latest/include/zephyr/net/
Dnet_ip.h681 return UNALIGNED_GET(&addr->s6_addr32[0]) == 0 && in net_ipv6_is_addr_loopback()
682 UNALIGNED_GET(&addr->s6_addr32[1]) == 0 && in net_ipv6_is_addr_loopback()
683 UNALIGNED_GET(&addr->s6_addr32[2]) == 0 && in net_ipv6_is_addr_loopback()
684 ntohl(UNALIGNED_GET(&addr->s6_addr32[3])) == 1; in net_ipv6_is_addr_loopback()
825 return UNALIGNED_GET(&addr->s_addr) == 0; in net_ipv4_is_addr_unspecified()
837 return (ntohl(UNALIGNED_GET(&addr->s_addr)) & 0xF0000000) == 0xE0000000; in net_ipv4_is_addr_mcast()
849 return (ntohl(UNALIGNED_GET(&addr->s_addr)) & 0xFFFF0000) == 0xA9FE0000; in net_ipv4_is_ll_addr()
865 masked_24 = ntohl(UNALIGNED_GET(&addr->s_addr)) & 0xFFFFFF00; in net_ipv4_is_private_addr()
889 UNALIGNED_PUT(UNALIGNED_GET(src), dest)
926 return UNALIGNED_GET(&addr1->s_addr) == UNALIGNED_GET(&addr2->s_addr); in net_ipv4_addr_cmp()
[all …]
/Zephyr-latest/lib/net_buf/
Dbuf_simple.c199 val = UNALIGNED_GET((uint16_t *)ptr); in net_buf_simple_remove_le16()
210 val = UNALIGNED_GET((uint16_t *)ptr); in net_buf_simple_remove_be16()
223 val = UNALIGNED_GET((struct uint24 *)ptr); in net_buf_simple_remove_le24()
236 val = UNALIGNED_GET((struct uint24 *)ptr); in net_buf_simple_remove_be24()
247 val = UNALIGNED_GET((uint32_t *)ptr); in net_buf_simple_remove_le32()
258 val = UNALIGNED_GET((uint32_t *)ptr); in net_buf_simple_remove_be32()
271 val = UNALIGNED_GET((struct uint40 *)ptr); in net_buf_simple_remove_le40()
284 val = UNALIGNED_GET((struct uint40 *)ptr); in net_buf_simple_remove_be40()
297 val = UNALIGNED_GET((struct uint48 *)ptr); in net_buf_simple_remove_le48()
310 val = UNALIGNED_GET((struct uint48 *)ptr); in net_buf_simple_remove_be48()
[all …]
/Zephyr-latest/subsys/net/ip/
Dtcp_private.h16 #define th_sport(_x) UNALIGNED_GET(&(_x)->th_sport)
17 #define th_dport(_x) UNALIGNED_GET(&(_x)->th_dport)
18 #define th_seq(_x) ntohl(UNALIGNED_GET(&(_x)->th_seq))
19 #define th_ack(_x) ntohl(UNALIGNED_GET(&(_x)->th_ack))
21 #define th_flags(_x) UNALIGNED_GET(&(_x)->th_flags)
22 #define th_win(_x) UNALIGNED_GET(&(_x)->th_win)
347 if (UNALIGNED_GET(_fl) && (_cond) && \
348 (UNALIGNED_GET(_fl) _op(_mask))) { \
349 UNALIGNED_PUT(UNALIGNED_GET(_fl) & ~(_mask), _fl); \
D6lo.c125 (UNALIGNED_GET(&addr->s6_addr16[1]) == 0x00) && in net_6lo_ll_prefix_padded_with_zeros()
126 (UNALIGNED_GET(&addr->s6_addr32[1]) == 0x00)); in net_6lo_ll_prefix_padded_with_zeros()
131 return ((UNALIGNED_GET(&addr->s6_addr32[2]) == htonl(0xFF)) && in net_6lo_addr_16_bit_compressible()
132 (UNALIGNED_GET(&addr->s6_addr16[6]) == htons(0xFE00))); in net_6lo_addr_16_bit_compressible()
138 (UNALIGNED_GET(&addr->s6_addr16[1]) == 0x00) && in net_6lo_maddr_8_bit_compressible()
139 (UNALIGNED_GET(&addr->s6_addr32[1]) == 0x00) && in net_6lo_maddr_8_bit_compressible()
140 (UNALIGNED_GET(&addr->s6_addr32[2]) == 0x00) && in net_6lo_maddr_8_bit_compressible()
146 return ((UNALIGNED_GET(&addr->s6_addr32[1]) == 0x00) && in net_6lo_maddr_32_bit_compressible()
147 (UNALIGNED_GET(&addr->s6_addr32[2]) == 0x00) && in net_6lo_maddr_32_bit_compressible()
153 return ((UNALIGNED_GET(&addr->s6_addr32[1]) == 0x00) && in net_6lo_maddr_48_bit_compressible()
[all …]
Dipv6.c970 UNALIGNED_PUT(UNALIGNED_GET(&prefix->s6_addr32[0]), in net_ipv6_addr_generate_iid()
972 UNALIGNED_PUT(UNALIGNED_GET(&prefix->s6_addr32[1]), in net_ipv6_addr_generate_iid()
988 UNALIGNED_PUT(UNALIGNED_GET(&prefix->s6_addr32[0]), &tmp_addr.s6_addr32[0]); in net_ipv6_addr_generate_iid()
989 UNALIGNED_PUT(UNALIGNED_GET(&prefix->s6_addr32[1]), &tmp_addr.s6_addr32[1]); in net_ipv6_addr_generate_iid()
/Zephyr-latest/subsys/net/lib/zperf/
Dzperf_udp_uploader.c37 results->nb_packets_rcvd = ntohl(UNALIGNED_GET(&stat->datagrams)); in zperf_upload_decode_stat()
38 results->nb_packets_lost = ntohl(UNALIGNED_GET(&stat->error_cnt)); in zperf_upload_decode_stat()
40 ntohl(UNALIGNED_GET(&stat->outorder_cnt)); in zperf_upload_decode_stat()
41 results->total_len = (((uint64_t)ntohl(UNALIGNED_GET(&stat->total_len1))) << 32) + in zperf_upload_decode_stat()
42 ntohl(UNALIGNED_GET(&stat->total_len2)); in zperf_upload_decode_stat()
43 results->time_in_us = ntohl(UNALIGNED_GET(&stat->stop_usec)) + in zperf_upload_decode_stat()
44 ntohl(UNALIGNED_GET(&stat->stop_sec)) * USEC_PER_SEC; in zperf_upload_decode_stat()
45 results->jitter_in_us = ntohl(UNALIGNED_GET(&stat->jitter2)) + in zperf_upload_decode_stat()
46 ntohl(UNALIGNED_GET(&stat->jitter1)) * USEC_PER_SEC; in zperf_upload_decode_stat()
/Zephyr-latest/arch/arc/core/
Delf.c38 uint32_t insn = UNALIGNED_GET((uint32_t *)loc); in arch_elf_relocate()
/Zephyr-latest/samples/subsys/usb/audio/headset/src/
Dmain.c54 volume = UNALIGNED_GET((int16_t *)evt->val); in feature_update()
/Zephyr-latest/samples/subsys/usb/audio/headphones_microphone/src/
Dmain.c56 volume = UNALIGNED_GET((int16_t *)evt->val); in feature_update()
/Zephyr-latest/drivers/spi/
Dspi_mcux_ecspi.c81 data->tx_data = UNALIGNED_GET((uint8_t *)ctx->tx_buf); in spi_mcux_transfer_next_packet()
84 data->tx_data = UNALIGNED_GET((uint16_t *)ctx->tx_buf); in spi_mcux_transfer_next_packet()
87 data->tx_data = UNALIGNED_GET((uint32_t *)ctx->tx_buf); in spi_mcux_transfer_next_packet()
Dspi_xlnx_axi_quadspi.c276 dtr = UNALIGNED_GET((uint8_t *)(ctx->tx_buf)); in xlnx_quadspi_start_tx()
279 dtr = UNALIGNED_GET((uint16_t *)(ctx->tx_buf)); in xlnx_quadspi_start_tx()
282 dtr = UNALIGNED_GET((uint32_t *)(ctx->tx_buf)); in xlnx_quadspi_start_tx()
Dspi_npcx_spip.c150 *tx_frame = UNALIGNED_GET((uint8_t *)(data->ctx.tx_buf)); in spi_npcx_spip_process_tx_buf()
152 *tx_frame = UNALIGNED_GET((uint16_t *)(data->ctx.tx_buf)); in spi_npcx_spip_process_tx_buf()
Dspi_dw.c109 data = UNALIGNED_GET((uint8_t *) in push_data()
113 data = UNALIGNED_GET((uint16_t *) in push_data()
117 data = UNALIGNED_GET((uint32_t *) in push_data()
Dspi_pw.c429 data = UNALIGNED_GET((uint8_t *) in spi_pw_tx_data()
433 data = UNALIGNED_GET((uint16_t *) in spi_pw_tx_data()
437 data = UNALIGNED_GET((uint32_t *) in spi_pw_tx_data()
Dspi_ll_stm32.c309 tx_frame = UNALIGNED_GET((uint8_t *)(data->ctx.tx_buf)); in spi_stm32_send_next_frame()
315 tx_frame = UNALIGNED_GET((uint16_t *)(data->ctx.tx_buf)); in spi_stm32_send_next_frame()
406 tx_frame = UNALIGNED_GET((uint8_t *)(data->ctx.tx_buf)); in spi_stm32_shift_s()
410 tx_frame = UNALIGNED_GET((uint16_t *)(data->ctx.tx_buf)); in spi_stm32_shift_s()
Dspi_gecko_eusart.c180 tx_frame = UNALIGNED_GET((uint8_t *)(data->ctx.tx_buf)); in spi_eusart_next_tx()
/Zephyr-latest/drivers/flash/
Dflash_stm32g0x.c189 UNALIGNED_GET((const uint64_t *) data + (i >> 3))); in flash_stm32_write_range()
Dflash_ambiq.c113 aligned[j] = UNALIGNED_GET((uint32_t *)src); in flash_ambiq_write()
Dflash_stm32wbx.c379 UNALIGNED_GET((const uint64_t *) data + (i >> 3))); in flash_stm32_write_range()
Dflash_stm32l4x.c240 UNALIGNED_GET((const uint64_t *) data + (i >> 3))); in flash_stm32_write_range()
Dflash_stm32f4x.c224 value = UNALIGNED_GET((flash_prg_t *)data + i); in flash_stm32_write_range()
/Zephyr-latest/samples/drivers/can/counter/src/
Dmain.c89 sys_be16_to_cpu(UNALIGNED_GET((uint16_t *)&frame.data))); in rx_thread()
/Zephyr-latest/subsys/net/lib/sockets/
Dsockets_can.c386 (UNALIGNED_GET(&sfilter->can_id) & in is_already_attached()
387 UNALIGNED_GET(&sfilter->can_mask)))) { in is_already_attached()

12