Lines Matching refs:mod

44 x86pi_enum_generic(topo_mod_t *mod, x86pi_hcfmri_t *hcfmri,  in x86pi_enum_generic()  argument
53 topo_mod_dprintf(mod, "%s adding entry for type (%s)\n", in x86pi_enum_generic()
57 topo_mod_dprintf(mod, in x86pi_enum_generic()
64 auth = topo_mod_auth(mod, t_bindparent); in x86pi_enum_generic()
65 fmri = topo_mod_hcfmri(mod, t_fmriparent, FM_HC_SCHEME_VERSION, in x86pi_enum_generic()
72 topo_mod_dprintf(mod, in x86pi_enum_generic()
74 hcfmri->hc_name, topo_strerror(topo_mod_errno(mod))); in x86pi_enum_generic()
78 rv = topo_node_range_create(mod, t_bindparent, hcfmri->hc_name, 0, 4); in x86pi_enum_generic()
79 if (rv != 0 && topo_mod_errno(mod) != EMOD_NODE_DUP) { in x86pi_enum_generic()
80 topo_mod_dprintf(mod, "%s range create failed for node %s\n", in x86pi_enum_generic()
85 *t_node = x86pi_node_bind(mod, t_bindparent, hcfmri, fmri, flag); in x86pi_enum_generic()
88 topo_mod_dprintf(mod, in x86pi_enum_generic()
91 topo_strerror(topo_mod_errno(mod))); in x86pi_enum_generic()
96 if (topo_mod_load(mod, _FAC_PROV, TOPO_VERSION) == NULL) { in x86pi_enum_generic()
97 topo_mod_dprintf(mod, in x86pi_enum_generic()
99 topo_mod_errmsg(mod)); in x86pi_enum_generic()
103 rv = topo_mod_enumerate(mod, *t_node, _FAC_PROV, _FAC_PROV, 0, 0, NULL); in x86pi_enum_generic()
105 topo_mod_dprintf(mod, in x86pi_enum_generic()
107 topo_mod_errmsg(mod)); in x86pi_enum_generic()
116 topo_mod_dprintf(mod, in x86pi_enum_generic()
123 topo_mod_dprintf(mod, "%s added (%s) node\n", _ENUM_NAME, in x86pi_enum_generic()
131 x86pi_node_bind(topo_mod_t *mod, tnode_t *t_parent, x86pi_hcfmri_t *hcfmri, in x86pi_node_bind() argument
139 topo_mod_dprintf(mod, in x86pi_node_bind()
146 t_node = topo_node_bind(mod, t_parent, hcfmri->hc_name, in x86pi_node_bind()
149 topo_mod_dprintf(mod, in x86pi_node_bind()
152 topo_strerror(topo_mod_errno(mod))); in x86pi_node_bind()
155 topo_mod_dprintf(mod, "%s: bound %s node instance %d type %s\n", in x86pi_node_bind()
162 result = x86pi_set_frufmri(mod, hcfmri, t_parent, t_node, flag); in x86pi_node_bind()
169 topo_mod_dprintf(mod, in x86pi_node_bind()
174 result = x86pi_set_label(mod, hcfmri->location, hcfmri->hc_name, in x86pi_node_bind()
182 topo_mod_dprintf(mod, "%s: no label for %s node\n", in x86pi_node_bind()
186 result = x86pi_set_auth(mod, hcfmri, t_parent, t_node); in x86pi_node_bind()
193 topo_mod_dprintf(mod, in x86pi_node_bind()
198 result = x86pi_set_system(mod, t_node); in x86pi_node_bind()
205 topo_mod_dprintf(mod, in x86pi_node_bind()