Home
last modified time | relevance | path

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

12

/Zephyr-Core-3.6.0/subsys/net/lib/dns/
Ddns_pack.h185 return htons(UNALIGNED_GET((uint16_t *)(header))); in dns_header_id()
194 return ntohs(UNALIGNED_GET((uint16_t *)(header))); in dns_unpack_header_id()
248 return htons(UNALIGNED_GET((uint16_t *)(header + 4))); in dns_header_qdcount()
253 return ntohs(UNALIGNED_GET((uint16_t *)(header + 4))); in dns_unpack_header_qdcount()
259 return htons(UNALIGNED_GET((uint16_t *)(header + 6))); in dns_header_ancount()
264 return ntohs(UNALIGNED_GET((uint16_t *)(header + 6))); in dns_unpack_header_ancount()
270 return htons(UNALIGNED_GET((uint16_t *)(header + 8))); in dns_header_nscount()
276 return htons(UNALIGNED_GET((uint16_t *)(header + 10))); in dns_header_arcount()
281 return htons(UNALIGNED_GET((uint16_t *)(question + 0))); in dns_query_qtype()
286 return ntohs(UNALIGNED_GET((uint16_t *)(question + 0))); in dns_unpack_query_qtype()
[all …]
/Zephyr-Core-3.6.0/include/zephyr/net/
Dnet_ip.h600 return UNALIGNED_GET(&addr->s6_addr32[0]) == 0 && in net_ipv6_is_addr_loopback()
601 UNALIGNED_GET(&addr->s6_addr32[1]) == 0 && in net_ipv6_is_addr_loopback()
602 UNALIGNED_GET(&addr->s6_addr32[2]) == 0 && in net_ipv6_is_addr_loopback()
603 ntohl(UNALIGNED_GET(&addr->s6_addr32[3])) == 1; in net_ipv6_is_addr_loopback()
712 return UNALIGNED_GET(&addr->s_addr) == 0; in net_ipv4_is_addr_unspecified()
724 return (ntohl(UNALIGNED_GET(&addr->s_addr)) & 0xF0000000) == 0xE0000000; in net_ipv4_is_addr_mcast()
736 return (ntohl(UNALIGNED_GET(&addr->s_addr)) & 0xFFFF0000) == 0xA9FE0000; in net_ipv4_is_ll_addr()
748 UNALIGNED_PUT(UNALIGNED_GET(src), dest)
785 return UNALIGNED_GET(&addr1->s_addr) == UNALIGNED_GET(&addr2->s_addr); in net_ipv4_addr_cmp()
841 return UNALIGNED_GET(&addr->s6_addr16[0]) == htons(0xFE80); in net_ipv6_is_ll_addr()
[all …]
/Zephyr-Core-3.6.0/subsys/net/
Dbuf_simple.c185 val = UNALIGNED_GET((uint16_t *)ptr); in net_buf_simple_remove_le16()
196 val = UNALIGNED_GET((uint16_t *)ptr); in net_buf_simple_remove_be16()
209 val = UNALIGNED_GET((struct uint24 *)ptr); in net_buf_simple_remove_le24()
222 val = UNALIGNED_GET((struct uint24 *)ptr); in net_buf_simple_remove_be24()
233 val = UNALIGNED_GET((uint32_t *)ptr); in net_buf_simple_remove_le32()
244 val = UNALIGNED_GET((uint32_t *)ptr); in net_buf_simple_remove_be32()
257 val = UNALIGNED_GET((struct uint48 *)ptr); in net_buf_simple_remove_le48()
270 val = UNALIGNED_GET((struct uint48 *)ptr); in net_buf_simple_remove_be48()
281 val = UNALIGNED_GET((uint64_t *)ptr); in net_buf_simple_remove_le64()
292 val = UNALIGNED_GET((uint64_t *)ptr); in net_buf_simple_remove_be64()
[all …]
/Zephyr-Core-3.6.0/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)
345 if (UNALIGNED_GET(_fl) && (_cond) && \
346 (UNALIGNED_GET(_fl) _op(_mask))) { \
347 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 …]
Dutils.c179 if (UNALIGNED_GET(&w[j]) != 0) { in z_impl_net_addr_ntop()
255 value = (uint32_t)sys_be16_to_cpu(UNALIGNED_GET(&w[i])); in z_impl_net_addr_ntop()
/Zephyr-Core-3.6.0/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 = ntohl(UNALIGNED_GET(&stat->total_len2)); in zperf_upload_decode_stat()
42 results->time_in_us = ntohl(UNALIGNED_GET(&stat->stop_usec)) + in zperf_upload_decode_stat()
43 ntohl(UNALIGNED_GET(&stat->stop_sec)) * USEC_PER_SEC; in zperf_upload_decode_stat()
44 results->jitter_in_us = ntohl(UNALIGNED_GET(&stat->jitter2)) + in zperf_upload_decode_stat()
45 ntohl(UNALIGNED_GET(&stat->jitter1)) * USEC_PER_SEC; in zperf_upload_decode_stat()
/Zephyr-Core-3.6.0/drivers/spi/
Dspi_xlnx_axi_quadspi.c266 dtr = UNALIGNED_GET((uint8_t *)(ctx->tx_buf)); in xlnx_quadspi_start_tx()
269 dtr = UNALIGNED_GET((uint16_t *)(ctx->tx_buf)); in xlnx_quadspi_start_tx()
272 dtr = UNALIGNED_GET((uint32_t *)(ctx->tx_buf)); in xlnx_quadspi_start_tx()
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_npcx_spip.c149 *tx_frame = UNALIGNED_GET((uint8_t *)(data->ctx.tx_buf)); in spi_npcx_spip_process_tx_buf()
151 *tx_frame = UNALIGNED_GET((uint16_t *)(data->ctx.tx_buf)); in spi_npcx_spip_process_tx_buf()
Dspi_pw.c428 data = UNALIGNED_GET((uint8_t *) in spi_pw_tx_data()
432 data = UNALIGNED_GET((uint16_t *) in spi_pw_tx_data()
436 data = UNALIGNED_GET((uint32_t *) in spi_pw_tx_data()
Dspi_ll_stm32.c283 tx_frame = UNALIGNED_GET((uint8_t *)(data->ctx.tx_buf)); in spi_stm32_send_next_frame()
289 tx_frame = UNALIGNED_GET((uint16_t *)(data->ctx.tx_buf)); in spi_stm32_send_next_frame()
380 tx_frame = UNALIGNED_GET((uint8_t *)(data->ctx.tx_buf)); in spi_stm32_shift_s()
384 tx_frame = UNALIGNED_GET((uint16_t *)(data->ctx.tx_buf)); in spi_stm32_shift_s()
Dspi_numaker.c174 : UNALIGNED_GET((uint8_t *)(data->ctx.tx_buf))); in spi_numaker_txrx()
Dspi_gd32.c206 tx_frame = UNALIGNED_GET((uint8_t *)(data->ctx.tx_buf)); in spi_gd32_frame_exchange()
214 tx_frame = UNALIGNED_GET((uint8_t *)(data->ctx.tx_buf)); in spi_gd32_frame_exchange()
Dspi_gecko.c199 tx_frame = UNALIGNED_GET((uint8_t *)(data->ctx.tx_buf)); in spi_gecko_next_tx()
/Zephyr-Core-3.6.0/drivers/flash/
Dflash_stm32g0x.c189 UNALIGNED_GET((const uint64_t *) data + (i >> 3))); in flash_stm32_write_range()
Dflash_ambiq.c103 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.c239 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()
Dsoc_flash_nrf.c477 UNALIGNED_GET((uint32_t *)w_ctx->data_addr)); in write_op()
Dflash_sam0.c178 *dst = UNALIGNED_GET((uint32_t *)src); in flash_sam0_write_page()
/Zephyr-Core-3.6.0/samples/drivers/can/counter/src/
Dmain.c89 sys_be16_to_cpu(UNALIGNED_GET((uint16_t *)&frame.data))); in rx_thread()
/Zephyr-Core-3.6.0/subsys/net/lib/sockets/
Dsockets_can.c390 (UNALIGNED_GET(&sfilter->can_id) & in is_already_attached()
391 UNALIGNED_GET(&sfilter->can_mask)))) { in is_already_attached()
/Zephyr-Core-3.6.0/include/zephyr/toolchain/
Dgcc.h132 #define UNALIGNED_GET(g) \ macro

12