| /Zephyr-latest/arch/riscv/core/ |
| D | elf.c | 280 UNALIGNED_PUT((uint32_t)jump_target, loc32); in arch_elf_relocate() 284 UNALIGNED_PUT(sym_base_addr + rel->r_addend, loc64); /* S + A */ in arch_elf_relocate() 288 UNALIGNED_PUT(load_bias + rel->r_addend, loc_word); /* B + A */ in arch_elf_relocate() 292 UNALIGNED_PUT(sym_base_addr, loc_word); /* S */ in arch_elf_relocate() 300 UNALIGNED_PUT(modified_operand, loc32); in arch_elf_relocate() 309 UNALIGNED_PUT(modified_operand, loc32); in arch_elf_relocate() 329 UNALIGNED_PUT(modified_operand, loc32); in arch_elf_relocate() 341 UNALIGNED_PUT(modified_operand, loc32); in arch_elf_relocate() 355 UNALIGNED_PUT(modified_operand, loc32); in arch_elf_relocate() 367 UNALIGNED_PUT(modified_operand, loc32); in arch_elf_relocate() [all …]
|
| /Zephyr-latest/arch/arc/core/ |
| D | elf.c | 69 UNALIGNED_PUT(sym_base_addr, (uint32_t *)loc); in arch_elf_relocate() 89 UNALIGNED_PUT(insn, (uint32_t *)loc); in arch_elf_relocate() 92 UNALIGNED_PUT(ME(sym_base_addr), (uint32_t *)loc); in arch_elf_relocate()
|
| /Zephyr-latest/include/zephyr/net/ |
| D | net_ip.h | 889 UNALIGNED_PUT(UNALIGNED_GET(src), dest) 1369 UNALIGNED_PUT(0, &dst->s6_addr16[1]); in net_ipv6_addr_create_solicited_node() 1370 UNALIGNED_PUT(0, &dst->s6_addr16[2]); in net_ipv6_addr_create_solicited_node() 1371 UNALIGNED_PUT(0, &dst->s6_addr16[3]); in net_ipv6_addr_create_solicited_node() 1372 UNALIGNED_PUT(0, &dst->s6_addr16[4]); in net_ipv6_addr_create_solicited_node() 1377 UNALIGNED_PUT(UNALIGNED_GET(&src->s6_addr16[7]), &dst->s6_addr16[7]); in net_ipv6_addr_create_solicited_node() 1398 UNALIGNED_PUT(htons(addr0), &addr->s6_addr16[0]); in net_ipv6_addr_create() 1399 UNALIGNED_PUT(htons(addr1), &addr->s6_addr16[1]); in net_ipv6_addr_create() 1400 UNALIGNED_PUT(htons(addr2), &addr->s6_addr16[2]); in net_ipv6_addr_create() 1401 UNALIGNED_PUT(htons(addr3), &addr->s6_addr16[3]); in net_ipv6_addr_create() [all …]
|
| /Zephyr-latest/subsys/net/lib/dns/ |
| D | llmnr_responder.c | 176 UNALIGNED_PUT(htons(dns_id), (uint16_t *)(buf)); in setup_dns_hdr() 179 UNALIGNED_PUT(htons(flags), (uint16_t *)(buf+offset)); in setup_dns_hdr() 182 UNALIGNED_PUT(htons(1), (uint16_t *)(buf + offset)); in setup_dns_hdr() 185 UNALIGNED_PUT(htons(answers), (uint16_t *)(buf + offset)); in setup_dns_hdr() 188 UNALIGNED_PUT(0, (uint16_t *)(buf + offset)); in setup_dns_hdr() 191 UNALIGNED_PUT(0, (uint16_t *)(buf + offset)); in setup_dns_hdr() 215 UNALIGNED_PUT(htons(qtype), (uint16_t *)(query->data+offset)); in add_question() 218 UNALIGNED_PUT(htons(DNS_CLASS_IN), (uint16_t *)(query->data+offset)); in add_question() 230 UNALIGNED_PUT(htonl(ttl), query->data + offset); in add_answer() 233 UNALIGNED_PUT(htons(addr_len), query->data + offset); in add_answer()
|
| D | dns_pack.c | 241 UNALIGNED_PUT(htons(id), (uint16_t *)(buf)); in dns_msg_pack_query_header() 258 UNALIGNED_PUT(htons(1), (uint16_t *)(buf + offset)); in dns_msg_pack_query_header() 262 UNALIGNED_PUT(0, (uint32_t *)(buf + offset)); in dns_msg_pack_query_header() 266 UNALIGNED_PUT(0, (uint16_t *)(buf + offset)); in dns_msg_pack_query_header() 295 UNALIGNED_PUT(htons(qtype), (uint16_t *)(buf + offset + 0)); in dns_msg_pack_query() 299 UNALIGNED_PUT(htons(DNS_CLASS_IN), (uint16_t *)(buf + offset)); in dns_msg_pack_query()
|
| D | mdns_responder.c | 260 UNALIGNED_PUT(0, (uint16_t *)(buf)); /* Identifier, RFC 6762 ch 18.1 */ in setup_dns_hdr() 263 UNALIGNED_PUT(htons(flags), (uint16_t *)(buf+offset)); in setup_dns_hdr() 266 UNALIGNED_PUT(0, (uint16_t *)(buf + offset)); in setup_dns_hdr() 269 UNALIGNED_PUT(htons(answers), (uint16_t *)(buf + offset)); in setup_dns_hdr() 272 UNALIGNED_PUT(0, (uint16_t *)(buf + offset)); in setup_dns_hdr() 275 UNALIGNED_PUT(0, (uint16_t *)(buf + offset)); in setup_dns_hdr() 303 UNALIGNED_PUT(htons(qtype), (uint16_t *)(query->data+offset)); in add_answer() 307 UNALIGNED_PUT(htons(DNS_CLASS_IN | BIT(15)), in add_answer() 312 UNALIGNED_PUT(htonl(ttl), query->data + offset); in add_answer() 315 UNALIGNED_PUT(htons(addr_len), query->data + offset); in add_answer() [all …]
|
| /Zephyr-latest/subsys/net/ip/ |
| D | ipv6.c | 971 UNALIGNED_PUT(htonl(0xfe800000), &tmp_prefix.s6_addr32[0]); in net_ipv6_addr_generate_iid() 973 UNALIGNED_PUT(UNALIGNED_GET(&prefix->s6_addr32[0]), in net_ipv6_addr_generate_iid() 975 UNALIGNED_PUT(UNALIGNED_GET(&prefix->s6_addr32[1]), in net_ipv6_addr_generate_iid() 988 UNALIGNED_PUT(htonl(0xfe800000), &tmp_addr.s6_addr32[0]); in net_ipv6_addr_generate_iid() 989 UNALIGNED_PUT(0, &tmp_addr.s6_addr32[1]); in net_ipv6_addr_generate_iid() 991 UNALIGNED_PUT(UNALIGNED_GET(&prefix->s6_addr32[0]), &tmp_addr.s6_addr32[0]); in net_ipv6_addr_generate_iid() 992 UNALIGNED_PUT(UNALIGNED_GET(&prefix->s6_addr32[1]), &tmp_addr.s6_addr32[1]); in net_ipv6_addr_generate_iid() 1002 UNALIGNED_PUT(0, &tmp_addr.s6_addr32[2]); in net_ipv6_addr_generate_iid()
|
| D | tcp.c | 1354 UNALIGNED_PUT(conn->src.sin.sin_port, &th->th_sport); in tcp_header_add() 1355 UNALIGNED_PUT(conn->dst.sin.sin_port, &th->th_dport); in tcp_header_add() 1362 UNALIGNED_PUT(flags, &th->th_flags); in tcp_header_add() 1363 UNALIGNED_PUT(htons(conn->recv_win), &th->th_win); in tcp_header_add() 1364 UNALIGNED_PUT(htonl(seq), &th->th_seq); in tcp_header_add() 1367 UNALIGNED_PUT(htonl(conn->ack), &th->th_ack); in tcp_header_add() 1435 UNALIGNED_PUT(htonl(recv_mss), (uint32_t *)mss); in net_tcp_set_mss_opt() 1507 UNALIGNED_PUT(th_pkt->th_dport, &th_rst->th_sport); in net_tcp_reply_rst() 1508 UNALIGNED_PUT(th_pkt->th_sport, &th_rst->th_dport); in net_tcp_reply_rst() 1512 UNALIGNED_PUT(RST, &th_rst->th_flags); in net_tcp_reply_rst() [all …]
|
| D | tcp_private.h | 350 UNALIGNED_PUT(UNALIGNED_GET(_fl) & ~(_mask), _fl); \
|
| /Zephyr-latest/subsys/random/ |
| D | random_xoshiro128.c | 107 UNALIGNED_PUT(xoshiro128_next(), unaligned++); in z_impl_sys_rand_get()
|
| /Zephyr-latest/drivers/spi/ |
| D | spi_mcux_ecspi.c | 125 UNALIGNED_PUT(data->rx_data, (uint8_t *)data->ctx.rx_buf); in spi_mcux_master_transfer_callback() 128 UNALIGNED_PUT(data->rx_data, (uint16_t *)data->ctx.rx_buf); in spi_mcux_master_transfer_callback() 131 UNALIGNED_PUT(data->rx_data, (uint32_t *)data->ctx.rx_buf); in spi_mcux_master_transfer_callback()
|
| D | spi_b_renesas_ra8.c | 205 UNALIGNED_PUT(rx, (uint32_t *)data->ctx.rx_buf); in ra_spi_b_transceive_slave() 207 UNALIGNED_PUT(rx, (uint16_t *)data->ctx.rx_buf); in ra_spi_b_transceive_slave() 209 UNALIGNED_PUT(rx, (uint8_t *)data->ctx.rx_buf); in ra_spi_b_transceive_slave() 253 UNALIGNED_PUT(rx, (uint32_t *)data->ctx.rx_buf); in ra_spi_b_transceive_master() 255 UNALIGNED_PUT(rx, (uint16_t *)data->ctx.rx_buf); in ra_spi_b_transceive_master() 257 UNALIGNED_PUT(rx, (uint8_t *)data->ctx.rx_buf); in ra_spi_b_transceive_master()
|
| D | spi_renesas_ra.c | 228 UNALIGNED_PUT(rx, (uint32_t *)data->ctx.rx_buf); in ra_spi_transceive_slave() 230 UNALIGNED_PUT(rx, (uint16_t *)data->ctx.rx_buf); in ra_spi_transceive_slave() 232 UNALIGNED_PUT(rx, (uint8_t *)data->ctx.rx_buf); in ra_spi_transceive_slave() 290 UNALIGNED_PUT(rx, (uint32_t *)data->ctx.rx_buf); in ra_spi_transceive_master() 292 UNALIGNED_PUT(rx, (uint16_t *)data->ctx.rx_buf); in ra_spi_transceive_master() 294 UNALIGNED_PUT(rx, (uint8_t *)data->ctx.rx_buf); in ra_spi_transceive_master()
|
| D | spi_mchp_mss_qspi.c | 198 UNALIGNED_PUT(temp, (uint32_t *)ctx->rx_buf); in mss_qspi_receive_x32() 220 UNALIGNED_PUT(rdata, (uint8_t *)ctx->rx_buf); in mss_qspi_receive_x8() 339 UNALIGNED_PUT(rdata, (uint8_t *)ctx->rx_buf); in mss_qspi_receive()
|
| D | spi_xlnx_axi_quadspi.c | 354 UNALIGNED_PUT(drr, (uint8_t *)ctx->rx_buf); in xlnx_quadspi_read_fifo() 357 UNALIGNED_PUT(drr, (uint16_t *)ctx->rx_buf); in xlnx_quadspi_read_fifo() 360 UNALIGNED_PUT(drr, (uint32_t *)ctx->rx_buf); in xlnx_quadspi_read_fifo()
|
| D | spi_npcx_spip.c | 166 UNALIGNED_PUT(rx_frame, (uint8_t *)data->ctx.rx_buf); in spi_npcx_spip_process_rx_buf() 168 UNALIGNED_PUT(rx_frame, (uint16_t *)data->ctx.rx_buf); in spi_npcx_spip_process_rx_buf()
|
| D | spi_dw.c | 160 UNALIGNED_PUT(data, (uint8_t *)spi->ctx.rx_buf); in pull_data() 163 UNALIGNED_PUT(data, (uint16_t *)spi->ctx.rx_buf); in pull_data() 166 UNALIGNED_PUT(data, (uint32_t *)spi->ctx.rx_buf); in pull_data()
|
| D | spi_pw.c | 475 UNALIGNED_PUT(data, in spi_pw_rx_data() 479 UNALIGNED_PUT(data, in spi_pw_rx_data() 483 UNALIGNED_PUT(data, in spi_pw_rx_data()
|
| D | spi_ll_stm32.c | 343 UNALIGNED_PUT(rx_frame, (uint8_t *)data->ctx.rx_buf); in spi_stm32_read_next_frame() 349 UNALIGNED_PUT(rx_frame, (uint16_t *)data->ctx.rx_buf); in spi_stm32_read_next_frame() 446 UNALIGNED_PUT(rx_frame, (uint8_t *)data->ctx.rx_buf); in spi_stm32_shift_s() 450 UNALIGNED_PUT(rx_frame, (uint16_t *)data->ctx.rx_buf); in spi_stm32_shift_s()
|
| D | spi_numaker.c | 207 UNALIGNED_PUT(rx_frame, (uint8_t *)data->ctx.rx_buf); in spi_numaker_txrx()
|
| D | spi_gd32.c | 230 UNALIGNED_PUT(rx_frame, (uint8_t *)data->ctx.rx_buf); in spi_gd32_frame_exchange() 237 UNALIGNED_PUT(rx_frame, (uint16_t *)data->ctx.rx_buf); in spi_gd32_frame_exchange()
|
| /Zephyr-latest/subsys/net/l2/ppp/ |
| D | ipv6cp.c | 213 UNALIGNED_PUT(0, &addr->s6_addr16[1]); in setup_iid_address() 214 UNALIGNED_PUT(0, &addr->s6_addr32[1]); in setup_iid_address()
|
| /Zephyr-latest/include/zephyr/toolchain/ |
| D | gcc.h | 156 #define UNALIGNED_PUT(v, p) \ macro 167 #define UNALIGNED_PUT(v, p) \ macro
|
| /Zephyr-latest/samples/drivers/can/counter/src/ |
| D | main.c | 292 UNALIGNED_PUT(sys_cpu_to_be16(counter), in main()
|
| /Zephyr-latest/include/zephyr/toolchain/iar/ |
| D | iccarm.h | 99 #define UNALIGNED_PUT(v, p) \ macro
|