Lines Matching refs:cnt
498 int cnt; in sctp_bindx_add() local
508 for (cnt = 0; cnt < addrcnt; cnt++) { in sctp_bindx_add()
527 if (cnt > 0) in sctp_bindx_add()
528 sctp_bindx_rem(sk, addrs, cnt); in sctp_bindx_add()
674 int cnt; in sctp_bindx_rem() local
685 for (cnt = 0; cnt < addrcnt; cnt++) { in sctp_bindx_rem()
730 if (cnt > 0) in sctp_bindx_rem()
731 sctp_bindx_add(sk, addrs, cnt); in sctp_bindx_rem()
4849 int cnt = 0; in sctp_getsockopt_peer_addrs() local
4883 cnt++; in sctp_getsockopt_peer_addrs()
4887 if (put_user(cnt, &((struct sctp_getaddrs __user *)optval)->addr_num)) in sctp_getsockopt_peer_addrs()
4901 int cnt = 0; in sctp_copy_laddrs() local
4925 cnt = -ENOMEM; in sctp_copy_laddrs()
4931 cnt++; in sctp_copy_laddrs()
4937 return cnt; in sctp_copy_laddrs()
4946 int cnt = 0; in sctp_getsockopt_local_addrs() local
4994 cnt = sctp_copy_laddrs(sk, bp->port, addrs, in sctp_getsockopt_local_addrs()
4996 if (cnt < 0) { in sctp_getsockopt_local_addrs()
4997 err = cnt; in sctp_getsockopt_local_addrs()
5020 cnt++; in sctp_getsockopt_local_addrs()
5029 if (put_user(cnt, &((struct sctp_getaddrs __user *)optval)->addr_num)) { in sctp_getsockopt_local_addrs()
5313 int cnt = 0; in sctp_getsockopt_associnfo() local
5336 cnt++; in sctp_getsockopt_associnfo()
5339 assocparams.sasoc_number_peer_destinations = cnt; in sctp_getsockopt_associnfo()