Lines Matching defs:errp
35 static descriptor_t **get_assoc_buses(descriptor_t *desc, int *errp);
36 static descriptor_t **get_assoc_drives(descriptor_t *desc, int *errp);
37 static descriptor_t **get_assoc_paths(descriptor_t *desc, int *errp);
41 int *errp)
45 return (get_assoc_drives(desc, errp));
47 return (get_assoc_paths(desc, errp));
49 return (get_assoc_buses(desc, errp));
52 *errp = EINVAL;
57 controller_get_attributes(descriptor_t *dp, int *errp)
63 *errp = ENOMEM;
71 *errp = ENOMEM;
78 *errp = ENOMEM;
87 *errp = ENOMEM;
94 *errp = ENOMEM;
101 *errp = ENOMEM;
108 *errp = ENOMEM;
115 *errp = ENOMEM;
124 *errp = ENOMEM;
129 *errp = 0;
134 controller_get_descriptor_by_name(char *name, int *errp)
140 controllers = cache_get_descriptors(DM_CONTROLLER, errp);
141 if (*errp != 0) {
156 *errp = ENODEV;
164 controller_get_descriptors(int filter[], int *errp)
166 return (cache_get_descriptors(DM_CONTROLLER, errp));
177 controller_get_stats(descriptor_t *dp, int stat_type, int *errp)
180 *errp = EINVAL;
203 get_assoc_buses(descriptor_t *desc, int *errp)
214 *errp = ENOMEM;
219 buses[pos++] = cache_get_desc(DM_BUS, cp->bus, NULL, NULL, errp);
220 if (*errp != 0) {
227 *errp = 0;
232 get_assoc_drives(descriptor_t *desc, int *errp)
247 *errp = ENOMEM;
253 errp);
254 if (*errp != 0) {
261 *errp = 0;
266 get_assoc_paths(descriptor_t *desc, int *errp)
284 *errp = ENOMEM;
294 paths[i] = cache_get_desc(DM_PATH, pp[i], NULL, NULL, errp);
295 if (*errp != 0) {
303 *errp = 0;