Home
last modified time | relevance | path

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

/Zephyr-latest/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 = zsock_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 = zsock_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-latest/tests/net/socket/getaddrinfo/src/
Dmain.c287 struct sockaddr_in *saddr; in ZTEST() local
323 saddr = (struct sockaddr_in *)res->ai_addr; in ZTEST()
324 zassert_equal(saddr->sin_family, AF_INET, ""); in ZTEST()
325 zassert_equal(saddr->sin_port, htons(65534), ""); in ZTEST()
326 zassert_equal(saddr->sin_addr.s4_addr[0], 1, ""); in ZTEST()
327 zassert_equal(saddr->sin_addr.s4_addr[1], 2, ""); in ZTEST()
328 zassert_equal(saddr->sin_addr.s4_addr[2], 3, ""); in ZTEST()
329 zassert_equal(saddr->sin_addr.s4_addr[3], 255, ""); in ZTEST()
336 struct sockaddr_in6 *saddr; in ZTEST() local
354 saddr = (struct sockaddr_in6 *)res->ai_addr; in ZTEST()
[all …]
/Zephyr-latest/scripts/coredump/coredump_parser/
Dlog_parser.py120 saddr, eaddr = struct.unpack(ptr_fmt, data)
122 size = eaddr - saddr
126 mem = {"start": saddr, "end": eaddr, "data": data}
130 (saddr, eaddr, size))
/Zephyr-latest/drivers/i2c/
Di2c_ll_stm32_v1.c237 uint16_t saddr = data->slave_address; in handle_sb() local
241 slave = (((saddr & 0x0300) >> 7) & 0xFF); in handle_sb()
254 slave = (saddr << 1) & 0xFF; in handle_sb()
643 uint8_t *next_msg_flags, uint16_t saddr) in stm32_i2c_msg_write() argument
647 msg_init(dev, msg, next_msg_flags, saddr, I2C_REQUEST_WRITE); in stm32_i2c_msg_write()
662 uint8_t *next_msg_flags, uint16_t saddr) in stm32_i2c_msg_read() argument
668 msg_init(dev, msg, next_msg_flags, saddr, I2C_REQUEST_READ); in stm32_i2c_msg_read()
736 uint8_t *next_msg_flags, uint16_t saddr) in stm32_i2c_msg_write() argument
746 msg_init(dev, msg, next_msg_flags, saddr, I2C_REQUEST_WRITE); in stm32_i2c_msg_write()
759 uint8_t slave = (((saddr & 0x0300) >> 7) & 0xFF); in stm32_i2c_msg_write()
[all …]
/Zephyr-latest/soc/sensry/ganymed/sy1xx/common/
Dudma.c164 int32_t sy1xx_udma_start(uint32_t base, uint32_t channel, uint32_t saddr, uint32_t size, in sy1xx_udma_start() argument
169 SY1XX_UDMA_WRITE_REG(base, SY1XX_UDMA_SADDR_REG + channel_offset, saddr); in sy1xx_udma_start()
Dudma.h95 int32_t sy1xx_udma_start(uint32_t base, uint32_t channel, uint32_t saddr, uint32_t size,
/Zephyr-latest/arch/xtensa/include/
Dxtensa_mpu_priv.h113 #define XTENSA_MPU_ENTRY(saddr, en, rights, memtype) \ argument
118 .as.p.start_addr = (saddr >> XTENSA_MPU_ENTRY_START_ADDR_SHIFT), \
/Zephyr-latest/samples/drivers/espi/src/
Dmain.c658 uint32_t n, saddr, progsz, chunksz; in espi_saf_test1() local
725 saddr = spi_addr; in espi_saf_test1()
729 LOG_INF("%s: Program 4KB sector at 0x%X", __func__, saddr); in espi_saf_test1()
732 rc = saf_page_prog(saddr, (const uint8_t *)src, (int)chunksz); in espi_saf_test1()
734 LOG_INF("saf_page_prog error=%d at 0x%X", rc, saddr); in espi_saf_test1()
737 saddr += chunksz; in espi_saf_test1()
/Zephyr-latest/subsys/net/ip/
Dtcp.c2289 static uint32_t tcpv6_init_isn(struct in6_addr *saddr, in tcpv6_init_isn() argument
2296 struct in6_addr saddr; in tcpv6_init_isn() member
2301 .saddr = *(struct in6_addr *)saddr, in tcpv6_init_isn()
2324 static uint32_t tcpv4_init_isn(struct in_addr *saddr, in tcpv4_init_isn() argument
2331 struct in_addr saddr; in tcpv4_init_isn() member
2336 .saddr = *(struct in_addr *)saddr, in tcpv4_init_isn()
2367 static uint32_t tcp_init_isn(struct sockaddr *saddr, struct sockaddr *daddr) in tcp_init_isn() argument
2371 saddr->sa_family == AF_INET6) { in tcp_init_isn()
2372 return tcpv6_init_isn(&net_sin6(saddr)->sin6_addr, in tcp_init_isn()
2374 net_sin6(saddr)->sin6_port, in tcp_init_isn()
[all …]
/Zephyr-latest/tests/net/socket/tcp/src/
Dmain.c1955 struct sockaddr_in saddr; in ZTEST() local
1958 prepare_sock_tcp_v4(MY_IPV4_ADDR, ANY_PORT, &sock, &saddr); in ZTEST()