Lines Matching refs:owner
271 struct xen_device_domain_owner *owner; in find_device() local
273 list_for_each_entry(owner, &dev_domain_list, list) { in find_device()
274 if (owner->dev == dev) in find_device()
275 return owner; in find_device()
282 struct xen_device_domain_owner *owner; in xen_find_device_domain_owner() local
286 owner = find_device(dev); in xen_find_device_domain_owner()
287 if (owner) in xen_find_device_domain_owner()
288 domain = owner->domain; in xen_find_device_domain_owner()
296 struct xen_device_domain_owner *owner; in xen_register_device_domain_owner() local
298 owner = kzalloc(sizeof(struct xen_device_domain_owner), GFP_KERNEL); in xen_register_device_domain_owner()
299 if (!owner) in xen_register_device_domain_owner()
305 kfree(owner); in xen_register_device_domain_owner()
308 owner->domain = domain; in xen_register_device_domain_owner()
309 owner->dev = dev; in xen_register_device_domain_owner()
310 list_add_tail(&owner->list, &dev_domain_list); in xen_register_device_domain_owner()
318 struct xen_device_domain_owner *owner; in xen_unregister_device_domain_owner() local
321 owner = find_device(dev); in xen_unregister_device_domain_owner()
322 if (!owner) { in xen_unregister_device_domain_owner()
326 list_del(&owner->list); in xen_unregister_device_domain_owner()
328 kfree(owner); in xen_unregister_device_domain_owner()