/Zephyr-Core-3.6.0/subsys/net/lib/dns/ |
D | dns_pack.h | 185 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/ |
D | net_ip.h | 600 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/ |
D | buf_simple.c | 185 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/ |
D | tcp_private.h | 16 #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); \
|
D | 6lo.c | 125 (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 …]
|
D | utils.c | 179 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/ |
D | zperf_udp_uploader.c | 37 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/ |
D | spi_xlnx_axi_quadspi.c | 266 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()
|
D | spi_dw.c | 109 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()
|
D | spi_npcx_spip.c | 149 *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()
|
D | spi_pw.c | 428 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()
|
D | spi_ll_stm32.c | 283 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()
|
D | spi_numaker.c | 174 : UNALIGNED_GET((uint8_t *)(data->ctx.tx_buf))); in spi_numaker_txrx()
|
D | spi_gd32.c | 206 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()
|
D | spi_gecko.c | 199 tx_frame = UNALIGNED_GET((uint8_t *)(data->ctx.tx_buf)); in spi_gecko_next_tx()
|
/Zephyr-Core-3.6.0/drivers/flash/ |
D | flash_stm32g0x.c | 189 UNALIGNED_GET((const uint64_t *) data + (i >> 3))); in flash_stm32_write_range()
|
D | flash_ambiq.c | 103 aligned[j] = UNALIGNED_GET((uint32_t *)src); in flash_ambiq_write()
|
D | flash_stm32wbx.c | 379 UNALIGNED_GET((const uint64_t *) data + (i >> 3))); in flash_stm32_write_range()
|
D | flash_stm32l4x.c | 239 UNALIGNED_GET((const uint64_t *) data + (i >> 3))); in flash_stm32_write_range()
|
D | flash_stm32f4x.c | 224 value = UNALIGNED_GET((flash_prg_t *)data + i); in flash_stm32_write_range()
|
D | soc_flash_nrf.c | 477 UNALIGNED_GET((uint32_t *)w_ctx->data_addr)); in write_op()
|
D | flash_sam0.c | 178 *dst = UNALIGNED_GET((uint32_t *)src); in flash_sam0_write_page()
|
/Zephyr-Core-3.6.0/samples/drivers/can/counter/src/ |
D | main.c | 89 sys_be16_to_cpu(UNALIGNED_GET((uint16_t *)&frame.data))); in rx_thread()
|
/Zephyr-Core-3.6.0/subsys/net/lib/sockets/ |
D | sockets_can.c | 390 (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/ |
D | gcc.h | 132 #define UNALIGNED_GET(g) \ macro
|