/third_party/lwip/src/core/distributed_net/ |
D | distributed_net_core.c | 39 int distributed_net_connect(int sock, const struct sockaddr *addr, socklen_t addr_len) in distributed_net_connect() argument 43 CHECK_PARA(addr_len > 0, EINVAL); in distributed_net_connect() 47 (void)memcpy_s(&addr_in, sizeof(addr_in), addr, MIN(sizeof(addr_in), addr_len)); in distributed_net_connect() 49 return lwip_connect_internal(sock, addr, addr_len); in distributed_net_connect() 62 (void)memcpy_s(&addr_in, sizeof(addr_in), addr, MIN(sizeof(addr_in), addr_len)); in distributed_net_connect() 96 socklen_t addr_len) in distributed_net_sendto() argument 109 return lwip_sendto_internal(sock, buf, buf_len, flags, addr, addr_len); in distributed_net_sendto() 114 if (addr != NULL && addr_len != 0) { in distributed_net_sendto() 115 (void)memcpy_s(&addr_in, sizeof(addr_in), addr, MIN(sizeof(addr_in), addr_len)); in distributed_net_sendto() 124 return lwip_sendto_internal(sock, buf, buf_len, flags, addr, addr_len); in distributed_net_sendto() [all …]
|
/third_party/uboot/u-boot-2020.01/drivers/core/ |
D | regmap.c | 73 static int init_range(ofnode node, struct regmap_range *range, int addr_len, in init_range() argument 97 addr_len, size_len, in init_range() 114 int addr_len, size_len; in regmap_init_mem_index() local 117 addr_len = ofnode_read_simple_addr_cells(ofnode_get_parent(node)); in regmap_init_mem_index() 118 if (addr_len < 0) { in regmap_init_mem_index() 120 ofnode_get_name(node), addr_len); in regmap_init_mem_index() 121 return addr_len; in regmap_init_mem_index() 135 ret = init_range(node, map->ranges, addr_len, size_len, index); in regmap_init_mem_index() 162 int addr_len, size_len, both_len; in regmap_init_mem() local 167 addr_len = ofnode_read_simple_addr_cells(ofnode_get_parent(node)); in regmap_init_mem() [all …]
|
/third_party/lwip/src/netif/ |
D | lowpan6.c | 143 if (dst->addr_len == 2) { in lowpan6_write_iee802154_header() 146 LWIP_ASSERT("invalid dst address length", dst->addr_len == 8); in lowpan6_write_iee802154_header() 149 if (src->addr_len == 2) { in lowpan6_write_iee802154_header() 152 LWIP_ASSERT("invalid src address length", src->addr_len == 8); in lowpan6_write_iee802154_header() 161 i = dst->addr_len; in lowpan6_write_iee802154_header() 167 i = src->addr_len; in lowpan6_write_iee802154_header() 210 dest->addr_len = 8; in lowpan6_parse_iee802154_header() 218 dest->addr_len = 2; in lowpan6_parse_iee802154_header() 236 src->addr_len = 8; in lowpan6_parse_iee802154_header() 244 src->addr_len = 2; in lowpan6_parse_iee802154_header() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/accept/ |
D | accept02.c | 34 static socklen_t addr_len; variable 54 SAFE_BIND(server_sockfd, (struct sockaddr *)server_addr, addr_len); in server_thread() 59 TEST(accept(server_sockfd, (struct sockaddr *)client_addr, &addr_len)); in server_thread() 82 SAFE_BIND(client_sockfd, (struct sockaddr *)client_addr, addr_len); in client_thread() 84 SAFE_CONNECT(client_sockfd, (struct sockaddr *)server_addr, addr_len); in client_thread() 124 addr_len = sizeof(struct sockaddr_in); in setup()
|
/third_party/grpc/src/core/lib/iomgr/ |
D | endpoint_pair_windows.cc | 41 int addr_len = sizeof(addr); in create_sockets() local 53 GPR_ASSERT(getsockname(lst_sock, (grpc_sockaddr*)&addr, &addr_len) != in create_sockets() 60 GPR_ASSERT(WSAConnect(cli_sock, (grpc_sockaddr*)&addr, addr_len, NULL, NULL, in create_sockets() 62 svr_sock = accept(lst_sock, (grpc_sockaddr*)&addr, &addr_len); in create_sockets()
|
/third_party/boost/boost/asio/detail/ |
D | reactive_socket_service.hpp | 188 std::size_t addr_len = endpoint.capacity(); in local_endpoint() local 189 if (socket_ops::getsockname(impl.socket_, endpoint.data(), &addr_len, ec)) in local_endpoint() 191 endpoint.resize(addr_len); in local_endpoint() 200 std::size_t addr_len = endpoint.capacity(); in remote_endpoint() local 202 endpoint.data(), &addr_len, false, ec)) in remote_endpoint() 204 endpoint.resize(addr_len); in remote_endpoint() 312 std::size_t addr_len = sender_endpoint.capacity(); in receive_from() local 319 sender_endpoint.data(), &addr_len, ec); in receive_from() 326 flags, sender_endpoint.data(), &addr_len, ec); in receive_from() 330 sender_endpoint.resize(addr_len); in receive_from() [all …]
|
D | win_iocp_socket_service.hpp | 272 std::size_t addr_len = endpoint.capacity(); in local_endpoint() local 273 if (socket_ops::getsockname(impl.socket_, endpoint.data(), &addr_len, ec)) in local_endpoint() 275 endpoint.resize(addr_len); in local_endpoint() 284 std::size_t addr_len = endpoint.capacity(); in remote_endpoint() local 286 &addr_len, impl.have_remote_endpoint_, ec)) in remote_endpoint() 288 endpoint.resize(addr_len); in remote_endpoint() 383 std::size_t addr_len = sender_endpoint.capacity(); in receive_from() local 386 flags, sender_endpoint.data(), &addr_len, ec); in receive_from() 389 sender_endpoint.resize(addr_len); in receive_from() 471 std::size_t addr_len = peer_endpoint ? peer_endpoint->capacity() : 0; in accept() local [all …]
|
D | reactive_socket_recvfrom_op.hpp | 61 std::size_t addr_len = o->sender_endpoint_.capacity(); in do_perform() local 68 o->sender_endpoint_.data(), &addr_len, in do_perform() 76 o->sender_endpoint_.data(), &addr_len, in do_perform() 81 o->sender_endpoint_.resize(addr_len); in do_perform()
|
/third_party/uboot/u-boot-2020.01/drivers/net/ |
D | rtl8139.c | 182 static int read_eeprom(int location, int addr_len); 248 int addr_len; in rtl8139_probe() local 256 addr_len = read_eeprom(0,8) == 0x8129 ? 8 : 6; in rtl8139_probe() 258 *ap++ = le16_to_cpu (read_eeprom(i + 7, addr_len)); in rtl8139_probe() 293 static int read_eeprom(int location, int addr_len) in read_eeprom() argument 298 int read_cmd = location | (EE_READ_CMD << addr_len); in read_eeprom() 305 for (i = 4 + addr_len; i >= 0; i--) { in read_eeprom()
|
D | eepro100.c | 105 #define EE_EWENB_CMD (4 << addr_len) 106 #define EE_WRITE_CMD (5 << addr_len) 107 #define EE_READ_CMD (6 << addr_len) 108 #define EE_ERASE_CMD (7 << addr_len) 749 static int read_eeprom (struct eth_device *dev, int location, int addr_len) in read_eeprom() argument 784 int eepro100_write_eeprom (struct eth_device* dev, int location, int addr_len, unsigned short data) in eepro100_write_eeprom() argument 797 for (i = (addr_len+EE_CMD_BITS-1); i >= 0; i--) in eepro100_write_eeprom() 814 for (i = (addr_len+EE_CMD_BITS-1); i >= 0; i--) in eepro100_write_eeprom() 913 int addr_len = read_eeprom (dev, 0, 6) == 0xffff ? 8 : 6; in read_hw_addr() local 916 u16 value = read_eeprom (dev, i, addr_len); in read_hw_addr()
|
/third_party/mingw-w64/mingw-w64-libraries/winpthreads/tests_pthread/ |
D | cancel9.c | 85 int addr_len; in test_udp() local 118 addr_len = sizeof (struct sockaddr); in test_udp() 124 (struct sockaddr *) &clientAddress, &addr_len); in test_udp()
|
/third_party/grpc/src/php/ext/grpc/ |
D | server.c | 156 php_grpc_int addr_len; in PHP_METHOD() local 161 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &addr, &addr_len) in PHP_METHOD() 178 php_grpc_int addr_len; in PHP_METHOD() local 184 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sO", &addr, &addr_len, in PHP_METHOD()
|
/third_party/uboot/u-boot-2020.01/tools/ |
D | ncb.c | 12 socklen_t addr_len = sizeof addr; in main() local 30 len = recvfrom (s, buf, sizeof buf, 0, (struct sockaddr *) &addr, &addr_len); in main()
|
/third_party/lwip/src/include/lwip/distributed_net/ |
D | distributed_net.h | 56 #define SET_MSG_ADDR(hdr, addr, addr_len) \ argument 59 ((struct msghdr *)(hdr))->msg_namelen = (addr_len); \
|
D | distributed_net_core.h | 60 int distributed_net_connect(int sock, const struct sockaddr *addr, socklen_t addr_len); 66 socklen_t addr_len);
|
/third_party/skia/third_party/externals/microhttpd/src/platform/ |
D | w32functions.c | 570 int addr_len = c_addinlen; in MHD_W32_pair_of_sockets_() local 583 &addr_len)) in MHD_W32_pair_of_sockets_() 593 addr_len = c_addinlen; in MHD_W32_pair_of_sockets_() 595 (struct sockaddr*) &accepted_from_addr, &addr_len); in MHD_W32_pair_of_sockets_() 599 addr_len = c_addinlen; in MHD_W32_pair_of_sockets_() 601 if (0 == getsockname(client_s, (struct sockaddr*) &client_addr, &addr_len) in MHD_W32_pair_of_sockets_()
|
/third_party/uboot/u-boot-2020.01/drivers/i2c/ |
D | s3c24x0_i2c.c | 107 unsigned char addr_len, in i2c_transfer() argument 129 if ((cmd_type == I2C_WRITE) || (addr && addr_len)) in i2c_transfer() 142 if (addr && addr_len) { in i2c_transfer() 143 while ((i < addr_len) && (result == I2C_OK)) { in i2c_transfer() 163 if (addr && addr_len) { in i2c_transfer()
|
/third_party/grpc/test/core/handshake/ |
D | client_ssl.cc | 62 socklen_t addr_len; in create_socket() local 88 addr_len = sizeof(addr); in create_socket() 89 if (getsockname(s, reinterpret_cast<struct sockaddr*>(&addr), &addr_len) != in create_socket() 91 addr_len > sizeof(addr)) { in create_socket()
|
/third_party/glib/gio/ |
D | gsocks4aproxy.c | 92 gsize addr_len; in set_connect_msg() local 113 addr_len = g_inet_address_get_native_size (addr); in set_connect_msg() 115 if (addr_len != 4) in set_connect_msg() 124 memcpy (msg + len, g_inet_address_to_bytes (addr), addr_len); in set_connect_msg() 125 len += addr_len; in set_connect_msg()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/wps/ |
D | wps_er_ssdp.c | 24 socklen_t addr_len; in wps_er_ssdp_rx() local 32 addr_len = sizeof(addr); in wps_er_ssdp_rx() 34 (struct sockaddr *) &addr, &addr_len); in wps_er_ssdp_rx()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/wps/ |
D | wps_er_ssdp.c | 24 socklen_t addr_len; in wps_er_ssdp_rx() local 32 addr_len = sizeof(addr); in wps_er_ssdp_rx() 34 (struct sockaddr *) &addr, &addr_len); in wps_er_ssdp_rx()
|
/third_party/openssl/crypto/bio/ |
D | b_sock.c | 346 socklen_t addr_len; in BIO_sock_info() local 348 addr_len = sizeof(*info->addr); in BIO_sock_info() 350 &addr_len); in BIO_sock_info() 356 if ((size_t)addr_len > sizeof(*info->addr)) { in BIO_sock_info()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/ |
D | iapp.c | 76 u8 addr_len; /* ETH_ALEN */ member 97 u8 addr_len; /* ETH_ALEN */ member 108 u8 addr_len; /* ETH_ALEN */ member 125 u8 addr_len; /* ETH_ALEN */ member 138 u8 addr_len; /* ETH_ALEN */ member 191 add->addr_len = ETH_ALEN; in iapp_send_add()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/ |
D | iapp.c | 76 u8 addr_len; /* ETH_ALEN */ member 97 u8 addr_len; /* ETH_ALEN */ member 108 u8 addr_len; /* ETH_ALEN */ member 125 u8 addr_len; /* ETH_ALEN */ member 138 u8 addr_len; /* ETH_ALEN */ member 191 add->addr_len = ETH_ALEN; in iapp_send_add()
|
/third_party/ffmpeg/libavformat/ |
D | udp.c | 251 int addr_len, struct sockaddr_storage *local_addr, in udp_set_multicast_sources() argument 268 memcpy(&mreqs.gsr_group, addr, addr_len); in udp_set_multicast_sources() 323 int addr_len; in udp_set_url() local 328 addr_len = res0->ai_addrlen; in udp_set_url() 331 return addr_len; in udp_set_url() 335 socklen_t *addr_len, const char *localaddr) in udp_socket_create() argument 362 *addr_len = res->ai_addrlen; in udp_socket_create() 376 static int udp_port(struct sockaddr_storage *addr, int addr_len) in udp_port() argument 381 …if ((error = getnameinfo((struct sockaddr *)addr, addr_len, NULL, 0, sbuf, sizeof(sbuf), NI_NUMER… in udp_port() 479 socklen_t addr_len = sizeof(addr); in circular_buffer_task_rx() local [all …]
|