40 #define __likely(x) __builtin_expect(!!(x), 1)
41 #define __unlikely(x) __builtin_expect(!!(x), 0)
43 #define __likely(x) (x)
44 #define __unlikely(x) (x)
47 #define NA_SSM_UNEXPECTED_SIZE 1024*1024*64
48 #define NA_SSM_EXPECTED_SIZE 1024*1024*64
49 #define NA_SSM_UNEXPECTED_BUFFERCOUNT 64
50 #define NA_SSM_TAG_UNEXPECTED_OFFSET 0
51 #define NA_SSM_TAG_EXPECTED_OFFSET (((ssm_bits)1)<<62)
52 #define NA_SSM_TAG_RMA_OFFSET (((ssm_bits)1)<<63)
53 #define NA_SSM_MAX_ADDRESS_LENGTH 64
55 #define NA_SSM_NEXT_UNEXPBUF_POS(n) (((n)+(1))%(NA_SSM_UNEXPECTED_BUFFERCOUNT))
57 #define NA_SSM_PRIVATE_DATA(a) ((struct na_ssm_private_data *) (a)->private_data)
59 #define NA_SSM_MARK_OPID_COMPLETE(a) ((a)->status = SSM_STATUS_COMPLETED)
60 #define NA_SSM_MARK_OPID_CANCELED(a) ((a)->status = SSM_STATUS_CANCELED)
89 #ifdef NA_HAS_CLIENT_THREAD
hg_thread_mutex_t opid_wait_queue_mutex
struct ssm_msg_recv_expected recv_expected
hg_thread_cond_t comp_req_cond
struct ssm_msg_recv_unexpected recv_unexpected
hg_thread_cond_t unexpected_msg_queue_cond
enum na_return na_return_t
hg_thread_cond_t unexpected_msg_complete_cond
struct ssm_msg_send_expected send_expected
enum na_ssm_status na_ssm_status_t
union na_ssm_opid::@1 info
struct na_ssm_private_data * ssm_data
ssm_cb_t unexpected_callback
hg_thread_mutex_t unexpected_msg_queue_mutex
struct ssm_msg_send_unexpected send_unexpected
enum na_cb_type na_cb_type_t
pthread_mutex_t hg_thread_mutex_t
hg_thread_mutex_t request_mutex
na_context_t * user_context
na_size_t input_buffer_size
hg_thread_mutex_t gen_matchbits
hg_queue_t * unexpected_msg_queue
hg_queue_t * unexpected_msg_complete_queue
pthread_cond_t hg_thread_cond_t
hg_queue_t * opid_wait_queue
na_size_t input_buffer_size
struct hg_queue hg_queue_t
A double-ended queue.
hg_thread_cond_t unexp_buf_cond
struct na_cb_info * cbinfo
na_return_t(* na_cb_t)(const struct na_cb_info *callback_info)
unsigned long ssm_msg_tag_t
hg_thread_mutex_t unexpected_msg_complete_mutex