Home
last modified time | relevance | path

Searched refs:UNALIGNED_PUT (Results 1 – 25 of 29) sorted by relevance

12

/Zephyr-Core-3.7.0/include/zephyr/net/
Dnet_ip.h833 UNALIGNED_PUT(UNALIGNED_GET(src), dest)
1313 UNALIGNED_PUT(0, &dst->s6_addr16[1]); in net_ipv6_addr_create_solicited_node()
1314 UNALIGNED_PUT(0, &dst->s6_addr16[2]); in net_ipv6_addr_create_solicited_node()
1315 UNALIGNED_PUT(0, &dst->s6_addr16[3]); in net_ipv6_addr_create_solicited_node()
1316 UNALIGNED_PUT(0, &dst->s6_addr16[4]); in net_ipv6_addr_create_solicited_node()
1321 UNALIGNED_PUT(UNALIGNED_GET(&src->s6_addr16[7]), &dst->s6_addr16[7]); in net_ipv6_addr_create_solicited_node()
1342 UNALIGNED_PUT(htons(addr0), &addr->s6_addr16[0]); in net_ipv6_addr_create()
1343 UNALIGNED_PUT(htons(addr1), &addr->s6_addr16[1]); in net_ipv6_addr_create()
1344 UNALIGNED_PUT(htons(addr2), &addr->s6_addr16[2]); in net_ipv6_addr_create()
1345 UNALIGNED_PUT(htons(addr3), &addr->s6_addr16[3]); in net_ipv6_addr_create()
[all …]
/Zephyr-Core-3.7.0/subsys/net/lib/dns/
Dllmnr_responder.c174 UNALIGNED_PUT(htons(dns_id), (uint16_t *)(buf)); in setup_dns_hdr()
177 UNALIGNED_PUT(htons(flags), (uint16_t *)(buf+offset)); in setup_dns_hdr()
180 UNALIGNED_PUT(htons(1), (uint16_t *)(buf + offset)); in setup_dns_hdr()
183 UNALIGNED_PUT(htons(answers), (uint16_t *)(buf + offset)); in setup_dns_hdr()
186 UNALIGNED_PUT(0, (uint16_t *)(buf + offset)); in setup_dns_hdr()
189 UNALIGNED_PUT(0, (uint16_t *)(buf + offset)); in setup_dns_hdr()
213 UNALIGNED_PUT(htons(qtype), (uint16_t *)(query->data+offset)); in add_question()
216 UNALIGNED_PUT(htons(DNS_CLASS_IN), (uint16_t *)(query->data+offset)); in add_question()
228 UNALIGNED_PUT(htonl(ttl), query->data + offset); in add_answer()
231 UNALIGNED_PUT(htons(addr_len), query->data + offset); in add_answer()
Ddns_pack.c241 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()
Dmdns_responder.c170 UNALIGNED_PUT(0, (uint16_t *)(buf)); /* Identifier, RFC 6762 ch 18.1 */ in setup_dns_hdr()
173 UNALIGNED_PUT(htons(flags), (uint16_t *)(buf+offset)); in setup_dns_hdr()
176 UNALIGNED_PUT(0, (uint16_t *)(buf + offset)); in setup_dns_hdr()
179 UNALIGNED_PUT(htons(answers), (uint16_t *)(buf + offset)); in setup_dns_hdr()
182 UNALIGNED_PUT(0, (uint16_t *)(buf + offset)); in setup_dns_hdr()
185 UNALIGNED_PUT(0, (uint16_t *)(buf + offset)); in setup_dns_hdr()
213 UNALIGNED_PUT(htons(qtype), (uint16_t *)(query->data+offset)); in add_answer()
217 UNALIGNED_PUT(htons(DNS_CLASS_IN | BIT(15)), in add_answer()
222 UNALIGNED_PUT(htonl(ttl), query->data + offset); in add_answer()
225 UNALIGNED_PUT(htons(addr_len), query->data + offset); in add_answer()
/Zephyr-Core-3.7.0/subsys/random/
Drandom_xoshiro128.c107 UNALIGNED_PUT(xoshiro128_next(), unaligned++); in z_impl_sys_rand_get()
/Zephyr-Core-3.7.0/drivers/spi/
Dspi_mcux_ecspi.c123 UNALIGNED_PUT(data->rx_data, (uint8_t *)data->ctx.rx_buf); in spi_mcux_master_transfer_callback()
126 UNALIGNED_PUT(data->rx_data, (uint16_t *)data->ctx.rx_buf); in spi_mcux_master_transfer_callback()
129 UNALIGNED_PUT(data->rx_data, (uint32_t *)data->ctx.rx_buf); in spi_mcux_master_transfer_callback()
Dspi_xlnx_axi_quadspi.c353 UNALIGNED_PUT(drr, (uint8_t *)ctx->rx_buf); in xlnx_quadspi_read_fifo()
356 UNALIGNED_PUT(drr, (uint16_t *)ctx->rx_buf); in xlnx_quadspi_read_fifo()
359 UNALIGNED_PUT(drr, (uint32_t *)ctx->rx_buf); in xlnx_quadspi_read_fifo()
Dspi_mchp_mss_qspi.c197 UNALIGNED_PUT(temp, (uint32_t *)ctx->rx_buf); in mss_qspi_receive_x32()
219 UNALIGNED_PUT(rdata, (uint8_t *)ctx->rx_buf); in mss_qspi_receive_x8()
338 UNALIGNED_PUT(rdata, (uint8_t *)ctx->rx_buf); in mss_qspi_receive()
Dspi_npcx_spip.c165 UNALIGNED_PUT(rx_frame, (uint8_t *)data->ctx.rx_buf); in spi_npcx_spip_process_rx_buf()
167 UNALIGNED_PUT(rx_frame, (uint16_t *)data->ctx.rx_buf); in spi_npcx_spip_process_rx_buf()
Dspi_dw.c159 UNALIGNED_PUT(data, (uint8_t *)spi->ctx.rx_buf); in pull_data()
162 UNALIGNED_PUT(data, (uint16_t *)spi->ctx.rx_buf); in pull_data()
165 UNALIGNED_PUT(data, (uint32_t *)spi->ctx.rx_buf); in pull_data()
Dspi_pw.c474 UNALIGNED_PUT(data, in spi_pw_rx_data()
478 UNALIGNED_PUT(data, in spi_pw_rx_data()
482 UNALIGNED_PUT(data, in spi_pw_rx_data()
Dspi_ll_stm32.c330 UNALIGNED_PUT(rx_frame, (uint8_t *)data->ctx.rx_buf); in spi_stm32_read_next_frame()
336 UNALIGNED_PUT(rx_frame, (uint16_t *)data->ctx.rx_buf); in spi_stm32_read_next_frame()
423 UNALIGNED_PUT(rx_frame, (uint8_t *)data->ctx.rx_buf); in spi_stm32_shift_s()
427 UNALIGNED_PUT(rx_frame, (uint16_t *)data->ctx.rx_buf); in spi_stm32_shift_s()
Dspi_numaker.c206 UNALIGNED_PUT(rx_frame, (uint8_t *)data->ctx.rx_buf); in spi_numaker_txrx()
Dspi_gd32.c229 UNALIGNED_PUT(rx_frame, (uint8_t *)data->ctx.rx_buf); in spi_gd32_frame_exchange()
236 UNALIGNED_PUT(rx_frame, (uint16_t *)data->ctx.rx_buf); in spi_gd32_frame_exchange()
Dspi_gecko.c237 UNALIGNED_PUT(rx_frame, (uint8_t *)data->ctx.rx_buf); in spi_gecko_shift_frames()
Dspi_mchp_mss.c204 UNALIGNED_PUT(rx_raw, (uint8_t *)ctx->rx_buf); in mss_spi_readwr_fifo()
/Zephyr-Core-3.7.0/subsys/net/l2/ppp/
Dipv6cp.c213 UNALIGNED_PUT(0, &addr->s6_addr16[1]); in setup_iid_address()
214 UNALIGNED_PUT(0, &addr->s6_addr32[1]); in setup_iid_address()
/Zephyr-Core-3.7.0/include/zephyr/toolchain/
Dgcc.h152 #define UNALIGNED_PUT(v, p) \ macro
163 #define UNALIGNED_PUT(v, p) \ macro
/Zephyr-Core-3.7.0/samples/drivers/can/counter/src/
Dmain.c292 UNALIGNED_PUT(sys_cpu_to_be16(counter), in main()
/Zephyr-Core-3.7.0/subsys/net/ip/
Dtcp.c1360 UNALIGNED_PUT(conn->src.sin.sin_port, &th->th_sport); in tcp_header_add()
1361 UNALIGNED_PUT(conn->dst.sin.sin_port, &th->th_dport); in tcp_header_add()
1368 UNALIGNED_PUT(flags, &th->th_flags); in tcp_header_add()
1369 UNALIGNED_PUT(htons(conn->recv_win), &th->th_win); in tcp_header_add()
1370 UNALIGNED_PUT(htonl(seq), &th->th_seq); in tcp_header_add()
1373 UNALIGNED_PUT(htonl(conn->ack), &th->th_ack); in tcp_header_add()
1441 UNALIGNED_PUT(htonl(recv_mss), (uint32_t *)mss); in net_tcp_set_mss_opt()
1513 UNALIGNED_PUT(th_pkt->th_dport, &th_rst->th_sport); in net_tcp_reply_rst()
1514 UNALIGNED_PUT(th_pkt->th_sport, &th_rst->th_dport); in net_tcp_reply_rst()
1518 UNALIGNED_PUT(RST, &th_rst->th_flags); in net_tcp_reply_rst()
[all …]
Dtcp_private.h349 UNALIGNED_PUT(UNALIGNED_GET(_fl) & ~(_mask), _fl); \
Dutils.c404 UNALIGNED_PUT(htons(strtol(src, NULL, 16)), in z_impl_net_addr_pton()
421 UNALIGNED_PUT(0, &addr->s6_addr16[i]); in z_impl_net_addr_pton()
/Zephyr-Core-3.7.0/subsys/net/lib/http/
Dhttp_server_http2.c237 UNALIGNED_PUT(htons(HTTP2_SETTINGS_HEADER_TABLE_SIZE), in send_settings_frame()
239 UNALIGNED_PUT(0, &setting->value); in send_settings_frame()
242 UNALIGNED_PUT(htons(HTTP2_SETTINGS_MAX_CONCURRENT_STREAMS), in send_settings_frame()
244 UNALIGNED_PUT(htonl(CONFIG_HTTP_SERVER_MAX_STREAMS), in send_settings_frame()
/Zephyr-Core-3.7.0/tests/net/dhcpv6/src/
Dmain.c112 UNALIGNED_PUT(htons(DHCPV6_DUID_TYPE_LL), &serverid->duid.type); in generate_fake_server_duid()
113 UNALIGNED_PUT(htons(DHCPV6_HARDWARE_ETHERNET_TYPE), &duid_ll->hw_type); in generate_fake_server_duid()
/Zephyr-Core-3.7.0/subsys/net/lib/dhcpv6/
Ddhcpv6.c2108 UNALIGNED_PUT(htons(DHCPV6_DUID_TYPE_LL), &clientid->duid.type); in dhcpv6_generate_client_duid()
2109 UNALIGNED_PUT(htons(DHCPV6_HARDWARE_ETHERNET_TYPE), &duid_ll->hw_type); in dhcpv6_generate_client_duid()

12