Lines Matching defs:device

13 #include <zircon/device/vfs.h>
40 // otherwise the device we are referencing
41 device_t* device;
54 // used to assign unique small device numbers
55 // for class device links
172 // it has children, or if it doesn't have a device, or if
173 // its device has no rpc handle
176 return (dn->device == nullptr) || (dn->device->hrpc == ZX_HANDLE_INVALID);
184 if (dn->device == nullptr) {
187 if (dn->device->hrpc == ZX_HANDLE_INVALID) {
190 if (dn->device->flags & DEV_CTX_MUST_ISOLATE) {
249 if (child->device && (child->device->flags & DEV_CTX_INVISIBLE)) {
282 dn->device = dev;
344 // in the sense of other device classes.
347 // device.
411 if ((dn->device == nullptr) ||
412 !(dn->device->flags & DEV_CTX_INVISIBLE)) {
416 // disconnect from device and notify parent/link directory watchers
417 if (dn->device != nullptr) {
418 if (dn->device->self == dn) {
419 dn->device->self = nullptr;
421 if ((dn->device->parent != nullptr) &&
422 (dn->device->parent->self != nullptr) &&
423 !(dn->device->flags & DEV_CTX_INVISIBLE)) {
424 devfs_notify(dn->device->parent->self, dn->name, fuchsia_io_WATCH_EVENT_REMOVED);
427 if (dn->device->link == dn) {
428 dn->device->link = nullptr;
430 if (!(dn->device->flags & DEV_CTX_INVISIBLE)) {
431 devnode_t* dir = proto_dir(dn->device->protocol_id);
435 dn->device = nullptr;
486 if(child->device && (child->device->flags & DEV_CTX_INVISIBLE)) {
514 bool no_remote = (dn->device == nullptr) || (dn->device->hrpc == ZX_HANDLE_INVALID);
564 fuchsia_io_DirectoryOpen(dn->device->hrpc, flags, 0, path, strlen(path), h);
595 if (child->device == nullptr) {
604 if (child->device->flags & DEV_CTX_INVISIBLE) {
787 root_devnode.device = coordinator_init(root_job);
788 root_devnode.device->self = &root_devnode;