/linux-6.6.21/tools/testing/selftests/bpf/ |
D | network_helpers.c | 81 socklen_t addrlen, int timeout_ms, bool reuseport) in __start_server() argument 101 if (bind(fd, addr, addrlen) < 0) { in __start_server() 124 socklen_t addrlen; in start_server_proto() local 126 if (make_sockaddr(family, addr_str, port, &addr, &addrlen)) in start_server_proto() 130 addrlen, timeout_ms, false); in start_server_proto() 151 socklen_t addrlen; in start_reuseport_server() local 157 if (make_sockaddr(family, addr_str, port, &addr, &addrlen)) in start_reuseport_server() 164 fds[0] = __start_server(type, 0, (struct sockaddr *)&addr, addrlen, in start_reuseport_server() 170 if (getsockname(fds[0], (struct sockaddr *)&addr, &addrlen)) in start_reuseport_server() 175 addrlen, timeout_ms, true); in start_reuseport_server() [all …]
|
/linux-6.6.21/tools/testing/selftests/net/ |
D | bind_timewait.c | 12 socklen_t addrlen; in FIXTURE() local 35 self->addrlen = sizeof(self->addr); in FIXTURE_SETUP() 47 socklen_t addrlen; in create_timewait_socket() local 52 ret = bind(server_fd, (struct sockaddr *)&self->addr, self->addrlen); in create_timewait_socket() 58 ret = getsockname(server_fd, (struct sockaddr *)&self->addr, &self->addrlen); in create_timewait_socket() 64 ret = connect(client_fd, (struct sockaddr *)&self->addr, self->addrlen); in create_timewait_socket() 67 addrlen = sizeof(addr); in create_timewait_socket() 68 child_fd = accept(server_fd, (struct sockaddr *)&addr, &addrlen); in create_timewait_socket() 85 ret = bind(fd, (struct sockaddr *)&self->addr, self->addrlen);
|
D | reuseaddr_conflict.c | 26 int addrlen; in open_port() local 45 addrlen = sizeof(addr6); in open_port() 48 addrlen = sizeof(addr4); in open_port() 68 if (bind(fd, addr, addrlen) < 0) { in open_port()
|
D | so_incoming_cpu.c | 21 socklen_t addrlen; in FIXTURE() local 102 self->addrlen = sizeof(struct sockaddr_in); in FIXTURE_SETUP() 139 ret = bind(fd, &self->addr, self->addrlen); in create_server() 167 ret = getsockname(self->servers[i], &self->addr, &self->addrlen); in create_servers() 201 ret = connect(fd, &self->addr, self->addrlen); in create_clients() 218 fd = accept(self->servers[i], &self->addr, &self->addrlen); in verify_incoming_cpu() 268 client = accept(server, &self->addr, &self->addrlen); in TEST_F()
|
/linux-6.6.21/fs/lockd/ |
D | trace.h | 52 unsigned int addrlen, 56 TP_ARGS(lock, addr, addrlen, status), 65 __sockaddr(addr, addrlen) 75 __assign_sockaddr(addr, addr, addrlen); 91 unsigned int addrlen, \ 94 TP_ARGS(lock, addr, addrlen, status))
|
/linux-6.6.21/net/rds/ |
D | tcp_connect.c | 96 int addrlen; in rds_tcp_conn_path_connect() local 139 addrlen = sizeof(sin6); in rds_tcp_conn_path_connect() 145 addrlen = sizeof(sin); in rds_tcp_conn_path_connect() 148 ret = kernel_bind(sock, addr, addrlen); in rds_tcp_conn_path_connect() 162 addrlen = sizeof(sin6); in rds_tcp_conn_path_connect() 168 addrlen = sizeof(sin); in rds_tcp_conn_path_connect() 176 ret = kernel_connect(sock, addr, addrlen, O_NONBLOCK); in rds_tcp_conn_path_connect()
|
/linux-6.6.21/tools/testing/selftests/bpf/progs/ |
D | lsm_cgroup.c | 103 int addrlen) in real_bind() argument 127 int addrlen) in BPF_PROG() argument 130 return real_bind(sock, address, addrlen); in BPF_PROG() 136 int addrlen) in BPF_PROG() argument 139 return real_bind(sock, address, addrlen); in BPF_PROG()
|
/linux-6.6.21/arch/arm/kernel/ |
D | sys_oabi-compat.c | 430 asmlinkage long sys_oabi_bind(int fd, struct sockaddr __user *addr, int addrlen) in sys_oabi_bind() argument 433 if (addrlen == 112 && in sys_oabi_bind() 436 addrlen = 110; in sys_oabi_bind() 437 return sys_bind(fd, addr, addrlen); in sys_oabi_bind() 440 asmlinkage long sys_oabi_connect(int fd, struct sockaddr __user *addr, int addrlen) in sys_oabi_connect() argument 443 if (addrlen == 112 && in sys_oabi_connect() 446 addrlen = 110; in sys_oabi_connect() 447 return sys_connect(fd, addr, addrlen); in sys_oabi_connect() 453 int addrlen) in sys_oabi_sendto() argument 456 if (addrlen == 112 && in sys_oabi_sendto() [all …]
|
/linux-6.6.21/tools/perf/ui/browsers/ |
D | map.c | 22 u8 addrlen; member 34 mb->addrlen, sym->start, mb->addrlen, sym->end, in map_browser__write() 37 width = browser->width - ((mb->addrlen * 2) + 4); in map_browser__write() 132 mb.addrlen = snprintf(tmp, sizeof(tmp), "%" PRIx64, maxaddr); in map__browse()
|
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/ |
D | decap_sanity.c | 24 socklen_t addrlen; in test_decap_sanity() local 53 addrlen = sizeof(addr); in test_decap_sanity() 55 (void *)&addr, &addrlen); in test_decap_sanity() 61 err = sendto(sockfd, buf, sizeof(buf), 0, (void *)&addr, addrlen); in test_decap_sanity()
|
D | btf_skc_cls_ingress.c | 77 socklen_t addrlen = sizeof(srv_sa6); in test_conn() local 87 err = getsockname(listen_fd, (struct sockaddr *)&srv_sa6, &addrlen); in test_conn() 131 socklen_t addrlen = sizeof(srv_sa6); in test_syncookie() local 142 err = getsockname(listen_fd, (struct sockaddr *)&srv_sa6, &addrlen); in test_syncookie()
|
/linux-6.6.21/fs/nfs/ |
D | dns_resolve.c | 66 size_t addrlen; member 80 memcpy(&new->addr, &key->addr, key->addrlen); in nfs_dns_ent_update() 81 new->addrlen = key->addrlen; in nfs_dns_ent_update() 100 new->addrlen = 0; in nfs_dns_ent_init() 128 item->addrlen = 0; in nfs_dns_ent_alloc() 244 key.addrlen = rpc_pton(cd->net, buf1, len, in nfs_dns_parse() 267 if (key.addrlen == 0) in nfs_dns_parse() 355 if (salen >= item->addrlen) { in nfs_dns_resolve_name() 356 memcpy(ss, &item->addr, item->addrlen); in nfs_dns_resolve_name() 357 ret = item->addrlen; in nfs_dns_resolve_name()
|
/linux-6.6.21/drivers/misc/eeprom/ |
D | at25.c | 40 unsigned addrlen; member 105 if (msg_offset >= BIT(at25->addrlen * 8)) in at25_ee_read() 113 switch (at25->addrlen) { in at25_ee_read() 129 t[0].len = at25->addrlen + 1; in at25_ee_read() 218 bounce = kmalloc(buf_size + at25->addrlen + 1, GFP_KERNEL); in at25_ee_write() 244 if (offset >= BIT(at25->addrlen * 8)) in at25_ee_write() 249 switch (at25->addrlen) { in at25_ee_write() 269 segment + at25->addrlen + 1); in at25_ee_write() 476 at25->addrlen = 1; in at25_probe() 478 at25->addrlen = 2; in at25_probe() [all …]
|
D | eeprom_93xx46.c | 64 int addrlen; member 104 bits = edev->addrlen + 3; in eeprom_93xx46_read() 109 u16 cmd_addr = OP_READ << edev->addrlen; in eeprom_93xx46_read() 173 bits = edev->addrlen + 3; in eeprom_93xx46_ew() 175 cmd_addr = OP_START << edev->addrlen; in eeprom_93xx46_ew() 229 bits = edev->addrlen + 3; in eeprom_93xx46_write_word() 231 cmd_addr = OP_WRITE << edev->addrlen; in eeprom_93xx46_write_word() 320 bits = edev->addrlen + 3; in eeprom_93xx46_eral() 322 cmd_addr = OP_START << edev->addrlen; in eeprom_93xx46_eral() 512 edev->addrlen = ilog2(edev->size); in eeprom_93xx46_probe() [all …]
|
/linux-6.6.21/tools/testing/selftests/net/af_unix/ |
D | unix_connect.c | 118 socklen_t addrlen; in TEST_F() local 127 addrlen = offsetof(struct sockaddr_un, sun_path) + variant->len; in TEST_F() 130 err = bind(self->server, (struct sockaddr *)&addr, addrlen); in TEST_F() 144 err = connect(self->client, (struct sockaddr *)&addr, addrlen); in TEST_F()
|
D | scm_pidfd.c | 214 socklen_t addrlen; member 281 addr->addrlen = offsetof(struct sockaddr_un, sun_path); in fill_sockaddr() 283 addr->addrlen += strlen(addr->sock_name); in fill_sockaddr() 286 addr->addrlen++; in fill_sockaddr() 314 if (bind(cfd, (struct sockaddr *)&self->client_addr->listen_addr, self->client_addr->addrlen)) { in client() 321 self->server_addr.addrlen) != 0) { in client() 385 …= bind(self->server, (struct sockaddr *)&self->server_addr.listen_addr, self->server_addr.addrlen); in TEST_F() 418 …, sizeof(char), 0, (struct sockaddr *)&self->client_addr->listen_addr, self->client_addr->addrlen); in TEST_F()
|
/linux-6.6.21/drivers/i2c/busses/ |
D | i2c-xgene-slimpro.c | 69 #define SLIMPRO_IIC_ENCODE_MSG(dev, chip, op, proto, addrlen, datalen) \ argument 77 ((addrlen << SLIMPRO_IIC_ADDRLEN_SHIFT) & SLIMPRO_IIC_ADDRLEN_MASK) | \ 244 u32 addr, u32 addrlen, u32 protocol, in slimpro_i2c_rd() argument 250 SLIMPRO_IIC_READ, protocol, addrlen, readlen); in slimpro_i2c_rd() 258 u32 addr, u32 addrlen, u32 protocol, u32 writelen, in slimpro_i2c_wr() argument 264 SLIMPRO_IIC_WRITE, protocol, addrlen, writelen); in slimpro_i2c_wr() 272 u32 addrlen, u32 protocol, u32 readlen, in slimpro_i2c_blkrd() argument 287 protocol, addrlen, readlen); in slimpro_i2c_blkrd() 304 u32 addr, u32 addrlen, u32 protocol, u32 writelen, in slimpro_i2c_blkwr() argument 324 protocol, addrlen, writelen); in slimpro_i2c_blkwr()
|
/linux-6.6.21/net/sctp/ |
D | diag.c | 71 int addrlen = sizeof(struct sockaddr_storage); in inet_diag_msg_sctpladdrs_fill() local 79 attr = nla_reserve(skb, INET_DIAG_LOCALS, addrlen * addrcnt); in inet_diag_msg_sctpladdrs_fill() 86 memset(info + sizeof(laddr->a), 0, addrlen - sizeof(laddr->a)); in inet_diag_msg_sctpladdrs_fill() 87 info += addrlen; in inet_diag_msg_sctpladdrs_fill() 96 int addrlen = sizeof(struct sockaddr_storage); in inet_diag_msg_sctpaddrs_fill() local 102 addrlen * asoc->peer.transport_count); in inet_diag_msg_sctpaddrs_fill() 111 addrlen - sizeof(from->ipaddr)); in inet_diag_msg_sctpaddrs_fill() 112 info += addrlen; in inet_diag_msg_sctpaddrs_fill() 228 int addrlen = sizeof(struct sockaddr_storage); in inet_assoc_attr_size() local 237 + nla_total_size(addrlen * asoc->peer.transport_count) in inet_assoc_attr_size() [all …]
|
/linux-6.6.21/arch/arm/include/asm/ |
D | syscalls.h | 41 asmlinkage long sys_oabi_bind(int fd, struct sockaddr __user *addr, int addrlen); 42 asmlinkage long sys_oabi_connect(int fd, struct sockaddr __user *addr, int addrlen); 46 int addrlen);
|
/linux-6.6.21/samples/bpf/ |
D | test_probe_write_user.bpf.c | 31 int addrlen) in BPF_KSYSCALL() argument 36 if (addrlen > sizeof(orig_addr)) in BPF_KSYSCALL()
|
/linux-6.6.21/tools/testing/selftests/netfilter/ |
D | audit_logread.c | 31 socklen_t addrlen = sizeof(addr); in audit_recv() local 36 (struct sockaddr *)&addr, &addrlen); in audit_recv() 40 addrlen != sizeof(addr) || in audit_recv()
|
/linux-6.6.21/net/sunrpc/xprtrdma/ |
D | svc_rdma_backchannel.c | 243 if (args->addrlen > sizeof(xprt->addr)) in xprt_setup_rdma_bc() 262 memcpy(&xprt->addr, args->dstaddr, args->addrlen); in xprt_setup_rdma_bc() 263 xprt->addrlen = args->addrlen; in xprt_setup_rdma_bc()
|
/linux-6.6.21/drivers/spi/ |
D | spi-bcm-qspi.c | 186 unsigned int addrlen; member 422 int addrlen = op->addr.nbytes; in bcm_qspi_bspi_set_flex_mode() local 426 width, addrlen, hp); in bcm_qspi_bspi_set_flex_mode() 428 if (addrlen == BSPI_ADDRLEN_4BYTES) in bcm_qspi_bspi_set_flex_mode() 436 if (addrlen == BSPI_ADDRLEN_3BYTES) in bcm_qspi_bspi_set_flex_mode() 467 int addrlen = op->addr.nbytes; in bcm_qspi_bspi_set_override() local 471 width, addrlen, hp); in bcm_qspi_bspi_set_override() 493 if (addrlen == BSPI_ADDRLEN_4BYTES) in bcm_qspi_bspi_set_override() 513 int addrlen = op->addr.nbytes; in bcm_qspi_bspi_set_mode() local 536 width, addrlen, hp); in bcm_qspi_bspi_set_mode() [all …]
|
/linux-6.6.21/include/net/ |
D | ipv6.h | 840 static inline int __ipv6_addr_diff32(const void *token1, const void *token2, int addrlen) in __ipv6_addr_diff32() argument 845 addrlen >>= 2; in __ipv6_addr_diff32() 847 for (i = 0; i < addrlen; i++) { in __ipv6_addr_diff32() 869 return addrlen << 5; in __ipv6_addr_diff32() 873 static inline int __ipv6_addr_diff64(const void *token1, const void *token2, int addrlen) in __ipv6_addr_diff64() argument 878 addrlen >>= 3; in __ipv6_addr_diff64() 880 for (i = 0; i < addrlen; i++) { in __ipv6_addr_diff64() 886 return addrlen << 6; in __ipv6_addr_diff64() 890 static inline int __ipv6_addr_diff(const void *token1, const void *token2, int addrlen) in __ipv6_addr_diff() argument 893 if (__builtin_constant_p(addrlen) && !(addrlen & 7)) in __ipv6_addr_diff() [all …]
|
/linux-6.6.21/fs/omfs/ |
D | bitmap.c | 27 int addrlen, int bit, int max) in count_run() argument 32 for (; addrlen > 0; addrlen--, addr++) { in count_run()
|