Home
last modified time | relevance | path

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

/freebsd/contrib/ofed/opensm/opensm/
H A Dosm_ucast_cache.c98 cache_switch_t *p_cache_sw = malloc(sizeof(cache_switch_t) + in cache_sw_new() local
100 if (!p_cache_sw) in cache_sw_new()
103 memset(p_cache_sw, 0, in cache_sw_new()
104 sizeof(*p_cache_sw) + num_ports * sizeof(cache_port_t)); in cache_sw_new()
106 p_cache_sw->num_ports = num_ports; in cache_sw_new()
109 p_cache_sw->ports[0].remote_lid_ho = lid_ho; in cache_sw_new()
110 p_cache_sw->ports[0].is_leaf = FALSE; in cache_sw_new()
112 return p_cache_sw; in cache_sw_new()
135 cache_switch_t *p_cache_sw = (cache_switch_t *) in cache_get_sw() local
137 if (p_cache_sw == (cache_switch_t *) in cache_get_sw()
[all …]