/titanic_50/usr/src/lib/udapl/udapl_tavor/common/ |
H A D | dapl_sp_util.c | 69 DAPL_SP *sp_ptr; in dapls_sp_alloc() local 72 sp_ptr = (DAPL_SP *)dapl_os_alloc(sizeof (DAPL_SP)); in dapls_sp_alloc() 73 if (sp_ptr == NULL) { in dapls_sp_alloc() 78 (void) dapl_os_memzero(sp_ptr, sizeof (DAPL_SP)); in dapls_sp_alloc() 83 sp_ptr->header.provider = ia_ptr->header.provider; in dapls_sp_alloc() 85 sp_ptr->header.magic = DAPL_MAGIC_PSP; in dapls_sp_alloc() 86 sp_ptr->header.handle_type = DAT_HANDLE_TYPE_PSP; in dapls_sp_alloc() 88 sp_ptr->header.magic = DAPL_MAGIC_RSP; in dapls_sp_alloc() 89 sp_ptr->header.handle_type = DAT_HANDLE_TYPE_RSP; in dapls_sp_alloc() 91 sp_ptr->header.owner_ia = ia_ptr; in dapls_sp_alloc() [all …]
|
H A D | dapl_rsp_free.c | 69 DAPL_SP *sp_ptr; in dapl_rsp_free() local 75 sp_ptr = (DAPL_SP *)rsp_handle; in dapl_rsp_free() 82 if (DAPL_BAD_HANDLE(sp_ptr, DAPL_MAGIC_RSP)) { in dapl_rsp_free() 89 ia_ptr = sp_ptr->header.owner_ia; in dapl_rsp_free() 96 dapl_os_lock(&sp_ptr->header.lock); in dapl_rsp_free() 102 ep_ptr = (DAPL_EP *)sp_ptr->ep_handle; in dapl_rsp_free() 106 sp_ptr->ep_handle = NULL; in dapl_rsp_free() 109 dapl_os_atomic_dec(&((DAPL_EVD *)sp_ptr->evd_handle)->evd_ref_count); in dapl_rsp_free() 110 sp_ptr->evd_handle = NULL; in dapl_rsp_free() 118 if (sp_ptr->listening == DAT_TRUE && sp_ptr->cr_list_count == 0) { in dapl_rsp_free() [all …]
|
H A D | dapl_psp_free.c | 70 DAPL_SP *sp_ptr; in dapl_psp_free() local 73 sp_ptr = (DAPL_SP *) psp_handle; in dapl_psp_free() 80 if (DAPL_BAD_HANDLE(sp_ptr, DAPL_MAGIC_PSP)) { in dapl_psp_free() 87 ia_ptr = sp_ptr->header.owner_ia; in dapl_psp_free() 95 dapl_os_lock(&sp_ptr->header.lock); in dapl_psp_free() 96 sp_ptr->listening = DAT_FALSE; in dapl_psp_free() 102 if (sp_ptr->evd_handle) { in dapl_psp_free() 103 dapl_os_atomic_dec(&((DAPL_EVD *)sp_ptr->evd_handle)-> in dapl_psp_free() 105 sp_ptr->evd_handle = NULL; in dapl_psp_free() 113 if ((sp_ptr->state == DAPL_SP_STATE_PSP_LISTENING) && in dapl_psp_free() [all …]
|
H A D | dapl_cr_callback.c | 57 IN DAPL_SP *sp_ptr, 63 IN DAPL_SP *sp_ptr, 92 DAPL_SP *sp_ptr; in dapls_cr_callback() local 112 sp_ptr = (DAPL_SP *) context; in dapls_cr_callback() 127 evd_ptr = sp_ptr->evd_handle; in dapls_cr_callback() 129 ep_ptr = dapli_get_sp_ep(ib_cm_handle, sp_ptr, ib_cm_event); in dapls_cr_callback() 147 dapl_os_lock(&sp_ptr->header.lock); in dapls_cr_callback() 148 if (sp_ptr->listening == DAT_FALSE) { in dapls_cr_callback() 149 dapl_os_unlock(&sp_ptr->header.lock); in dapls_cr_callback() 155 if (sp_ptr->header.handle_type == DAT_HANDLE_TYPE_RSP) { in dapls_cr_callback() [all …]
|
H A D | dapl_psp_create.c | 82 DAPL_SP *sp_ptr; in dapl_psp_create() local 135 sp_ptr = dapls_ia_sp_search(ia_ptr, conn_qual, DAT_TRUE); in dapl_psp_create() 137 if (sp_ptr == NULL) { in dapl_psp_create() 140 sp_ptr = dapls_sp_alloc(ia_ptr, DAT_TRUE); in dapl_psp_create() 142 if (sp_ptr == NULL) { in dapl_psp_create() 147 } else if (sp_ptr->listening == DAT_TRUE) { in dapl_psp_create() 155 sp_ptr->ia_handle = ia_handle; in dapl_psp_create() 156 sp_ptr->conn_qual = conn_qual; in dapl_psp_create() 157 sp_ptr->evd_handle = evd_handle; in dapl_psp_create() 158 sp_ptr->psp_flags = psp_flags; in dapl_psp_create() [all …]
|
H A D | dapl_psp_create_any.c | 85 DAPL_SP *sp_ptr; in dapl_psp_create_any() local 129 sp_ptr = dapls_sp_alloc(ia_ptr, DAT_TRUE); in dapl_psp_create_any() 130 if (sp_ptr == NULL) { in dapl_psp_create_any() 139 sp_ptr->ia_handle = ia_handle; in dapl_psp_create_any() 140 sp_ptr->evd_handle = evd_handle; in dapl_psp_create_any() 141 sp_ptr->psp_flags = psp_flags; in dapl_psp_create_any() 142 sp_ptr->ep_handle = NULL; in dapl_psp_create_any() 150 dapl_ia_link_psp(ia_ptr, sp_ptr); in dapl_psp_create_any() 156 sp_ptr->state = DAPL_SP_STATE_PSP_LISTENING; in dapl_psp_create_any() 157 sp_ptr->listening = DAT_TRUE; in dapl_psp_create_any() [all …]
|
H A D | dapl_rsp_create.c | 83 DAPL_SP *sp_ptr; in dapl_rsp_create() local 131 sp_ptr = dapls_ia_sp_search(ia_ptr, conn_qual, DAT_FALSE); in dapl_rsp_create() 133 if (sp_ptr == NULL) { in dapl_rsp_create() 137 sp_ptr = dapls_sp_alloc(ia_ptr, DAT_FALSE); in dapl_rsp_create() 138 if (sp_ptr == NULL) { in dapl_rsp_create() 148 sp_ptr->ia_handle = ia_handle; in dapl_rsp_create() 149 sp_ptr->conn_qual = conn_qual; in dapl_rsp_create() 150 sp_ptr->evd_handle = evd_handle; in dapl_rsp_create() 151 sp_ptr->psp_flags = 0; in dapl_rsp_create() 152 sp_ptr->ep_handle = ep_handle; in dapl_rsp_create() [all …]
|
H A D | dapl_ia_util.c | 147 DAPL_SP *sp_ptr, *next_sp_ptr; /* for PSP and RSP queues */ in dapl_ia_abrupt_close() local 177 sp_ptr = (dapl_llist_is_empty(&ia_ptr->rsp_list_head) in dapl_ia_abrupt_close() 179 while (sp_ptr != NULL) { in dapl_ia_abrupt_close() 181 &sp_ptr->header.ia_list_entry); in dapl_ia_abrupt_close() 182 dat_status = dapl_rsp_free(sp_ptr); in dapl_ia_abrupt_close() 186 sp_ptr, in dapl_ia_abrupt_close() 189 sp_ptr = next_sp_ptr; in dapl_ia_abrupt_close() 229 sp_ptr = (dapl_llist_is_empty(&ia_ptr->psp_list_head) in dapl_ia_abrupt_close() 231 while (sp_ptr != NULL) { in dapl_ia_abrupt_close() 233 &sp_ptr->header.ia_list_entry); in dapl_ia_abrupt_close() [all …]
|
H A D | dapl_psp_query.c | 68 DAPL_SP *sp_ptr; in dapl_psp_query() local 90 sp_ptr = (DAPL_SP *) psp_handle; in dapl_psp_query() 95 psp_param->ia_handle = sp_ptr->ia_handle; in dapl_psp_query() 96 psp_param->conn_qual = sp_ptr->conn_qual; in dapl_psp_query() 97 psp_param->evd_handle = sp_ptr->evd_handle; in dapl_psp_query() 98 psp_param->psp_flags = sp_ptr->psp_flags; in dapl_psp_query()
|
H A D | dapl_rsp_query.c | 68 DAPL_SP *sp_ptr; in dapl_rsp_query() local 89 sp_ptr = (DAPL_SP *)rsp_handle; in dapl_rsp_query() 94 rsp_param->ia_handle = sp_ptr->ia_handle; in dapl_rsp_query() 95 rsp_param->conn_qual = sp_ptr->conn_qual; in dapl_rsp_query() 96 rsp_param->evd_handle = sp_ptr->evd_handle; in dapl_rsp_query() 97 rsp_param->ep_handle = sp_ptr->ep_handle; in dapl_rsp_query()
|
H A D | dapl_cr_reject.c | 74 DAPL_SP *sp_ptr; in dapl_cr_reject() local 101 IB_CM_REJ_REASON_CONSUMER_REJ, cr_ptr->sp_ptr); in dapl_cr_reject() 116 sp_ptr = cr_ptr->sp_ptr; in dapl_cr_reject() 118 sp_ptr->psp_flags == DAT_PSP_PROVIDER_FLAG) { in dapl_cr_reject() 122 dapl_sp_remove_cr(cr_ptr->sp_ptr, cr_ptr); in dapl_cr_reject()
|
H A D | dapl_osd.c | 373 DAPL_SP *sp_ptr; in dapls_osd_fork_cleanup() local 415 sp_ptr = (DAPL_SP *) dapl_llist_peek_head( in dapls_osd_fork_cleanup() 417 dapl_os_atomic_dec(&((DAPL_EVD *)sp_ptr-> in dapls_osd_fork_cleanup() 419 dapls_ia_unlink_sp(ia_ptr, sp_ptr); in dapls_osd_fork_cleanup() 420 dapls_sp_free_sp(sp_ptr); in dapls_osd_fork_cleanup() 465 sp_ptr = (DAPL_SP *) dapl_llist_peek_head( in dapls_osd_fork_cleanup() 467 while (!dapl_llist_is_empty(&sp_ptr-> in dapls_osd_fork_cleanup() 471 &sp_ptr->cr_list_head); in dapls_osd_fork_cleanup() 472 dapl_sp_remove_cr(sp_ptr, cr_ptr); in dapls_osd_fork_cleanup() 476 dapls_ia_unlink_sp(ia_ptr, sp_ptr); in dapls_osd_fork_cleanup() [all …]
|
H A D | dapl_cr_handoff.c | 84 dapl_sp_remove_cr(cr_ptr->sp_ptr, cr_ptr); in dapl_cr_handoff()
|
/titanic_50/usr/src/uts/common/fs/hsfs/ |
H A D | hsfs_susp.c | 118 uchar_t *sp_ptr = sig_args_p->SUF_ptr; in share_protocol() local 121 if (!CHECK_BYTES_OK(sp_ptr)) in share_protocol() 129 if (SUSP_VERSION < SUF_VER(sp_ptr)) { in share_protocol() 132 (int)SUF_VER(sp_ptr)); in share_protocol() 138 sig_args_p->fsp->hsfs_sua_off = SP_SUA_OFFSET(sp_ptr); in share_protocol() 140 return (sp_ptr + SUF_LEN(sp_ptr)); in share_protocol()
|
/titanic_50/usr/src/lib/udapl/udapl_tavor/tavor/ |
H A D | dapl_tavor_ibtf_cm.c | 401 IN DAT_UINT64 ServiceID, IN DAPL_SP *sp_ptr) in dapls_ib_setup_conn_listener() argument 408 DAPL_EVD *evd_p = (DAPL_EVD *)sp_ptr->evd_handle; in dapls_ib_setup_conn_listener() 431 args.sr_sp_cookie = (uintptr_t)sp_ptr; in dapls_ib_setup_conn_listener() 442 sp_ptr->cm_srvc_handle = srvc_hdl; in dapls_ib_setup_conn_listener() 443 sp_ptr->conn_qual = args.sr_retsid; in dapls_ib_setup_conn_listener() 449 sp_ptr->conn_qual); in dapls_ib_setup_conn_listener() 471 dapls_ib_remove_conn_listener(IN DAPL_IA *ia_ptr, IN DAPL_SP *sp_ptr) in dapls_ib_remove_conn_listener() argument 485 srvc_hdl = (struct dapls_ib_cm_srvc_handle *)sp_ptr-> in dapls_ib_remove_conn_listener() 497 sp_ptr->cm_srvc_handle = NULL; in dapls_ib_remove_conn_listener() 503 sp_ptr->conn_qual); in dapls_ib_remove_conn_listener() [all …]
|
/titanic_50/usr/src/lib/udapl/udapl_tavor/include/ |
H A D | dapl_sp_util.h | 53 IN DAPL_SP *sp_ptr); 57 IN DAPL_SP *sp_ptr, 61 IN DAPL_SP *sp_ptr, 65 IN DAPL_SP *sp_ptr,
|
H A D | dapl_adapter_util.h | 106 IN DAPL_SP *sp_ptr); 110 IN DAPL_SP *sp_ptr); 121 IN DAPL_SP *sp_ptr);
|
H A D | dapl.h | 588 DAPL_SP *sp_ptr; member
|