Lines Matching defs:inst
386 topo_node_lookup(tnode_t *pnode, const char *name, topo_instance_t inst)
393 "topo_node_lookup: looking for '%s' instance %d\n", name, inst);
400 if (inst > nhp->th_range.tr_max ||
401 inst < nhp->th_range.tr_min) {
406 h = topo_node_hash(nhp, inst);
418 topo_node_hash(topo_nodehash_t *nhp, topo_instance_t inst)
420 return ((inst - nhp->th_range.tr_min) % nhp->th_arrlen);
447 topo_instance_t inst, nvlist_t *fmri)
458 if (inst > nhp->th_range.tr_max ||
459 inst < nhp->th_range.tr_min)
463 h = topo_node_hash(nhp, inst);
487 node->tn_instance = inst;
538 topo_instance_t inst = 0;
553 if (inst > nhp->th_range.tr_max ||
554 inst < nhp->th_range.tr_min) {
559 h = topo_node_hash(nhp, inst);
588 node->tn_instance = inst;