• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/ofed/opensm/libvendor/

Lines Matching defs:p_umadt_obj

132 	umadt_obj_t *p_umadt_obj;
136 p_umadt_obj = malloc(sizeof(umadt_obj_t));
137 if (p_umadt_obj) {
138 memset(p_umadt_obj, 0, sizeof(umadt_obj_t));
140 status = osm_vendor_init((osm_vendor_t *) p_umadt_obj, p_log,
143 osm_vendor_delete((osm_vendor_t **) & p_umadt_obj);
152 return ((osm_vendor_t *) p_umadt_obj);
157 umadt_obj_t *p_umadt_obj = (umadt_obj_t *) * pp_vend;
162 OSM_LOG_ENTER(p_umadt_obj->p_log);
164 cl_spinlock_acquire(&p_umadt_obj->register_lock);
166 (mad_bind_info_t *) cl_qlist_head(&p_umadt_obj->register_list);
167 count = cl_qlist_count(&p_umadt_obj->register_list);
168 cl_spinlock_release(&p_umadt_obj->register_lock);
170 cl_spinlock_acquire(&p_umadt_obj->register_lock);
172 cl_spinlock_release(&p_umadt_obj->register_lock);
179 dlclose(p_umadt_obj->umadt_handle);
180 free(p_umadt_obj);
183 OSM_LOG_EXIT(p_umadt_obj->p_log);
197 umadt_obj_t *p_umadt_obj = (umadt_obj_t *) p_vend;
201 p_umadt_obj->p_log = p_log;
202 p_umadt_obj->timeout = timeout;
204 p_umadt_obj->umadt_handle = dlopen("libibt.so", RTLD_NOW);
206 if (!p_umadt_obj->umadt_handle) {
211 dlsym(p_umadt_obj->umadt_handle, "uMadtGetInterface");
218 Status = (*uMadtGetInterface) (&p_umadt_obj->uMadtInterface);
225 cl_qlist_init(&p_umadt_obj->register_list);
227 cl_spinlock_construct(&p_umadt_obj->register_lock);
228 CL_ASSERT(cl_spinlock_init(&p_umadt_obj->register_lock) == CL_SUCCESS);
229 p_umadt_obj->init_done = TRUE;
260 umadt_obj_t *p_umadt_obj = (umadt_obj_t *) p_vend;
262 OSM_LOG_ENTER(p_umadt_obj->p_log);
268 (PIBT_INIT) dlsym(p_umadt_obj->umadt_handle, "IbtInit");
278 (PIBT_GET_INTERFACE) dlsym(p_umadt_obj->umadt_handle,
286 (*pfnIbtGetInterface) (&p_umadt_obj->IbtInterface);
290 p_umadt_obj->IbtInterface.GetCaGuidArray(&caGuidCount,
305 Status = p_umadt_obj->IbtInterface.Vpi.OpenCA(CaGuidArray[caCount], NULL, /* CACompletionCallback */
312 Status = p_umadt_obj->IbtInterface.Vpi.QueryCA(caHandle,
317 p_umadt_obj->IbtInterface.Vpi.CloseCA(caHandle);
332 p_umadt_obj->IbtInterface.Vpi.CloseCA(caHandle);
343 Status = p_umadt_obj->IbtInterface.Vpi.QueryCA(caHandle,
348 p_umadt_obj->IbtInterface.Vpi.CloseCA(caHandle);
363 p_umadt_obj->IbtInterface.Vpi.CloseCA(caHandle);
383 umadt_obj_t *p_umadt_obj = p_mad_bind_info->p_umadt_obj;
385 OSM_LOG_ENTER(p_umadt_obj->p_log);
389 p_umadt_obj = p_mad_bind_info->p_umadt_obj;
392 CL_ASSERT(p_umadt_obj->init_done);
399 p_umadt_obj->uMadtInterface.uMadtGetSendMad(p_mad_bind_info->
439 umadt_obj_t *p_umadt_obj;
446 p_umadt_obj = p_mad_bind_info->p_umadt_obj;
449 CL_ASSERT(p_umadt_obj->init_done);
464 p_umadt_obj->uMadtInterface.
476 p_umadt_obj->uMadtInterface.
506 umadt_obj_t *p_umadt_obj = NULL;
518 p_umadt_obj = p_mad_bind_info->p_umadt_obj;
521 CL_ASSERT(p_umadt_obj);
522 CL_ASSERT(p_umadt_obj->init_done);
579 p_umadt_obj->uMadtInterface.
593 p_umadt_obj->uMadtInterface.uMadtPostSend(p_mad_bind_info->
604 p_umadt_obj->uMadtInterface.
628 p_umadt_obj->uMadtInterface.
698 p_umadt_obj->uMadtInterface.
709 p_umadt_obj->uMadtInterface.
739 umadt_obj_t *p_umadt_obj;
744 p_umadt_obj = (umadt_obj_t *) p_vend;
747 CL_ASSERT(p_umadt_obj->init_done);
769 p_mad_bind_info->p_umadt_obj = p_umadt_obj;
775 Status = p_umadt_obj->uMadtInterface.uMadtRegister(p_umadt_reg_class,
780 OSM_LOG_EXIT(p_umadt_obj->p_log);
807 cl_spinlock_acquire(&p_umadt_obj->register_lock);
809 cl_qlist_insert_head(&p_umadt_obj->register_list,
812 cl_spinlock_release(&p_umadt_obj->register_lock);
817 if (p_umadt_obj->timeout) {
822 OSM_LOG_EXIT(p_umadt_obj->p_log);
829 umadt_obj_t *p_umadt_obj;
834 p_umadt_obj = p_mad_bind_info->p_umadt_obj;
837 CL_ASSERT(p_umadt_obj);
838 CL_ASSERT(p_umadt_obj->init_done);
841 p_umadt_obj->uMadtInterface.uMadtDestroy(&p_mad_bind_info->
874 umadt_obj_t *p_umadt_obj;
888 p_umadt_obj = p_mad_bind_info->p_umadt_obj;
893 p_umadt_obj->uMadtInterface.
899 Status = p_umadt_obj->uMadtInterface.uMadtWaitForAnyCompletion(p_mad_bind_info->umadt_handle, RECV_COMPLETION, 0x5000); /* 5 sec timeout */
907 p_umadt_obj->uMadtInterface.
931 p_umadt_obj->uMadtInterface.
973 osm_log(p_mad_bind_info->p_umadt_obj->p_log, OSM_LOG_DEBUG,
1001 osm_log(p_mad_bind_info->p_umadt_obj->p_log, OSM_LOG_DEBUG,
1028 umadt_obj_t *p_umadt_obj;
1030 p_umadt_obj = p_mad_bind_info->p_umadt_obj;
1032 cl_spinlock_acquire(&p_umadt_obj->register_lock);
1033 if (!cl_is_item_in_qlist(&p_umadt_obj->register_list,
1035 cl_spinlock_release(&p_umadt_obj->register_lock);
1038 cl_spinlock_release(&p_umadt_obj->register_lock);
1046 umadt_obj_t *p_umadt_obj;
1054 p_umadt_obj = p_mad_bind_info->p_umadt_obj;
1055 timeout = p_umadt_obj->timeout * 1000;
1083 osm_log(p_mad_bind_info->p_umadt_obj->p_log, OSM_LOG_DEBUG,