Home
last modified time | relevance | path

Searched refs:p_pkey_tbl (Results 1 – 9 of 9) sorted by relevance

/freebsd/contrib/ofed/opensm/opensm/
H A Dosm_pkey.c59 void osm_pkey_tbl_construct(IN osm_pkey_tbl_t * p_pkey_tbl) in osm_pkey_tbl_construct() argument
61 cl_map_construct(&p_pkey_tbl->accum_pkeys); in osm_pkey_tbl_construct()
62 cl_ptr_vector_construct(&p_pkey_tbl->blocks); in osm_pkey_tbl_construct()
63 cl_ptr_vector_construct(&p_pkey_tbl->new_blocks); in osm_pkey_tbl_construct()
64 cl_map_construct(&p_pkey_tbl->keys); in osm_pkey_tbl_construct()
67 void osm_pkey_tbl_destroy(IN osm_pkey_tbl_t * p_pkey_tbl) in osm_pkey_tbl_destroy() argument
72 num_blocks = (uint16_t) (cl_ptr_vector_get_size(&p_pkey_tbl->blocks)); in osm_pkey_tbl_destroy()
74 if ((p_block = cl_ptr_vector_get(&p_pkey_tbl->blocks, i))) in osm_pkey_tbl_destroy()
76 cl_ptr_vector_destroy(&p_pkey_tbl->blocks); in osm_pkey_tbl_destroy()
79 (uint16_t) (cl_ptr_vector_get_size(&p_pkey_tbl->new_blocks)); in osm_pkey_tbl_destroy()
[all …]
H A Dosm_pkey_mgr.c58 static void clear_accum_pkey_index(osm_pkey_tbl_t * p_pkey_tbl,
96 osm_pkey_tbl_t *p_pkey_tbl; in pkey_mgr_process_physical_port() local
100 p_pkey_tbl = &p_physp->pkeys; in pkey_mgr_process_physical_port()
112 p_orig_pkey = cl_map_get(&p_pkey_tbl->keys, pkey); in pkey_mgr_process_physical_port()
114 p_orig_pkey = cl_map_get(&p_pkey_tbl->keys, in pkey_mgr_process_physical_port()
123 if (osm_pkey_tbl_get_block_and_idx(p_pkey_tbl, p_orig_pkey, in pkey_mgr_process_physical_port()
147 clear_accum_pkey_index(p_pkey_tbl, in pkey_mgr_process_physical_port()
160 clear_accum_pkey_index(p_pkey_tbl, 0); in pkey_mgr_process_physical_port()
168 clear_accum_pkey_index(p_pkey_tbl, 0); in pkey_mgr_process_physical_port()
176 clear_accum_pkey_index(p_pkey_tbl, in pkey_mgr_process_physical_port()
[all …]
H A Dosm_pkey_rcv.c60 ib_pkey_table_t *p_pkey_tbl; in osm_pkey_rcv_process() local
80 p_pkey_tbl = ib_smp_get_payload_ptr(p_smp); in osm_pkey_rcv_process()
141 p_pkey_tbl, FILE_ID, OSM_LOG_DEBUG); in osm_pkey_rcv_process()
144 p_physp, p_pkey_tbl, block_num, in osm_pkey_rcv_process()
H A Dosm_port.c606 IN ib_pkey_table_t * p_pkey_tbl, in osm_physp_set_pkey_tbl() argument
612 CL_ASSERT(p_pkey_tbl); in osm_physp_set_pkey_tbl()
651 osm_pkey_tbl_set(&p_physp->pkeys, block_num, p_pkey_tbl, in osm_physp_set_pkey_tbl()
H A Dosm_helper.c2159 IN const ib_pkey_table_t * p_pkey_tbl, in osm_dump_pkey_block_to_buf() argument
2162 if (!buf || !p_pkey_tbl) in osm_dump_pkey_block_to_buf()
2170 cl_ntoh16(p_pkey_tbl->pkey_entry[i])); in osm_dump_pkey_block_to_buf()
2183 IN const ib_pkey_table_t * p_pkey_tbl, in osm_dump_pkey_block() argument
2190 p_pkey_tbl, buf); in osm_dump_pkey_block()
2198 IN const ib_pkey_table_t * p_pkey_tbl, in osm_dump_pkey_block_v2() argument
2206 port_num, p_pkey_tbl, buf); in osm_dump_pkey_block_v2()
H A Dosm_perfmgr.c1522 osm_pkey_tbl_t *p_pkey_tbl; in validate_redir_pkey() local
1538 p_pkey_tbl = &p_port->p_physp->pkeys; in validate_redir_pkey()
1539 if (!p_pkey_tbl) { in validate_redir_pkey()
1545 p_orig_pkey = cl_map_get(&p_pkey_tbl->keys, in validate_redir_pkey()
1554 if (osm_pkey_tbl_get_block_and_idx(p_pkey_tbl, p_orig_pkey, in validate_redir_pkey()
/freebsd/contrib/ofed/opensm/include/opensm/
H A Dosm_pkey.h187 void osm_pkey_tbl_construct(IN osm_pkey_tbl_t * p_pkey_tbl);
205 ib_api_status_t osm_pkey_tbl_init(IN osm_pkey_tbl_t * p_pkey_tbl);
223 void osm_pkey_tbl_destroy(IN osm_pkey_tbl_t * p_pkey_tbl);
242 osm_pkey_tbl_get_num_blocks(IN const osm_pkey_tbl_t * p_pkey_tbl) in osm_pkey_tbl_get_num_blocks() argument
244 return ((uint16_t) (cl_ptr_vector_get_size(&p_pkey_tbl->blocks))); in osm_pkey_tbl_get_num_blocks()
268 p_pkey_tbl, in osm_pkey_tbl_block_get()
271 return ((block < cl_ptr_vector_get_size(&p_pkey_tbl->blocks)) ? in osm_pkey_tbl_block_get()
273 &p_pkey_tbl->blocks, block) : NULL); in osm_pkey_tbl_block_get()
300 p_pkey_tbl, in osm_pkey_tbl_new_block_get()
303 return ((block < cl_ptr_vector_get_size(&p_pkey_tbl->new_blocks)) ? in osm_pkey_tbl_new_block_get()
[all …]
H A Dosm_helper.h403 IN const ib_pkey_table_t * p_pkey_tbl,
408 IN const ib_pkey_table_t * p_pkey_tbl,
H A Dosm_port.h518 IN ib_pkey_table_t * p_pkey_tbl,