Home
last modified time | relevance | path

Searched refs:p_mtn (Results 1 – 3 of 3) sorted by relevance

/freebsd/contrib/ofed/opensm/opensm/
H A Dosm_mtree.c54 osm_mtree_node_t *p_mtn; in osm_mtree_node_new() local
57 p_mtn = malloc(sizeof(osm_mtree_node_t) + in osm_mtree_node_new()
59 if (!p_mtn) in osm_mtree_node_new()
62 memset(p_mtn, 0, sizeof(*p_mtn)); in osm_mtree_node_new()
63 p_mtn->p_sw = p_sw; in osm_mtree_node_new()
64 p_mtn->max_children = p_sw->num_ports; in osm_mtree_node_new()
65 for (i = 0; i < p_mtn->max_children; i++) in osm_mtree_node_new()
66 p_mtn->child_array[i] = NULL; in osm_mtree_node_new()
68 return p_mtn; in osm_mtree_node_new()
71 void osm_mtree_destroy(IN osm_mtree_node_t * p_mtn) in osm_mtree_destroy() argument
[all …]
H A Dosm_mcast_mgr.c496 osm_mtree_node_t *p_mtn = NULL; in mcast_mgr_branch() local
551 p_mtn = osm_mtree_node_new(p_sw); in mcast_mgr_branch()
552 if (p_mtn == NULL) { in mcast_mgr_branch()
567 max_children = osm_mtree_node_get_max_children(p_mtn); in mcast_mgr_branch()
581 osm_mtree_destroy(p_mtn); in mcast_mgr_branch()
582 p_mtn = NULL; in mcast_mgr_branch()
708 p_mtn->child_array[i] = in mcast_mgr_branch()
720 p_mtn->child_array[i] = OSM_MTREE_LEAF; in mcast_mgr_branch()
738 return p_mtn; in mcast_mgr_branch()
818 IN const osm_mtree_node_t * p_mtn)
[all …]
/freebsd/contrib/ofed/opensm/include/opensm/
H A Dosm_mtree.h163 void osm_mtree_destroy(IN osm_mtree_node_t * p_mtn);
190 osm_mtree_node_get_max_children(IN const osm_mtree_node_t * p_mtn) in osm_mtree_node_get_max_children() argument
192 return (p_mtn->max_children); in osm_mtree_node_get_max_children()
218 p_mtn, in osm_mtree_node_get_child()
221 CL_ASSERT(child < p_mtn->max_children); in osm_mtree_node_get_child()
222 return (p_mtn->child_array[child]); in osm_mtree_node_get_child()
252 p_mtn) in osm_mtree_node_get_switch_ptr()
254 return p_mtn->p_sw; in osm_mtree_node_get_switch_ptr()