Lines Matching refs:errp
39 static descriptor_t **get_assoc_buses(descriptor_t *desc, int *errp);
40 static descriptor_t **get_assoc_drives(descriptor_t *desc, int *errp);
41 static descriptor_t **get_assoc_paths(descriptor_t *desc, int *errp);
45 int *errp)
49 return (get_assoc_drives(desc, errp));
51 return (get_assoc_paths(desc, errp));
53 return (get_assoc_buses(desc, errp));
56 *errp = EINVAL;
61 controller_get_attributes(descriptor_t *dp, int *errp)
67 *errp = ENOMEM;
75 *errp = ENOMEM;
82 *errp = ENOMEM;
91 *errp = ENOMEM;
98 *errp = ENOMEM;
105 *errp = ENOMEM;
112 *errp = ENOMEM;
119 *errp = ENOMEM;
128 *errp = ENOMEM;
133 *errp = 0;
138 controller_get_descriptor_by_name(char *name, int *errp)
144 controllers = cache_get_descriptors(DM_CONTROLLER, errp);
145 if (*errp != 0) {
160 *errp = ENODEV;
168 controller_get_descriptors(int filter[], int *errp)
170 return (cache_get_descriptors(DM_CONTROLLER, errp));
181 controller_get_stats(descriptor_t *dp, int stat_type, int *errp)
184 *errp = EINVAL;
207 get_assoc_buses(descriptor_t *desc, int *errp)
218 *errp = ENOMEM;
223 buses[pos++] = cache_get_desc(DM_BUS, cp->bus, NULL, NULL, errp);
224 if (*errp != 0) {
231 *errp = 0;
236 get_assoc_drives(descriptor_t *desc, int *errp)
251 *errp = ENOMEM;
257 errp);
258 if (*errp != 0) {
265 *errp = 0;
270 get_assoc_paths(descriptor_t *desc, int *errp)
288 *errp = ENOMEM;
298 paths[i] = cache_get_desc(DM_PATH, pp[i], NULL, NULL, errp);
299 if (*errp != 0) {
307 *errp = 0;