Home
last modified time | relevance | path

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

/freebsd/contrib/ofed/opensm/complib/
H A Dcl_map.c86 static boolean_t __cl_map_is_left_child(IN const cl_map_item_t * const p_item) in __cl_map_is_left_child() argument
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()
92 return (p_item->p_up->p_left == p_item); in __cl_map_is_left_child()
99 const p_item) in __cl_map_get_parent_ptr_to_item() argument
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()
105 if (__cl_map_is_left_child(p_item)) in __cl_map_get_parent_ptr_to_item()
[all …]
H A Dcl_list.c59 cl_list_item_t *p_item; in cl_qlist_insert_array_head() local
72 p_item = (cl_list_item_t *) ((uint8_t *) p_array + in cl_qlist_insert_array_head()
77 cl_qlist_insert_head(p_list, p_item); in cl_qlist_insert_array_head()
80 p_item = (cl_list_item_t *) ((uint8_t *) p_item - item_size); in cl_qlist_insert_array_head()
89 cl_list_item_t *p_item; in cl_qlist_insert_array_tail() local
98 p_item = p_array; in cl_qlist_insert_array_tail()
102 cl_qlist_insert_tail(p_list, p_item); in cl_qlist_insert_array_tail()
105 p_item = (cl_list_item_t *) ((uint8_t *) p_item + item_size); in cl_qlist_insert_array_tail()
113 cl_list_item_t *p_item; in cl_qlist_insert_list_head() local
130 p_item = cl_qlist_head(p_src_list); in cl_qlist_insert_list_head()
[all …]
/freebsd/contrib/ofed/opensm/libvendor/
H A Dosm_vendor_mlx_txn.c279 cl_map_item_t *p_item; in osmv_txn_abort_rmpp_txns() local
289 p_item = cl_qmap_head(p_map); in osmv_txn_abort_rmpp_txns()
290 p_obj = PARENT_STRUCT(p_item, cl_map_obj_t, item); in osmv_txn_abort_rmpp_txns()
302 cl_qmap_remove_item(p_map, p_item); in osmv_txn_abort_rmpp_txns()
364 cl_map_item_t *p_item; in __osmv_txnmgr_lookup() local
379 p_item = cl_qmap_head(p_tx_mgr->p_txn_map); in __osmv_txnmgr_lookup()
380 while (p_item != cl_qmap_end(p_tx_mgr->p_txn_map)) { in __osmv_txnmgr_lookup()
381 tmp_key = cl_qmap_key(p_item); in __osmv_txnmgr_lookup()
385 p_item = cl_qmap_next(p_item); in __osmv_txnmgr_lookup()
388 p_item = cl_qmap_get(p_tx_mgr->p_txn_map, key); in __osmv_txnmgr_lookup()
[all …]
H A Dosm_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 …]
H A Dosm_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 …]
H A Dosm_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()
H A Dosm_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 …]
H A Dosm_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()
/freebsd/contrib/ofed/opensm/include/complib/
H A Dcl_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 …]
H A Dcl_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 …]
H A Dcl_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 …]
H A Dcl_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()
/freebsd/contrib/ofed/opensm/opensm/
H A Dosm_lid_mgr.c116 cl_list_item_t *p_item; in osm_lid_mgr_destroy() local
120 while ((p_item = cl_qlist_remove_head(&p_mgr->free_ranges)) != in osm_lid_mgr_destroy()
122 free((osm_lid_mgr_range_t *) p_item); in osm_lid_mgr_destroy()
134 osm_db_guid_elem_t *p_item; in lid_mgr_validate_db() local
154 while ((p_item = (osm_db_guid_elem_t *) cl_qlist_remove_head(&guids)) in lid_mgr_validate_db()
156 if (osm_db_guid2lid_get(p_mgr->p_g2l, p_item->guid, in lid_mgr_validate_db()
160 p_item->guid); in lid_mgr_validate_db()
165 || p_item->guid == 0 in lid_mgr_validate_db()
171 max_lid, p_item->guid); in lid_mgr_validate_db()
182 min_lid, max_lid, p_item->guid, in lid_mgr_validate_db()
[all …]
H A Dosm_subnet.c928 osm_db_guid_elem_t *p_item; in subn_validate_g2m() local
941 while ((p_item = (osm_db_guid_elem_t *) cl_qlist_remove_head(&guids)) in subn_validate_g2m()
945 if (p_item->guid == 0) { in subn_validate_g2m()
949 } else if (osm_db_guid2mkey_get(p_subn->p_g2m, p_item->guid, in subn_validate_g2m()
953 PRIx64 "\n", p_item->guid); in subn_validate_g2m()
959 p_item->guid)) in subn_validate_g2m()
963 p_item->guid); in subn_validate_g2m()
965 free(p_item); in subn_validate_g2m()
975 osm_db_neighbor_elem_t *p_item; in subn_validate_neighbor() local
989 while ((p_item = in subn_validate_neighbor()
[all …]
H A Dosm_prtn.c188 cl_map_item_t *p_item; in osm_prtn_add_all() local
192 p_item = cl_qmap_head(p_port_tbl); in osm_prtn_add_all()
193 while (p_item != cl_qmap_end(p_port_tbl)) { in osm_prtn_add_all()
194 p_port = (osm_port_t *) p_item; in osm_prtn_add_all()
195 p_item = cl_qmap_next(p_item); in osm_prtn_add_all()
H A Dosm_sa_guidinfo_record.c500 cl_map_item_t *p_item; in set_guidinfo() local
576 p_item = cl_qmap_get(&sa->sm->p_subn->alias_port_guid_tbl, in set_guidinfo()
578 if (p_item == cl_qmap_end(&sa->sm->p_subn->alias_port_guid_tbl)) in set_guidinfo()
581 p_alias_guid = (osm_alias_guid_t *) p_item; in set_guidinfo()
612 p_item = cl_qmap_get(&sa->sm->p_subn->alias_port_guid_tbl, in set_guidinfo()
614 if (p_item == cl_qmap_end(&sa->sm->p_subn->alias_port_guid_tbl)) { in set_guidinfo()
H A Dosm_prtn_config.c390 cl_map_iterator_t p_next, p_item; in manage_membership_change() local
424 p_item = p_next; in manage_membership_change()
425 p_next = cl_map_next(p_item); in manage_membership_change()
426 p_physp = (osm_physp_t *) cl_map_obj(p_item); in manage_membership_change()
428 cl_map_remove_item(p_tbl, p_item); in manage_membership_change()
H A Dosm_qos.c141 static void osm_qos_mad_delete(qos_mad_item_t ** p_item) in osm_qos_mad_delete() argument
143 free(*p_item); in osm_qos_mad_delete()
144 *p_item = NULL; in osm_qos_mad_delete()
H A Dosm_sa_mcmember_record.c1468 cl_map_item_t *p_item; in mcmr_by_comp_mask() local
1535 p_item = cl_qmap_head(&(p_mgrp->mcm_alias_port_tbl)); in mcmr_by_comp_mask()
1536 while (p_item != cl_qmap_end(&(p_mgrp->mcm_alias_port_tbl))) { in mcmr_by_comp_mask()
1537 p_mcm_alias_guid = (osm_mcm_alias_guid_t *) p_item; in mcmr_by_comp_mask()
1560 p_item = cl_qmap_next(p_item); in mcmr_by_comp_mask()
/freebsd/sys/contrib/dev/ath/ath_hal/ar9300/
H A Dar9300_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()