Lines Matching refs:found
147 if (d->found & DEVICE_FOUND_UDEV)
150 else if (d->found != DEVICE_NOT_FOUND && d->deserialized_state != DEVICE_PLUGGED)
151 /* If a device is found in /proc/self/mountinfo or
452 static void device_update_found_one(Device *d, bool add, DeviceFound found, bool now) {
457 n = add ? (d->found | found) : (d->found & ~found);
458 if (n == d->found)
461 previous = d->found;
462 d->found = n;
467 if (d->found & DEVICE_FOUND_UDEV)
471 else if (d->found != DEVICE_NOT_FOUND && (previous & DEVICE_FOUND_UDEV) == 0)
484 static int device_update_found_by_sysfs(Manager *m, const char *sysfs, bool add, DeviceFound found, bool now) {
490 if (found == DEVICE_NOT_FOUND)
495 device_update_found_one(d, add, found, now);
500 static int device_update_found_by_name(Manager *m, const char *path, bool add, DeviceFound found, bool now) {
508 if (found == DEVICE_NOT_FOUND)
519 device_update_found_one(DEVICE(u), add, found, now);
744 * found bits */
757 /* The device is found now, set the udev found bit */
783 int device_found_node(Manager *m, const char *node, bool add, DeviceFound found, bool now) {
834 return device_update_found_by_name(m, node, add, found, now);