/Zephyr-Core-2.7.6/tests/net/socket/getaddrinfo/src/ |
D | main.c | 281 struct sockaddr_in *saddr; in test_getaddrinfo_num_ipv4() local 317 saddr = (struct sockaddr_in *)res->ai_addr; in test_getaddrinfo_num_ipv4() 318 zassert_equal(saddr->sin_family, AF_INET, ""); in test_getaddrinfo_num_ipv4() 319 zassert_equal(saddr->sin_port, htons(65534), ""); in test_getaddrinfo_num_ipv4() 320 zassert_equal(saddr->sin_addr.s4_addr[0], 1, ""); in test_getaddrinfo_num_ipv4() 321 zassert_equal(saddr->sin_addr.s4_addr[1], 2, ""); in test_getaddrinfo_num_ipv4() 322 zassert_equal(saddr->sin_addr.s4_addr[2], 3, ""); in test_getaddrinfo_num_ipv4() 323 zassert_equal(saddr->sin_addr.s4_addr[3], 255, ""); in test_getaddrinfo_num_ipv4() 330 struct sockaddr_in6 *saddr; in test_getaddrinfo_num_ipv6() local 348 saddr = (struct sockaddr_in6 *)res->ai_addr; in test_getaddrinfo_num_ipv6() [all …]
|
/Zephyr-Core-2.7.6/tests/net/socket/getnameinfo/src/ |
D | main.c | 17 struct sockaddr_in saddr; in test_getnameinfo_ipv4() local 22 memset(&saddr, 0, sizeof(saddr)); in test_getnameinfo_ipv4() 23 saddr.sin_family = AF_INET; in test_getnameinfo_ipv4() 25 ret = getnameinfo((struct sockaddr *)&saddr, sizeof(saddr), in test_getnameinfo_ipv4() 33 saddr.sin_port = htons(1234); in test_getnameinfo_ipv4() 34 saddr.sin_addr.s_addr = htonl(0x7f000001); in test_getnameinfo_ipv4() 36 ret = getnameinfo((struct sockaddr *)&saddr, sizeof(saddr), in test_getnameinfo_ipv4() 47 struct sockaddr_in6 saddr; in test_getnameinfo_ipv6() local 52 memset(&saddr, 0, sizeof(saddr)); in test_getnameinfo_ipv6() 53 saddr.sin6_family = AF_INET6; in test_getnameinfo_ipv6() [all …]
|
/Zephyr-Core-2.7.6/scripts/coredump/coredump_parser/ |
D | log_parser.py | 102 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-2.7.6/drivers/i2c/ |
D | i2c_ll_stm32_v1.c | 231 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() 618 uint8_t *next_msg_flags, uint16_t saddr) in stm32_i2c_msg_write() argument 622 msg_init(dev, msg, next_msg_flags, saddr, I2C_REQUEST_WRITE); in stm32_i2c_msg_write() 637 uint8_t *next_msg_flags, uint16_t saddr) in stm32_i2c_msg_read() argument 643 msg_init(dev, msg, next_msg_flags, saddr, I2C_REQUEST_READ); in stm32_i2c_msg_read() 711 uint8_t *next_msg_flags, uint16_t saddr) in stm32_i2c_msg_write() argument 721 msg_init(dev, msg, next_msg_flags, saddr, I2C_REQUEST_WRITE); in stm32_i2c_msg_write() 734 uint8_t slave = (((saddr & 0x0300) >> 7) & 0xFF); in stm32_i2c_msg_write() [all …]
|
/Zephyr-Core-2.7.6/samples/drivers/espi/src/ |
D | main.c | 676 uint32_t n, saddr, progsz, chunksz; in espi_saf_test1() local 743 saddr = spi_addr; in espi_saf_test1() 747 LOG_INF("%s: Program 4KB sector at 0x%X", __func__, saddr); in espi_saf_test1() 750 rc = saf_page_prog(saddr, (const uint8_t *)src, in espi_saf_test1() 754 saddr); in espi_saf_test1() 757 saddr += chunksz; in espi_saf_test1()
|
/Zephyr-Core-2.7.6/subsys/net/ip/ |
D | tcp2.c | 1379 static uint32_t tcpv6_init_isn(struct in6_addr *saddr, in tcpv6_init_isn() argument 1386 struct in6_addr saddr; in tcpv6_init_isn() member 1391 .saddr = *(struct in6_addr *)saddr, in tcpv6_init_isn() 1414 static uint32_t tcpv4_init_isn(struct in_addr *saddr, in tcpv4_init_isn() argument 1421 struct in_addr saddr; in tcpv4_init_isn() member 1426 .saddr = *(struct in_addr *)saddr, in tcpv4_init_isn() 1449 static uint32_t tcp_init_isn(struct sockaddr *saddr, struct sockaddr *daddr) in tcp_init_isn() argument 1453 saddr->sa_family == AF_INET6) { in tcp_init_isn() 1454 return tcpv6_init_isn(&net_sin6(saddr)->sin6_addr, in tcp_init_isn() 1456 net_sin6(saddr)->sin6_port, in tcp_init_isn() [all …]
|
/Zephyr-Core-2.7.6/tests/net/socket/tcp/src/ |
D | main.c | 907 struct sockaddr_in saddr; in test_socket_permission() local 911 &sock, &saddr); in test_socket_permission()
|