Home
last modified time | relevance | path

Searched refs:CL_ASSERT (Results 1 – 25 of 127) sorted by relevance

123456

/freebsd/contrib/ofed/opensm/complib/
H A Dcl_list.c61 CL_ASSERT(p_list); in cl_qlist_insert_array_head()
62 CL_ASSERT(p_list->state == CL_INITIALIZED); in cl_qlist_insert_array_head()
63 CL_ASSERT(p_array); in cl_qlist_insert_array_head()
64 CL_ASSERT(item_size >= sizeof(cl_list_item_t)); in cl_qlist_insert_array_head()
65 CL_ASSERT(item_count); in cl_qlist_insert_array_head()
91 CL_ASSERT(p_list); in cl_qlist_insert_array_tail()
92 CL_ASSERT(p_list->state == CL_INITIALIZED); in cl_qlist_insert_array_tail()
93 CL_ASSERT(p_array); in cl_qlist_insert_array_tail()
94 CL_ASSERT(item_size >= sizeof(cl_list_item_t)); in cl_qlist_insert_array_tail()
95 CL_ASSERT(item_count); in cl_qlist_insert_array_tail()
[all …]
H A Dcl_map.c79 CL_ASSERT(p_map); in __cl_map_root()
88 CL_ASSERT(p_item); in __cl_map_is_left_child()
89 CL_ASSERT(p_item->p_up); in __cl_map_is_left_child()
90 CL_ASSERT(p_item->p_up != p_item); in __cl_map_is_left_child()
101 CL_ASSERT(p_item); in __cl_map_get_parent_ptr_to_item()
102 CL_ASSERT(p_item->p_up); in __cl_map_get_parent_ptr_to_item()
103 CL_ASSERT(p_item->p_up != p_item); in __cl_map_get_parent_ptr_to_item()
108 CL_ASSERT(p_item->p_up->p_right == p_item); in __cl_map_get_parent_ptr_to_item()
132 CL_ASSERT(p_map); in __cl_map_rot_left()
133 CL_ASSERT(p_item); in __cl_map_rot_left()
[all …]
H A Dcl_ptr_vector.c52 CL_ASSERT(p_vector); in cl_ptr_vector_construct()
65 CL_ASSERT(p_vector); in cl_ptr_vector_init()
89 CL_ASSERT(p_vector); in cl_ptr_vector_destroy()
90 CL_ASSERT(cl_is_state_valid(p_vector->state)); in cl_ptr_vector_destroy()
107 CL_ASSERT(p_vector); in cl_ptr_vector_at()
108 CL_ASSERT(p_vector->state == CL_INITIALIZED); in cl_ptr_vector_at()
124 CL_ASSERT(p_vector); in cl_ptr_vector_set()
125 CL_ASSERT(p_vector->state == CL_INITIALIZED); in cl_ptr_vector_set()
149 CL_ASSERT(p_vector); in cl_ptr_vector_remove()
150 CL_ASSERT(p_vector->state == CL_INITIALIZED); in cl_ptr_vector_remove()
[all …]
H A Dcl_pool.c60 CL_ASSERT(p_pool); in cl_qcpool_construct()
79 CL_ASSERT(p_pool); in cl_qcpool_init()
81 CL_ASSERT(num_components); in cl_qcpool_init()
83 CL_ASSERT(component_sizes); in cl_qcpool_init()
88 CL_ASSERT(pfn_initializer || in cl_qcpool_init()
167 CL_ASSERT(p_pool); in cl_qcpool_destroy()
169 CL_ASSERT(cl_is_state_valid(p_pool->state)); in cl_qcpool_destroy()
180 CL_ASSERT(cl_qcpool_count(p_pool) == p_pool->num_objects); in cl_qcpool_destroy()
215 CL_ASSERT(p_pool); in cl_qcpool_grow()
216 CL_ASSERT(p_pool->state == CL_INITIALIZED); in cl_qcpool_grow()
[all …]
H A Dcl_vector.c99 CL_ASSERT(size == sizeof(uint8_t)); in cl_vector_copy8()
124 CL_ASSERT(size == sizeof(uint16_t)); in cl_vector_copy16()
149 CL_ASSERT(size == sizeof(uint32_t)); in cl_vector_copy32()
174 CL_ASSERT(size == sizeof(uint64_t)); in cl_vector_copy64()
182 CL_ASSERT(p_vector); in cl_vector_construct()
198 CL_ASSERT(p_vector); in cl_vector_init()
199 CL_ASSERT(element_size); in cl_vector_init()
259 CL_ASSERT(p_vector); in cl_vector_destroy()
260 CL_ASSERT(cl_is_state_valid(p_vector->state)); in cl_vector_destroy()
268 CL_ASSERT(p_element); in cl_vector_destroy()
[all …]
H A Dcl_spinlock.c44 CL_ASSERT(p_spinlock); in cl_spinlock_construct()
51 CL_ASSERT(p_spinlock); in cl_spinlock_init()
65 CL_ASSERT(p_spinlock); in cl_spinlock_destroy()
66 CL_ASSERT(cl_is_state_valid(p_spinlock->state)); in cl_spinlock_destroy()
79 CL_ASSERT(p_spinlock); in cl_spinlock_acquire()
80 CL_ASSERT(p_spinlock->state == CL_INITIALIZED); in cl_spinlock_acquire()
87 CL_ASSERT(p_spinlock); in cl_spinlock_release()
88 CL_ASSERT(p_spinlock->state == CL_INITIALIZED); in cl_spinlock_release()
H A Dcl_timer.c75 CL_ASSERT(gp_timer_prov == NULL); in __cl_timer_prov_create()
219 CL_ASSERT(p_timer); in cl_timer_init()
220 CL_ASSERT(pfn_callback); in cl_timer_init()
244 CL_ASSERT(p_timer); in cl_timer_destroy()
245 CL_ASSERT(cl_is_state_valid(p_timer->state)); in cl_timer_destroy()
280 CL_ASSERT(p_list_item); in __cl_timer_find()
281 CL_ASSERT(context); in __cl_timer_find()
286 CL_ASSERT(p_in_list->state == CL_INITIALIZED); in __cl_timer_find()
287 CL_ASSERT(p_new->state == CL_INITIALIZED); in __cl_timer_find()
289 CL_ASSERT(p_in_list->timer_state == CL_TIMER_QUEUED); in __cl_timer_find()
[all …]
H A Dcl_thread.c54 CL_ASSERT(p_thread); in __cl_thread_wrapper()
55 CL_ASSERT(p_thread->pfn_callback); in __cl_thread_wrapper()
64 CL_ASSERT(p_thread); in cl_thread_construct()
76 CL_ASSERT(p_thread); in cl_thread_init()
97 CL_ASSERT(p_thread); in cl_thread_destroy()
98 CL_ASSERT(cl_is_state_valid(p_thread->osd.state)); in cl_thread_destroy()
135 CL_ASSERT(p_thread); in cl_is_current_thread()
136 CL_ASSERT(p_thread->osd.state == CL_INITIALIZED); in cl_is_current_thread()
/freebsd/contrib/ofed/opensm/include/complib/
H A Dcl_qlist.h287 CL_ASSERT(p_list_item); in __cl_primitive_insert()
289 CL_ASSERT(p_new_item); in __cl_primitive_insert()
322 CL_ASSERT(p_list_item); in __cl_primitive_remove()
365 CL_ASSERT(p_list_obj); in cl_qlist_set_obj()
396 CL_ASSERT(p_list_obj); in cl_qlist_obj()
438 CL_ASSERT(p_list); in cl_qlist_init()
475 CL_ASSERT(p_list); in cl_qlist_count()
477 CL_ASSERT(p_list->state == CL_INITIALIZED); in cl_qlist_count()
507 CL_ASSERT(p_list); in cl_is_qlist_empty()
509 CL_ASSERT(p_list->state == CL_INITIALIZED); in cl_is_qlist_empty()
[all …]
H A Dcl_list.h260 CL_ASSERT(p_list); in cl_is_list_inited()
365 CL_ASSERT(p_list); in cl_is_list_empty()
366 CL_ASSERT(cl_is_qpool_inited(&p_list->list_item_pool)); in cl_is_list_empty()
398 CL_ASSERT(p_list); in cl_list_insert_head()
399 CL_ASSERT(cl_is_qpool_inited(&p_list->list_item_pool)); in cl_list_insert_head()
449 CL_ASSERT(p_list); in cl_list_insert_tail()
450 CL_ASSERT(cl_is_qpool_inited(&p_list->list_item_pool)); in cl_list_insert_tail()
593 CL_ASSERT(p_list); in cl_list_insert_next()
594 CL_ASSERT(cl_is_qpool_inited(&p_list->list_item_pool)); in cl_list_insert_next()
646 CL_ASSERT(p_list); in cl_list_insert_prev()
[all …]
H A Dcl_passivelock.h124 CL_ASSERT(p_lock); in cl_plock_construct()
159 CL_ASSERT(p_lock); in cl_plock_destroy()
198 CL_ASSERT(p_lock); in cl_plock_init()
238 CL_ASSERT(p_lock); in cl_plock_acquire()
239 CL_ASSERT(p_lock->state == CL_INITIALIZED); in cl_plock_acquire()
242 CL_ASSERT(status == 0); in cl_plock_acquire()
271 CL_ASSERT(p_lock); in cl_plock_excl_acquire()
272 CL_ASSERT(p_lock->state == CL_INITIALIZED); in cl_plock_excl_acquire()
275 CL_ASSERT(status == 0); in cl_plock_excl_acquire()
303 CL_ASSERT(p_lock); in cl_plock_release()
[all …]
H A Dcl_qmap.h318 CL_ASSERT(p_map); in cl_qmap_count()
319 CL_ASSERT(p_map->state == CL_INITIALIZED); in cl_qmap_count()
346 CL_ASSERT(p_map); in cl_is_qmap_empty()
347 CL_ASSERT(p_map->state == CL_INITIALIZED); in cl_is_qmap_empty()
379 CL_ASSERT(p_map_obj); in cl_qmap_set_obj()
410 CL_ASSERT(p_map_obj); in cl_qmap_obj()
437 CL_ASSERT(p_item); in cl_qmap_key()
492 CL_ASSERT(p_map); in cl_qmap_end()
493 CL_ASSERT(p_map->state == CL_INITIALIZED); in cl_qmap_end()
530 CL_ASSERT(p_map); in cl_qmap_head()
[all …]
H A Dcl_fleximap.h298 CL_ASSERT(p_map); in cl_fmap_count()
299 CL_ASSERT(p_map->state == CL_INITIALIZED); in cl_fmap_count()
326 CL_ASSERT(p_map); in cl_is_fmap_empty()
327 CL_ASSERT(p_map->state == CL_INITIALIZED); in cl_is_fmap_empty()
357 CL_ASSERT(p_item); in cl_fmap_key()
419 CL_ASSERT(p_map); in cl_fmap_end()
420 CL_ASSERT(p_map->state == CL_INITIALIZED); in cl_fmap_end()
457 CL_ASSERT(p_map); in cl_fmap_head()
458 CL_ASSERT(p_map->state == CL_INITIALIZED); in cl_fmap_head()
493 CL_ASSERT(p_map); in cl_fmap_tail()
[all …]
H A Dcl_qcomppool.h384 CL_ASSERT(p_pool); in cl_is_qcpool_inited()
386 CL_ASSERT(cl_is_state_valid(p_pool->state)); in cl_is_qcpool_inited()
543 CL_ASSERT(p_pool); in cl_qcpool_count()
544 CL_ASSERT(p_pool->state == CL_INITIALIZED); in cl_qcpool_count()
608 CL_ASSERT(p_pool); in cl_qcpool_put()
609 CL_ASSERT(p_pool->state == CL_INITIALIZED); in cl_qcpool_put()
610 CL_ASSERT(p_pool_item); in cl_qcpool_put()
612 CL_ASSERT(p_pool_item->p_pool == p_pool); in cl_qcpool_put()
658 CL_ASSERT(p_pool); in cl_qcpool_put_list()
659 CL_ASSERT(p_pool->state == CL_INITIALIZED); in cl_qcpool_put_list()
[all …]
H A Dcl_pool.h257 CL_ASSERT(p_pool); in cl_is_pool_inited()
368 CL_ASSERT(p_pool); in cl_pool_destroy()
408 CL_ASSERT(p_pool); in cl_pool_count()
438 CL_ASSERT(p_pool); in cl_pool_get()
444 CL_ASSERT(p_pool_obj->p_object); in cl_pool_get()
482 CL_ASSERT(p_pool); in cl_pool_put()
483 CL_ASSERT(p_object); in cl_pool_put()
490 CL_ASSERT(p_pool_obj->p_object == p_object); in cl_pool_put()
530 CL_ASSERT(p_pool); in cl_pool_grow()
H A Dcl_comppool.h270 CL_ASSERT(p_pool); in cl_is_cpool_inited()
389 CL_ASSERT(p_pool); in cl_cpool_destroy()
429 CL_ASSERT(p_pool); in cl_cpool_count()
461 CL_ASSERT(p_pool); in cl_cpool_get()
467 CL_ASSERT(p_pool_obj->p_object); in cl_cpool_get()
506 CL_ASSERT(p_pool); in cl_cpool_put()
507 CL_ASSERT(p_object); in cl_cpool_put()
514 CL_ASSERT(p_pool_obj->p_object == p_object); in cl_cpool_put()
554 CL_ASSERT(p_pool); in cl_cpool_grow()
H A Dcl_ptr_vector.h315 CL_ASSERT(p_vector); in cl_ptr_vector_get_capacity()
316 CL_ASSERT(p_vector->state == CL_INITIALIZED); in cl_ptr_vector_get_capacity()
350 CL_ASSERT(p_vector); in cl_ptr_vector_get_size()
351 CL_ASSERT(p_vector->state == CL_INITIALIZED); in cl_ptr_vector_get_size()
381 CL_ASSERT(p_vector); in cl_ptr_vector_get()
382 CL_ASSERT(p_vector->state == CL_INITIALIZED); in cl_ptr_vector_get()
383 CL_ASSERT(p_vector->size > index); in cl_ptr_vector_get()
508 CL_ASSERT(p_vector); in cl_ptr_vector_insert()
509 CL_ASSERT(p_vector->state == CL_INITIALIZED); in cl_ptr_vector_insert()
H A Dcl_vector.h477 CL_ASSERT(p_vector); in cl_vector_get_capacity()
478 CL_ASSERT(p_vector->state == CL_INITIALIZED); in cl_vector_get_capacity()
511 CL_ASSERT(p_vector); in cl_vector_get_size()
512 CL_ASSERT(p_vector->state == CL_INITIALIZED); in cl_vector_get_size()
542 CL_ASSERT(p_vector); in cl_vector_get_ptr()
543 CL_ASSERT(p_vector->state == CL_INITIALIZED); in cl_vector_get_ptr()
586 CL_ASSERT(p_vector); in cl_vector_get()
587 CL_ASSERT(p_vector->state == CL_INITIALIZED); in cl_vector_get()
588 CL_ASSERT(p_element); in cl_vector_get()
/freebsd/contrib/ofed/opensm/include/opensm/
H A Dosm_port.h327 CL_ASSERT(p_physp); in osm_physp_is_valid()
358 CL_ASSERT(p_physp); in osm_physp_is_healthy()
420 CL_ASSERT(p_physp); in osm_physp_set_health()
489 CL_ASSERT(p_physp); in osm_physp_set_base_lid()
490 CL_ASSERT(osm_physp_is_valid(p_physp)); in osm_physp_set_base_lid()
562 CL_ASSERT(osm_physp_is_valid(p_physp)); in osm_physp_get_pkey_tbl()
600 CL_ASSERT(p_slvl_tbl); in osm_physp_set_slvl_tbl()
601 CL_ASSERT(osm_physp_is_valid(p_physp)); in osm_physp_set_slvl_tbl()
642 CL_ASSERT(osm_physp_is_valid(p_physp)); in osm_physp_get_slvl_tbl()
677 CL_ASSERT(p_vla_tbl); in osm_physp_set_vla_tbl()
[all …]
/freebsd/contrib/ofed/opensm/opensm/
H A Dosm_mcast_tbl.c59 CL_ASSERT(p_tbl); in osm_mcast_tbl_init()
60 CL_ASSERT(num_ports); in osm_mcast_tbl_init()
96 CL_ASSERT(p_tbl && p_tbl->p_mask_tbl); in osm_mcast_tbl_set()
97 CL_ASSERT(mlid_ho >= IB_LID_MCAST_START_HO); in osm_mcast_tbl_set()
98 CL_ASSERT(mlid_ho <= p_tbl->max_mlid_ho); in osm_mcast_tbl_set()
149 CL_ASSERT(p_tbl); in osm_mcast_tbl_is_port()
152 CL_ASSERT(port_num <= in osm_mcast_tbl_is_port()
154 CL_ASSERT(mlid_ho >= IB_LID_MCAST_START_HO); in osm_mcast_tbl_is_port()
155 CL_ASSERT(mlid_ho <= p_tbl->max_mlid_ho); in osm_mcast_tbl_is_port()
176 CL_ASSERT(p_tbl); in osm_mcast_tbl_is_any_port()
[all …]
H A Dosm_mad_pool.c57 CL_ASSERT(p_pool); in osm_mad_pool_construct()
64 CL_ASSERT(p_pool); in osm_mad_pool_destroy()
82 CL_ASSERT(h_bind != OSM_BIND_INVALID_HANDLE); in osm_mad_pool_get()
83 CL_ASSERT(total_size); in osm_mad_pool_get()
123 CL_ASSERT(h_bind != OSM_BIND_INVALID_HANDLE); in osm_mad_pool_get_wrapper()
124 CL_ASSERT(total_size); in osm_mad_pool_get_wrapper()
125 CL_ASSERT(p_mad); in osm_mad_pool_get_wrapper()
162 CL_ASSERT(p_madw); in osm_mad_pool_put()
/freebsd/contrib/ofed/opensm/include/vendor/
H A Dosm_vendor_sa_api.h408 CL_ASSERT(p_result_madw); in osmv_get_query_result()
410 CL_ASSERT(p_sa_mad); in osmv_get_query_result()
411 CL_ASSERT(ib_get_attr_size(p_sa_mad->attr_offset) * (result_index + 1) + in osmv_get_query_result()
453 CL_ASSERT(p_result_madw); in osmv_get_query_path_rec()
455 CL_ASSERT(p_sa_mad && p_sa_mad->attr_id == IB_MAD_ATTR_PATH_RECORD); in osmv_get_query_path_rec()
495 CL_ASSERT(p_result_madw); in osmv_get_query_portinfo_rec()
497 CL_ASSERT(p_sa_mad && p_sa_mad->attr_id == IB_MAD_ATTR_PORTINFO_RECORD); in osmv_get_query_portinfo_rec()
537 CL_ASSERT(p_result_madw); in osmv_get_query_node_rec()
539 CL_ASSERT(p_sa_mad && p_sa_mad->attr_id == IB_MAD_ATTR_NODE_RECORD); in osmv_get_query_node_rec()
579 CL_ASSERT(p_result_madw); in osmv_get_query_svc_rec()
[all …]
H A Dosm_vendor_mlx_svc.h97 CL_ASSERT(FALSE); in osmv_invert_method()
106 CL_ASSERT(NULL != p_mad); in osmv_mad_is_rmpp()
118 CL_ASSERT(NULL != p_mad); in osmv_mad_is_multi_resp()
125 CL_ASSERT(NULL != p_mad); in osmv_mad_is_sa()
132 CL_ASSERT(p_mad); in osmv_rmpp_is_abort_stop()
141 CL_ASSERT(p_mad); in osmv_rmpp_is_data()
147 CL_ASSERT(p_mad); in osmv_rmpp_is_ack()
154 CL_ASSERT(NULL != p_mad); in osmv_rmpp_is_first()
163 CL_ASSERT(NULL != p_mad); in osmv_rmpp_is_last()
173 CL_ASSERT(p_mad); in osmv_mad_copy()
/freebsd/contrib/ofed/opensm/libvendor/
H A Dosm_vendor_umadt.c228 CL_ASSERT(cl_spinlock_init(&p_umadt_obj->register_lock) == CL_SUCCESS); in osm_vendor_init()
264 CL_ASSERT(p_guids); in osm_vendor_get_ports()
265 CL_ASSERT(p_num_guids); in osm_vendor_get_ports()
387 CL_ASSERT(h_bind); in osm_vendor_get()
392 CL_ASSERT(p_umadt_obj->init_done); in osm_vendor_get()
393 CL_ASSERT(p_vend_wrap); in osm_vendor_get()
394 CL_ASSERT(__valid_mad_handle(p_mad_bind_info)); in osm_vendor_get()
444 CL_ASSERT(h_bind); in osm_vendor_put()
449 CL_ASSERT(p_umadt_obj->init_done); in osm_vendor_put()
450 CL_ASSERT(h_bind); in osm_vendor_put()
[all …]
H A Dosm_vendor_al.c182 CL_ASSERT(p_vw); in __osm_al_send_callback()
183 CL_ASSERT(p_vw->h_av); in __osm_al_send_callback()
258 CL_ASSERT(p_elem->context1 == NULL); in __osm_al_rcv_callback()
259 CL_ASSERT(p_elem->context2 == NULL); in __osm_al_rcv_callback()
290 CL_ASSERT(p_elem->send_context1 != NULL); in __osm_al_rcv_callback()
291 CL_ASSERT(p_elem->send_context2 == NULL); in __osm_al_rcv_callback()
297 CL_ASSERT(p_new_madw); in __osm_al_rcv_callback()
302 CL_ASSERT(p_elem->send_context1 == NULL); in __osm_al_rcv_callback()
303 CL_ASSERT(p_elem->send_context2 == NULL); in __osm_al_rcv_callback()
310 CL_ASSERT(p_new_madw); in __osm_al_rcv_callback()
[all …]

123456