Searched refs:SCTP_BASE_VAR (Results 1 - 11 of 11) sorted by relevance

/external/chromium_org/third_party/usrsctp/usrsctplib/netinet/
H A Dsctp_callout.h55 #define SCTP_TIMERQ_LOCK() EnterCriticalSection(&SCTP_BASE_VAR(timer_mtx))
56 #define SCTP_TIMERQ_UNLOCK() LeaveCriticalSection(&SCTP_BASE_VAR(timer_mtx))
57 #define SCTP_TIMERQ_LOCK_INIT() InitializeCriticalSection(&SCTP_BASE_VAR(timer_mtx))
58 #define SCTP_TIMERQ_LOCK_DESTROY() DeleteCriticalSection(&SCTP_BASE_VAR(timer_mtx))
60 #define SCTP_TIMERQ_LOCK() (void)pthread_mutex_lock(&SCTP_BASE_VAR(timer_mtx))
61 #define SCTP_TIMERQ_UNLOCK() (void)pthread_mutex_unlock(&SCTP_BASE_VAR(timer_mtx))
62 #define SCTP_TIMERQ_LOCK_INIT() (void)pthread_mutex_init(&SCTP_BASE_VAR(timer_mtx), NULL)
63 #define SCTP_TIMERQ_LOCK_DESTROY() (void)pthread_mutex_destroy(&SCTP_BASE_VAR(timer_mtx))
H A Dsctp_bsd_addr.c691 if (SCTP_BASE_VAR(first_time) == 0) {
693 SCTP_BASE_VAR(first_time) = 1;
990 atomic_add_int(&SCTP_BASE_VAR(packet_log_writers), 1);
992 if (SCTP_BASE_VAR(packet_log_writers) > SCTP_PKTLOG_WRITERS_NEED_LOCK) {
996 value = SCTP_BASE_VAR(packet_log_end);
997 newval = SCTP_BASE_VAR(packet_log_end) + total_len;
1003 thisbegin = SCTP_BASE_VAR(packet_log_end);
1006 if (!(atomic_cmpset_int(&SCTP_BASE_VAR(packet_log_end), value, thisend))) {
1010 value = SCTP_BASE_VAR(packet_log_end);
1011 newval = SCTP_BASE_VAR(packet_log_en
[all...]
H A Dsctp_callout.c136 ticks += SCTP_BASE_VAR(sctp_main_timer_ticks);
H A Dsctp_userspace.c149 if (SCTP_BASE_VAR(userspace_rawsctp6) != -1) {
H A Dsctp_usrreq.c150 SCTP_BASE_VAR(first_time) = 0;
151 SCTP_BASE_VAR(sctp_pcb_initialized) = 0;
155 SCTP_BASE_VAR(userspace_route) = -1;
159 SCTP_BASE_VAR(userspace_rawsctp) = -1;
160 SCTP_BASE_VAR(userspace_udpsctp) = -1;
163 SCTP_BASE_VAR(userspace_rawsctp6) = -1;
164 SCTP_BASE_VAR(userspace_udpsctp6) = -1;
166 SCTP_BASE_VAR(timer_thread_should_exit) = 0;
167 SCTP_BASE_VAR(conn_output) = conn_output;
168 SCTP_BASE_VAR(debug_print
[all...]
H A Dsctp_os_userspace.h553 if (SCTP_BASE_VAR(debug_printf)) { \
554 SCTP_BASE_VAR(debug_printf)(__VA_ARGS__); \
601 #define SCTP_BASE_VAR(__m) system_base_info.__m macro
H A Dsctp_pcb.c6652 if (SCTP_BASE_VAR(sctp_pcb_initialized) != 0) {
6656 SCTP_BASE_VAR(sctp_pcb_initialized) = 1;
H A Dsctp_output.c5031 ret = SCTP_BASE_VAR(conn_output)(sconn->sconn_addr, buffer, packet_length, tos_value, nofragment_flag);
11824 SCTP_BASE_VAR(conn_output)(sconn->sconn_addr, buffer, len, 0, 0);
/external/chromium_org/third_party/usrsctp/usrsctplib/
H A Duser_recv_thread.c159 ret = recv(SCTP_BASE_VAR(userspace_route), rt_buffer, sizeof(rt_buffer), 0);
223 len = recvmsg(SCTP_BASE_VAR(userspace_route), &msg, 0);
334 nResult = WSARecvFrom(SCTP_BASE_VAR(userspace_rawsctp), recv_iovec, MAXLEN_MBUF_CHAIN, (LPDWORD)&ncounter, (LPDWORD)&flags, (struct sockaddr*)&from, &fromlen, NULL, NULL);
353 ncounter = n = recvmsg(SCTP_BASE_VAR(userspace_rawsctp), &msg, 0);
513 nResult = WSAIoctl(SCTP_BASE_VAR(userspace_rawsctp6), SIO_GET_EXTENSION_FUNCTION_POINTER,
525 nResult = WSARecvMsg(SCTP_BASE_VAR(userspace_rawsctp6), &msg, &ncounter, NULL, NULL);
548 ncounter = n = recvmsg(SCTP_BASE_VAR(userspace_rawsctp6), &msg, 0);
713 ncounter = n = recvmsg(SCTP_BASE_VAR(userspace_udpsctp), &msg, 0);
722 nResult = WSAIoctl(SCTP_BASE_VAR(userspace_udpsctp), SIO_GET_EXTENSION_FUNCTION_POINTER,
734 nResult = WSARecvMsg(SCTP_BASE_VAR(userspace_udpsct
[all...]
H A Duser_sctp_timer_iterate.c73 if (SCTP_BASE_VAR(timer_thread_should_exit)) {
108 if ((SCTP_BASE_VAR(timer_thread) = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)user_sctp_timer_iterate, NULL, 0, NULL)) == NULL) {
114 rc = pthread_create(&SCTP_BASE_VAR(timer_thread), NULL, user_sctp_timer_iterate, NULL);
H A Duser_socket.c1339 if ((protocol = IPPROTO_SCTP) && (SCTP_BASE_VAR(sctp_pcb_initialized) == 0)) {
1348 if ((domain == AF_CONN) && (SCTP_BASE_VAR(conn_output) == NULL)) {
2143 if (SCTP_BASE_VAR(sctp_pcb_initialized) == 0) {
2876 if ((!use_udp_tunneling) && (SCTP_BASE_VAR(userspace_rawsctp) > -1)) {
2877 if ((res = sendmsg(SCTP_BASE_VAR(userspace_rawsctp), &msg_hdr, MSG_DONTWAIT)) != send_len) {
2881 if ((use_udp_tunneling) && (SCTP_BASE_VAR(userspace_udpsctp) > -1)) {
2882 if ((res = sendmsg(SCTP_BASE_VAR(userspace_udpsctp), &msg_hdr, MSG_DONTWAIT)) != send_len) {
2896 if ((!use_udp_tunneling) && (SCTP_BASE_VAR(userspace_rawsctp) > -1)) {
2897 if (WSASendTo(SCTP_BASE_VAR(userspace_rawsctp), (LPWSABUF) send_iovec, iovcnt, &win_sent_len, win_msg_hdr.dwFlags, win_msg_hdr.name, (int) win_msg_hdr.namelen, NULL, NULL) != 0) {
2903 if ((use_udp_tunneling) && (SCTP_BASE_VAR(userspace_udpsct
[all...]

Completed in 2109 milliseconds