Home
last modified time | relevance | path

Searched refs:addrlen (Results 1 – 25 of 77) sorted by relevance

1234

/Linux-v5.15/tools/testing/selftests/bpf/
Dnetwork_helpers.c70 socklen_t addrlen, int timeout_ms, bool reuseport) in __start_server() argument
90 if (bind(fd, addr, addrlen) < 0) { in __start_server()
113 socklen_t addrlen; in start_server() local
115 if (make_sockaddr(family, addr_str, port, &addr, &addrlen)) in start_server()
119 addrlen, timeout_ms, false); in start_server()
127 socklen_t addrlen; in start_reuseport_server() local
133 if (make_sockaddr(family, addr_str, port, &addr, &addrlen)) in start_reuseport_server()
140 fds[0] = __start_server(type, (struct sockaddr *)&addr, addrlen, in start_reuseport_server()
146 if (getsockname(fds[0], (struct sockaddr *)&addr, &addrlen)) in start_reuseport_server()
151 addrlen, timeout_ms, true); in start_reuseport_server()
[all …]
/Linux-v5.15/net/rds/
Dtcp_connect.c96 int addrlen; in rds_tcp_conn_path_connect() local
136 addrlen = sizeof(sin6); in rds_tcp_conn_path_connect()
142 addrlen = sizeof(sin); in rds_tcp_conn_path_connect()
145 ret = sock->ops->bind(sock, addr, addrlen); in rds_tcp_conn_path_connect()
159 addrlen = sizeof(sin6); in rds_tcp_conn_path_connect()
165 addrlen = sizeof(sin); in rds_tcp_conn_path_connect()
173 ret = sock->ops->connect(sock, addr, addrlen, O_NONBLOCK); in rds_tcp_conn_path_connect()
/Linux-v5.15/tools/perf/ui/browsers/
Dmap.c22 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-v5.15/tools/perf/examples/bpf/
Daugmented_syscalls.c117 unsigned long addrlen = sizeof(augmented_args.addr); \
123 probe_read(&augmented_args.addr, addrlen, args->addr_ptr); \
127 sizeof(augmented_args) - sizeof(augmented_args.addr) + addrlen);\
141 unsigned long addrlen; member
151 unsigned long addrlen; member
/Linux-v5.15/arch/arm/kernel/
Dsys_oabi-compat.c427 asmlinkage long sys_oabi_bind(int fd, struct sockaddr __user *addr, int addrlen) in sys_oabi_bind() argument
430 if (addrlen == 112 && in sys_oabi_bind()
433 addrlen = 110; in sys_oabi_bind()
434 return sys_bind(fd, addr, addrlen); in sys_oabi_bind()
437 asmlinkage long sys_oabi_connect(int fd, struct sockaddr __user *addr, int addrlen) in sys_oabi_connect() argument
440 if (addrlen == 112 && in sys_oabi_connect()
443 addrlen = 110; in sys_oabi_connect()
444 return sys_connect(fd, addr, addrlen); in sys_oabi_connect()
450 int addrlen) in sys_oabi_sendto() argument
453 if (addrlen == 112 && in sys_oabi_sendto()
[all …]
/Linux-v5.15/fs/nfs/
Ddns_resolve.c67 size_t addrlen; member
81 memcpy(&new->addr, &key->addr, key->addrlen); in nfs_dns_ent_update()
82 new->addrlen = key->addrlen; in nfs_dns_ent_update()
101 new->addrlen = 0; in nfs_dns_ent_init()
129 item->addrlen = 0; in nfs_dns_ent_alloc()
245 key.addrlen = rpc_pton(cd->net, buf1, len, in nfs_dns_parse()
268 if (key.addrlen == 0) in nfs_dns_parse()
356 if (salen >= item->addrlen) { in nfs_dns_resolve_name()
357 memcpy(sa, &item->addr, item->addrlen); in nfs_dns_resolve_name()
358 ret = item->addrlen; in nfs_dns_resolve_name()
Dnfs4client.c426 xprt_args.addrlen = clp_salen; in nfs4_add_trunk()
893 const size_t addrlen, in nfs4_set_client() argument
903 .addrlen = addrlen, in nfs4_set_client()
971 .addrlen = ds_addrlen, in nfs4_set_ds_client()
1153 ctx->nfs_server.addrlen, in nfs4_init_server()
1243 ctx->nfs_server.addrlen, in nfs4_create_referral_server()
1259 ctx->nfs_server.addrlen, in nfs4_create_referral_server()
1339 .addrlen = salen, in nfs4_update_server()
/Linux-v5.15/drivers/misc/eeprom/
Dat25.c39 unsigned addrlen; member
99 if (offset >= (1U << (at25->addrlen * 8))) in at25_ee_read()
104 switch (at25->addrlen) { in at25_ee_read()
120 t[0].len = at25->addrlen + 1; in at25_ee_read()
207 bounce = kmalloc(buf_size + at25->addrlen + 1, GFP_KERNEL); in at25_ee_write()
232 if (offset >= (1U << (at25->addrlen * 8))) in at25_ee_write()
237 switch (at25->addrlen) { in at25_ee_write()
255 segment + at25->addrlen + 1); in at25_ee_write()
454 at25->addrlen = 1; in at25_probe()
456 at25->addrlen = 2; in at25_probe()
[all …]
Deeprom_93xx46.c64 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-v5.15/tools/testing/selftests/net/
Dreuseaddr_conflict.c26 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()
Dfin_ack_lat.c89 int addrlen = sizeof(address); in server() local
94 (socklen_t *)&addrlen); in server()
Dtcp_inq.c63 socklen_t addrlen = sizeof(addr); in start_server() local
71 fd = accept(server_fd, (struct sockaddr *)&addr, &addrlen); in start_server()
/Linux-v5.15/drivers/i2c/busses/
Di2c-xgene-slimpro.c69 #define SLIMPRO_IIC_ENCODE_MSG(dev, chip, op, proto, addrlen, datalen) \ argument
77 ((addrlen << SLIMPRO_IIC_ADDRLEN_SHIFT) & SLIMPRO_IIC_ADDRLEN_MASK) | \
243 u32 addr, u32 addrlen, u32 protocol, in slimpro_i2c_rd() argument
249 SLIMPRO_IIC_READ, protocol, addrlen, readlen); in slimpro_i2c_rd()
257 u32 addr, u32 addrlen, u32 protocol, u32 writelen, in slimpro_i2c_wr() argument
263 SLIMPRO_IIC_WRITE, protocol, addrlen, writelen); in slimpro_i2c_wr()
271 u32 addrlen, u32 protocol, u32 readlen, in slimpro_i2c_blkrd() argument
286 protocol, addrlen, readlen); in slimpro_i2c_blkrd()
303 u32 addr, u32 addrlen, u32 protocol, u32 writelen, in slimpro_i2c_blkwr() argument
320 protocol, addrlen, writelen); in slimpro_i2c_blkwr()
/Linux-v5.15/net/sctp/
Ddiag.c75 int addrlen = sizeof(struct sockaddr_storage); in inet_diag_msg_sctpladdrs_fill() local
83 attr = nla_reserve(skb, INET_DIAG_LOCALS, addrlen * addrcnt); in inet_diag_msg_sctpladdrs_fill()
90 memset(info + sizeof(laddr->a), 0, addrlen - sizeof(laddr->a)); in inet_diag_msg_sctpladdrs_fill()
91 info += addrlen; in inet_diag_msg_sctpladdrs_fill()
100 int addrlen = sizeof(struct sockaddr_storage); in inet_diag_msg_sctpaddrs_fill() local
106 addrlen * asoc->peer.transport_count); in inet_diag_msg_sctpaddrs_fill()
115 addrlen - sizeof(from->ipaddr)); in inet_diag_msg_sctpaddrs_fill()
116 info += addrlen; in inet_diag_msg_sctpaddrs_fill()
231 int addrlen = sizeof(struct sockaddr_storage); in inet_assoc_attr_size() local
240 + nla_total_size(addrlen * asoc->peer.transport_count) in inet_assoc_attr_size()
[all …]
/Linux-v5.15/tools/testing/selftests/bpf/prog_tests/
Dbtf_skc_cls_ingress.c94 socklen_t addrlen = sizeof(srv_sa6); in test_conn() local
104 err = getsockname(listen_fd, (struct sockaddr *)&srv_sa6, &addrlen); in test_conn()
142 socklen_t addrlen = sizeof(srv_sa6); in test_syncookie() local
153 err = getsockname(listen_fd, (struct sockaddr *)&srv_sa6, &addrlen); in test_syncookie()
Dbpf_tcp_ca.c85 socklen_t addrlen = sizeof(sa6); in do_test() local
108 err = bind(lfd, (struct sockaddr *)&sa6, addrlen); in do_test()
111 err = getsockname(lfd, (struct sockaddr *)&sa6, &addrlen); in do_test()
127 err = connect(fd, (struct sockaddr *)&sa6, addrlen); in do_test()
Dmigrate_reuseport.c54 socklen_t addrlen; member
225 &test_case->addr, &test_case->addrlen); in start_servers()
240 test_case->addrlen); in start_servers()
254 &test_case->addrlen); in start_servers()
309 test_case->addrlen); in start_clients()
Dselect_reuseport.c252 socklen_t addrlen; in check_data() local
255 addrlen = sizeof(cli_sa); in check_data()
257 &addrlen); in check_data()
609 socklen_t addrlen; in prepare_sk_fds() local
615 addrlen = sizeof(srv_sa); in prepare_sk_fds()
640 err = bind(sk_fds[i], (struct sockaddr *)&srv_sa, addrlen); in prepare_sk_fds()
657 socklen_t addrlen = sizeof(srv_sa); in prepare_sk_fds() local
660 &addrlen); in prepare_sk_fds()
/Linux-v5.15/samples/bpf/
Dtest_map_in_map_kern.c111 int addrlen, ret, inline_ret, ret_key = 0; in trace_sys_connect() local
117 addrlen = (int)PT_REGS_PARM3_CORE(ctx); in trace_sys_connect()
119 if (addrlen != sizeof(*in6)) in trace_sys_connect()
Dmap_perf_test_kern.c180 int addrlen, ret; in SYSCALL() local
185 addrlen = (int)PT_REGS_PARM3_CORE(real_regs); in SYSCALL()
187 if (addrlen != sizeof(*in6)) in SYSCALL()
/Linux-v5.15/drivers/spi/
Dspi-bcm-qspi.c165 unsigned int addrlen; member
389 int addrlen = op->addr.nbytes; in bcm_qspi_bspi_set_flex_mode() local
393 width, addrlen, hp); in bcm_qspi_bspi_set_flex_mode()
395 if (addrlen == BSPI_ADDRLEN_4BYTES) in bcm_qspi_bspi_set_flex_mode()
402 if (addrlen == BSPI_ADDRLEN_3BYTES) in bcm_qspi_bspi_set_flex_mode()
433 int addrlen = op->addr.nbytes; in bcm_qspi_bspi_set_override() local
437 width, addrlen, hp); in bcm_qspi_bspi_set_override()
459 if (addrlen == BSPI_ADDRLEN_4BYTES) in bcm_qspi_bspi_set_override()
479 int addrlen = op->addr.nbytes; in bcm_qspi_bspi_set_mode() local
502 width, addrlen, hp); in bcm_qspi_bspi_set_mode()
[all …]
/Linux-v5.15/net/sunrpc/xprtrdma/
Dsvc_rdma_backchannel.c249 if (args->addrlen > sizeof(xprt->addr)) in xprt_setup_rdma_bc()
268 memcpy(&xprt->addr, args->dstaddr, args->addrlen); in xprt_setup_rdma_bc()
269 xprt->addrlen = args->addrlen; in xprt_setup_rdma_bc()
/Linux-v5.15/include/net/
Dipv6.h748 static inline int __ipv6_addr_diff32(const void *token1, const void *token2, int addrlen) in __ipv6_addr_diff32() argument
753 addrlen >>= 2; in __ipv6_addr_diff32()
755 for (i = 0; i < addrlen; i++) { in __ipv6_addr_diff32()
777 return addrlen << 5; in __ipv6_addr_diff32()
781 static inline int __ipv6_addr_diff64(const void *token1, const void *token2, int addrlen) in __ipv6_addr_diff64() argument
786 addrlen >>= 3; in __ipv6_addr_diff64()
788 for (i = 0; i < addrlen; i++) { in __ipv6_addr_diff64()
794 return addrlen << 6; in __ipv6_addr_diff64()
798 static inline int __ipv6_addr_diff(const void *token1, const void *token2, int addrlen) in __ipv6_addr_diff() argument
801 if (__builtin_constant_p(addrlen) && !(addrlen & 7)) in __ipv6_addr_diff()
[all …]
/Linux-v5.15/fs/omfs/
Dbitmap.c27 int addrlen, int bit, int max) in count_run() argument
32 for (; addrlen > 0; addrlen--, addr++) { in count_run()
/Linux-v5.15/net/mctp/
Daf_mctp.c33 static int mctp_bind(struct socket *sock, struct sockaddr *addr, int addrlen) in mctp_bind() argument
40 if (addrlen < sizeof(*smctp)) in mctp_bind()
75 int rc, addrlen = msg->msg_namelen; in mctp_sendmsg() local
82 if (addrlen < sizeof(struct sockaddr_mctp)) in mctp_sendmsg()

1234