Home
last modified time | relevance | path

Searched refs:p_item (Results 1 – 19 of 19) sorted by relevance

/NextBSD/contrib/ofed/management/opensm/complib/
HDcl_map.c90 static boolean_t __cl_map_is_left_child(IN const cl_map_item_t * const p_item) in __cl_map_is_left_child() argument
92 CL_ASSERT(p_item); in __cl_map_is_left_child()
93 CL_ASSERT(p_item->p_up); in __cl_map_is_left_child()
94 CL_ASSERT(p_item->p_up != p_item); in __cl_map_is_left_child()
96 return (p_item->p_up->p_left == p_item); in __cl_map_is_left_child()
103 const p_item) in __cl_map_get_parent_ptr_to_item() argument
105 CL_ASSERT(p_item); in __cl_map_get_parent_ptr_to_item()
106 CL_ASSERT(p_item->p_up); in __cl_map_get_parent_ptr_to_item()
107 CL_ASSERT(p_item->p_up != p_item); in __cl_map_get_parent_ptr_to_item()
109 if (__cl_map_is_left_child(p_item)) in __cl_map_get_parent_ptr_to_item()
[all …]
HDcl_list.c63 cl_list_item_t *p_item; in cl_qlist_insert_array_head() local
76 p_item = (cl_list_item_t *) ((uint8_t *) p_array + in cl_qlist_insert_array_head()
81 cl_qlist_insert_head(p_list, p_item); in cl_qlist_insert_array_head()
84 p_item = (cl_list_item_t *) ((uint8_t *) p_item - item_size); in cl_qlist_insert_array_head()
93 cl_list_item_t *p_item; in cl_qlist_insert_array_tail() local
102 p_item = p_array; in cl_qlist_insert_array_tail()
106 cl_qlist_insert_tail(p_list, p_item); in cl_qlist_insert_array_tail()
109 p_item = (cl_list_item_t *) ((uint8_t *) p_item + item_size); in cl_qlist_insert_array_tail()
118 cl_list_item_t *p_item; in cl_qlist_insert_list_head() local
135 p_item = cl_qlist_head(p_src_list); in cl_qlist_insert_list_head()
[all …]
/NextBSD/contrib/ofed/management/opensm/libvendor/
HDosm_vendor_mlx_txn.c277 cl_map_item_t *p_item; in osmv_txn_abort_rmpp_txns() local
287 p_item = cl_qmap_head(p_map); in osmv_txn_abort_rmpp_txns()
288 p_obj = PARENT_STRUCT(p_item, cl_map_obj_t, item); in osmv_txn_abort_rmpp_txns()
300 cl_qmap_remove_item(p_map, p_item); in osmv_txn_abort_rmpp_txns()
362 cl_map_item_t *p_item; in __osmv_txnmgr_lookup() local
377 p_item = cl_qmap_head(p_tx_mgr->p_txn_map); in __osmv_txnmgr_lookup()
378 while (p_item != cl_qmap_end(p_tx_mgr->p_txn_map)) { in __osmv_txnmgr_lookup()
379 tmp_key = cl_qmap_key(p_item); in __osmv_txnmgr_lookup()
383 p_item = cl_qmap_next(p_item); in __osmv_txnmgr_lookup()
386 p_item = cl_qmap_get(p_tx_mgr->p_txn_map, key); in __osmv_txnmgr_lookup()
[all …]
HDosm_vendor_mlx_ibmgt.c481 cl_list_item_t *p_item, *p_item_tmp; in osmv_transport_done() local
503 p_item = cl_qlist_head(p_list); in osmv_transport_done()
504 while (p_item != cl_qlist_end(p_list)) { in osmv_transport_done()
505 p_obj = PARENT_STRUCT(p_item, cl_list_obj_t, list_item); in osmv_transport_done()
509 p_item_tmp = cl_qlist_next(p_item); in osmv_transport_done()
510 p_item = p_item_tmp; in osmv_transport_done()
513 CL_ASSERT(p_item != cl_qlist_end(p_list)); in osmv_transport_done()
514 cl_qlist_remove_item(p_list, p_item); in osmv_transport_done()
543 p_item = cl_qlist_head(p_list); in osmv_transport_done()
544 while (p_item != cl_qlist_end(p_list)) { in osmv_transport_done()
[all …]
HDosm_vendor_mlx_anafa.c108 cl_list_item_t *p_item; in osm_vendor_delete() local
120 p_item = cl_qlist_remove_head(&((*pp_vend)->bind_handles)); in osm_vendor_delete()
121 while (p_item != cl_qlist_end(&((*pp_vend)->bind_handles))) { in osm_vendor_delete()
123 p_obj = PARENT_STRUCT(p_item, cl_list_obj_t, list_item); in osm_vendor_delete()
133 p_item = in osm_vendor_delete()
340 cl_list_item_t *p_item, *p_item_tmp; in osm_vendor_unbind() local
347 p_item = cl_qlist_head(&p_bo->p_vendor->bind_handles); in osm_vendor_unbind()
348 while (p_item != cl_qlist_end(&p_bo->p_vendor->bind_handles)) { in osm_vendor_unbind()
349 p_obj = PARENT_STRUCT(p_item, cl_list_obj_t, list_item); in osm_vendor_unbind()
353 p_item_tmp = cl_qlist_next(p_item); in osm_vendor_unbind()
[all …]
HDosm_vendor_mlx_sar.c114 cl_list_item_t *p_item; in osmv_rmpp_sar_reassemble_arbt_mad() local
123 p_item = cl_qlist_head(p_bufs); in osmv_rmpp_sar_reassemble_arbt_mad()
124 p_obj = PARENT_STRUCT(p_item, cl_list_obj_t, list_item); in osmv_rmpp_sar_reassemble_arbt_mad()
133 p_item = cl_qlist_remove_head(p_bufs); in osmv_rmpp_sar_reassemble_arbt_mad()
134 p_obj = PARENT_STRUCT(p_item, cl_list_obj_t, list_item); in osmv_rmpp_sar_reassemble_arbt_mad()
HDosm_vendor_mlx.c102 cl_list_item_t *p_item; in osm_vendor_delete() local
111 p_item = cl_qlist_remove_head(&((*pp_vend)->bind_handles)); in osm_vendor_delete()
112 while (p_item != cl_qlist_end(&((*pp_vend)->bind_handles))) { in osm_vendor_delete()
114 p_obj = PARENT_STRUCT(p_item, cl_list_obj_t, list_item); in osm_vendor_delete()
123 p_item = cl_qlist_remove_head(&((*pp_vend)->bind_handles)); in osm_vendor_delete()
323 cl_list_item_t *p_item, *p_item_tmp; in osm_vendor_unbind() local
330 p_item = cl_qlist_head(p_bh_list); in osm_vendor_unbind()
331 while (p_item != cl_qlist_end(p_bh_list)) { in osm_vendor_unbind()
332 p_obj = PARENT_STRUCT(p_item, cl_list_obj_t, list_item); in osm_vendor_unbind()
336 p_item_tmp = cl_qlist_next(p_item); in osm_vendor_unbind()
[all …]
HDosm_vendor_mlx_rmpp_ctx.c282 cl_list_item_t *p_item; in osmv_rmpp_recv_ctx_get_byte_num_from_first() local
287 p_item = cl_qlist_head(p_recv_ctx->p_rbuf); in osmv_rmpp_recv_ctx_get_byte_num_from_first()
288 p_obj = PARENT_STRUCT(p_item, cl_list_obj_t, list_item); in osmv_rmpp_recv_ctx_get_byte_num_from_first()
312 cl_list_item_t *p_item; in osmv_rmpp_recv_ctx_get_byte_num_from_last() local
317 p_item = cl_qlist_tail(p_recv_ctx->p_rbuf); in osmv_rmpp_recv_ctx_get_byte_num_from_last()
318 p_obj = PARENT_STRUCT(p_item, cl_list_obj_t, list_item); in osmv_rmpp_recv_ctx_get_byte_num_from_last()
/NextBSD/contrib/ofed/management/opensm/include/complib/
HDcl_fleximap.h355 static inline const void *cl_fmap_key(IN const cl_fmap_item_t * const p_item) in cl_fmap_key() argument
357 CL_ASSERT(p_item); in cl_fmap_key()
358 return (p_item->p_key); in cl_fmap_key()
528 const p_item) in cl_fmap_next()
530 CL_ASSERT(p_item); in cl_fmap_next()
531 return ((cl_fmap_item_t *) p_item->pool_item.list_item.p_next); in cl_fmap_next()
561 const p_item) in cl_fmap_prev()
563 CL_ASSERT(p_item); in cl_fmap_prev()
564 return ((cl_fmap_item_t *) p_item->pool_item.list_item.p_prev); in cl_fmap_prev()
594 IN cl_fmap_item_t * const p_item);
[all …]
HDcl_qmap.h435 static inline uint64_t cl_qmap_key(IN const cl_map_item_t * const p_item) in cl_qmap_key() argument
437 CL_ASSERT(p_item); in cl_qmap_key()
438 return (p_item->key); in cl_qmap_key()
600 static inline cl_map_item_t *cl_qmap_next(IN const cl_map_item_t * const p_item) in cl_qmap_next() argument
602 CL_ASSERT(p_item); in cl_qmap_next()
603 return ((cl_map_item_t *) p_item->pool_item.list_item.p_next); in cl_qmap_next()
632 static inline cl_map_item_t *cl_qmap_prev(IN const cl_map_item_t * const p_item) in cl_qmap_prev() argument
634 CL_ASSERT(p_item); in cl_qmap_prev()
635 return ((cl_map_item_t *) p_item->pool_item.list_item.p_prev); in cl_qmap_prev()
666 IN cl_map_item_t * const p_item);
[all …]
HDcl_qlist.h1161 cl_list_item_t *p_item; in cl_qlist_remove_head() local
1168 p_item = cl_qlist_head(p_list); in cl_qlist_remove_head()
1170 CL_ASSERT(p_item->p_list == p_list); in cl_qlist_remove_head()
1172 if (p_item == cl_qlist_end(p_list)) in cl_qlist_remove_head()
1173 return (p_item); in cl_qlist_remove_head()
1177 p_item->p_list = NULL; in cl_qlist_remove_head()
1180 __cl_primitive_remove(p_item); in cl_qlist_remove_head()
1184 return (p_item); in cl_qlist_remove_head()
1214 cl_list_item_t *p_item; in cl_qlist_remove_tail() local
1221 p_item = cl_qlist_tail(p_list); in cl_qlist_remove_tail()
[all …]
HDcl_qcomppool.h655 cl_list_item_t *p_item; in cl_qcpool_put_list() local
664 p_item = cl_qlist_head(p_list); in cl_qcpool_put_list()
665 while (p_item != cl_qlist_end(p_list)) { in cl_qcpool_put_list()
666 CL_ASSERT(((cl_pool_item_t *) p_item)->p_pool == p_pool); in cl_qcpool_put_list()
667 p_item = cl_qlist_next(p_item); in cl_qcpool_put_list()
/NextBSD/contrib/ofed/management/opensm/opensm/
HDosm_lid_mgr.c119 cl_list_item_t *p_item; in osm_lid_mgr_destroy() local
124 p_item = cl_qlist_remove_head(&p_mgr->free_ranges); in osm_lid_mgr_destroy()
125 while (p_item != cl_qlist_end(&p_mgr->free_ranges)) { in osm_lid_mgr_destroy()
126 free((osm_lid_mgr_range_t *) p_item); in osm_lid_mgr_destroy()
127 p_item = cl_qlist_remove_head(&p_mgr->free_ranges); in osm_lid_mgr_destroy()
140 osm_db_guid_elem_t *p_item; in __osm_lid_mgr_validate_db() local
162 p_item = (osm_db_guid_elem_t *) cl_qlist_remove_head(&guids); in __osm_lid_mgr_validate_db()
163 while ((cl_list_item_t *) p_item != cl_qlist_end(&guids)) { in __osm_lid_mgr_validate_db()
165 (p_mgr->p_g2l, p_item->guid, &min_lid, &max_lid)) in __osm_lid_mgr_validate_db()
168 p_item->guid); in __osm_lid_mgr_validate_db()
[all …]
HDosm_prtn.c141 cl_map_item_t *p_item; in osm_prtn_add_all() local
145 p_item = cl_qmap_head(p_port_tbl); in osm_prtn_add_all()
146 while (p_item != cl_qmap_end(p_port_tbl)) { in osm_prtn_add_all()
147 p_port = (osm_port_t *) p_item; in osm_prtn_add_all()
148 p_item = cl_qmap_next(p_item); in osm_prtn_add_all()
HDosm_pkey.c119 cl_list_item_t *p_item; in osm_pkey_tbl_cleanup_pending() local
121 p_item = cl_qlist_remove_head(&p_pkey_tbl->pending); in osm_pkey_tbl_cleanup_pending()
122 while (p_item != cl_qlist_end(&p_pkey_tbl->pending)) { in osm_pkey_tbl_cleanup_pending()
123 free((osm_pending_pkey_t *) p_item); in osm_pkey_tbl_cleanup_pending()
HDosm_sa_mcmember_record.c1414 cl_map_item_t *p_item; in mcmr_by_comp_mask() local
1525 p_item = cl_qmap_head(&(p_mgrp->mcm_port_tbl)); in mcmr_by_comp_mask()
1526 while (p_item != cl_qmap_end(&(p_mgrp->mcm_port_tbl))) { in mcmr_by_comp_mask()
1527 p_mcm_port = (osm_mcm_port_t *) p_item; in mcmr_by_comp_mask()
1549 p_item = cl_qmap_next(p_item); in mcmr_by_comp_mask()
/NextBSD/sys/contrib/dev/ath/ath_hal/ar9300/
HDar9300_paprd.c2290 struct ar9300_paprd_pwr_adjust *p_item; in ar9300_paprd_dec_tx_pwr() local
2299 p_item = &ar9300_paprd_pwr_adj_array[i]; in ar9300_paprd_dec_tx_pwr()
2300 pwr_reg = OS_REG_READ(ah, p_item->reg_addr); in ar9300_paprd_dec_tx_pwr()
2301 pwr_temp = ahp->ah_default_tx_power[p_item->target_rate]; in ar9300_paprd_dec_tx_pwr()
2302 pwr_temp -= (p_item->sub_db * 2); in ar9300_paprd_dec_tx_pwr()
2303 pwr_temp = pwr_temp << p_item->reg_mask_offset; in ar9300_paprd_dec_tx_pwr()
2304 pwr_temp |= (pwr_reg&~(p_item->reg_mask <<p_item->reg_mask_offset)); in ar9300_paprd_dec_tx_pwr()
2308 OS_REG_WRITE(ah, p_item->reg_addr, pwr_temp); in ar9300_paprd_dec_tx_pwr()
/NextBSD/contrib/ofed/management/opensm/osmtest/
HDosmtest.c435 cl_map_item_t *p_item, *p_next_item; in osmtest_destroy() local
450 p_item = p_next_item; in osmtest_destroy()
451 p_next_item = cl_qmap_next(p_item); in osmtest_destroy()
452 free(p_item); in osmtest_destroy()
456 p_item = p_next_item; in osmtest_destroy()
457 p_next_item = cl_qmap_next(p_item); in osmtest_destroy()
458 free(p_item); in osmtest_destroy()
462 p_item = p_next_item; in osmtest_destroy()
463 p_next_item = cl_qmap_next(p_item); in osmtest_destroy()
464 free(p_item); in osmtest_destroy()
[all …]
HDosmt_multicast.c162 cl_map_item_t *p_item, *p_next_item; in osmt_query_mcast() local
217 p_item = p_next_item; in osmt_query_mcast()
218 p_next_item = cl_qmap_next(p_item); in osmt_query_mcast()
219 cl_qmap_remove_item(&p_osmt->exp_subn.mgrp_mlid_tbl, p_item); in osmt_query_mcast()
220 free(p_item); in osmt_query_mcast()