Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/drivers/misc/eeprom/
Dat25.c31 unsigned addrlen; member
85 if (offset >= (1U << (at25->addrlen * 8))) in at25_ee_read()
90 switch (at25->addrlen) { in at25_ee_read()
106 t[0].len = at25->addrlen + 1; in at25_ee_read()
148 bounce = kmalloc(buf_size + at25->addrlen + 1, GFP_KERNEL); in at25_ee_write()
173 if (offset >= (1U << (at25->addrlen * 8))) in at25_ee_write()
178 switch (at25->addrlen) { in at25_ee_write()
196 segment + at25->addrlen + 1); in at25_ee_write()
309 int addrlen; in at25_probe() local
321 addrlen = 1; in at25_probe()
[all …]
Deeprom_93xx46.c48 int addrlen; member
89 u16 cmd_addr = OP_READ << edev->addrlen; in eeprom_93xx46_read()
93 if (edev->addrlen == 7) { in eeprom_93xx46_read()
155 cmd_addr = OP_START << edev->addrlen; in eeprom_93xx46_ew()
156 if (edev->addrlen == 7) { in eeprom_93xx46_ew()
208 cmd_addr = OP_WRITE << edev->addrlen; in eeprom_93xx46_write_word()
210 if (edev->addrlen == 7) { in eeprom_93xx46_write_word()
256 if (edev->addrlen == 6) { in eeprom_93xx46_write()
298 cmd_addr = OP_START << edev->addrlen; in eeprom_93xx46_eral()
299 if (edev->addrlen == 7) { in eeprom_93xx46_eral()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
Dnetwork_helpers.c111 socklen_t addrlen = sizeof(addr); in fastopen_connect() local
115 if (getsockname(server_fd, (struct sockaddr *)&addr, &addrlen)) { in fastopen_connect()
131 addrlen); in fastopen_connect()
146 socklen_t addrlen) in connect_fd_to_addr() argument
148 if (connect(fd, (const struct sockaddr *)addr, addrlen)) { in connect_fd_to_addr()
160 socklen_t addrlen, optlen; in connect_to_fd() local
169 addrlen = sizeof(addr); in connect_to_fd()
170 if (getsockname(server_fd, (struct sockaddr *)&addr, &addrlen)) { in connect_to_fd()
185 if (connect_fd_to_addr(fd, &addr, addrlen)) in connect_to_fd()
/kernel/linux/linux-5.10/net/rds/
Dtcp_connect.c95 int addrlen; in rds_tcp_conn_path_connect() local
135 addrlen = sizeof(sin6); in rds_tcp_conn_path_connect()
141 addrlen = sizeof(sin); in rds_tcp_conn_path_connect()
144 ret = sock->ops->bind(sock, addr, addrlen); in rds_tcp_conn_path_connect()
158 addrlen = sizeof(sin6); in rds_tcp_conn_path_connect()
164 addrlen = sizeof(sin); in rds_tcp_conn_path_connect()
172 ret = sock->ops->connect(sock, addr, addrlen, O_NONBLOCK); in rds_tcp_conn_path_connect()
/kernel/liteos_a/testsuites/unittest/net/socket/smoke/
Dnet_socket_test_012.cpp47 socklen_t addrlen = sizeof(addr); in SocketNullTestInternal() local
59 ret = accept(sfd, NULL, &addrlen); in SocketNullTestInternal()
74 ret = bind(sfd, NULL, addrlen); in SocketNullTestInternal()
89 ret = getpeername(sfd, NULL, &addrlen); in SocketNullTestInternal()
110 ret = getsockname(sfd, NULL, &addrlen); in SocketNullTestInternal()
130 ret = getsockopt(sfd, SOL_SOCKET, SO_RCVTIMEO, NULL, &addrlen); in SocketNullTestInternal()
146 ret = setsockopt(sfd, SOL_SOCKET, SO_RCVTIMEO, NULL, addrlen); in SocketNullTestInternal()
154 ret = setsockopt(sfd, SOL_SOCKET, SO_RCVTIMEO, bad, addrlen); in SocketNullTestInternal()
161 ret = connect(sfd, NULL, addrlen); in SocketNullTestInternal()
169 ret = connect(sfd, bad, addrlen); in SocketNullTestInternal()
[all …]
/kernel/linux/linux-5.10/arch/arm/kernel/
Dsys_oabi-compat.c391 asmlinkage long sys_oabi_bind(int fd, struct sockaddr __user *addr, int addrlen) in sys_oabi_bind() argument
394 if (addrlen == 112 && in sys_oabi_bind()
397 addrlen = 110; in sys_oabi_bind()
398 return sys_bind(fd, addr, addrlen); in sys_oabi_bind()
401 asmlinkage long sys_oabi_connect(int fd, struct sockaddr __user *addr, int addrlen) in sys_oabi_connect() argument
404 if (addrlen == 112 && in sys_oabi_connect()
407 addrlen = 110; in sys_oabi_connect()
408 return sys_connect(fd, addr, addrlen); in sys_oabi_connect()
414 int addrlen) in sys_oabi_sendto() argument
417 if (addrlen == 112 && in sys_oabi_sendto()
[all …]
/kernel/linux/linux-5.10/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
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/i2c/busses/
Di2c-xgene-slimpro.c70 #define SLIMPRO_IIC_ENCODE_MSG(dev, chip, op, proto, addrlen, datalen) \ argument
78 ((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()
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
Dbpf_tcp_ca.c98 socklen_t addrlen = sizeof(sa6); in do_test() local
121 err = bind(lfd, (struct sockaddr *)&sa6, addrlen); in do_test()
124 err = getsockname(lfd, (struct sockaddr *)&sa6, &addrlen); in do_test()
140 err = connect(fd, (struct sockaddr *)&sa6, addrlen); in do_test()
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()
148 socklen_t addrlen = sizeof(srv_sa6); in test_syncookie() local
159 err = getsockname(listen_fd, (struct sockaddr *)&srv_sa6, &addrlen); in test_syncookie()
Dselect_reuseport.c251 socklen_t addrlen; in check_data() local
254 addrlen = sizeof(cli_sa); in check_data()
256 &addrlen); in check_data()
608 socklen_t addrlen; in prepare_sk_fds() local
614 addrlen = sizeof(srv_sa); in prepare_sk_fds()
639 err = bind(sk_fds[i], (struct sockaddr *)&srv_sa, addrlen); in prepare_sk_fds()
656 socklen_t addrlen = sizeof(srv_sa); in prepare_sk_fds() local
659 &addrlen); in prepare_sk_fds()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/net/sunrpc/xprtrdma/
Dsvc_rdma_backchannel.c237 if (args->addrlen > sizeof(xprt->addr)) in xprt_setup_rdma_bc()
256 memcpy(&xprt->addr, args->dstaddr, args->addrlen); in xprt_setup_rdma_bc()
257 xprt->addrlen = args->addrlen; in xprt_setup_rdma_bc()
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/include/net/
Dipv6.h747 static inline int __ipv6_addr_diff32(const void *token1, const void *token2, int addrlen) in __ipv6_addr_diff32() argument
752 addrlen >>= 2; in __ipv6_addr_diff32()
754 for (i = 0; i < addrlen; i++) { in __ipv6_addr_diff32()
776 return addrlen << 5; in __ipv6_addr_diff32()
780 static inline int __ipv6_addr_diff64(const void *token1, const void *token2, int addrlen) in __ipv6_addr_diff64() argument
785 addrlen >>= 3; in __ipv6_addr_diff64()
787 for (i = 0; i < addrlen; i++) { in __ipv6_addr_diff64()
793 return addrlen << 6; in __ipv6_addr_diff64()
797 static inline int __ipv6_addr_diff(const void *token1, const void *token2, int addrlen) in __ipv6_addr_diff() argument
800 if (__builtin_constant_p(addrlen) && !(addrlen & 7)) in __ipv6_addr_diff()
[all …]
/kernel/linux/linux-5.10/fs/omfs/
Dbitmap.c27 int addrlen, int bit, int max) in count_run() argument
32 for (; addrlen > 0; addrlen--, addr++) { in count_run()
/kernel/linux/linux-5.10/tools/lib/bpf/
Dnetlink.c36 socklen_t addrlen; in libbpf_netlink_open() local
57 addrlen = sizeof(sa); in libbpf_netlink_open()
58 if (getsockname(sock, (struct sockaddr *)&sa, &addrlen) < 0) { in libbpf_netlink_open()
63 if (addrlen != sizeof(sa)) { in libbpf_netlink_open()
/kernel/liteos_a/compat/posix/src/
Dsocket.c43 int accept(int s, struct sockaddr *addr, socklen_t *addrlen) in accept() argument
45 return lwip_accept(s, addr, addrlen); in accept()

123