/freebsd/contrib/ofed/opensm/opensm/ |
H A D | osm_mcast_tbl.c | 56 void osm_mcast_tbl_init(IN osm_mcast_tbl_t * p_tbl, IN uint8_t num_ports, in osm_mcast_tbl_init() argument 59 CL_ASSERT(p_tbl); in osm_mcast_tbl_init() 62 memset(p_tbl, 0, sizeof(*p_tbl)); in osm_mcast_tbl_init() 64 p_tbl->max_block_in_use = -1; in osm_mcast_tbl_init() 74 p_tbl->num_entries = capacity; in osm_mcast_tbl_init() 75 p_tbl->num_ports = num_ports; in osm_mcast_tbl_init() 76 p_tbl->max_position = in osm_mcast_tbl_init() 80 p_tbl->max_block = (uint16_t) ((ROUNDUP(p_tbl->num_entries, in osm_mcast_tbl_init() 85 void osm_mcast_tbl_destroy(IN osm_mcast_tbl_t * p_tbl) in osm_mcast_tbl_destroy() argument 87 free(p_tbl->p_mask_tbl); in osm_mcast_tbl_destroy() [all …]
|
H A D | osm_mcast_mgr.c | 340 osm_mcast_tbl_t *p_tbl; in mcast_mgr_set_mft_block() local 366 p_tbl = osm_switch_get_mcast_tbl_ptr(p_sw); in mcast_mgr_set_mft_block() 368 if (osm_mcast_tbl_get_block(p_tbl, (uint16_t) block_num, in mcast_mgr_set_mft_block() 503 osm_mcast_tbl_t *p_tbl; in mcast_mgr_branch() local 593 p_tbl = osm_switch_get_mcast_tbl_ptr(p_sw); in mcast_mgr_branch() 604 osm_mcast_tbl_set(p_tbl, mlid_ho, upstream_port); in mcast_mgr_branch() 644 osm_mcast_tbl_set(p_tbl, mlid_ho, i); in mcast_mgr_branch() 694 osm_mcast_tbl_set(p_tbl, mlid_ho, i); in mcast_mgr_branch() 824 osm_mcast_tbl_t *p_tbl; 842 p_tbl = osm_switch_get_mcast_tbl_ptr(p_sw); [all …]
|
H A D | osm_pkey_mgr.c | 203 const cl_map_t *p_tbl = in pkey_mgr_process_partition_table() local 212 i_next = cl_map_head(p_tbl); in pkey_mgr_process_partition_table() 213 while (i_next != cl_map_end(p_tbl)) { in pkey_mgr_process_partition_table() 812 cl_qmap_t *p_tbl; in osm_pkey_mgr_process() local 836 p_tbl = &p_osm->subn.prtn_pkey_tbl; in osm_pkey_mgr_process() 837 p_next = cl_qmap_head(p_tbl); in osm_pkey_mgr_process() 838 while (p_next != cl_qmap_end(p_tbl)) { in osm_pkey_mgr_process() 848 p_tbl = &p_osm->subn.port_guid_tbl; in osm_pkey_mgr_process() 849 p_next = cl_qmap_head(p_tbl); in osm_pkey_mgr_process() 850 while (p_next != cl_qmap_end(p_tbl)) { in osm_pkey_mgr_process() [all …]
|
H A D | osm_dump.c | 242 osm_mcast_tbl_t *p_tbl; in dump_mcast_routes() local 257 p_tbl = osm_switch_get_mcast_tbl_ptr(p_sw); in dump_mcast_routes() 262 while (block_num <= p_tbl->max_block_in_use) { in dump_mcast_routes() 270 while (position <= p_tbl->max_position) { in dump_mcast_routes() 272 cl_ntoh16((*p_tbl-> in dump_mcast_routes() 508 ib_slvl_table_t *p_tbl; in dump_sl2vl_tbl() local 532 p_tbl = osm_physp_get_slvl_tbl(p_physp, in_port); in dump_sl2vl_tbl() 535 ib_slvl_table_get(p_tbl, i)); in dump_sl2vl_tbl() 542 p_tbl = osm_physp_get_slvl_tbl(p_physp, 0); in dump_sl2vl_tbl() 545 ib_slvl_table_get(p_tbl, i)); in dump_sl2vl_tbl()
|
H A D | osm_qos.c | 256 ib_slvl_table_t tbl, *p_tbl; in sl2vl_update_table() local 274 p_tbl = osm_physp_get_slvl_tbl(p, in_port); in sl2vl_update_table() 276 if (!force_update && !memcmp(p_tbl, &tbl, sizeof(tbl))) in sl2vl_update_table() 288 memset(p_tbl, 0, sizeof(tbl)); in sl2vl_update_table() 448 cl_qmap_t *p_tbl; in osm_qos_setup() local 478 p_tbl = &p_osm->subn.port_guid_tbl; in osm_qos_setup() 479 p_next = cl_qmap_head(p_tbl); in osm_qos_setup() 480 while (p_next != cl_qmap_end(p_tbl)) { in osm_qos_setup()
|
H A D | osm_sw_info_rcv.c | 117 osm_mcast_tbl_t *p_tbl; 143 p_tbl = osm_switch_get_mcast_tbl_ptr(p_sw); 144 max_block_id_ho = osm_mcast_tbl_get_max_block(p_tbl); 154 max_position = osm_mcast_tbl_get_max_position(p_tbl);
|
H A D | osm_sa_path_record.c | 1419 const cl_qmap_t *p_tbl; in pr_rcv_process_world() local 1432 p_tbl = &sa->p_subn->alias_port_guid_tbl; in pr_rcv_process_world() 1434 p_dest_alias_guid = (osm_alias_guid_t *) cl_qmap_head(p_tbl); in pr_rcv_process_world() 1435 while (p_dest_alias_guid != (osm_alias_guid_t *) cl_qmap_end(p_tbl)) { in pr_rcv_process_world() 1436 p_src_alias_guid = (osm_alias_guid_t *) cl_qmap_head(p_tbl); in pr_rcv_process_world() 1437 while (p_src_alias_guid != (osm_alias_guid_t *) cl_qmap_end(p_tbl)) { in pr_rcv_process_world() 1466 const cl_qmap_t *p_tbl; in osm_pr_process_half() local 1476 p_tbl = &sa->p_subn->alias_port_guid_tbl; in osm_pr_process_half() 1482 p_alias_guid = (osm_alias_guid_t *) cl_qmap_head(p_tbl); in osm_pr_process_half() 1483 while (p_alias_guid != (osm_alias_guid_t *) cl_qmap_end(p_tbl)) { in osm_pr_process_half() [all …]
|
H A D | osm_prtn.c | 130 cl_map_t *p_tbl; in osm_prtn_add_port() local 159 p_tbl = (full == TRUE) ? &p->full_guid_tbl : &p->part_guid_tbl; in osm_prtn_add_port() 162 if (cl_map_remove(p_tbl, guid)) in osm_prtn_add_port() 177 if (cl_map_insert(p_tbl, guid, p_physp) == NULL) in osm_prtn_add_port()
|
H A D | osm_prtn_config.c | 389 cl_map_t *p_tbl; in manage_membership_change() local 419 p_tbl = (membership == LIMITED) ? in manage_membership_change() 422 p_next = cl_map_head(p_tbl); in manage_membership_change() 423 while (p_next != cl_map_end(p_tbl)) { in manage_membership_change() 428 cl_map_remove_item(p_tbl, p_item); in manage_membership_change()
|
H A D | osm_congestion_control.c | 356 cl_qmap_t *p_tbl; in osm_congestion_control_setup() local 375 p_tbl = &p_osm->subn.port_guid_tbl; in osm_congestion_control_setup() 376 p_next = cl_qmap_head(p_tbl); in osm_congestion_control_setup() 377 while (p_next != cl_qmap_end(p_tbl)) { in osm_congestion_control_setup()
|
H A D | osm_pkey.c | 118 IN uint16_t block, IN ib_pkey_table_t * p_tbl, in osm_pkey_tbl_set() argument 144 memcpy(p_pkey_block, p_tbl, sizeof(ib_pkey_table_t)); in osm_pkey_tbl_set()
|
H A D | osm_ucast_dfsssp.c | 1719 osm_mcast_tbl_t *p_tbl = NULL; in update_mcft() local 1742 p_tbl = osm_switch_get_mcast_tbl_ptr(p_sw); in update_mcft() 1748 osm_mcast_tbl_set(p_tbl, mlid_ho, 0); in update_mcft() 1770 osm_mcast_tbl_set(p_tbl, mlid_ho, port); in update_mcft() 1783 osm_mcast_tbl_set(p_tbl, mlid_ho, upstream_port); in update_mcft() 1789 p_tbl = osm_switch_get_mcast_tbl_ptr( in update_mcft() 1791 osm_mcast_tbl_set(p_tbl, mlid_ho, downstream_port); in update_mcft()
|
/freebsd/contrib/ofed/opensm/include/opensm/ |
H A D | osm_mcast_tbl.h | 124 void osm_mcast_tbl_init(IN osm_mcast_tbl_t * p_tbl, IN uint8_t num_ports, 177 int osm_mcast_tbl_realloc(IN osm_mcast_tbl_t * p_tbl, IN unsigned mlid_offset); 204 void osm_mcast_tbl_destroy(IN osm_mcast_tbl_t * p_tbl); 227 void osm_mcast_tbl_set(IN osm_mcast_tbl_t * p_tbl, IN uint16_t mlid_ho, 257 void osm_mcast_tbl_clear_mlid(IN osm_mcast_tbl_t * p_tbl, IN uint16_t mlid_ho); 283 boolean_t osm_mcast_tbl_is_port(IN const osm_mcast_tbl_t * p_tbl, 313 boolean_t osm_mcast_tbl_is_any_port(IN const osm_mcast_tbl_t * p_tbl, 340 ib_api_status_t osm_mcast_tbl_set_block(IN osm_mcast_tbl_t * p_tbl, 372 boolean_t osm_mcast_tbl_get_block(IN osm_mcast_tbl_t * p_tbl, 409 static inline uint16_t osm_mcast_tbl_get_max_block(IN osm_mcast_tbl_t * p_tbl) in osm_mcast_tbl_get_max_block() argument [all …]
|
H A D | osm_port.h | 598 ib_slvl_table_t *p_tbl; in osm_physp_set_slvl_tbl() local 602 p_tbl = (ib_slvl_table_t *)cl_ptr_vector_get(&p_physp->slvl_by_port, in_port_num); in osm_physp_set_slvl_tbl() 603 *p_tbl = *p_slvl_tbl; in osm_physp_set_slvl_tbl() 640 ib_slvl_table_t *p_tbl; in osm_physp_get_slvl_tbl() local 643 p_tbl = (ib_slvl_table_t *)cl_ptr_vector_get(&p_physp->slvl_by_port, in_port_num); in osm_physp_get_slvl_tbl() 644 return p_tbl; in osm_physp_get_slvl_tbl()
|
H A D | osm_switch.h | 1163 const osm_mcast_tbl_t *p_tbl; in osm_switch_is_in_mcast_tree() local 1165 p_tbl = &p_sw->mcast_tbl; in osm_switch_is_in_mcast_tree() 1166 if (p_tbl) in osm_switch_is_in_mcast_tree()
|
H A D | osm_pkey.h | 475 IN uint16_t block, IN ib_pkey_table_t * p_tbl,
|
/freebsd/sys/dev/qlnx/qlnxe/ |
H A D | ecore_dcbx.c | 333 struct dcbx_app_priority_entry *p_tbl, u32 pri_tc_tbl, in ecore_dcbx_process_tlv() argument 352 protocol_id = GET_MFW_FIELD(p_tbl[i].entry, in ecore_dcbx_process_tlv() 354 priority_map = GET_MFW_FIELD(p_tbl[i].entry, DCBX_APP_PRI_MAP); in ecore_dcbx_process_tlv() 364 if (ecore_dcbx_get_app_protocol_type(p_hwfn, p_tbl[i].entry, in ecore_dcbx_process_tlv() 416 struct dcbx_app_priority_entry *p_tbl; in ecore_dcbx_process_mib_info() local 429 p_tbl = p_app->app_pri_tbl; in ecore_dcbx_process_mib_info() 437 rc = ecore_dcbx_process_tlv(p_hwfn, p_ptt, &data, p_tbl, pri_tc_tbl, in ecore_dcbx_process_mib_info() 547 struct dcbx_app_priority_entry *p_tbl, in ecore_dcbx_get_app_data() argument 565 sf_ieee = GET_MFW_FIELD(p_tbl[i].entry, in ecore_dcbx_get_app_data() 570 val = GET_MFW_FIELD(p_tbl[i].entry, in ecore_dcbx_get_app_data() [all …]
|