Lines Matching full:o

53     RemoteObject *o = REMOTE_OBJECT(obj);  in remote_object_set_fd()  local
68 o->fd = fd; in remote_object_set_fd()
73 RemoteObject *o = REMOTE_OBJECT(obj); in remote_object_set_devid() local
75 g_free(o->devid); in remote_object_set_devid()
77 o->devid = g_strdup(str); in remote_object_set_devid()
83 RemoteObject *o = container_of(listener, RemoteObject, listener); in remote_object_unrealize_listener() local
85 if (o->dev == dev) { in remote_object_unrealize_listener()
86 object_unref(OBJECT(o)); in remote_object_unrealize_listener()
92 RemoteObject *o = container_of(notifier, RemoteObject, machine_done); in remote_object_machine_done() local
99 dev = qdev_find_recursive(sysbus_get_default(), o->devid); in remote_object_machine_done()
101 error_report("%s is not a PCI device", o->devid); in remote_object_machine_done()
105 ioc = qio_channel_new_fd(o->fd, &err); in remote_object_machine_done()
112 o->dev = dev; in remote_object_machine_done()
114 o->listener.unrealize = remote_object_unrealize_listener; in remote_object_machine_done()
115 device_listener_register(&o->listener); in remote_object_machine_done()
131 RemoteObject *o = REMOTE_OBJECT(obj); in remote_object_init() local
138 o->ioc = NULL; in remote_object_init()
139 o->fd = -1; in remote_object_init()
140 o->devid = NULL; in remote_object_init()
144 o->machine_done.notify = remote_object_machine_done; in remote_object_init()
145 qemu_add_machine_init_done_notifier(&o->machine_done); in remote_object_init()
151 RemoteObject *o = REMOTE_OBJECT(obj); in remote_object_finalize() local
153 device_listener_unregister(&o->listener); in remote_object_finalize()
155 if (o->ioc) { in remote_object_finalize()
156 qio_channel_shutdown(o->ioc, QIO_CHANNEL_SHUTDOWN_BOTH, NULL); in remote_object_finalize()
157 qio_channel_close(o->ioc, NULL); in remote_object_finalize()
160 object_unref(OBJECT(o->ioc)); in remote_object_finalize()
163 g_free(o->devid); in remote_object_finalize()