Lines Matching defs:devid
32 #include <devid.h>
135 char *devid = NULL, *tpl0id = NULL;
145 /* Get devid, if present */
146 err = nvlist_lookup_string(nvl, FM_FMRI_DEV_ID, &devid);
171 /* device-id part, topo_fmristr_build does nothing if devid is NULL */
173 buf, buflen, devid, ":" FM_FMRI_DEV_ID "=", NULL);
183 * there is a devid component so we continue to do that
187 * dev:///<devid-and-tpl0>//pci@0,0/...
189 * where <devid-and-tpl0> =
190 * [:devid=<devid>][:target-port-l0id=<tpl0>]
193 devid || tpl0id ? "/" : NULL, NULL);
236 char *cur, *devid = NULL, *tpl0id = NULL;
256 * with no FMRI auth info, no devid or target-port-l0id and
269 * fmri authority is a colon then we have devid and/or target-port-l0id
322 devid = eq + 1;
330 if (devid == NULL && tpl0id == NULL)
347 if (devid != NULL)
348 err |= nvlist_add_string(fmri, FM_FMRI_DEV_ID, devid);
353 if (devid != NULL || tpl0id != NULL)
380 char *devid = NULL, *path;
395 (void) nvlist_lookup_string(in, FM_FMRI_DEV_ID, &devid);
403 * If the device is present and there is a devid, it must also match.
409 if (devid == NULL) {
428 devid_str_decode(devid, &matchid, NULL) != 0)
460 char *devid = NULL, *path;
475 (void) nvlist_lookup_string(in, FM_FMRI_DEV_ID, &devid);
483 * If the device is present and there is a devid, it must also match.
489 if (devid == NULL) {
508 devid_str_decode(devid, &matchid, NULL) != 0)