Home
last modified time | relevance | path

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

12

/linux-2.6.39/drivers/misc/eeprom/
Dat25.c37 unsigned addrlen; member
90 switch (at25->addrlen) { in at25_ee_read()
104 t[0].len = at25->addrlen + 1; in at25_ee_read()
163 bounce = kmalloc(buf_size + at25->addrlen + 1, GFP_KERNEL); in at25_ee_write()
188 switch (at25->addrlen) { in at25_ee_write()
204 segment + at25->addrlen + 1); in at25_ee_write()
298 int addrlen; in at25_probe() local
310 addrlen = 1; in at25_probe()
312 addrlen = 2; in at25_probe()
314 addrlen = 3; in at25_probe()
[all …]
/linux-2.6.39/arch/arm/kernel/
Dsys_oabi-compat.c367 asmlinkage long sys_oabi_bind(int fd, struct sockaddr __user *addr, int addrlen) in sys_oabi_bind() argument
370 if (addrlen == 112 && in sys_oabi_bind()
373 addrlen = 110; in sys_oabi_bind()
374 return sys_bind(fd, addr, addrlen); in sys_oabi_bind()
377 asmlinkage long sys_oabi_connect(int fd, struct sockaddr __user *addr, int addrlen) in sys_oabi_connect() argument
380 if (addrlen == 112 && in sys_oabi_connect()
383 addrlen = 110; in sys_oabi_connect()
384 return sys_connect(fd, addr, addrlen); in sys_oabi_connect()
390 int addrlen) in sys_oabi_sendto() argument
393 if (addrlen == 112 && in sys_oabi_sendto()
[all …]
/linux-2.6.39/fs/nfs/
Ddns_resolve.c59 size_t addrlen; member
72 memcpy(&new->addr, &key->addr, key->addrlen); in nfs_dns_ent_update()
73 new->addrlen = key->addrlen; in nfs_dns_ent_update()
92 new->addrlen = 0; in nfs_dns_ent_init()
112 item->addrlen = 0; in nfs_dns_ent_alloc()
227 key.addrlen = rpc_pton(buf1, len, in nfs_dns_parse()
249 if (key.addrlen == 0) in nfs_dns_parse()
351 if (salen >= item->addrlen) { in nfs_dns_resolve_name()
352 memcpy(sa, &item->addr, item->addrlen); in nfs_dns_resolve_name()
353 ret = item->addrlen; in nfs_dns_resolve_name()
Dclient.c134 size_t addrlen; member
160 memcpy(&clp->cl_addr, cl_init->addr, cl_init->addrlen); in nfs_alloc_client()
161 clp->cl_addrlen = cl_init->addrlen; in nfs_alloc_client()
689 .addrlen = clp->cl_addrlen, in nfs_start_lockd()
825 .addrlen = data->nfs_server.addrlen, in nfs_init_server()
882 if (data->mount_server.addrlen) { in nfs_init_server()
884 data->mount_server.addrlen); in nfs_init_server()
885 server->mountd_addrlen = data->mount_server.addrlen; in nfs_init_server()
1381 const size_t addrlen, in nfs4_set_client() argument
1390 .addrlen = addrlen, in nfs4_set_client()
[all …]
Dinternal.h56 size_t addrlen; member
98 size_t addrlen; member
107 size_t addrlen; member
Dnfs4namespace.c139 mountdata->addrlen = nfs_parse_server_name(buf->data, buf->len, in try_location()
141 if (mountdata->addrlen == 0) in try_location()
Dsuper.c1364 mnt->nfs_server.addrlen = in nfs_parse_mount_options()
1370 if (mnt->nfs_server.addrlen == 0) in nfs_parse_mount_options()
1386 mnt->mount_server.addrlen = in nfs_parse_mount_options()
1392 if (mnt->mount_server.addrlen == 0) in nfs_parse_mount_options()
1485 if (mnt->mount_server.addrlen) { in nfs_parse_mount_options()
1606 args->nfs_server.addrlen); in nfs_try_mount()
1607 args->mount_server.addrlen = args->nfs_server.addrlen; in nfs_try_mount()
1609 request.salen = args->mount_server.addrlen; in nfs_try_mount()
1778 args->nfs_server.addrlen = sizeof(data->addr); in nfs_validate_mount_data()
1926 data->nfs_server.addrlen != nfss->nfs_client->cl_addrlen || in nfs_compare_remount_data()
[all …]
/linux-2.6.39/tools/perf/util/ui/browsers/
Dmap.c50 u8 addrlen; member
62 mb->addrlen, sym->start, mb->addrlen, sym->end, in map_browser__write()
65 width = self->width - ((mb->addrlen * 2) + 4); in map_browser__write()
154 mb.addrlen = snprintf(tmp, sizeof(tmp), "%" PRIx64, maxaddr); in map__browse()
/linux-2.6.39/include/linux/
Dnet.h261 int addrlen);
266 int addrlen, int flags);
268 int *addrlen);
270 int *addrlen);
Dsecurity.h1582 struct sockaddr *address, int addrlen);
1584 struct sockaddr *address, int addrlen);
2550 int security_socket_bind(struct socket *sock, struct sockaddr *address, int addrlen);
2551 int security_socket_connect(struct socket *sock, struct sockaddr *address, int addrlen);
2615 int addrlen) in security_socket_bind() argument
2622 int addrlen) in security_socket_connect() argument
/linux-2.6.39/fs/omfs/
Dbitmap.c26 int addrlen, int bit, int max) in count_run() argument
31 for (; addrlen > 0; addrlen--, addr++) { in count_run()
/linux-2.6.39/include/linux/lockd/
Dbind.h41 size_t addrlen; member
/linux-2.6.39/net/sunrpc/xprtrdma/
Dtransport.c280 if (args->addrlen > sizeof(xprt->addr)) { in xprt_setup_rdma()
309 memcpy(&cdata.addr, args->dstaddr, args->addrlen); in xprt_setup_rdma()
314 xprt->addrlen = args->addrlen; in xprt_setup_rdma()
315 memcpy(&xprt->addr, &cdata.addr, xprt->addrlen); in xprt_setup_rdma()
/linux-2.6.39/net/sunrpc/
Dxprtsock.c345 static int xs_send_kvec(struct socket *sock, struct sockaddr *addr, int addrlen, struct kvec *vec, … in xs_send_kvec() argument
349 .msg_namelen = addrlen, in xs_send_kvec()
402 static int xs_sendpages(struct socket *sock, struct sockaddr *addr, int addrlen, struct xdr_buf *xd… in xs_sendpages() argument
413 addrlen = 0; in xs_sendpages()
419 err = xs_send_kvec(sock, addr, addrlen, &xdr->head[0], base, remainder != 0); in xs_sendpages()
525 xprt->addrlen, xdr, in xs_udp_send_request()
1546 memcpy(&myaddr, &transport->srcaddr, transport->xprt.addrlen); in xs_bind()
1550 transport->xprt.addrlen); in xs_bind()
1797 return kernel_connect(sock, xs_addr(xprt), xprt->addrlen, O_NONBLOCK); in xs_tcp_finish_connecting()
2172 if (args->addrlen > sizeof(xprt->addr)) { in xs_setup_xprt()
[all …]
/linux-2.6.39/include/net/
Dipv6.h426 static inline int __ipv6_addr_diff(const void *token1, const void *token2, int addrlen) in __ipv6_addr_diff() argument
431 addrlen >>= 2; in __ipv6_addr_diff()
433 for (i = 0; i < addrlen; i++) { in __ipv6_addr_diff()
455 return addrlen << 5; in __ipv6_addr_diff()
/linux-2.6.39/net/
Dsocket.c1416 SYSCALL_DEFINE3(bind, int, fd, struct sockaddr __user *, umyaddr, int, addrlen) in SYSCALL_DEFINE3() argument
1424 err = move_addr_to_kernel(umyaddr, addrlen, (struct sockaddr *)&address); in SYSCALL_DEFINE3()
1428 addrlen); in SYSCALL_DEFINE3()
1432 &address, addrlen); in SYSCALL_DEFINE3()
1571 int, addrlen) in SYSCALL_DEFINE3() argument
1580 err = move_addr_to_kernel(uservaddr, addrlen, (struct sockaddr *)&address); in SYSCALL_DEFINE3()
1585 security_socket_connect(sock, (struct sockaddr *)&address, addrlen); in SYSCALL_DEFINE3()
1589 err = sock->ops->connect(sock, (struct sockaddr *)&address, addrlen, in SYSCALL_DEFINE3()
3140 int kernel_bind(struct socket *sock, struct sockaddr *addr, int addrlen) in kernel_bind() argument
3142 return sock->ops->bind(sock, addr, addrlen); in kernel_bind()
[all …]
/linux-2.6.39/include/linux/sunrpc/
Dxprt.h153 size_t addrlen; /* size of server address */ member
255 size_t addrlen; member
/linux-2.6.39/drivers/staging/pohmelfs/
Dconfig.c43 sc->addrlen == ctl->addrlen && in pohmelfs_config_eql()
44 !memcmp(&sc->addr, &ctl->addr, ctl->addrlen)) in pohmelfs_config_eql()
/linux-2.6.39/net/sctp/
Dsocket.c4411 int addrlen; in sctp_getsockopt_peer_addrs() local
4433 addrlen = sctp_get_af_specific(temp.sa.sa_family)->sockaddr_len; in sctp_getsockopt_peer_addrs()
4434 if (space_left < addrlen) in sctp_getsockopt_peer_addrs()
4436 if (copy_to_user(to, &temp, addrlen)) in sctp_getsockopt_peer_addrs()
4438 to += addrlen; in sctp_getsockopt_peer_addrs()
4440 space_left -= addrlen; in sctp_getsockopt_peer_addrs()
4458 int addrlen; in sctp_copy_laddrs() local
4478 addrlen = sctp_get_af_specific(temp.sa.sa_family)->sockaddr_len; in sctp_copy_laddrs()
4479 if (space_left < addrlen) { in sctp_copy_laddrs()
4483 memcpy(to, &temp, addrlen); in sctp_copy_laddrs()
[all …]
Dsm_make_chunk.c2684 int addrlen; in sctp_make_asconf() local
2687 addrlen = af->to_addr_param(addr, &addrparam); in sctp_make_asconf()
2688 if (!addrlen) in sctp_make_asconf()
2690 length += addrlen; in sctp_make_asconf()
2702 sctp_addto_chunk(retval, addrlen, &addrparam); in sctp_make_asconf()
2805 int addrlen; in sctp_make_asconf_set_prim() local
2808 addrlen = af->to_addr_param(addr, &addrparam); in sctp_make_asconf_set_prim()
2809 if (!addrlen) in sctp_make_asconf_set_prim()
2811 len += addrlen; in sctp_make_asconf_set_prim()
2823 sctp_addto_chunk(retval, addrlen, &addrparam); in sctp_make_asconf_set_prim()
/linux-2.6.39/security/selinux/include/
Dsecurity.h144 int security_node_sid(u16 domain, void *addr, u32 addrlen,
/linux-2.6.39/net/llc/
Daf_llc.c304 static int llc_ui_bind(struct socket *sock, struct sockaddr *uaddr, int addrlen) in llc_ui_bind() argument
313 if (unlikely(!sock_flag(sk, SOCK_ZAPPED) || addrlen != sizeof(*addr))) in llc_ui_bind()
434 int addrlen, int flags) in llc_ui_connect() argument
442 if (unlikely(addrlen != sizeof(*addr))) in llc_ui_connect()
/linux-2.6.39/fs/lockd/
Dclntlock.c63 host = nlmclnt_lookup_host(nlm_init->address, nlm_init->addrlen, in nlmclnt_init()
/linux-2.6.39/security/
Dsecurity.c1019 int security_socket_bind(struct socket *sock, struct sockaddr *address, int addrlen) in security_socket_bind() argument
1021 return security_ops->socket_bind(sock, address, addrlen); in security_socket_bind()
1024 int security_socket_connect(struct socket *sock, struct sockaddr *address, int addrlen) in security_socket_connect() argument
1026 return security_ops->socket_connect(sock, address, addrlen); in security_socket_connect()
/linux-2.6.39/Documentation/networking/
Dphonet.txt99 socklen_t addrlen = sizeof(addr);
108 (struct sockaddr *)&addr, &addrlen);

12