Home
last modified time | relevance | path

Searched refs:saddr (Results 1 – 7 of 7) sorted by relevance

/Zephyr-Core-3.4.0/tests/net/socket/getaddrinfo/src/
Dmain.c283 struct sockaddr_in *saddr; in ZTEST() local
319 saddr = (struct sockaddr_in *)res->ai_addr; in ZTEST()
320 zassert_equal(saddr->sin_family, AF_INET, ""); in ZTEST()
321 zassert_equal(saddr->sin_port, htons(65534), ""); in ZTEST()
322 zassert_equal(saddr->sin_addr.s4_addr[0], 1, ""); in ZTEST()
323 zassert_equal(saddr->sin_addr.s4_addr[1], 2, ""); in ZTEST()
324 zassert_equal(saddr->sin_addr.s4_addr[2], 3, ""); in ZTEST()
325 zassert_equal(saddr->sin_addr.s4_addr[3], 255, ""); in ZTEST()
332 struct sockaddr_in6 *saddr; in ZTEST() local
350 saddr = (struct sockaddr_in6 *)res->ai_addr; in ZTEST()
[all …]
/Zephyr-Core-3.4.0/tests/net/socket/getnameinfo/src/
Dmain.c17 struct sockaddr_in saddr; in ZTEST_USER() local
22 memset(&saddr, 0, sizeof(saddr)); in ZTEST_USER()
23 saddr.sin_family = AF_INET; in ZTEST_USER()
25 ret = getnameinfo((struct sockaddr *)&saddr, sizeof(saddr), in ZTEST_USER()
33 saddr.sin_port = htons(1234); in ZTEST_USER()
34 saddr.sin_addr.s_addr = htonl(0x7f000001); in ZTEST_USER()
36 ret = getnameinfo((struct sockaddr *)&saddr, sizeof(saddr), in ZTEST_USER()
47 struct sockaddr_in6 saddr; in ZTEST_USER() local
52 memset(&saddr, 0, sizeof(saddr)); in ZTEST_USER()
53 saddr.sin6_family = AF_INET6; in ZTEST_USER()
[all …]
/Zephyr-Core-3.4.0/scripts/coredump/coredump_parser/
Dlog_parser.py102 saddr, eaddr = struct.unpack(ptr_fmt, data)
104 size = eaddr - saddr
108 mem = {"start": saddr, "end": eaddr, "data": data}
112 (saddr, eaddr, size))
/Zephyr-Core-3.4.0/drivers/i2c/
Di2c_ll_stm32_v1.c231 uint16_t saddr = data->slave_address; in handle_sb() local
235 slave = (((saddr & 0x0300) >> 7) & 0xFF); in handle_sb()
248 slave = (saddr << 1) & 0xFF; in handle_sb()
617 uint8_t *next_msg_flags, uint16_t saddr) in stm32_i2c_msg_write() argument
621 msg_init(dev, msg, next_msg_flags, saddr, I2C_REQUEST_WRITE); in stm32_i2c_msg_write()
636 uint8_t *next_msg_flags, uint16_t saddr) in stm32_i2c_msg_read() argument
642 msg_init(dev, msg, next_msg_flags, saddr, I2C_REQUEST_READ); in stm32_i2c_msg_read()
710 uint8_t *next_msg_flags, uint16_t saddr) in stm32_i2c_msg_write() argument
720 msg_init(dev, msg, next_msg_flags, saddr, I2C_REQUEST_WRITE); in stm32_i2c_msg_write()
733 uint8_t slave = (((saddr & 0x0300) >> 7) & 0xFF); in stm32_i2c_msg_write()
[all …]
/Zephyr-Core-3.4.0/samples/drivers/espi/src/
Dmain.c691 uint32_t n, saddr, progsz, chunksz; in espi_saf_test1() local
758 saddr = spi_addr; in espi_saf_test1()
762 LOG_INF("%s: Program 4KB sector at 0x%X", __func__, saddr); in espi_saf_test1()
765 rc = saf_page_prog(saddr, (const uint8_t *)src, in espi_saf_test1()
769 saddr); in espi_saf_test1()
772 saddr += chunksz; in espi_saf_test1()
/Zephyr-Core-3.4.0/subsys/net/ip/
Dtcp.c1628 static uint32_t tcpv6_init_isn(struct in6_addr *saddr, in tcpv6_init_isn() argument
1635 struct in6_addr saddr; in tcpv6_init_isn() member
1640 .saddr = *(struct in6_addr *)saddr, in tcpv6_init_isn()
1663 static uint32_t tcpv4_init_isn(struct in_addr *saddr, in tcpv4_init_isn() argument
1670 struct in_addr saddr; in tcpv4_init_isn() member
1675 .saddr = *(struct in_addr *)saddr, in tcpv4_init_isn()
1698 static uint32_t tcp_init_isn(struct sockaddr *saddr, struct sockaddr *daddr) in tcp_init_isn() argument
1702 saddr->sa_family == AF_INET6) { in tcp_init_isn()
1703 return tcpv6_init_isn(&net_sin6(saddr)->sin6_addr, in tcp_init_isn()
1705 net_sin6(saddr)->sin6_port, in tcp_init_isn()
[all …]
/Zephyr-Core-3.4.0/tests/net/socket/tcp/src/
Dmain.c1822 struct sockaddr_in saddr; in ZTEST() local
1825 prepare_sock_tcp_v4(MY_IPV4_ADDR, ANY_PORT, &sock, &saddr); in ZTEST()