Lines Matching refs:mod

39 get_fmtstr(topo_mod_t *mod, nvlist_t *in)
45 topo_mod_dprintf(mod, "get_fmtstr() called\n");
48 topo_mod_dprintf(mod, "Failed to lookup 'args' list (%s)\n",
50 (void) topo_mod_seterrno(mod, EMOD_NVL_INVAL);
54 topo_mod_dprintf(mod, "Failed to lookup 'format' arg (%s)\n",
56 (void) topo_mod_seterrno(mod, EMOD_NVL_INVAL);
63 store_prop_val(topo_mod_t *mod, void *buf, char *propname, topo_type_t type,
66 if (topo_mod_nvalloc(mod, out, NV_UNIQUE_NAME) != 0) {
67 topo_mod_dprintf(mod, "Failed to allocate 'out' nvlist\n");
68 return (topo_mod_seterrno(mod, EMOD_NOMEM));
71 topo_mod_dprintf(mod, "Failed to set '%s'\n",
74 return (topo_mod_seterrno(mod, EMOD_NVL_INVAL));
78 topo_mod_dprintf(mod, "Failed to set '%s'\n",
81 return (topo_mod_seterrno(mod, EMOD_NVL_INVAL));
86 topo_mod_dprintf(mod, "Failed to set '%s'\n",
89 return (topo_mod_seterrno(mod, EMOD_NVL_INVAL));
94 topo_mod_dprintf(mod, "Failed to set '%s'\n",
97 return (topo_mod_seterrno(mod, EMOD_NVL_INVAL));
102 topo_mod_dprintf(mod, "Failed to set '%s'\n",
105 return (topo_mod_seterrno(mod, EMOD_NVL_INVAL));
127 ipmi_fru_label(topo_mod_t *mod, tnode_t *node, topo_version_t vers,
135 topo_mod_dprintf(mod, "ipmi_fru_label() called\n");
137 topo_mod_dprintf(mod, "Failed to lookup 'args' list (%s)\n",
139 return (topo_mod_seterrno(mod, EMOD_NVL_INVAL));
142 topo_mod_dprintf(mod, "Failed to lookup 'offset' arg (%s)\n",
144 return (topo_mod_seterrno(mod, EMOD_NVL_INVAL));
147 if ((fmtstr = get_fmtstr(mod, in)) == NULL) {
148 topo_mod_dprintf(mod, "Failed to retrieve 'format' arg\n");
157 if (store_prop_val(mod, (void *)buf, "label", TOPO_TYPE_STRING, out)
159 topo_mod_dprintf(mod, "Failed to set label\n");
175 ipmi_fru_fmri(topo_mod_t *mod, tnode_t *node, topo_version_t vers,
182 topo_mod_dprintf(mod, "ipmi_fru_fmri() called\n");
184 topo_mod_dprintf(mod, "Failed to lookup 'args' list (%s)\n",
186 return (topo_mod_seterrno(mod, EMOD_NVL_INVAL));
189 topo_mod_dprintf(mod, "Failed to lookup 'entity' arg (%s)\n",
191 return (topo_mod_seterrno(mod, EMOD_NVL_INVAL));
201 topo_mod_dprintf(mod, "Invalid 'entity' value\n");
202 return (topo_mod_seterrno(mod, EMOD_NVL_INVAL));
205 if (store_prop_val(mod, (void *)fru, "FRU", TOPO_TYPE_FMRI, out) != 0) {
207 topo_mod_dprintf(mod, "Failed to set FRU\n");