Home
last modified time | relevance | path

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

/freebsd/contrib/ofed/opensm/opensm/
H A Dosm_ucast_dfsssp.c106 typedef struct vltable { struct
359 static inline void vltable_sort_lids(vltable_t * vltable) in vltable_sort_lids() argument
361 qsort(vltable->lids, vltable->num_lids, sizeof(ib_net16_t), cmp_lids); in vltable_sort_lids()
367 static inline int64_t vltable_get_lidindex(ib_net16_t * key, vltable_t * vltable) in vltable_get_lidindex() argument
372 (ib_net16_t *) bsearch(key, vltable->lids, vltable->num_lids, in vltable_get_lidindex()
375 return found_lid - vltable->lids; in vltable_get_lidindex()
383 static int32_t vltable_get_vl(vltable_t * vltable, ib_net16_t slid, ib_net16_t dlid) in vltable_get_vl() argument
385 int64_t ind1 = vltable_get_lidindex(&slid, vltable); in vltable_get_vl()
386 int64_t ind2 = vltable_get_lidindex(&dlid, vltable); in vltable_get_vl()
389 return (int32_t) (vltable-> in vltable_get_vl()
[all …]