Lines Matching refs:locator
4534 bus_generic_get_device_path(device_t bus, device_t child, const char *locator, in bus_generic_get_device_path() argument
4550 if (parent != NULL && strcmp(locator, BUS_LOCATOR_ACPI) != 0) { in bus_generic_get_device_path()
4551 rv = BUS_GET_DEVICE_PATH(parent, bus, locator, sb); in bus_generic_get_device_path()
4553 if (strcmp(locator, BUS_LOCATOR_FREEBSD) == 0) { in bus_generic_get_device_path()
5703 device_get_path(device_t dev, const char *locator, struct sbuf *sb) in device_get_path() argument
5713 error = BUS_GET_DEVICE_PATH(parent, dev, locator, sb); in device_get_path()
5992 char locator[64]; in devctl2_ioctl() local
5995 error = copyinstr(req->dr_buffer.buffer, locator, in devctl2_ioctl()
5996 sizeof(locator), NULL); in devctl2_ioctl()
6001 error = device_get_path(dev, locator, sb); in devctl2_ioctl()
6074 dev_wired_cache_lookup(device_location_cache_t *dcp, const char *locator) in dev_wired_cache_lookup() argument
6079 if (strcmp(locator, dln->dln_locator) == 0) in dev_wired_cache_lookup()
6087 dev_wired_cache_add(device_location_cache_t *dcp, const char *locator, const char *path) in dev_wired_cache_add() argument
6092 loclen = strlen(locator) + 1; in dev_wired_cache_add()
6096 memcpy(__DECONST(char *, dln->dln_locator), locator, loclen); in dev_wired_cache_add()
6110 char locator[32]; in dev_wired_cache_match() local
6118 if (len > sizeof(locator) - 1) /* Skip too long locator */ in dev_wired_cache_match()
6120 memcpy(locator, at, len); in dev_wired_cache_match()
6121 locator[len] = '\0'; in dev_wired_cache_match()
6126 res = dev_wired_cache_lookup(dcp, locator); in dev_wired_cache_match()
6131 error = device_get_path(dev, locator, sb); in dev_wired_cache_match()
6133 res = dev_wired_cache_add(dcp, locator, in dev_wired_cache_match()