Lines Matching refs:mp
112 mod_binary_path_get(topo_mod_t *mp, const char *objpath)
121 topo_mod_dprintf(mp, "unable to open %s\n", objpath);
126 topo_mod_dprintf(mp, "Elf version out of whack\n");
130 topo_mod_dprintf(mp, "elf_begin failed\n");
134 topo_mod_dprintf(mp, "gelf_getehdr failed\n");
141 topo_mod_dprintf(mp, "gelf_getshdr failed\n");
151 topo_mod_dprintf(mp, "no filename data");
165 (void) topo_mod_seterrno(mp, EMOD_METHOD_INVAL);
170 mod_nvl_data(topo_mod_t *mp, nvlist_t *out, const char *path)
177 topo_mod_dprintf(mp,
179 return (topo_mod_seterrno(mp, EMOD_METHOD_INVAL));
186 return (topo_mod_seterrno(mp, EMOD_METHOD_INVAL));
197 return (topo_mod_seterrno(mp, EMOD_FMRI_NVL));
203 mod_fmri_create(topo_mod_t *mp, const char *driver)
208 if (topo_mod_nvalloc(mp, &out, NV_UNIQUE_NAME) != 0) {
209 (void) topo_mod_seterrno(mp, EMOD_FMRI_NVL);
218 if (mod_binary_path_get(mp, objpath) < 0)
221 if (mod_nvl_data(mp, out, objpath) < 0) {
222 topo_mod_dprintf(mp, "failed to get modinfo for %s", driver);
235 mod_fmri_create_meth(topo_mod_t *mp, tnode_t *node, topo_version_t version,
243 return (topo_mod_seterrno(mp, EMOD_VER_NEW));
247 topo_mod_dprintf(mp, "no DRIVER string in method argument\n");
248 return (topo_mod_seterrno(mp, EMOD_METHOD_INVAL));
251 modnvl = mod_fmri_create(mp, driver);
254 topo_mod_dprintf(mp, "failed to create contained mod FMRI\n");