Lines Matching refs:mp
164 opl_iob_node_create(topo_mod_t *mp, tnode_t *parent, int inst,
172 nvlist_t *auth = topo_mod_auth(mp, parent);
179 if ((fmri = topo_mod_hcfmri(mp, parent, FM_HC_SCHEME_VERSION, IOBOARD,
182 topo_mod_dprintf(mp, "create of tnode for ioboard failed: %s\n",
183 topo_strerror(topo_mod_errno(mp)));
188 ion = topo_node_bind(mp, parent, IOBOARD, inst, fmri);
191 topo_mod_dprintf(mp, "unable to bind ioboard: %s\n",
192 topo_strerror(topo_mod_errno(mp)));
201 if (topo_mod_str2nvl(mp, fmri_str, &fmri) == 0) {
213 if (topo_node_range_create(mp, ion, HOSTBRIDGE, 0, OPL_HB_MAX) != 0) {
214 topo_mod_dprintf(mp, "topo_node_range_create failed: %s\n",
215 topo_strerror(topo_mod_errno(mp)));
226 opl_get_model(topo_mod_t *mp, di_node_t opl_devtree, char *model)
232 (promh = topo_mod_prominfo(mp)) == DI_PROM_HANDLE_NIL)
247 opl_iob_enum(topo_mod_t *mp, tnode_t *parent, const char *name,
271 opl_devtree = topo_mod_devinfo(mp);
273 (void) topo_mod_seterrno(mp, errno);
274 topo_mod_dprintf(mp, "devinfo init failed.\n");
278 if (opl_get_model(mp, opl_devtree, model) == -1) {
279 topo_mod_dprintf(mp, "opl_get_model failed.\n");
288 topo_mod_dprintf(mp, "opl_get_model %s found.\n", model);
296 opl_map_boards(mp, opl_devtree, lsb_to_psb);
339 ion = opl_iob_node_create(mp, parent, inst, opl_model);
341 topo_mod_dprintf(mp,
343 topo_strerror(topo_mod_errno(mp)));
348 retval = opl_hb_enum(mp, &ioboard_list[inst], ion, inst);